feat: 调整单个数据库资源可配置多个数据库

This commit is contained in:
meilin.huang
2022-05-08 14:10:57 +08:00
parent 483f5b7604
commit 9db3db31be
26 changed files with 329 additions and 143 deletions

View File

@@ -83,6 +83,9 @@ export default defineComponent({
dbId: {
type: Number,
},
db: {
type: String,
}
},
setup(props: any, { emit }) {
const formRef: any = ref();
@@ -202,6 +205,7 @@ export default defineComponent({
SqlExecBox({
sql: sql,
dbId: props.dbId as any,
db: props.db,
runSuccessCallback: () => {
ElMessage.success('创建成功');
proxy.$parent.tableInfo({ id: props.dbId });