From 06764c073af8f5f837f6791ac4a6d0aa3b5c88d5 Mon Sep 17 00:00:00 2001 From: guanj Date: Mon, 29 Dec 2025 20:46:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=AE=97=E6=B3=95=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/tree/pqs/algorithmTree.vue | 194 ++++++++++-------- .../database/algorithm/components/form.vue | 7 +- src/views/pqs/database/algorithm/index.vue | 12 +- src/views/pqs/database/algorithm/list.vue | 19 +- src/views/pqs/database/algorithm/overview.vue | 9 +- .../panorama/components/details/propInfo.vue | 2 +- 6 files changed, 137 insertions(+), 106 deletions(-) diff --git a/src/components/tree/pqs/algorithmTree.vue b/src/components/tree/pqs/algorithmTree.vue index 956013bb..1395d2ae 100644 --- a/src/components/tree/pqs/algorithmTree.vue +++ b/src/components/tree/pqs/algorithmTree.vue @@ -1,88 +1,106 @@ - - - - - \ No newline at end of file + + + + diff --git a/src/views/pqs/database/algorithm/components/form.vue b/src/views/pqs/database/algorithm/components/form.vue index 4cf6ebde..fc791a62 100644 --- a/src/views/pqs/database/algorithm/components/form.vue +++ b/src/views/pqs/database/algorithm/components/form.vue @@ -10,9 +10,6 @@ - - - @@ -70,8 +67,7 @@ const form = reactive({ period: '', definition: '', source: '', - pid: '', - path: '' + pid: '' }) const rules = { name: [{ required: true, message: '请输入算法名称', trigger: 'blur' }], @@ -136,7 +132,6 @@ const submit = async () => { } else { forms.name = form.name forms.pid = form.pid - forms.path = form.path||'' } await addAlgorithm(forms).then(res => { ElMessage.success('新增成功') diff --git a/src/views/pqs/database/algorithm/index.vue b/src/views/pqs/database/algorithm/index.vue index b2ae6177..fd5ee1fd 100644 --- a/src/views/pqs/database/algorithm/index.vue +++ b/src/views/pqs/database/algorithm/index.vue @@ -2,10 +2,10 @@
- + - +
@@ -27,6 +27,7 @@ defineOptions({ const activeName = ref('1') const id = ref('') const key = ref('') +const listRef = ref() const tabList = ref(['1', '2']) onMounted(() => { let key = window.location.href.split('?')[0].slice(-1) @@ -36,7 +37,12 @@ onMounted(() => { activeName.value = key } }) - +const algorithm = (val: any) => { + activeName.value = '2' + setTimeout(() => { + listRef.value.getList(val) + }, 100) +} const layout = mainHeight(63) as any diff --git a/src/views/pqs/database/algorithm/list.vue b/src/views/pqs/database/algorithm/list.vue index 449c5f14..daeebe22 100644 --- a/src/views/pqs/database/algorithm/list.vue +++ b/src/views/pqs/database/algorithm/list.vue @@ -13,7 +13,7 @@ @onAddTree="onAddTree" > - +
@@ -111,13 +111,13 @@