From a8bae4612840ad90726f6df442064057117f342a Mon Sep 17 00:00:00 2001 From: "1378012178@qq.com" <1378012178@qq.com> Date: Fri, 25 Jul 2025 15:10:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=8C=87=E4=BB=A4=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../directive/orgCom/OrgListCom.vue | 3 ++ .../ConfigServiceDirective.api.ts | 12 ++++++- .../serviceDirective/DirectiveChooseCom.vue | 22 +++++++++--- .../directive/syncStep/SyncStepList.vue | 34 +++++++++++++------ 4 files changed, 55 insertions(+), 16 deletions(-) diff --git a/src/views/synchronization/directive/orgCom/OrgListCom.vue b/src/views/synchronization/directive/orgCom/OrgListCom.vue index 2f8b168..399644b 100644 --- a/src/views/synchronization/directive/orgCom/OrgListCom.vue +++ b/src/views/synchronization/directive/orgCom/OrgListCom.vue @@ -69,6 +69,7 @@ const props = defineProps({ title: { type: String, default: '' }, allowMultipleSelection: { type: Boolean, default: false }, // 多选控制 layout: { type: String, default: 'full' }, // 控制布局: 'full' 或 'half' + excludeOrgCode: { type: String, default: '' }//排除的机构(不展示) }) const emit = defineEmits(['handleOrgDetail', 'handleOrgChoose']) @@ -112,6 +113,7 @@ function reload() { queryParam.pageSize = -1 } getOrgInfo(queryParam).then(res => { + res.records = res.records.filter(o => o.orgCode != props.excludeOrgCode) orgTableList.value = res }) } @@ -123,6 +125,7 @@ function searchReset() { queryParam.pageSize = -1 } getOrgInfo(queryParam).then(res => { + res.records = res.records.filter(o => o.orgCode != props.excludeOrgCode) orgTableList.value = res }) } diff --git a/src/views/synchronization/directive/serviceDirective/ConfigServiceDirective.api.ts b/src/views/synchronization/directive/serviceDirective/ConfigServiceDirective.api.ts index ac42c9a..be0673f 100644 --- a/src/views/synchronization/directive/serviceDirective/ConfigServiceDirective.api.ts +++ b/src/views/synchronization/directive/serviceDirective/ConfigServiceDirective.api.ts @@ -7,6 +7,7 @@ enum Api { list = '/services/serviceDirective/list', listByDS = '/services/serviceDirective/listByDS', queryById = '/services/serviceDirective/queryById', + syncDirective = '/services/serviceDirective/syncDirective', } /** @@ -20,4 +21,13 @@ export const queryById = (params) => defHttp.get({ url: Api.queryById, params }) * 列表接口 - 变更数据源 * @param params */ -export const listByDS = (params) => defHttp.get({ url: Api.listByDS, params }); \ No newline at end of file +export const listByDS = (params) => defHttp.get({ url: Api.listByDS, params }); + +/** + * 同步 + * @param params + * @returns + */ +export const syncDirective = (params) => { + return defHttp.get({ url: Api.syncDirective, params }); +}; \ No newline at end of file diff --git a/src/views/synchronization/directive/serviceDirective/DirectiveChooseCom.vue b/src/views/synchronization/directive/serviceDirective/DirectiveChooseCom.vue index 6a1ed7e..98ba345 100644 --- a/src/views/synchronization/directive/serviceDirective/DirectiveChooseCom.vue +++ b/src/views/synchronization/directive/serviceDirective/DirectiveChooseCom.vue @@ -8,7 +8,8 @@ - @@ -17,7 +18,8 @@ - @@ -26,7 +28,8 @@ - @@ -63,9 +66,9 @@ - 重置 --> + style="margin-left: 8px">重置 @@ -133,6 +136,7 @@ const leftList = ref([]); // 左侧列表的数据 const rightList = ref([]); // 右侧列表的数据 const sourceOrgInfo = ref({})//源数据机构信息 const sourceType = ref('all') +const showJSCom = ref(false) const selectedRecordIds = ref([]); // 存储已选择记录的 ID const formRef = ref(); const queryParam = reactive({}); @@ -285,9 +289,17 @@ watch( } ); +function controlShowJSCom() { + showJSCom.value = false + setTimeout(() => { + showJSCom.value = true + }, 1000) +} + defineExpose({ init, rightList, + controlShowJSCom, }); diff --git a/src/views/synchronization/directive/syncStep/SyncStepList.vue b/src/views/synchronization/directive/syncStep/SyncStepList.vue index e8d9fae..80d5fef 100644 --- a/src/views/synchronization/directive/syncStep/SyncStepList.vue +++ b/src/views/synchronization/directive/syncStep/SyncStepList.vue @@ -1,10 +1,10 @@