From 7ae15159ab7a533d7336d0f698c801fd9e5e0e0b Mon Sep 17 00:00:00 2001 From: "1378012178@qq.com" <1378012178@qq.com> Date: Wed, 25 Feb 2026 09:25:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E6=9C=8D=E5=8A=A1=E6=8C=87?= =?UTF-8?q?=E4=BB=A4=E5=A4=9A=E4=BD=99=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../synchronization/directive/syncList.vue | 30 +------------------ 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/src/views/synchronization/directive/syncList.vue b/src/views/synchronization/directive/syncList.vue index 857ef6f..f684f5e 100644 --- a/src/views/synchronization/directive/syncList.vue +++ b/src/views/synchronization/directive/syncList.vue @@ -84,14 +84,12 @@ import { getOrgInfo } from '/@/views/admin/orgapplyinfo/OrgApplyInfo.api'; import OrgListCom from '/@/views/synchronization/directive/orgCom/OrgListCom.vue' //可新增指令 import { useMessage } from '/@/hooks/web/useMessage'; -import { getDirectiveMain, changeDirectiveMain } from '/@/api/common/api' -import { idListByDS } from '/@/views/synchronization/directive/serviceDirective/ConfigServiceDirective.api'; import DirectiveBkMainList from '/@/views/services/directivebk/DirectiveBkMainList.vue' import DirectiveSyncLogMainList from './directivesynclog/DirectiveSyncLogMainList.vue' import DirectiveOpeLogMainList from './directiveopelog/DirectiveOpeLogMainList.vue' import { getMediaUrlByOrgCode } from '@/api/common/api' -const { createMessage, createConfirm } = useMessage() +// const { createMessage, createConfirm } = useMessage() const canAddDirectiveRef = ref() const formRef = ref(); const configServiceDirectiveListModal = ref(); @@ -153,18 +151,6 @@ function searchReset() { } -//刷新已有指令库 -function refreshDMExistedIds(dmOrgInfo, izReset = false, izQuery = true) { - idListByDS({ dataSourceCode: dmOrgInfo.orgCode }).then(res => { - existDirectiveIds.value = res.records - if (izReset) { - canAddDirectiveRef.value?.searchReset() - } else { - canAddDirectiveRef.value?.reload() - } - }) -} - /** * 查看指令快照 */ @@ -179,19 +165,6 @@ function handleDirectiveBackupsClose() { directiveBackupsOpen.value = false } -watch(directiveMainOrgInfo, (newValue, oldValue) => { - if (newValue) { - refreshDMExistedIds(newValue) - } -}, { deep: true }) - -//获取指令库机构信息 -function getDirectiveMainOrgInfo() { - getDirectiveMain().then(res => { - directiveMainOrgInfo.value = res - }) -} - //查看镜像日志 function handleSyncLogOpen() { syncLogOpen.value = true @@ -215,7 +188,6 @@ function handleOpeLogClose() { // 自动请求并暴露内部方法 onMounted(() => { reload(); - getDirectiveMainOrgInfo() orgListComRef.value?.reload(); getMediaUrlByOrgCode({ orgCode: '' }).then(res => { mediaApiAddress.value = res.mediaUrl