From c67b40accaaae246281c5e7d73b72291307f8506 Mon Sep 17 00:00:00 2001 From: "1378012178@qq.com" <1378012178@qq.com> Date: Thu, 24 Jul 2025 14:21:05 +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=EF=BC=88=E4=B8=B4=E6=97=B6=E6=8F=90=E4=BA=A4=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../directive/orgCom/OrgListCom.vue | 16 ++-- .../ConfigServiceDirective.data.ts | 7 +- .../serviceDirective/DirectiveChooseCom.vue | 90 ++++++++++++++----- .../directive/syncStep/SyncStepList.vue | 46 +++++++--- 4 files changed, 115 insertions(+), 44 deletions(-) diff --git a/src/views/synchronization/directive/orgCom/OrgListCom.vue b/src/views/synchronization/directive/orgCom/OrgListCom.vue index 9068bf7..fcf121b 100644 --- a/src/views/synchronization/directive/orgCom/OrgListCom.vue +++ b/src/views/synchronization/directive/orgCom/OrgListCom.vue @@ -3,7 +3,7 @@ - @@ -13,8 +13,8 @@
{{ item.departName }} - 已选择 + 已选择
@@ -82,16 +82,16 @@ function handleCardClick(item: any) { if (props.showChoose) { // 判断是否可以选择 if (props.allowMultipleSelection) { // 多选模式:点击时添加或移除该卡片 - if (selectedOrgCodes.value.includes(item.orgCode)) { - selectedOrgCodes.value = selectedOrgCodes.value.filter(code => code !== item.orgCode) + if (selectedOrgCodes.value.some(selected => selected.orgCode === item.orgCode)) { + selectedOrgCodes.value = selectedOrgCodes.value.filter(selected => selected.orgCode !== item.orgCode) } else { - selectedOrgCodes.value.push(item.orgCode) + selectedOrgCodes.value.push(item) // 将整个机构信息添加到选中项 } } else { // 单选模式:直接选中该卡片 - selectedOrgCodes.value = [item.orgCode] + selectedOrgCodes.value = [item] // 只保留当前选中的机构 } - emit('handleOrgChoose', selectedOrgCodes.value) + emit('handleOrgChoose', selectedOrgCodes.value) // 传递完整的选中机构信息 } } diff --git a/src/views/synchronization/directive/serviceDirective/ConfigServiceDirective.data.ts b/src/views/synchronization/directive/serviceDirective/ConfigServiceDirective.data.ts index ce862f7..f3b2cc1 100644 --- a/src/views/synchronization/directive/serviceDirective/ConfigServiceDirective.data.ts +++ b/src/views/synchronization/directive/serviceDirective/ConfigServiceDirective.data.ts @@ -16,6 +16,7 @@ export const columns: BasicColumn[] = [ title: '服务类别', align: 'center', dataIndex: 'categoryId_dictText', + width: 100, customCell: (record, index, column) => { if (record.categoryRowSpan != null) { return { rowSpan: record.categoryRowSpan }; @@ -26,6 +27,7 @@ export const columns: BasicColumn[] = [ title: '服务类型', align: 'center', dataIndex: 'typeId_dictText', + width: 100, customCell: (record, index, column) => { if (record.typeRowSpan != null) { return { rowSpan: record.typeRowSpan }; @@ -98,18 +100,19 @@ export const columns: BasicColumn[] = [ title: '周期类型', align: 'center', dataIndex: 'cycleType_dictText', + width: 100, }, { title: '服务时长(分钟)', align: 'center', dataIndex: 'serviceDuration', - width: 135, + width: 80, }, { title: '是否启用', align: 'center', dataIndex: 'izEnabled_dictText', - width: 100, + width: 80, }, ]; diff --git a/src/views/synchronization/directive/serviceDirective/DirectiveChooseCom.vue b/src/views/synchronization/directive/serviceDirective/DirectiveChooseCom.vue index bf47361..6a1ed7e 100644 --- a/src/views/synchronization/directive/serviceDirective/DirectiveChooseCom.vue +++ b/src/views/synchronization/directive/serviceDirective/DirectiveChooseCom.vue @@ -8,24 +8,27 @@ - + + + :dictCode="`nu_config_service_category,category_name,id,del_flag = 0 and instruction_id = '${queryParam.instructionTagId || ''}' order by sort asc`" + placeholder="请选择服务类别" allowClear :ignoreDisabled="true" @select="reload()" /> + + :dictCode="`nu_config_service_type,type_name,id,del_flag = 0 and category_id = '${queryParam.categoryId || ''}' order by sort asc`" + placeholder="请选择服务类型" allowClear :ignoreDisabled="true" @select="reload()" /> @@ -54,22 +57,21 @@ + :ignoreDisabled="true" placeholder="请选择是否启用" allowClear @select="reload()" /> - 查询 +
- 一键全选 @@ -79,7 +81,11 @@ - 源数据 + 源数据 - {{ sourceOrgInfo.departName }} + + 全部 + 未选择 + @@ -102,7 +108,8 @@ 已选择 {{ rightList.length }} 条 - + @@ -111,7 +118,7 @@ diff --git a/src/views/synchronization/directive/syncStep/SyncStepList.vue b/src/views/synchronization/directive/syncStep/SyncStepList.vue index 16a7db1..58241fe 100644 --- a/src/views/synchronization/directive/syncStep/SyncStepList.vue +++ b/src/views/synchronization/directive/syncStep/SyncStepList.vue @@ -34,38 +34,54 @@
- 操作指引: + 操作指引:1、如何选择:将需要同步的“服务指令”,通过“选择”或“一键全选”按钮添加至右侧“已选择”列表中,如需移除请点击“移除”或“全部移除”按钮。2、搜索区域可对左侧列表进行筛选。3、左侧列表上方“全部/未选择”可快速切换源数据列表,便于更清晰的查看需要处理的“服务指令”。
-
+
- 1、操作指引:①选择:点击需要同步的业务机构卡片,选中目标平台。②编辑:点击页面右下角的“下一步”,进入指令编辑页面,编辑同步内容。2、详情按钮:可查看对应平台现有服务指令。 + 1、操作指引:1、如果选择:在右侧卡片中通过“点击卡片”选择需要同步“指令”的目标平台(可多选)。2、左侧列表为“待同步”服务指令。3、点击右下方“确认”按钮开始自动同步,同步只会将对应平台“未有”指令进行新增,不会改变其原有指令字段。
- + + + + 已选择 {{ leftList?.length }} 条 + + + + + 目标平台 - 已选择 3 个 + + +