From c184017f4f5298dfa6046a7f930cac9200992833 Mon Sep 17 00:00:00 2001
From: "1378012178@qq.com" <1378012178@qq.com>
Date: Thu, 31 Jul 2025 16:24:31 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8C=87=E4=BB=A4=E5=90=8C=E6=AD=A5=E6=97=A5?=
=?UTF-8?q?=E5=BF=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/dataAsync/AsyncMain.data.ts | 44 +++--
.../dataAsync/AsyncMainList0731.vue | 183 ++++++++++++++++++
.../serviceDirective/DirectiveChooseCom.vue | 8 +-
.../synchronization/directive/syncList.vue | 29 ++-
.../depart/components/DepartFormModal.vue | 4 +
src/views/system/depart/depart.data.ts | 11 ++
6 files changed, 262 insertions(+), 17 deletions(-)
create mode 100644 src/components/dataAsync/AsyncMainList0731.vue
diff --git a/src/components/dataAsync/AsyncMain.data.ts b/src/components/dataAsync/AsyncMain.data.ts
index 23acf67..e6c732d 100644
--- a/src/components/dataAsync/AsyncMain.data.ts
+++ b/src/components/dataAsync/AsyncMain.data.ts
@@ -5,30 +5,52 @@ import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//主列表数据
export const asyncMaincolumns: BasicColumn[] = [
- // {
- // title: '类型',
- // align: "center",
- // dataIndex: 'type'
- // },
{
- title: '同步备注信息',
+ title: '同步时间',
align: 'center',
- dataIndex: 'descr',
+ dataIndex: 'createTime',
+ width: '150px'
},
{
title: '同步人',
align: 'center',
dataIndex: 'createBy_dictText',
+ width: '120px'
},
{
- title: '开始同步时间',
+ title: '源平台',
align: 'center',
- dataIndex: 'createTime',
+ dataIndex: 'orgName',
+ width: '150px'
},
{
- title: '同步状态',
+ title: '目标平台',
align: 'center',
- dataIndex: 'asyncStatusList',
+ dataIndex: 'targetOrgName',
+ width: '150px',
+ customRender: ({ record }) => {
+ return record.asyncStatusList?.[0]?.zorgName || '-';
+ }
+ },
+ {
+ title: '业务字段',
+ align: 'center',
+ dataIndex: 'dataStatus',
+ width: '120px',
+ customRender: ({ record }) => {
+ const dataItem = record.asyncStatusList?.find(item => item.code === 'data');
+ return dataItem ? (dataItem.status === '200' ? '成功' : '失败') : '-';
+ }
+ },
+ {
+ title: '指令资源',
+ align: 'center',
+ dataIndex: 'fileStatus',
+ width: '120px',
+ customRender: ({ record }) => {
+ const fileItem = record.asyncStatusList?.find(item => item.code === 'file');
+ return fileItem ? (fileItem.status === '200' ? '成功' : '失败') : '-';
+ }
},
];
//子列表数据
diff --git a/src/components/dataAsync/AsyncMainList0731.vue b/src/components/dataAsync/AsyncMainList0731.vue
new file mode 100644
index 0000000..38e7887
--- /dev/null
+++ b/src/components/dataAsync/AsyncMainList0731.vue
@@ -0,0 +1,183 @@
+
+
目标机构 :{{ targetOrg?.departName }}
新增服务指令: {{ getNewCount() }} 条
更新服务指令: {{ getUpdateCount() }} 条
- 请选择"新增指令"需要同步的内容: +同步服务指令: {{ rightNeedAddList.length }} 条
- 请选择"服务指令"需要同步的内容: +