Jelajahi Sumber

功能权限

xiaodai2017 2 tahun lalu
induk
melakukan
c5eee99910
1 mengubah file dengan 6 tambahan dan 11 penghapusan
  1. 6 11
      src/views/interest/action/index.vue

+ 6 - 11
src/views/interest/action/index.vue

@@ -150,28 +150,23 @@ const submitForm = async () => {
     });
   });
 
-  // this.action_data.length === 0 || 和字段
   if (action_list.value.length === 0) {
     ElMessage.error("请选择功能!");
     return;
   }
   const model = {
-    // roleid: this.roleActive.id,
-    // role_name: this.ruleForm.role_name,
-    // level: this.ruleForm.level,
-    // action: this.action,
+    roleid: ruleForm.roleid,
+    role_name: ruleForm.role_name,
+    level: ruleForm.level,
+    action: action_list.value,
     // action_data: this.action_data,
-    // private_data: arr,
+    private_data: private_data_list.value
   };
-
   loading.value = true;
   const { code, data, message } = await httpUpdate(model);
   loading.value = false;
   if (code === 0) {
-    // this.$notify.success({
-    //   title: "保存成功!",
-    //   message: "",
-    // });
+    ElMessage.success(message);
   } else if (code >= 100 && code <= 104) {
     logout();
   } else {