diff --git a/src/api/system/errorCode/index.ts b/src/api/system/errorCode/index.ts
index 77ea435..582bc91 100644
--- a/src/api/system/errorCode/index.ts
+++ b/src/api/system/errorCode/index.ts
@@ -42,6 +42,7 @@ export const updateErrorCodeApi = (data: ErrorCodeVO) => {
export const deleteErrorCodeApi = (id: number) => {
return defHttp.delete({ url: '/system/error-code/delete?id=' + id })
}
+
// 导出错误码
export const excelErrorCodeApi = (params: ErrorCodePageReqVO) => {
return defHttp.download({ url: '/system/error-code/export-excel', params })
diff --git a/src/views/system/errorCode/ErrorCodeModel.vue b/src/views/system/errorCode/ErrorCodeModel.vue
new file mode 100644
index 0000000..ab50c50
--- /dev/null
+++ b/src/views/system/errorCode/ErrorCodeModel.vue
@@ -0,0 +1,58 @@
+
+
+
+
+
+
diff --git a/src/views/system/errorCode/errorCode.data.ts b/src/views/system/errorCode/errorCode.data.ts
new file mode 100644
index 0000000..41d515e
--- /dev/null
+++ b/src/views/system/errorCode/errorCode.data.ts
@@ -0,0 +1,114 @@
+import { BasicColumn, FormSchema, useRender } from '@/components/Table'
+import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
+
+export const columns: BasicColumn[] = [
+ {
+ title: '编号',
+ dataIndex: 'id',
+ width: 100
+ },
+ {
+ title: '类型',
+ dataIndex: 'type',
+ width: 80,
+ customRender: ({ text }) => {
+ return useRender.renderDict(text, DICT_TYPE.SYSTEM_ERROR_CODE_TYPE)
+ }
+ },
+ {
+ title: '应用名',
+ dataIndex: 'applicationName',
+ width: 200
+ },
+ {
+ title: '错误码编码',
+ dataIndex: 'code',
+ width: 120
+ },
+ {
+ title: '错误码提示',
+ dataIndex: 'message',
+ width: 300
+ },
+ {
+ title: '备注',
+ dataIndex: 'memo',
+ width: 200
+ },
+ {
+ title: '创建时间',
+ dataIndex: 'createTime',
+ width: 180,
+ customRender: ({ text }) => {
+ return useRender.renderDate(text)
+ }
+ }
+]
+
+export const searchFormSchema: FormSchema[] = [
+ {
+ label: '错误码类型',
+ field: 'type',
+ component: 'Select',
+ componentProps: {
+ options: getIntDictOptions(DICT_TYPE.SYSTEM_ERROR_CODE_TYPE)
+ },
+ colProps: { span: 8 }
+ },
+ {
+ label: '应用名',
+ field: 'applicationName',
+ component: 'Input',
+ colProps: { span: 8 }
+ },
+ {
+ label: '错误码编码',
+ field: 'code',
+ component: 'Input',
+ colProps: { span: 8 }
+ },
+ {
+ label: '错误码提示',
+ field: 'message',
+ component: 'Input',
+ colProps: { span: 8 }
+ },
+ {
+ label: '创建时间',
+ field: 'createTime',
+ component: 'RangePicker',
+ colProps: { span: 8 }
+ }
+]
+
+export const formSchema: FormSchema[] = [
+ {
+ label: '编号',
+ field: 'id',
+ show: false,
+ component: 'Input'
+ },
+ {
+ label: '应用名',
+ field: 'applicationName',
+ required: true,
+ component: 'Input'
+ },
+ {
+ label: '错误码编码',
+ field: 'code',
+ required: true,
+ component: 'Input'
+ },
+ {
+ label: '错误码提示',
+ field: 'message',
+ required: true,
+ component: 'Input'
+ },
+ {
+ label: '备注',
+ field: 'memo',
+ component: 'InputTextArea'
+ }
+]
diff --git a/src/views/system/errorCode/index.vue b/src/views/system/errorCode/index.vue
index 83cefa1..1b34bad 100644
--- a/src/views/system/errorCode/index.vue
+++ b/src/views/system/errorCode/index.vue
@@ -1,3 +1,97 @@
- index
+
+
+
+ 新增
+ 导出
+
+
+
+
+
+
+
+
+
+