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:"",