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 @@