diff --git a/jshERP-web/src/api/api.js b/jshERP-web/src/api/api.js index baa879f3..6cb0a72f 100644 --- a/jshERP-web/src/api/api.js +++ b/jshERP-web/src/api/api.js @@ -143,6 +143,7 @@ const checkSystemConfig = (params)=>getAction("/systemConfig/checkIsNameExist",p const addUserBusiness = (params)=>postAction("/userBusiness/add",params); const editUserBusiness = (params)=>putAction("/userBusiness/update",params); const checkUserBusiness = (params)=>getAction("/userBusiness/checkIsValueExist",params); +const updateBtnStrByRoleId = (params)=>postAction("/userBusiness/updateBtnStr",params); //计量单位 const addUnit = (params)=>postAction("/unit/add",params); const editUnit = (params)=>putAction("/unit/update",params); @@ -256,6 +257,7 @@ export { addUserBusiness, editUserBusiness, checkUserBusiness, + updateBtnStrByRoleId, addUnit, editUnit, checkUnit, diff --git a/jshERP-web/src/utils/util.js b/jshERP-web/src/utils/util.js index 97e3aa80..ddcd9e57 100644 --- a/jshERP-web/src/utils/util.js +++ b/jshERP-web/src/utils/util.js @@ -530,4 +530,18 @@ export function getNowFormatDateTime() { + " " + strHours + seperator2 + strMinutes + seperator2 + strSeconds; return currentdate; +} + +/** + * JS中根据指定值删除数组中的元素 + * @param arrylist + * @param val + */ +export function removeByVal(arrylist, val) { + for(var i = 0; i < arrylist .length; i++) { + if(arrylist [i] == val) { + arrylist .splice(i, 1); + break; + } + } } \ No newline at end of file diff --git a/jshERP-web/src/views/system/RoleList.vue b/jshERP-web/src/views/system/RoleList.vue index dce4ddab..2d14e1f8 100644 --- a/jshERP-web/src/views/system/RoleList.vue +++ b/jshERP-web/src/views/system/RoleList.vue @@ -47,7 +47,7 @@ 分配功能 - 分配按钮 + 分配按钮 编辑 @@ -60,8 +60,11 @@ - + + +

分配功能已经操作成功!现在继续分配按钮吗?

+