@@ -154,13 +154,13 @@ const formRules = ref({
uqDescribe: [{required: true, message: '请输入描述', trigger: 'blur'}],
})
//获取数据源select的option
-const getOption =async () => {
- await getDataSourceOption().then(res => {
- if (res.code === 1000) {
- dataSourceOption.value = res.data
- // getList();
- }
- })
+const getOption = async () => {
+ await getDataSourceOption().then(res => {
+ if (res.code === 1000) {
+ dataSourceOption.value = res.data
+ // getList();
+ }
+ })
}
const getDataSourceOptionItem = (dataSourceId) => {
@@ -258,22 +258,24 @@ const handleDownLine = (row) => {
//单个删除
const handleDelete = async (id) => {
- // let list = []
- // list.push(row.id)
- // ElMessageBox.confirm(`确认删除名称为${row.uqName}的数据吗?`, '系统提示', {
- // confirmButtonText: '确定',
- // cancelButtonText: '取消',
- // type: 'warning'
- // }).then(() => {
- delSql(id).then(res => {
- if (res.code === 1000) {
- ElMessage.success(res.msg)
- getList()
- } else {
- ElMessage.error(res.msg)
- }
- })
- // })
+ delSql(id).then(res => {
+ if (res.code === 1000) {
+ ElMessage.success(res.msg)
+ getList()
+ } else {
+ ElMessage.error(res.msg)
+ }
+ })
+}
+//多删
+const handleMoreDelete = (uqIds) => {
+ ElMessageBox.confirm(`确认删除名称为${uqNameList}的SQL查询吗?`, '系统提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(() => {
+ handleDelete(uqIds)
+ })
}
//取消
const handleCancel = () => {
@@ -314,7 +316,7 @@ const handleSubmit = async (instance) => {
const handleSelect = async (selection) => {
if (selection.length !== 0) {
disabled.value = false
- uqIds.value=selection.map(item => item.id).join()
+ uqIds.value = selection.map(item => item.id).join()
uqNameList.value = selection.map(item => item.uqName).join()
} else {
disabled.value = true
diff --git a/src/views/custom-query/topo/index.vue b/src/views/custom-query/topo/index.vue
index 1aec7fa..0171264 100644
--- a/src/views/custom-query/topo/index.vue
+++ b/src/views/custom-query/topo/index.vue
@@ -17,9 +17,9 @@
-
- {{getDataSourceOptionItem(scope.row.dataSourceId)}}
+
+ {{ getDataSourceOptionItem(scope.row.dataSourceId) }}
@@ -50,12 +50,12 @@
编辑
+ @click="handleEdit(scope.row.id)">编辑
设计
+ @click="handleDesign(scope.row)">设计
-
@@ -117,7 +117,7 @@
-