diff --git a/kicc-ui/src/views/system/dict/DictDataModal.vue b/kicc-ui/src/views/system/dict/DictDataModal.vue
index 8569c856..8783fe9b 100644
--- a/kicc-ui/src/views/system/dict/DictDataModal.vue
+++ b/kicc-ui/src/views/system/dict/DictDataModal.vue
@@ -1,55 +1,78 @@
-
diff --git a/kicc-ui/src/views/system/dict/DictDataTable.vue b/kicc-ui/src/views/system/dict/DictDataTable.vue
index 2a0f8e02..a7b25e94 100644
--- a/kicc-ui/src/views/system/dict/DictDataTable.vue
+++ b/kicc-ui/src/views/system/dict/DictDataTable.vue
@@ -4,118 +4,168 @@
fixedHeight
contentClass="flex"
>
-
+
- 新增字典
+ 新增字典数据
+ 修改字典数据
+ 删除字典数据
-
-
+
diff --git a/kicc-ui/src/views/system/dict/dict.data.ts b/kicc-ui/src/views/system/dict/dict.data.ts
index 8a2d6e3f..ba8a601a 100644
--- a/kicc-ui/src/views/system/dict/dict.data.ts
+++ b/kicc-ui/src/views/system/dict/dict.data.ts
@@ -92,18 +92,21 @@ export const formSchema: FormSchema[] = [
field: 'name',
label: '字典名称',
component: 'Input',
+ required: true,
colProps:{ span: 12 }
},
{
field: 'type',
label: '字典类型',
component: 'Input',
+ required: true,
colProps:{ span: 12 }
},
{
field: 'isSys',
label: '系统内置',
component: 'Select',
+ required: true,
defaultValue: '0',
componentProps: {
options: [
@@ -117,6 +120,7 @@ export const formSchema: FormSchema[] = [
field: 'status',
label: '状态',
component: 'Select',
+ required: true,
defaultValue: '0',
componentProps: {
options: [
diff --git a/kicc-ui/src/views/system/dict/dictdata.data.ts b/kicc-ui/src/views/system/dict/dictdata.data.ts
index c51f7d58..8592f14f 100644
--- a/kicc-ui/src/views/system/dict/dictdata.data.ts
+++ b/kicc-ui/src/views/system/dict/dictdata.data.ts
@@ -1,82 +1,107 @@
-import {BasicColumn} from '/@/components/Table';
-import {FormSchema} from '/@/components/Table';
+/**
+ * @program: kicc-ui
+ * @description: 字典数据模块动态渲染配置
+ * @author: entfrm开发团队-王翔
+ * @create: 2022/5/8
+ */
-export const columns: BasicColumn[] = [
- {
- title: '字典ID',
- dataIndex: 'id',
- width: 100,
- },
- {
- title: '字典类型',
- dataIndex: 'dictType',
- width: 100,
- },
- {
- title: '字典标签',
- dataIndex: 'label',
- width: 130,
- },
- {
- title: '字典键值',
- dataIndex: 'value',
- width: 90,
- },
- {
- title: '字典排序',
- dataIndex: 'sort',
- width: 90,
- }
+import { BasicColumn } from '/@/components/Table';
+import { FormSchema } from '/@/components/Table';
+/** 表格列配置 */
+export const columns: BasicColumn[] = [
+ {
+ title: '字典数据类型',
+ dataIndex: 'dictType'
+ },
+ {
+ title: '字典数据标签',
+ dataIndex: 'label'
+ },
+ {
+ title: '字典数据键值',
+ dataIndex: 'value'
+ },
+ {
+ title: '字典数据排序',
+ dataIndex: 'sort'
+ }
];
-
+/** 搜索表单配置 */
export const searchFormSchema: FormSchema[] = [
- {
- field: 'dataType',
- label: '字典参数类型',
- component: 'Input',
- componentProps: {
- placeholder: '请输入字典参数类型',
- },
- colProps: {span: 16},
- }
+ {
+ field: 'dataType',
+ label: '字典类型',
+ component: 'Input',
+ componentProps: {
+ placeholder: '请输入字典类型'
+ },
+ colProps: { span: 12 }
+ },
+ {
+ field: 'dataType',
+ label: '字典数据标签',
+ component: 'Input',
+ componentProps: {
+ placeholder: '请输入字典数据标签'
+ },
+ colProps: { span: 12 }
+ }
];
+/** 表单配置 */
export const formSchema: FormSchema[] = [
- {
- field: 'id',
- label: 'ID',
- component: 'Input',
- show: false,
- },
- {
- field: 'dictType',
- label: '字典类型',
- component: 'Input',
- required: true,
- componentProps: {disabled: true}
+ {
+ field: 'id',
+ label: 'ID',
+ component: 'Input',
+ show: false
+ },
+ {
+ field: 'dictType',
+ label: '字典类型',
+ component: 'Input',
+ required: true,
+ componentProps: { disabled: true },
+ colProps:{ span: 12 }
+ },
+ {
+ field: 'label',
+ label: '字典标签',
+ component: 'Input',
+ required: true,
+ colProps:{ span: 12 }
+ },
+ {
+ field: 'value',
+ label: '字典键值',
+ component: 'Input',
+ required: true,
+ colProps:{ span: 12 }
+ },
+ {
+ field: 'sort',
+ label: '排序',
+ component: 'InputNumber',
+ componentProps: {
+ style: { width:'100%' },
+ min: 0
},
- {
- field: 'label',
- label: '字典标签',
- component: 'Input',
- required: true
- },
- {
- field: 'value',
- label: '字典键值',
- component: 'Input',
- required: true
- },
- {
- field: 'sort',
- label: '排序',
- component: 'InputNumber',
+ required: true,
+ colProps: {
+ span: 12
+ }
+ },
+ {
+ field: 'remark',
+ label: '备注',
+ component: 'InputTextArea',
+ componentProps: {
+ rows: 6
},
- {
- field: 'remark',
- label: '备注',
- component: 'InputTextArea',
+ colProps: {
+ span: 24
}
-];
\ No newline at end of file
+ }
+];