From 10bda919c6c9991f21b9af8c4369e56b42d96889 Mon Sep 17 00:00:00 2001
From: siyaqi
Date: Mon, 5 Jan 2026 15:35:18 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E4=BA=A7=E9=97=AE=E9=A2=98=E4=BF=AE?=
=?UTF-8?q?=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/views/dataAsset/assetDetail/index.vue | 68 +++++++++++++------
1 file changed, 46 insertions(+), 22 deletions(-)
diff --git a/vue-fastapi-frontend/src/views/dataAsset/assetDetail/index.vue b/vue-fastapi-frontend/src/views/dataAsset/assetDetail/index.vue
index 7c420c8..290bd18 100644
--- a/vue-fastapi-frontend/src/views/dataAsset/assetDetail/index.vue
+++ b/vue-fastapi-frontend/src/views/dataAsset/assetDetail/index.vue
@@ -111,7 +111,7 @@
-
+
@@ -157,16 +157,22 @@
-
-
-
-
-
-
+
+
+ {{ item.label }}
+
+
+
+
+
@@ -313,6 +319,15 @@ function addLabel(nodes) {
}
}
}
+
+ function deleteTag(row){
+ row.clasEffFlag = '0'
+ row.tagSource = '手动'
+ }
+ function revertTag(row){
+ row.clasEffFlag = '1'
+ row.tagSource = '手动'
+ }
/** 查询部门下拉树结构 */
function getDeptTree() {
deptTreeSelect().then(response => {
@@ -327,7 +342,11 @@ function getDeptTree() {
}
});
};
-
+const dataAstScreenOptions = [
+ { label: '智能助手', value: '智能助手' },
+ { label: 'API', value: 'API' }
+]
+
const astTags = ref([])
/** 节点单击事件 */
@@ -441,6 +460,9 @@ const handleUpdate = (row) => {
astTags.value = JSON.parse(form.value.dataAstClas)||[]
+ form.value.dataAstScreenArr = form.value.dataAstScreen
+ ? form.value.dataAstScreen.split(',')
+ : []
}
function addAstTag(){
let json = JSON.parse(JSON.stringify(currentAstTag.value))
@@ -487,7 +509,7 @@ const handleDelete = (row) => {
"dataAstStat": item.dataAstStat,
"dataAstDesc": item.dataAstDesc,
"dataAstScreen": item.dataAstScreen,
- "dataAstScrenClas": item.dataAstScrenClas,
+ // "dataAstScrenClas": item.dataAstScrenClas,
"dataAstClas": item.dataAstClas?item.dataAstClas:"",
"dataAstCont": item.dataAstCont,
"dataAstFaq": item.dataAstFaq,
@@ -574,15 +596,15 @@ const dataAstStat_list = computed(() => {
return Array.from(unique);
});
-const dataAstScrenClas_list = computed(() => {
- const unique = new Set();
- list.value.forEach(item => {
- if (item.dataAstScrenClas) {
- unique.add(item.dataAstScrenClas);
- }
- });
- return Array.from(unique);
-});
+// const dataAstScrenClas_list = computed(() => {
+// const unique = new Set();
+// list.value.forEach(item => {
+// if (item.dataAstScrenClas) {
+// unique.add(item.dataAstScrenClas);
+// }
+// });
+// return Array.from(unique);
+// });
const open = ref(false);
@@ -596,7 +618,7 @@ const data = reactive({
dataAstStat: [{ required: true, message: "请选择", trigger: "blur" }],
dataAstSrc: [{ required: true, message: "请选择", trigger: "blur" }],
dataAstScreen: [{ required: false, message: "请选择", trigger: "blur" }],
- dataAstScrenClas: [{ required: false, message: "请选择", trigger: "blur" }],
+ // dataAstScrenClas: [{ required: false, message: "请选择", trigger: "blur" }],
}
});
const { form, rules } = toRefs(data);
@@ -612,8 +634,10 @@ function submitForm() {
"dataAstType": form.value.dataAstType,
"dataAstStat": form.value.dataAstStat,
"dataAstDesc": form.value.dataAstDesc,
- "dataAstScreen": form.value.dataAstScreen || "", // 添加默认值
- "dataAstScrenClas": form.value.dataAstScrenClas || "", // 添加默认值
+ "dataAstScreen": form.value.dataAstScreenArr
+ ? form.value.dataAstScreenArr.join(',')
+ : "",
+ // "dataAstScrenClas": form.value.dataAstScrenClas || "", // 添加默认值
"dataAstClas": JSON.stringify(astTags.value)?JSON.stringify(astTags.value):"",
"dataAstCont": form.value.dataAstCont?form.value.dataAstCont:"",
"dataAstFaq": form.value.dataAstFaq?form.value.dataAstFaq:"",