浏览代码

修改职员

zhaoke 3 年之前
父节点
当前提交
8725c3f6c3

+ 2 - 2
src/views/staffManagement/compontents/staffAdd.vue

@@ -1,7 +1,7 @@
 <!--
  * @Author: your name
  * @Date: 2022-02-10 14:49:20
- * @LastEditTime: 2022-02-16 11:46:02
+ * @LastEditTime: 2022-02-16 14:09:48
  * @LastEditors: Please set LastEditors
  * @Description: 编辑职员
  * @FilePath: \Foshan4A4.0\src\views\staffManagement\compontents\staffEdit.vue
@@ -313,7 +313,7 @@ export default {
     async roleAuths (id) {
       try {
         let params = {
-          RoleIds: [id]
+          RoleId: id
         };
         const res = await RoleAuths(params);
         if (res.code === 0) {

+ 2 - 2
src/views/staffManagement/compontents/staffEdit.vue

@@ -1,7 +1,7 @@
 <!--
  * @Author: your name
  * @Date: 2022-02-10 14:49:20
- * @LastEditTime: 2022-02-16 11:50:56
+ * @LastEditTime: 2022-02-16 14:10:05
  * @LastEditors: Please set LastEditors
  * @Description: 编辑职员
  * @FilePath: \Foshan4A4.0\src\views\staffManagement\compontents\staffEdit.vue
@@ -448,7 +448,7 @@ export default {
     async roleAuths (id) {
       try {
         let params = {
-          RoleIds: [id]
+          RoleId: id
         };
         const res = await RoleAuths(params);
         if (res.code === 0) {