戴艳蓉 3 years ago
parent
commit
9069aff6f1
3 changed files with 9 additions and 8 deletions
  1. 2 2
      src/App.vue
  2. 3 2
      src/views/interest/account/addEdit.vue
  3. 4 4
      src/views/login/index.vue

+ 2 - 2
src/App.vue

@@ -16,8 +16,8 @@ export default {
     };
   },
   async created() {
-    const res = await asyncRequest.goodsList({});
-    console.log(res);
+    // const res = await asyncRequest.goodsList({});
+    // console.log(res);
     // if (res && res.code === 0 && res.data) {
     //   this.tableData = res.data.list;
     //   this.pageInfo.total = Number(res.data.count);

+ 3 - 2
src/views/interest/account/addEdit.vue

@@ -333,7 +333,7 @@ export default {
         if (this.$refs.ruleForm) {
           this.$refs.ruleForm.resetFields();
           this.$refs.ruleForm.clearValidate();
-          const { username, nickname, mobile, email, roleid, status, itemid } =
+          const { username, nickname, mobile, email, roleid, status, depart_code } =
             sitem;
           this.ruleForm = {
             username: username || "", // 账号
@@ -342,8 +342,9 @@ export default {
             email: email || "",
             role_id: roleid || "",
             status: status || "",
-            itemid: itemid || [],
+            itemid: depart_code || [],
           };
+          console.log(depart_code);
           if (this.id === "add" || this.isDetail) {
             this.rules.username[0].required = false;
           }

+ 4 - 4
src/views/login/index.vue

@@ -150,10 +150,10 @@ export default {
       ver: "",
       show: false,
       loginForm: {
-        // username: "17744520491",
-        // password: "dingding123",
-        username: "15501067031",
-        password: "wugg123",
+        username: "17744520491",
+        password: "dingding123",
+        // username: "15501067031",
+        // password: "wugg123",
         // username: "",
         // password: "",
       },