Commit 8a3e167f by 张恒

refactor(jcsj/cjfa): 重构采集方案编码字段配置

- 将编码字段从普通输入框改为自动生成编码组件
- 更新表单配置中的编码字段类型为AutoCodeRule组件
- 调整表格列配置中编码字段的显示和排序设置
- 修改工作流权限配置中的编码字段为禁用状态
- 移除多余的数据字段配置项
- 重新排列接口模型中字段的顺序
parent b75adc77
......@@ -19,13 +19,13 @@ export interface MesCollectionSchemePageParams extends BasicPageParams {
export interface MesCollectionSchemePageModel {
id: string;
code: string;
name: string;
contentType: string;
note: 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,8 +40,8 @@ export const searchFormSchema: FormSchema[] = [
export const columns: BasicColumn[] = [
{
resizable: true,
dataIndex: 'code',
title: '编码',
dataIndex: 'name',
title: '名称',
componentType: 'input',
fixed: false,
......@@ -53,22 +53,22 @@ export const columns: BasicColumn[] = [
{
resizable: true,
dataIndex: 'name',
title: '名称',
componentType: 'input',
dataIndex: 'contentType',
title: '采集内容',
componentType: 'select',
fixed: false,
sorter: true,
styleConfig: undefined,
listStyle: '',
listStyle: undefined,
},
{
resizable: true,
dataIndex: 'contentType',
title: '采集内容',
componentType: 'select',
dataIndex: 'note',
title: '备注',
componentType: 'textarea',
fixed: false,
sorter: true,
......@@ -79,9 +79,9 @@ export const columns: BasicColumn[] = [
{
resizable: true,
dataIndex: 'note',
title: '备注',
componentType: 'textarea',
dataIndex: 'code',
title: '编码组件',
componentType: 'auto-code',
fixed: false,
sorter: true,
......@@ -173,34 +173,24 @@ export const formProps: FormProps = {
span: 8,
list: [
{
key: 'f36220ef903049439746ecf6ba9e3762',
key: 'a111bc49789444e690cf3a43f4fb81cb',
field: 'code',
label: '编码',
type: 'input',
component: 'Input',
label: '编码组件',
type: 'auto-code',
component: 'AutoCodeRule',
colProps: { span: 24 },
defaultValue: '',
componentProps: {
width: '100%',
span: 7,
defaultValue: '',
placeholder: '自动生成',
prefix: '',
suffix: '',
addonBefore: '',
addonAfter: '',
disabled: true,
allowClear: false,
showLabel: true,
autoCodeRule: 'CJFA',
required: false,
rules: [],
events: {},
listStyle: '',
isSave: false,
isShow: true,
scan: false,
bordered: true,
isShowAi: false,
tooltipConfig: { visible: false, title: '提示文本' },
style: { width: '100%' },
},
......@@ -530,15 +520,8 @@ export const formProps: FormProps = {
name: 'contentType',
value:
'{"bindField":"content_type","fieldKey":"58bb5935bfbc4bf8a6c6d2b9b68c9013"}',
description: null,
required: true,
dataType: 'String',
type: null,
defaultValue: null,
validateType: null,
error: null,
expression: null,
children: null,
bindType: 'data',
},
],
......@@ -607,44 +590,28 @@ export const formProps: FormProps = {
key: 'b2f7b13aa68f433ea4f7a2003d01e3ef',
name: '编码',
bindField: 'code',
width: null,
minWidth: null,
maxWidth: null,
resizable: false,
unit: null,
isEdit: true,
},
{
key: '0f1a47a5a2aa40cfb4c9b1002c9ea4e2',
name: '名称',
bindField: 'name',
width: null,
minWidth: null,
maxWidth: null,
resizable: false,
unit: null,
isEdit: true,
},
{
key: '86f3efc523aa4e559d09e31e8e1501e4',
name: '备注',
bindField: 'note',
width: null,
minWidth: null,
maxWidth: null,
resizable: false,
unit: null,
isEdit: true,
},
{
key: '8ad391c032064da98fb6abd39e5276ee',
name: '采集id',
bindField: 'scheme_id',
width: null,
minWidth: null,
maxWidth: null,
resizable: false,
unit: null,
isEdit: false,
},
],
......
......@@ -3,18 +3,17 @@ export const permissionList = [
required: false,
view: true,
edit: false,
disabled: false,
disabled: true,
isSaveTable: false,
tableName: '',
fieldName: '编码',
fieldName: '编码组件',
fieldId: 'code',
isSubTable: false,
showChildren: true,
type: 'input',
key: 'f36220ef903049439746ecf6ba9e3762',
type: 'auto-code',
key: 'a111bc49789444e690cf3a43f4fb81cb',
children: [],
options: {},
defaultValue: '',
},
{
required: true,
......
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