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 @@