From f03902bb74a6c89ac5969c42b6551687b30e5c49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Thu, 28 Jul 2022 23:55:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8A=9F=E8=83=BD=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jshERP-web/src/api/api.js | 2 + jshERP-web/src/views/system/FunctionList.vue | 13 ++-- .../views/system/modules/FunctionModal.vue | 75 +++++++++++++++---- 3 files changed, 69 insertions(+), 21 deletions(-) diff --git a/jshERP-web/src/api/api.js b/jshERP-web/src/api/api.js index fd077785..7a2c3285 100644 --- a/jshERP-web/src/api/api.js +++ b/jshERP-web/src/api/api.js @@ -72,6 +72,7 @@ const getAllMaterialAttribute = (params)=>getAction("/materialAttribute/getAll", const addFunction = (params)=>postAction("/function/add",params); const editFunction = (params)=>putAction("/function/update",params); const checkFunction = (params)=>getAction("/function/checkIsNameExist",params); +const checkNumber = (params)=>getAction("/function/checkIsNumberExist",params); //系统配置 const addSystemConfig = (params)=>postAction("/systemConfig/add",params); const editSystemConfig = (params)=>putAction("/systemConfig/update",params); @@ -163,6 +164,7 @@ export { addFunction, editFunction, checkFunction, + checkNumber, addSystemConfig, editSystemConfig, checkSystemConfig, diff --git a/jshERP-web/src/views/system/FunctionList.vue b/jshERP-web/src/views/system/FunctionList.vue index 1c82393a..197285c7 100644 --- a/jshERP-web/src/views/system/FunctionList.vue +++ b/jshERP-web/src/views/system/FunctionList.vue @@ -104,20 +104,21 @@ } }, {title: '编号 ', dataIndex: 'number', width: 80}, - {title: '名称', dataIndex: 'name', width: 100}, + {title: '名称', dataIndex: 'name', width: 120, ellipsis:true}, {title: '上级编号', dataIndex: 'parentNumber', width: 80}, - {title: '链接', dataIndex: 'url', width: 250}, - {title: '组件', dataIndex: 'component', width: 250}, - {title: '排序', dataIndex: 'sort', width: 80}, + {title: '上级名称', dataIndex: 'parentName', width: 120, ellipsis:true}, + {title: '链接', dataIndex: 'url', width: 250, ellipsis:true}, + {title: '组件', dataIndex: 'component', width: 250, ellipsis:true}, + {title: '排序', dataIndex: 'sort', width: 60}, { title: '是否启用', dataIndex: 'enabled', width: 80, align: "center", scopedSlots: { customRender: 'customRenderFlag' } }, - {title: '图标', dataIndex: 'icon', width: 110}, + {title: '图标', dataIndex: 'icon', width: 120}, { title: '操作', dataIndex: 'action', - width: 200, + width: 150, align:"center", scopedSlots: { customRender: 'action' }, } diff --git a/jshERP-web/src/views/system/modules/FunctionModal.vue b/jshERP-web/src/views/system/modules/FunctionModal.vue index 5a9e52f1..9cebdf0b 100644 --- a/jshERP-web/src/views/system/modules/FunctionModal.vue +++ b/jshERP-web/src/views/system/modules/FunctionModal.vue @@ -23,22 +23,22 @@ - + - + - + - + - + @@ -49,7 +49,7 @@