From dd291f05ad319b056a79f3e3dd2d579473d51e0c Mon Sep 17 00:00:00 2001
From: "1378012178@qq.com" <1378012178@qq.com>
Date: Wed, 30 Jul 2025 17:02:29 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E6=8C=87=E4=BB=A4=E5=90=8C?=
=?UTF-8?q?=E6=AD=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../serviceDirective/DirectiveChooseCom.vue | 5 +++--
src/views/synchronization/directive/syncList.vue | 9 +++++++--
.../directive/syncStep/SyncStepList.vue | 16 ++++++++++++++--
.../directive/syncStep/SyncStepListModal.vue | 15 ++++++++++++++-
4 files changed, 38 insertions(+), 7 deletions(-)
diff --git a/src/views/synchronization/directive/serviceDirective/DirectiveChooseCom.vue b/src/views/synchronization/directive/serviceDirective/DirectiveChooseCom.vue
index 4cdc7c9..7d7900d 100644
--- a/src/views/synchronization/directive/serviceDirective/DirectiveChooseCom.vue
+++ b/src/views/synchronization/directive/serviceDirective/DirectiveChooseCom.vue
@@ -128,8 +128,8 @@
全部移除
-
- 同步
+
diff --git a/src/views/synchronization/directive/syncList.vue b/src/views/synchronization/directive/syncList.vue
index 0f4bcaa..af60d2f 100644
--- a/src/views/synchronization/directive/syncList.vue
+++ b/src/views/synchronization/directive/syncList.vue
@@ -21,14 +21,14 @@
style="margin-right: 10px;">镜像
查看可新增指令
+ @click="handleLookNewDirectives">查看可新增指令
-
+
@@ -48,7 +48,9 @@ import SyncStepListModal from '/@/views/synchronization/directive/syncStep/SyncS
import { getOrgInfo } from '/@/views/admin/orgapplyinfo/OrgApplyInfo.api';
//机构列表
import OrgListCom from '/@/views/synchronization/directive/orgCom/OrgListCom.vue'
+import { useMessage } from '/@/hooks/web/useMessage';
+const { createMessage } = useMessage();
const formRef = ref();
const configServiceDirectiveListModal = ref();
const syncStepListModal = ref();
@@ -107,6 +109,9 @@ function searchReset() {
orgListComRef.value?.searchReset()
}
+function handleLookNewDirectives(){
+ createMessage.warning('功能开发中')
+}
// 自动请求并暴露内部方法
onMounted(() => {
reload();
diff --git a/src/views/synchronization/directive/syncStep/SyncStepList.vue b/src/views/synchronization/directive/syncStep/SyncStepList.vue
index e6c5eab..bb8e4db 100644
--- a/src/views/synchronization/directive/syncStep/SyncStepList.vue
+++ b/src/views/synchronization/directive/syncStep/SyncStepList.vue
@@ -81,7 +81,7 @@
-
@@ -91,7 +91,7 @@
-
+
取消
确认
@@ -117,6 +117,7 @@ const directiveChooseRef = ref()
const selectedTargetOrgs = ref([])//已选择目标平台
const targetChooseType = ref('one')
const selectedOrgsContainer = ref();
+const emit = defineEmits(['changeSyncText']);
// 显示机构列表弹窗
function showSourceOrgListModal() {
@@ -177,6 +178,7 @@ function handleSourceOrgChoose(orgInfo_) {
//是否已选择目标平台 否则为初始化原平台
if (selectedTargetOrgs.value.length) {
if (targetChooseType.value == 'one') {
+ directiveChooseRef?.value?.init({ orgInfo: orgInfo.value[0] })
directiveChooseRef.value?.initTargetList(selectedTargetOrgs.value[0])
}
} else {
@@ -240,6 +242,7 @@ function targetChooseTypeChanged(val_) {
}
});
}
+ emit('changeSyncText',val_.target.value)
}
//源平台机构变更确认
@@ -253,6 +256,15 @@ function handleGetTarget() {
targetOrgListComRef.value?.commitOrgsInfo()
handleCancelTarget()
}
+
+function syncFunc(){
+ directiveChooseRef.value?.syncFunc()
+}
+
+defineExpose({
+ syncFunc
+});
+