Commit 216523fe by 张恒

refactor(jcsj/cjfa): 重构采集方案模块的数据结构和界面配置

- 调整 MesCollectionSchemePageModel 接口,将 code 字段位置调整到 name 之前,移除 note 字段
- 在 MesCollectionSchemeItemModel 接口中新增 stemId 字段
- 更新搜索表单中编码字段的标签文本,从"编码组件"改为"编码"
- 重新排列表格列配置,将编码列移到名称列之前,并移除备注列
- 更新工作流权限配置中的字段名称,将"编码组件"改为"编码"
- 修改子表单配置,将采集id字段的
parent 8a3e167f
......@@ -19,13 +19,11 @@ export interface MesCollectionSchemePageParams extends BasicPageParams {
export interface MesCollectionSchemePageModel {
id: string;
code: string;
name: string;
contentType: string;
note: string;
code: string;
}
/**
......@@ -63,6 +61,8 @@ export interface MesCollectionSchemeModel {
export interface MesCollectionSchemeItemModel {
id: string;
stemId: string;
schemeId: string;
code: string;
......
......@@ -4,7 +4,7 @@ import { BasicColumn } from '/@/components/Table';
export const searchFormSchema: FormSchema[] = [
{
field: 'code',
label: '编码组件',
label: '编码',
defaultValue: undefined,
component: 'Input',
},
......@@ -40,22 +40,9 @@ export const searchFormSchema: FormSchema[] = [
export const columns: BasicColumn[] = [
{
resizable: true,
dataIndex: 'name',
title: '名称',
componentType: 'input',
fixed: false,
sorter: true,
styleConfig: undefined,
listStyle: '',
},
{
resizable: true,
dataIndex: 'contentType',
title: '采集内容',
componentType: 'select',
dataIndex: 'code',
title: '编码',
componentType: 'auto-code',
fixed: false,
sorter: true,
......@@ -66,22 +53,22 @@ export const columns: BasicColumn[] = [
{
resizable: true,
dataIndex: 'note',
title: '备注',
componentType: 'textarea',
dataIndex: 'name',
title: '名称',
componentType: 'input',
fixed: false,
sorter: true,
styleConfig: undefined,
listStyle: undefined,
listStyle: '',
},
{
resizable: true,
dataIndex: 'code',
title: '编码组件',
componentType: 'auto-code',
dataIndex: 'contentType',
title: '采集内容',
componentType: 'select',
fixed: false,
sorter: true,
......@@ -175,7 +162,7 @@ export const formProps: FormProps = {
{
key: 'a111bc49789444e690cf3a43f4fb81cb',
field: 'code',
label: '编码组件',
label: '编码',
type: 'auto-code',
component: 'AutoCodeRule',
colProps: { span: 24 },
......@@ -476,7 +463,7 @@ export const formProps: FormProps = {
{
key: '8ad391c032064da98fb6abd39e5276ee',
title: '采集id',
dataIndex: 'schemeId',
dataIndex: 'stemId',
componentType: 'Input',
defaultValue: '',
componentProps: {
......@@ -501,6 +488,7 @@ export const formProps: FormProps = {
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
prestrainField: 'id',
},
},
{ title: '操作', key: 'action', fixed: 'right', width: '50px' },
......@@ -535,6 +523,7 @@ export const formProps: FormProps = {
{ name: 'code', tableTitle: '编码' },
{ name: 'name', tableTitle: '名称' },
{ name: 'note', tableTitle: '备注' },
{ name: 'id', tableTitle: 'ID' },
],
},
itemId: '',
......
......@@ -6,7 +6,7 @@ export const permissionList = [
disabled: true,
isSaveTable: false,
tableName: '',
fieldName: '编码组件',
fieldName: '编码',
fieldId: 'code',
isSubTable: false,
showChildren: true,
......@@ -134,7 +134,7 @@ export const permissionList = [
showChildren: false,
tableName: 'mesCollectionSchemeItemList',
fieldName: '采集id',
fieldId: 'schemeId',
fieldId: 'stemId',
type: 'Input',
key: '8ad391c032064da98fb6abd39e5276ee',
children: [],
......
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