去除服务指令多余代码
This commit is contained in:
parent
b7687e034b
commit
7ae15159ab
|
|
@ -84,14 +84,12 @@ import { getOrgInfo } from '/@/views/admin/orgapplyinfo/OrgApplyInfo.api';
|
||||||
import OrgListCom from '/@/views/synchronization/directive/orgCom/OrgListCom.vue'
|
import OrgListCom from '/@/views/synchronization/directive/orgCom/OrgListCom.vue'
|
||||||
//可新增指令
|
//可新增指令
|
||||||
import { useMessage } from '/@/hooks/web/useMessage';
|
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 DirectiveBkMainList from '/@/views/services/directivebk/DirectiveBkMainList.vue'
|
||||||
import DirectiveSyncLogMainList from './directivesynclog/DirectiveSyncLogMainList.vue'
|
import DirectiveSyncLogMainList from './directivesynclog/DirectiveSyncLogMainList.vue'
|
||||||
import DirectiveOpeLogMainList from './directiveopelog/DirectiveOpeLogMainList.vue'
|
import DirectiveOpeLogMainList from './directiveopelog/DirectiveOpeLogMainList.vue'
|
||||||
import { getMediaUrlByOrgCode } from '@/api/common/api'
|
import { getMediaUrlByOrgCode } from '@/api/common/api'
|
||||||
|
|
||||||
const { createMessage, createConfirm } = useMessage()
|
// const { createMessage, createConfirm } = useMessage()
|
||||||
const canAddDirectiveRef = ref()
|
const canAddDirectiveRef = ref()
|
||||||
const formRef = ref();
|
const formRef = ref();
|
||||||
const configServiceDirectiveListModal = 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
|
directiveBackupsOpen.value = false
|
||||||
}
|
}
|
||||||
|
|
||||||
watch(directiveMainOrgInfo, (newValue, oldValue) => {
|
|
||||||
if (newValue) {
|
|
||||||
refreshDMExistedIds(newValue)
|
|
||||||
}
|
|
||||||
}, { deep: true })
|
|
||||||
|
|
||||||
//获取指令库机构信息
|
|
||||||
function getDirectiveMainOrgInfo() {
|
|
||||||
getDirectiveMain().then(res => {
|
|
||||||
directiveMainOrgInfo.value = res
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
//查看镜像日志
|
//查看镜像日志
|
||||||
function handleSyncLogOpen() {
|
function handleSyncLogOpen() {
|
||||||
syncLogOpen.value = true
|
syncLogOpen.value = true
|
||||||
|
|
@ -215,7 +188,6 @@ function handleOpeLogClose() {
|
||||||
// 自动请求并暴露内部方法
|
// 自动请求并暴露内部方法
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
reload();
|
reload();
|
||||||
getDirectiveMainOrgInfo()
|
|
||||||
orgListComRef.value?.reload();
|
orgListComRef.value?.reload();
|
||||||
getMediaUrlByOrgCode({ orgCode: '' }).then(res => {
|
getMediaUrlByOrgCode({ orgCode: '' }).then(res => {
|
||||||
mediaApiAddress.value = res.mediaUrl
|
mediaApiAddress.value = res.mediaUrl
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue