From 2dbf9e175955f81fc4c481eee2c55fad7e3c580f Mon Sep 17 00:00:00 2001 From: "1378012178@qq.com" <1378012178@qq.com> Date: Wed, 27 Aug 2025 17:28:52 +0800 Subject: [PATCH] =?UTF-8?q?=E9=95=BF=E8=80=85=E6=A0=87=E7=AD=BE=E5=B7=AE?= =?UTF-8?q?=E5=BC=82=E6=AF=94=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/elder/eldertag/ElderTagList.vue | 6 +- .../components/CompareElderTagList.vue | 132 +++++++----------- .../eldertag/components/ElderTag.data.ts | 63 +++++++++ 3 files changed, 116 insertions(+), 85 deletions(-) diff --git a/src/views/elder/eldertag/ElderTagList.vue b/src/views/elder/eldertag/ElderTagList.vue index 97b5dd7..452d633 100644 --- a/src/views/elder/eldertag/ElderTagList.vue +++ b/src/views/elder/eldertag/ElderTagList.vue @@ -47,8 +47,8 @@ 引用 --> 标准标签库 - + 差异比对 差异标签 @@ -96,7 +96,7 @@ + :footer-style="{ textAlign: 'right' }" :bodyStyle="{ padding: '0px' }"> diff --git a/src/views/elder/eldertag/components/CompareElderTagList.vue b/src/views/elder/eldertag/components/CompareElderTagList.vue index ef1631d..c1e62cd 100644 --- a/src/views/elder/eldertag/components/CompareElderTagList.vue +++ b/src/views/elder/eldertag/components/CompareElderTagList.vue @@ -5,84 +5,48 @@ :disabled="loading">目标机构 -
- -
- -
-
-
-
-
源机构
-
目标机构
-
- -
-
标签类型
-
标签名称
-
标签说明
- -
名称
-
是否存在
- -
名称
-
是否存在
-
-
- - -
未选择目标机构
- -
-
加载中…
-
暂无数据
-
-
-
{{ item.instructionName || '-' }} -
-
{{ item.categoryName || '-' }} -
-
{{ item.typeName || '-' }}
-
{{ item.directiveName || '-' }}
-
{{ item.cycleTypeName || '-' }} -
- - -
{{ ownOrgName || '-' }}
-
-
- - -
-
- - -
{{ targetOrgInfo.comName || - '-' }}
-
-
- - -
-
+ + + +
import { ref } from 'vue'; import { compareList } from '../ElderTag.api'; +import { headChildColumns } from './ElderTag.data'; import OrgListCom from '/@/views/orgcom/OrgListCom.vue'; const props = defineProps({ @@ -107,6 +72,8 @@ const props = defineProps({ }); const targetOrgInfo = ref('')//目标机构信息 + + type Row = { id?: string; instructionName?: string; @@ -206,16 +173,16 @@ async function initData() { } .thead-top { - grid-template-columns: 1fr 2fr 3fr 2fr 1fr 2fr 1fr; + grid-template-columns: 1fr 1fr 1fr 2fr 1fr 2fr 1fr 2fr 1fr; padding: 12px 14px 0px 14px; font-weight: 600; color: #374151; } .thead-sub { - grid-template-columns: 1fr 2fr 3fr 2fr 1fr 2fr 1fr; + grid-template-columns: 1fr 1fr 1fr 2fr 1fr 2fr 1fr 2fr 1fr; padding: 0px 14px 8px 14px; - border-bottom: 1px solid #e6eef8; + // border-bottom: 1px solid #e6eef8; color: #374151; font-size: 13px; font-weight: 600; @@ -232,7 +199,7 @@ async function initData() { } .tr { - grid-template-columns: 1fr 2fr 3fr 2fr 1fr 2fr 1fr; + grid-template-columns: 1fr 1fr 1fr 2fr 1fr 2fr 1fr 2fr 1fr; padding: 12px 14px; background: #fff; border-bottom: 1px solid #eef6fb; @@ -266,13 +233,14 @@ async function initData() { } .org-badge { - width: 36px; + // width: 36px; height: 36px; border-radius: 6px; display: flex; align-items: center; justify-content: center; background: #fbfdff; + text-align: center; } .icon { diff --git a/src/views/elder/eldertag/components/ElderTag.data.ts b/src/views/elder/eldertag/components/ElderTag.data.ts index 07c47c4..15270cc 100644 --- a/src/views/elder/eldertag/components/ElderTag.data.ts +++ b/src/views/elder/eldertag/components/ElderTag.data.ts @@ -37,6 +37,69 @@ export const columns: BasicColumn[] = [ }, ]; +//列表数据 +export const headChildColumns: BasicColumn[] = [ + { + title: '基础信息', + children: [ + { + title: '标签类型', + align: 'center', + dataIndex: 'type', + }, + { + title: '标签名称', + align: 'center', + dataIndex: 'tagName', + }, + { + title: '说明', + align: 'center', + dataIndex: 'describ', + }, + { + title: '价格(元)', + align: 'center', + dataIndex: 'price', + }, + ], + }, + { + title: '源机构', + children: [ + { + title: '名称', + align: 'center', + dataIndex: 'ownOrgName', + width: 200, + }, + { + title: '是否存在', + align: 'center', + dataIndex: 'ownExist', + width: 100, + }, + ], + }, + { + title: '目标机构', + children: [ + { + title: '名称', + align: 'center', + dataIndex: 'own2OrgName', + width: 200, + }, + { + title: '是否存在', + align: 'center', + dataIndex: 'targetExist', + width: 100, + }, + ], + }, +]; + // 高级查询数据 export const superQuerySchema = { type: { title: '标签类型', order: 0, view: 'text', type: 'string' },