Pārlūkot izejas kodu

开始设置

gzb
guozhongbo pirms 9 mēnešiem
vecāks
revīzija
e2be5dc0d9

+ 16
- 0
src/api/admin.js Parādīt failu

@@ -32,3 +32,19 @@ export const admin_delete = (data) => setRequest("admin/delete", data);
32 32
  * 1.5管理员--详情
33 33
  */
34 34
 export const admin_detail = (data) => setRequest("admin/detail", data);
35
+/**
36
+ * 1.2.1个人中心--最近事件
37
+ */
38
+export const admin_list_re = (data) => setRequest("admin/list_re", data);
39
+/**
40
+ * 1.2.2个人中心--历史登录
41
+ */
42
+export const admin_list_lr = (data) => setRequest("admin/list_lr", data);
43
+/**
44
+ * 1.2.3个人中心--修改密码
45
+ */
46
+export const admin_edit_pwd = (data) => setRequest("admin/edit_pwd", data);
47
+/**
48
+ * 1.2.4个人中心--修改手机号
49
+ */
50
+export const admin_edit_phone = (data) => setRequest("admin/edit_phone", data);

+ 1
- 1
src/views/regionSection/applicationManage/applicationManage.vue Parādīt failu

@@ -556,7 +556,7 @@
556 556
               :src="$api.showImageUrl + viewInfo.appIcon"
557 557
             />
558 558
           </div>
559
-          <div class="appIcon" @click="download(viewInfo.appIcon)">
559
+          <div class="appIcon" @click="download(viewInfo.apkPath)">
560 560
             <Icon type="md-download" />下载
561 561
           </div>
562 562
         </div>

+ 2
- 2
src/views/regionSection/networkManage/whitelist.vue Parādīt failu

@@ -319,7 +319,7 @@ export default {
319 319
         },
320 320
         {
321 321
           title: "所属区域",
322
-          key: "name",
322
+          key: "regionName",
323 323
           align: "center"
324 324
         },
325 325
         {
@@ -405,7 +405,7 @@ export default {
405 405
       });
406 406
     },
407 407
     getHandleData(node) {
408
-      node.title = node.name;
408
+      node.title = node.regionName;
409 409
       node.expand = true;
410 410
       if (node.children && node.children.length > 0) {
411 411
         for (let child of node.children) {

+ 1
- 1
src/views/regionSection/networkManage/whitelistLibrary.vue Parādīt failu

@@ -3,7 +3,7 @@
3 3
     <div class="search_header">
4 4
       <div class="search_left">
5 5
         <Input
6
-          v-model="searchForm.aname"
6
+          v-model="searchForm.name"
7 7
           placeholder="请输入名称"
8 8
           search
9 9
           @on-search="searchList()"

+ 32
- 5
src/views/regionSection/personal.vue Parādīt failu

@@ -19,6 +19,8 @@
19 19
 </template>
20 20
 
21 21
 <script>
22
+import { admin_detail } from "@/api/admin";
23
+
22 24
 export default {
23 25
   data() {
24 26
     return {
@@ -36,10 +38,32 @@ export default {
36 38
           title: "历史登录"
37 39
         }
38 40
       ],
39
-      curmodel: 1
41
+      curmodel: 1,
42
+      userInfo: {}
40 43
     };
41 44
   },
42
-  methods: {}
45
+  created() {
46
+    this.userInfo = JSON.parse(
47
+      localStorage.getItem("xh_control_userInfo")
48
+    ).content;
49
+    this.getPersonal();
50
+  },
51
+  computed: {
52
+    powerParams() {
53
+      return this.$store.getters.powerParams;
54
+    }
55
+  },
56
+  methods: {
57
+    getPersonal() {
58
+      admin_detail({ adminid: this.userInfo.user }).then((res) => {
59
+        if (res.code === 0) {
60
+          console.log(res.obj);
61
+        } else {
62
+          this.$Message.error(res.msg);
63
+        }
64
+      });
65
+    }
66
+  }
43 67
 };
44 68
 </script>
45 69
 
@@ -71,14 +95,17 @@ export default {
71 95
   .contents {
72 96
     width: calc(100% - 220px);
73 97
     height: 100%;
74
-    .uaer{
98
+    .user {
75 99
       height: 200px;
76
-      border-radius: 6px;
100
+      border-radius: 15px;
77 101
       background: white;
78 102
       margin-bottom: 20px;
79 103
     }
80
-    .comm{
104
+    .comm {
81 105
       height: calc(100% - 220px);
106
+      border-radius: 15px;
107
+      background: white;
108
+      margin-bottom: 20px;
82 109
     }
83 110
   }
84 111
   .content {

+ 3
- 6
src/views/regionSection/setting/powerUp.vue Parādīt failu

@@ -21,8 +21,9 @@
21 21
         <FormItem label="约定标识" style="width: 100%">
22 22
           <RadioGroup v-model="adminInfo.singleType">
23 23
             <Radio :label="1">账号</Radio>
24
-            <Radio :label="2">手机号码</Radio>
25
-            <Radio :label="3">身份证号码</Radio>
24
+            <Radio :label="2">学号</Radio>
25
+            <Radio :label="3">手机号码</Radio>
26
+            <Radio :label="4">身份证号码</Radio>
26 27
           </RadioGroup>
27 28
         </FormItem>
28 29
       </Form>
@@ -94,10 +95,6 @@ export default {
94 95
       location.reload();
95 96
     },
96 97
     saveInfo() {
97
-      if (!this.adminInfo.password) {
98
-        this.$Message.error("请输入管理密码!");
99
-        return;
100
-      }
101 98
       let form = {
102 99
         rtype: this.powerParams.rtype,
103 100
         objectid: this.powerParams.objectid,

+ 1
- 1
src/views/regionSection/setting/wallpaper.vue Parādīt failu

@@ -212,7 +212,7 @@ export default {
212 212
         wname: [
213 213
           {
214 214
             required: true,
215
-            message: "请输入区域名称",
215
+            message: "请输入壁纸名称",
216 216
             trigger: "blur"
217 217
           }
218 218
         ]

Notiek ielāde…
Atcelt
Saglabāt