Commit 64d5eec8 authored by liwei's avatar liwei

新增了对比页面以及跳转路由

parent c41d1fb0
......@@ -296,13 +296,13 @@ export const ModelRoute: AppRouteRecordRaw = {
],
};
/**基础标准*/
export const BasicStandardRoute: AppRouteRecordRaw = {
/**数据标准*/
export const DataStandardRoute: AppRouteRecordRaw = {
path: '/dataStandards',
name: 'dataStandards',
component: LAYOUT,
meta: {
title: '基础标准',
title: '数据标准',
icon: '',
hidden: true,
currentActiveMenu: '/dataStandards',
......@@ -326,6 +326,15 @@ export const BasicStandardRoute: AppRouteRecordRaw = {
icon: '',
},
},
{
path: 'basicStandards/basicStandardsContrast',
name: 'basicStandardsContrast',
component: () => import('@/views/dataStandards/basicStandards/basicStandardsContrast.vue'),
meta: {
title: '基础标准对比',
icon: '',
},
},
],
};
......@@ -386,7 +395,7 @@ export const basicRoutes = [
CommonFileRoute,
ModelRoute,
DataSourceRoute,
BasicStandardRoute,
DataStandardRoute,
// RootRoute,
...mainOutRoutes,
REDIRECT_ROUTE,
......
......@@ -288,7 +288,7 @@ export const createBasicTypeFormSchema: FormSchema[] = [
},
];
/**新建基础标准*/
/**新建基础标准 表单*/
export const createBasicStandardsFormSchema: FormSchema[] = [
{
field: 'standardsTree',
......@@ -381,7 +381,7 @@ export const createBasicStandardsFormSchema: FormSchema[] = [
},
];
/**详情表单1*/
/**基础标准详情 表单1*/
export const detailSchema1: FormSchema[] = [
{
field: '',
......@@ -713,7 +713,7 @@ export const detailSchema1: FormSchema[] = [
}
];
/**详情表单2*/
/**基础标准详情 表单2*/
export const detailSchema2: FormSchema[] = [
{
field: '',
......@@ -832,7 +832,7 @@ export const detailSchema2: FormSchema[] = [
}
];
/**详情表单3*/
/**基础标准详情 表单3*/
export const detailSchema3: FormSchema[] = [
{
field: '',
......@@ -1082,7 +1082,7 @@ export const detailSchema3: FormSchema[] = [
}
];
/**编辑基础标准1*/
/**编辑基础标准 表单1*/
export const editStandardsDetailFormSchema1: FormSchema[] = [
{
field: 'businessAttribute',
......@@ -1349,7 +1349,7 @@ export const editStandardsDetailFormSchema1: FormSchema[] = [
},
}
];
/**编辑基础标准w*/
/**编辑基础标准 表单2*/
export const editStandardsDetailFormSchema2: FormSchema[] = [
{
field: 'technicalAttribute',
......@@ -1439,7 +1439,7 @@ export const editStandardsDetailFormSchema2: FormSchema[] = [
},
}
];
/**编辑基础标准e*/
/**编辑基础标准 表单3*/
export const editStandardsDetailFormSchema3: FormSchema[] = [
{
field: 'managementAttribute',
......@@ -1642,3 +1642,654 @@ export const editStandardsDetailFormSchema3: FormSchema[] = [
},
}
];
/**版本对比 表单*/
export const contrastSchema: FormSchema[] = [
{
field: 'standardNumber',
label: '标准编号',
component: 'Input',
colProps: { lg: 24, md: 24 },
rules: [
{
required: true,
message: '请输入标准编号',
},
],
componentProps: {
style: {
border: 'none',
backgroundColor: 'transparent',
},
readonly: true,
placeholder: '请输入标准编号',
},
},
{
field: 'standardChineseName',
label: '标准中文名称',
component: 'Input',
colProps: { lg: 24, md: 24 },
rules: [
{
required: true,
message: '请输入标准中文名称',
},
],
componentProps: {
style: {
border: 'none',
backgroundColor: 'transparent',
},
readonly: true,
placeholder: '请输入标准中文名称',
},
},
{
field: 'standardEnglishName',
label: '标准英文名称',
component: 'Input',
colProps: { lg: 24, md: 24 },
rules: [
{
required: true,
message: '请输入标准英文名称',
},
],
componentProps: {
style: {
border: 'none',
backgroundColor: 'transparent',
},
readonly: true,
placeholder: '请输入标准英文名称',
},
},
{
field: 'standardAlias',
label: '标准别名',
component: 'Input',
colProps: { lg: 24, md: 24 },
rules: [
{
required: true,
message: '请输入标准别名',
},
],
componentProps: {
style: {
border: 'none',
backgroundColor: 'transparent',
},
readonly: true,
placeholder: '请输入标准别名',
},
},
{
field: 'businessDefinition',
label: '业务定义',
component: 'Input',
colProps: { lg: 24, md: 24 },
rules: [
{
required: true,
message: '请输入业务定义',
},
],
componentProps: {
style: {
border: 'none',
backgroundColor: 'transparent',
},
readonly: true,
placeholder: '请输入业务定义',
},
},
{
field: 'standardSource',
label: '标准来源',
component: 'Select',
colProps: { lg: 24, md: 24 },
rules: [
{
required: true,
message: '请选择标准来源',
},
],
componentProps: {
style: {
border: 'none',
backgroundColor: 'transparent',
},
readonly: true,
disabled: true,
options:[
{
label:'国际标准',
value:'1'
},
{
label:'国家标准',
value:'2'
},
{
label:'行业标准',
value:'3'
},
{
label:'行业实践',
value:'4'
},
{
label:'监管规定(人行)',
value:'5'
},
{
label:'监管规定(银监)',
value:'6'
},
{
label:'行内发文',
value:'7'
},
{
label:'行内协商一致',
value:'8'
},
],
placeholder: '请选择标准来源',
},
},
{
field: 'definitionBasis',
label: '定义依据',
component: 'Input',
colProps: { lg: 24, md: 24 },
rules: [
{
required: true,
message: '请输入定义依据',
},
],
componentProps: {
style: {
border: 'none',
backgroundColor: 'transparent',
},
readonly: true,
placeholder: '请输入定义依据',
},
},
{
field: 'businessRule',
label: '业务规则',
component: 'Input',
colProps: { lg: 24, md: 24 },
rules: [
{
required: true,
message: '请输入业务规则',
},
],
componentProps: {
style: {
border: 'none',
backgroundColor: 'transparent',
},
readonly: true,
placeholder: '请输入业务规则',
},
},
{
field: 'dataType',
label: '数据类型',
component: 'Select',
colProps: { lg: 24, md: 24 },
rules: [
{
required: true,
message: '请选择数据类型',
},
],
componentProps: {
style: {
border: 'none',
backgroundColor: 'transparent',
},
readonly: true,
disabled: true,
options:[
{
label:'文本类',
value:'1'
},
{
label:'数值类',
value:'2'
},
{
label:'代码类',
value:'3'
},
{
label:'标志类',
value:'4'
},
{
label:'日期时间类',
value:'5'
},
{
label:'编号类',
value:'6'
},
],
placeholder: '请选择数据类型',
},
},
{
field: 'valueRange',
label: '取值范围',
component: 'Input',
colProps: { lg: 24, md: 24 },
rules: [
{
required: true,
message: '请输入取值范围',
},
],
componentProps: {
style: {
border: 'none',
backgroundColor: 'transparent',
},
readonly: true,
placeholder: '请输入取值范围',
},
},
{
field: 'codeNumber',
label: '代码编号',
component: 'Input',
colProps: { lg: 24, md: 24 },
rules: [
{
required: true,
message: '请输入代码编号',
},
],
componentProps: {
style: {
border: 'none',
backgroundColor: 'transparent',
},
readonly: true,
placeholder: '请输入代码编号',
},
},
{
field: 'adaptability',
label: '适应性',
component: 'Select',
colProps: { lg: 24, md: 24 },
rules: [
{
required: true,
message: '请输入适应性',
},
],
componentProps: {
style: {
border: 'none',
backgroundColor: 'transparent',
},
readonly: true,
disabled: true,
options:[
{
label:'当前适用',
value:'1'
},
{
label:'未来适用',
value:'2'
},
],
placeholder: '请输入适应性',
},
},
{
field: 'dataDisplay',
label: '数据显示',
component: 'Input',
colProps: { lg: 24, md: 24 },
rules: [
{
required: true,
message: '请输入数据显示',
},
],
componentProps: {
style: {
border: 'none',
backgroundColor: 'transparent',
},
readonly: true,
placeholder: '请输入数据显示',
},
},
{
field: 'tecDataType',
label: '数据类型',
component: 'Input',
colProps: { lg: 24, md: 24 },
rules: [
{
required: true,
message: '请输入数据类型',
},
],
componentProps: {
style: {
border: 'none',
backgroundColor: 'transparent',
},
readonly: true,
placeholder: '请输入数据类型',
},
},
{
field: 'dataPrecision',
label: '数据精度',
component: 'Input',
colProps: { lg: 24, md: 24 },
rules: [
{
required: true,
message: '请输入数据精度',
},
],
componentProps: {
style: {
border: 'none',
backgroundColor: 'transparent',
},
readonly: true,
placeholder: '请输入数据精度',
},
},
{
field: 'dataLength',
label: '数据长度',
component: 'Input',
colProps: { lg: 24, md: 24 },
rules: [
{
required: true,
message: '请输入数据长度',
},
],
componentProps: {
style: {
border: 'none',
backgroundColor: 'transparent',
},
readonly: true,
placeholder: '请输入数据长度',
},
},
{
field: 'measurementUnit',
label: '计量单位',
component: 'Input',
colProps: { lg: 24, md: 24 },
rules: [
{
required: true,
message: '请输入计量单位',
},
],
componentProps: {
style: {
border: 'none',
backgroundColor: 'transparent',
},
readonly: true,
placeholder: '请输入计量单位',
},
},
{
field: 'creator',
label: '创建人员',
component: 'Input',
colProps: { lg: 24, md: 24 },
rules: [
{
required: true,
message: '请输入创建人员',
},
],
componentProps: {
style: {
border: 'none',
backgroundColor: 'transparent',
},
readonly: true,
placeholder: '请输入创建人员',
},
},
{
field: 'updater',
label: '更新人员',
component: 'Input',
colProps: { lg: 24, md: 24 },
rules: [
{
required: true,
message: '请输入更新人员',
},
],
componentProps: {
style: {
border: 'none',
backgroundColor: 'transparent',
},
readonly: true,
placeholder: '请输入更新人员',
},
},
{
field: 'createDate',
label: '创建日期',
component: 'Input',
colProps: { lg: 24, md: 24 },
rules: [
{
required: true,
message: '请输入创建日期',
},
],
componentProps: {
style: {
border: 'none',
backgroundColor: 'transparent',
},
readonly: true,
placeholder: '请输入创建日期',
},
},
{
field: 'updateDate',
label: '更新日期',
component: 'Input',
colProps: { lg: 24, md: 24 },
rules: [
{
required: true,
message: '请输入更新日期',
},
],
componentProps: {
style: {
border: 'none',
backgroundColor: 'transparent',
},
readonly: true,
placeholder: '请输入更新日期',
},
},
{
field: 'secondaryAuthorityDepartment',
label: '权威二级部门',
component: 'Input',
colProps: { lg: 24, md: 24 },
rules: [
{
required: true,
message: '请输入权威二级部门',
},
],
componentProps: {
style: {
border: 'none',
backgroundColor: 'transparent',
},
readonly: true,
placeholder: '请输入权威二级部门',
},
},
{
field: 'tertiaryAuthorityDepartment',
label: '权威三级部门',
component: 'Input',
colProps: { lg: 24, md: 24 },
rules: [
{
required: true,
message: '请输入权威三级部门',
},
],
componentProps: {
style: {
border: 'none',
backgroundColor: 'transparent',
},
readonly: true,
placeholder: '请输入权威三级部门',
},
},
{
field: 'coreSystem',
label: '核心系统',
component: 'Input',
colProps: { lg: 24, md: 24 },
rules: [
{
required: true,
message: '请输入核心系统',
},
],
componentProps: {
style: {
border: 'none',
backgroundColor: 'transparent',
},
readonly: true,
placeholder: '请输入核心系统',
},
},
{
field: 'dataStandardStatus',
label: '数据标准状态',
component: 'Select',
colProps: { lg: 24, md: 24 },
rules: [
{
required: true,
message: '请输入数据标准状态',
},
],
componentProps: {
style: {
border: 'none',
backgroundColor: 'transparent',
},
readonly: true,
disabled: true,
options:[
{
label:'有效',
value:'1'
},
{
label:'失效',
value:'2'
},
{
label:'未生效',
value:'3'
}
],
placeholder: '请输入数据标准状态',
},
},
{
field: 'expirationDate',
label: '失效时间',
component: 'Input',
colProps: { lg: 24, md: 24 },
rules: [
{
required: true,
message: '请输入失效时间',
},
],
componentProps: {
style: {
border: 'none',
backgroundColor: 'transparent',
},
readonly: true,
},
},
{
field: 'expirationReason',
label: '失效原因',
component: 'Input',
colProps: { lg: 24, md: 24 },
rules: [
{
required: true,
message: '请输入失效原因',
},
],
componentProps: {
style: {
border: 'none',
backgroundColor: 'transparent',
},
readonly: true,
placeholder: '请输入失效原因',
},
},
{
field: 'collaborativeDepartment',
label: '协作部门',
component: 'Input',
colProps: { lg: 24, md: 24 },
rules: [
{
required: true,
message: '请输入协作部门',
},
],
componentProps: {
style: {
border: 'none',
backgroundColor: 'transparent',
},
readonly: true,
placeholder: '请输入协作部门',
},
}
];
<template>
<PageWrapper title="元数据对比" contentFullHeight contentBackground contentClass="flex">
<PageWrapper title="版本对比" contentFullHeight contentBackground contentClass="flex">
<template #footer>
<div style="display: flex; justify-content: flex-end; padding-bottom: 10px">
<a-button style="margin-right: 5px" type="primary" @click="handleImport">导出</a-button>
<a-button style="margin-right: 5px" type="primary" @click="startContrast">开始对比</a-button>
<a-button style="margin-right: 5px" type="primary" @click="endContrast">结束对比</a-button>
</div>
</template>
<div class="w-1/2 xl:w-1/2 pl-4">
<div style="display: flex;justify-content: space-between; align-items: center;margin-bottom: 10px;margin-left: 12px">
<div style="margin-top: 10px;display: flex;font-weight: bold;font-size: 20px;margin-left: 10px">
<Icon icon="ion:layers-outline" :size="25" :color="'#1091FE'" />
{{title}}
<div style="font-size: 15px;padding-left: 10px;padding-left: 50px">
<div>
版本<Select
v-model:value="optionValue"
show-search
placeholder="请选择版本"
style="width: 200px;margin-left: 10px"
:options="options"
@change="handleChange"
></Select>
</div>
</div>
</div>
</div>
<div>
<BasicForm @register="registerMainForm" />
<Description
size="middle"
title="基本信息"
:bordered="false"
:column="2"
:data="mainData"
:schema="refundSchema"
/>
<Description size="middle" title="列信息" :bordered="false" />
<BasicTable @register="registerMainTable" />
<Description size="middle" title="索引" :bordered="false" />
<BasicTable @register="registerMainIndexTable" />
<BasicForm @register="registerLeftForm" />
</div>
</div>
<div class="w-1/2 xl:w-1/2">
<div style="display: flex;justify-content: space-between; align-items: center;margin-bottom: 10px;margin-left: 12px">
<div style="margin-top: 10px;display: flex;font-weight: bold;font-size: 20px;margin-left: 10px">
<Icon icon="ion:layers-outline" :size="25" :color="'#1091FE'" />
{{title}}
<div style="font-size: 15px;padding-left: 10px;padding-left: 50px">
<div>
版本<Select
v-model:value="optionValue"
show-search
placeholder="请选择版本"
style="width: 200px;margin-left: 10px"
:options="options"
@change="handleChange"
></Select>
</div>
</div>
</div>
</div>
<div>
<BasicForm @register="registerLastForm" />
<Description
size="middle"
title="基本信息"
:bordered="false"
:column="2"
:data="lastData"
:schema="refundSchema"
/>
<Description size="middle" title="列信息" :bordered="false" />
<BasicTable @register="registerLastTable" />
<Description size="middle" title="索引" :bordered="false" />
<BasicTable @register="registerLastIndexTable" />
<BasicForm @register="registerRightForm" />
</div>
</div>
</PageWrapper>
......@@ -44,67 +57,49 @@
<script lang="ts" setup>
import { BasicTable, useTable } from '@/components/Table';
import { PageWrapper } from '@/components/Page';
import { Description } from '@/components/Description';
import {
refundSchema,
columns,
indexColumns,
mainSchema,
lastSchema,
} from '@/views/metadata/metadataComparison/data';
import {
lastData,
lastTableData,
lastTableIndexData,
mainData,
mainTableData,
mainTableIndexData,
} from '@/views/metadata/metadataComparison/metadataComparisomData';
import {contrastSchema} from '@/views/dataStandards/basicStandards/basicStandards.data';
import {leftContrastData,rightContrastData} from '@/views/dataStandards/basicStandards/basicStandardsData';
import { useMessage } from '@/hooks/web/useMessage';
import { BasicForm, useForm } from '@/components/Form';
import {onMounted,ref} from "vue";
import { Select } from 'ant-design-vue';
import Icon from '@/components/Icon/Icon.vue';
defineOptions({ name: 'Metadata' });
const title = ref('对外投资出资方式')
const options = ref<any>([
{ value: 'V1', label: 'V1' },
{ value: 'V2', label: 'V2' },
{ value: 'V3', label: 'V3' },
]);
const { createMessage } = useMessage();
const [registerMainForm] = useForm({
const [registerLeftForm,{setFieldsValue:setLeftFieldsValue}] = useForm({
labelWidth: 100,
schemas: mainSchema,
schemas: contrastSchema,
showActionButtonGroup: false,
});
const [registerLastForm] = useForm({
const [registerRightForm,{setFieldsValue:setRightFieldsValue}] = useForm({
labelWidth: 100,
schemas: lastSchema,
schemas: contrastSchema,
showActionButtonGroup: false,
});
const [registerMainTable] = useTable({
dataSource: mainTableData,
columns,
pagination: false,
showIndexColumn: false,
scroll: { y: 300 },
});
const [registerLastTable] = useTable({
dataSource: lastTableData,
columns,
pagination: false,
showIndexColumn: false,
scroll: { y: 300 },
});
const [registerMainIndexTable] = useTable({
dataSource: mainTableIndexData,
columns: indexColumns,
pagination: false,
showIndexColumn: false,
scroll: { y: 300 },
});
const [registerLastIndexTable] = useTable({
dataSource: lastTableIndexData,
columns: indexColumns,
pagination: false,
showIndexColumn: false,
scroll: { y: 300 },
});
function handleImport() {
createMessage.success('导出完成');
/**开始对比*/
function startContrast() {
createMessage.success('开始对比');
}
/**结束对比*/
function endContrast() {
createMessage.success('结束对比');
}
onMounted(() => {
setLeftFieldsValue({
...leftContrastData[0],
})
setRightFieldsValue({
...rightContrastData[0],
})
});
</script>
......@@ -362,179 +362,6 @@ export const TreeData: any[] = [
}
];
export const DetailTreeData: any[] = [
{
"delFlag" : "0",
"flag" : "1",
"businessId" : 100,
"fileName" : "任务",
"parentId" : 0,
"code:": "001",
"ancestors" : "0",
"orderNum" : 0,
// "children" : [ ],
"selectType" : null,
"fileSize": '1024KB',
"location":"位置1",
"holder":"admin",
"createDate": "2024-10-24 10:04:04",
"updateDate": "2024-10-24 10:04:04",
},
{
"delFlag" : "0",
"flag" : "1",
"businessId" : 101,
"fileName" : "代码文件",
"parentId" : 100,
"code:": "002",
"ancestors" : "0,100",
"orderNum" : 1,
// "children" : [ ],
"selectType" : null,
"fileSize": '1024KB',
"location":"位置1",
"holder":"admin",
"createDate": "2024-10-24 10:04:04",
"updateDate": "2024-10-24 10:04:04",
},
{
"delFlag" : "0",
"flag" : "1",
"businessId" : 102,
"fileName" : "数据处理",
"parentId" : 100,
"code:": "003",
"ancestors" : "0,100",
"orderNum" : 2,
// "children" : [ ],
"selectType" : null,
"fileSize": '1024KB',
"location":"位置1",
"holder":"admin",
"createDate": "2024-10-24 10:04:04",
"updateDate": "2024-10-24 10:04:04",
},
{
"delFlag" : "0",
"flag" : "1",
"businessId" : 103,
"fileName" : "任务流",
"parentId" : 100,
"code:": "003",
"ancestors" : "0,100",
"orderNum" : 2,
// "children" : [ ],
"selectType" : null,
"fileSize": '1024KB',
"location":"位置1",
"holder":"admin",
"createDate": "2024-10-24 10:04:04",
"updateDate": "2024-10-24 10:04:04",
},
{
"delFlag" : "0",
"flag" : "1",
"businessId" : 401,
"fileName" : "脚本",
"parentId" : 101,
"code:": "002",
"ancestors" : "0,100,101",
"orderNum" : 1,
// "children" : [ ],
"selectType" : null,
"fileSize": '1024KB',
"location":"位置1",
"holder":"admin",
"createDate": "2024-10-24 10:04:04",
"updateDate": "2024-10-24 10:04:04",
},
{
"delFlag" : "0",
"flag" : "1",
"businessId" : 402,
"fileName" : "SQL",
"parentId" : 101,
"code:": "002",
"ancestors" : "0,100,101",
"orderNum" : 1,
// "children" : [ ],
"selectType" : null,
"fileSize": '1024KB',
"location":"位置1",
"holder":"admin",
"createDate": "2024-10-24 10:04:04",
"updateDate": "2024-10-24 10:04:04",
},
{
"delFlag" : "0",
"flag" : "1",
"businessId" : 403,
"fileName" : "数据加载",
"parentId" : 102,
"code:": "002",
"ancestors" : "0,100,102",
"orderNum" : 1,
// "children" : [ ],
"selectType" : null,
"fileSize": '1024KB',
"location":"位置1",
"holder":"admin",
"createDate": "2024-10-24 10:04:04",
"updateDate": "2024-10-24 10:04:04",
},
{
"delFlag" : "0",
"flag" : "1",
"businessId" : 404,
"fileName" : "数据同步",
"parentId" : 102,
"code:": "002",
"ancestors" : "0,100,102",
"orderNum" : 1,
// "children" : [ ],
"selectType" : null,
"fileSize": '1024KB',
"location":"位置1",
"holder":"admin",
"createDate": "2024-10-24 10:04:04",
"updateDate": "2024-10-24 10:04:04",
},
{
"delFlag" : "0",
"flag" : "1",
"businessId" : 405,
"fileName" : "数据质量",
"parentId" : 102,
"code:": "002",
"ancestors" : "0,100,102",
"orderNum" : 1,
// "children" : [ ],
"selectType" : null,
"fileSize": '1024KB',
"location":"位置1",
"holder":"admin",
"createDate": "2024-10-24 10:04:04",
"updateDate": "2024-10-24 10:04:04",
},
{
"delFlag" : "0",
"flag" : "1",
"businessId" : 406,
"fileName" : "嵌套任务流",
"parentId" : 103,
"code:": "002",
"ancestors" : "0,100,103",
"orderNum" : 1,
// "children" : [ ],
"selectType" : null,
"fileSize": '1024KB',
"location":"位置1",
"holder":"admin",
"createDate": "2024-10-24 10:04:04",
"updateDate": "2024-10-24 10:04:04",
},
];
export const fileData: any[] = [
{
"delFlag" : "0",
......@@ -624,9 +451,6 @@ export const versionData: any[] = [
},
];
export const accountFormSchema: any[] = [
];
/**首页 新增表单树 数据*/
export const treeDataListTwo = [
......@@ -702,3 +526,100 @@ export const chooseDictoryTreeData = [
icon: 'ion:settings-outline',
},
]
/**对比左侧数据*/
export const leftContrastData: any[] = [
{
"businessId": 201,
"standardChineseName": "对外投资出资方式",
"anotherName": "对外投资出资方式",
"parentId": 102,
"publishStatus": "已发布",
"businessDefinition": "对外投资出资方式",
"standardCode": "BAS000004",
"referenceStandard":[
{ icon: '🌐🔍', text: '数据源1' },
],
"ancestors": "0,100,102",
"location": "/基础标准/个人工作区/对外投资出资方式",
"holderGroup": "个人工作区",
"createDate": "2024-10-22 8:04:04",
"updateDate": "2024-10-22 8:04:04",
"icon": "ant-design:partition-outlined",
"businessAttribute": "财务",
"standardNumber": "BAS-004",
"standardEnglishName": "Investment Contribution Method",
"standardAlias": "Investment Contribution Method",
"standardSource": "国家标准化管理委员会",
"definitionBasis": "相关法律法规",
"businessRule": "对外投资的出资方式必须明确记录。",
"dataType": "1",
"tecDataType": "varchar",
"valueRange": "非空字符串",
"codeNumber": "CODE-201",
"adaptability": "1",
"technicalAttribute": "通用技术属性",
"dataDisplay": "文本显示",
"dataPrecision": "无",
"dataLength": "255",
"measurementUnit": "无",
"managementAttribute": "通用管理属性",
"creator": "王五",
"updater": "赵六",
"secondaryAuthorityDepartment": "技术部",
"tertiaryAuthorityDepartment": "运维组",
"coreSystem": "核心系统B",
"dataStandardStatus": "有效",
"expirationDate": "2025-10-24",
"expirationReason": "无",
"collaborativeDepartment": "人力资源部, 技术部"
},
]
/**对比右侧数据*/
export const rightContrastData = [
{
"businessId": 201,
"standardChineseName": "对外投资出资方式",
"anotherName": "对外投资出资方式",
"parentId": 102,
"publishStatus": "已发布",
"businessDefinition": "对外投资出资方式",
"standardCode": "BAS000004",
"referenceStandard":[
{ icon: '🌐🔍', text: '数据源1' },
],
"ancestors": "0,100,102",
"location": "/基础标准/个人工作区/对外投资出资方式",
"holderGroup": "个人工作区",
"createDate": "2024-10-22 8:04:04",
"updateDate": "2024-10-22 8:04:04",
"icon": "ant-design:partition-outlined",
"businessAttribute": "财务",
"standardNumber": "BAS-004",
"standardEnglishName": "Investment Contribution Method",
"standardAlias": "Investment Contribution Method",
"standardSource": "国家标准化管理委员会",
"definitionBasis": "相关法律法规",
"businessRule": "对外投资的出资方式必须明确记录。",
"dataType": "1",
"tecDataType": "varchar",
"valueRange": "非空字符串",
"codeNumber": "CODE-201",
"adaptability": "1",
"technicalAttribute": "通用技术属性",
"dataDisplay": "文本显示",
"dataPrecision": "无",
"dataLength": "255",
"measurementUnit": "无",
"managementAttribute": "通用管理属性",
"creator": "王五",
"updater": "赵六",
"secondaryAuthorityDepartment": "技术部",
"tertiaryAuthorityDepartment": "运维组",
"coreSystem": "核心系统B",
"dataStandardStatus": "有效",
"expirationDate": "2025-10-24",
"expirationReason": "无",
"collaborativeDepartment": "人力资源部, 技术部"
},
]
......@@ -13,7 +13,7 @@
></Select>
</div>
<div>
<a-button type="primary" @click="editButton">版本对比</a-button>
<a-button type="primary" @click="contrastButton">版本对比</a-button>
<a-button type="primary" style="margin-left: 10px" @click="resetButton">回滚</a-button>
<a-button type="primary" style="margin-left: 10px" @click="exitButton">退出查看</a-button>
</div>
......@@ -115,6 +115,16 @@ function editButton(record) {
});
}
/**基本标准对比*/
function contrastButton(record) {
router.push({
path: '/dataStandards/basicStandards/basicStandardsContrast',
query: {
businessId:businessId.value,
},
});
}
/**版本管理 弹窗*/
function versionButton(record) {
openModal(true, {
......@@ -168,4 +178,5 @@ onMounted(() => {
padding: 16px;
background-color: @component-background;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment