去除服务指令多余代码

This commit is contained in:
1378012178@qq.com 2026-02-25 09:25:24 +08:00
parent b7687e034b
commit 7ae15159ab
1 changed files with 1 additions and 29 deletions

View File

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