新需求添加1.数据源新增测试 2.主数据新添规则:主数据配置,新增数据源是主表的情况下默认添加这一条数据,不允许修改 3.档案对照页面重新开发。

This commit is contained in:
hyt 2024-05-31 15:23:40 +08:00
parent 4c5690016f
commit 038206f4b2
4 changed files with 118 additions and 116 deletions

View File

@ -1,123 +1,125 @@
const addForm = [ const addForm = [
{ {
elCol: [ elCol: [
{ {
type: "input", type: 'input',
title: "主数据名称", title: '主数据名称',
id: "mdmName", id: 'mdmName',
row: 24, row: 24,
disabled: false, disabled: false,
required: true, required: true,
fontSize: 16 fontSize: 16
}, }
], ]
}, },
{ {
elCol: [ elCol: [
{ {
type: "select", type: 'select',
title: "主数据类型", title: '主数据类型',
id: "mdmType", id: 'mdmType',
row: 24, row: 24,
disabled: false, disabled: false,
required: true, required: true,
options: [], options: [],
fontSize: 16, fontSize: 16
}, }
], ]
}, },
// { // {
// elCol: [ // elCol: [
// { // {
// type: "input", // type: "input",
// title: "服务名", // title: "服务名",
// id: "mdmCode", // id: "mdmCode",
// row: 24, // row: 24,
// disabled: true, // disabled: true,
// required: false, // required: false,
// fontSize: 16, // fontSize: 16,
// placeholder: "编辑时自动带出" // placeholder: "编辑时自动带出"
// }, // },
// ], // ],
// }, // },
{ {
elCol: [ elCol: [
{ {
type: "textrea", type: 'textrea',
title: "备注", title: '备注',
id: "remark", id: 'remark',
row: 24, row: 24,
disabled: false, disabled: false,
fontSize: 16 fontSize: 16
}, }
], ]
}, }
] ]
const tableColumn = [ const tableColumn = [
{ {
id: "mdmName", id: 'mdmName',
title: "主数据名称", title: '主数据名称',
}, align: 'left',
{ width:130,
id: "mdmTypeName", },
title: "主数据类型", {
}, id: 'mdmTypeName',
{ title: '主数据类型'
id: "remark", },
title: "备注", {
tooltip: true, id: 'remark',
}, title: '备注',
{ tooltip: true
id: "createUserId", },
title: "创建人", {
tooltip: true, id: 'createUserId',
}, title: '创建人',
{ tooltip: true
id: "createTime", },
title: "创建日期", {
tooltip: true, id: 'createTime',
}, title: '创建日期',
{ tooltip: true
id: "modifyUserId", },
title: "修改人", {
}, id: 'modifyUserId',
{ title: '修改人'
id: "modifyTime", },
title: "修改时间", {
}, id: 'modifyTime',
title: '修改时间'
}
] ]
const settingMenu = [ const settingMenu = [
{ {
title: "基本信息", title: '基本信息',
icon: "masterDataMenu01", icon: 'masterDataMenu01',
path: "masterDataEdit" path: 'masterDataEdit'
}, },
{ {
title: "数据源", title: '数据源',
icon: "masterDataMenu02", icon: 'masterDataMenu02',
path: "dataOrigin" path: 'dataOrigin'
}, },
{ {
title: "显示信息", title: '显示信息',
icon: "masterDataMenu03", icon: 'masterDataMenu03',
path: "displayInfo" path: 'displayInfo'
}, },
// { // {
// title: "配置权限", // title: "配置权限",
// icon: "masterDataMenu04", // icon: "masterDataMenu04",
// path: "authorily" // path: "authorily"
// }, // },
{ {
title: "分发权限", title: '分发权限',
icon: "masterDataMenu05", icon: 'masterDataMenu05',
path: 'distribute' path: 'distribute'
}, }
] ]
const configData = { const configData = {
addForm, addForm,
tableColumn, tableColumn,
settingMenu settingMenu
} }
export default configData export default configData

View File

@ -26,7 +26,7 @@
:funWidth="funWidth" :showIndex="true" :tabLoading="mainTabLoading" @onFunc="tableButtonHandle" :funWidth="funWidth" :showIndex="true" :tabLoading="mainTabLoading" @onFunc="tableButtonHandle"
:tableHeight="'70vh'" :border="false"> :tableHeight="'70vh'" :border="false">
<template v-slot:mdmName="{ row }"> <template v-slot:mdmName="{ row }">
<div class="nameCard" style="margin: 0 auto"> <div class="nameCard">
<div class="image" v-loading="row.imgLoading"> <div class="image" v-loading="row.imgLoading">
<template v-if="row.imgUrl"> <template v-if="row.imgUrl">
<img :src="row.imgUrl" alt=""/> <img :src="row.imgUrl" alt=""/>
@ -307,7 +307,7 @@ export default {
.nameCard { .nameCard {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: flex-start;
width: 100%; width: 100%;
.image { .image {
width: 29px; width: 29px;

View File

@ -206,7 +206,7 @@ export default {
let res = await authApi( let res = await authApi(
"pluginService", "pluginService",
"plugins", "plugins",
"queryPluginsByType", "queryPlugins",
"", "",
{ {
"pluginType": "1" "pluginType": "1"

View File

@ -157,7 +157,7 @@ export default {
let res = await authApi( let res = await authApi(
"pluginService", "pluginService",
"plugins", "plugins",
"queryPluginsByType", "queryPlugins",
"", "",
{ {
"pluginType": "1" "pluginType": "1"