diff --git a/hx-ai-intelligent/src/api/dict.ts b/hx-ai-intelligent/src/api/dict.ts new file mode 100644 index 0000000..3e5f685 --- /dev/null +++ b/hx-ai-intelligent/src/api/dict.ts @@ -0,0 +1,6 @@ +export enum dict { + dictionaryUnitManagement = '/carbon-smart/client/dict/dictionaryUnitManagement', + updateDictionary = '/carbon-smart/client/dict/updateDictionary', + createDictionary = '/carbon-smart/client/dict/createDictionary', + delDictionary = '/carbon-smart/client/dict/delDictionary', +} diff --git a/hx-ai-intelligent/src/icon/zidian.svg b/hx-ai-intelligent/src/icon/zidian.svg new file mode 100644 index 0000000..8bdc9c9 --- /dev/null +++ b/hx-ai-intelligent/src/icon/zidian.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/hx-ai-intelligent/src/router/dict.ts b/hx-ai-intelligent/src/router/dict.ts new file mode 100644 index 0000000..c34035b --- /dev/null +++ b/hx-ai-intelligent/src/router/dict.ts @@ -0,0 +1,15 @@ +const dict = { + path: '/dict', + name: 'dict', + meta: { title: '字典', icon: 'zidian', index: 7, hideChildren: true }, + redirect: { name: 'dictIndex' }, + children: [ + { + path: 'index', + name: 'dictIndex', + meta: { title: '字典', hideChildren: true, icon: 'zidian' }, + component: () => import('/@/view/dict/index.vue'), + }, + ], +}; +export default dict; diff --git a/hx-ai-intelligent/src/view/dict/config.ts b/hx-ai-intelligent/src/view/dict/config.ts new file mode 100644 index 0000000..898176f --- /dev/null +++ b/hx-ai-intelligent/src/view/dict/config.ts @@ -0,0 +1,51 @@ +export const tableColumns = [ + // { + // title: '序号', + // customRender: (text: any) => { + // return text.index + 1; + // }, + // }, + { + title: 'id', + dataIndex: 'id', + }, + { + title: '字典组名', + dataIndex: 'grp', + }, + { + title: '字典组名描述', + dataIndex: 'grpDesc', + }, + { + title: '字典Key', + dataIndex: 'dicKey', + }, + { + title: '字典中文Value', + dataIndex: 'cnValue', + }, + { + title: '字典英文Value', + dataIndex: 'enValue', + }, + { + title: '字典描述', + dataIndex: 'description', + }, + { + title: '父级ID', + dataIndex: 'parentId', + }, + { + title: '排序数字', + dataIndex: 'seq', + }, + { + title: '是否展示', + dataIndex: 'showed', + }, + { + title: '操作', + }, +]; diff --git a/hx-ai-intelligent/src/view/dict/index.vue b/hx-ai-intelligent/src/view/dict/index.vue new file mode 100644 index 0000000..57d69dc --- /dev/null +++ b/hx-ai-intelligent/src/view/dict/index.vue @@ -0,0 +1,316 @@ + + + + +