Преглед изворни кода

应用管理添加更换字段

gzb
guozhongbo пре 9 месеци
родитељ
комит
4f5522b3df

+ 39
- 0
src/api/region.js Прегледај датотеку

@@ -13,6 +13,11 @@ export const region_list_qy = (data) => setRequest("region/list_qy", data);
13 13
  */
14 14
 export const region_list_sel_pt = (data) =>
15 15
   setRequest("region/list_sel_pt", data);
16
+/**
17
+ * 2.1.1.2区域--区域选择列表
18
+ */
19
+export const region_list_sel_qy = (data) =>
20
+    setRequest("region/list_sel_qy", data);
16 21
 /**
17 22
  * 2.1.1.2区域--区域学校选择列表
18 23
  */
@@ -38,3 +43,37 @@ export const region_detail = (data) => setRequest("region/detail", data);
38 43
  */
39 44
 export const region_list_admin = (data) =>
40 45
   setRequest("region/list_admin", data);
46
+
47
+/**
48
+ * 2.2.1搜索--搜索所有用户
49
+ */
50
+export const search_list_user = (data) => setRequest("search/list_user", data);
51
+/**
52
+ * 2.2.2搜索--搜索设备用户
53
+ */
54
+export const search_list_duser = (data) =>
55
+  setRequest("search/list_duser", data);
56
+/**
57
+ * 2.2.3搜索--搜索设备
58
+ */
59
+export const search_list_device = (data) =>
60
+  setRequest("search/list_device", data);
61
+/**
62
+ * 2.2.4搜索--搜索所有应用
63
+ */
64
+export const search_list_app = (data) => setRequest("search/list_app", data);
65
+/**
66
+ * 2.2.5搜索--搜索所有白名单
67
+ */
68
+export const search_list_white = (data) =>
69
+  setRequest("search/list_white", data);
70
+/**
71
+ * 2.2.6搜索--搜索设备型号
72
+ */
73
+export const search_list_dmodel = (data) =>
74
+  setRequest("search/list_dmodel", data);
75
+/**
76
+ * 2.2.7搜索--搜索客户端版本
77
+ */
78
+export const search_list_client = (data) =>
79
+  setRequest("search/list_client", data);

+ 5
- 5
src/views/regionSection/applicationManage/applicationManage.vue Прегледај датотеку

@@ -144,7 +144,7 @@
144 144
           </Select>
145 145
         </FormItem>
146 146
         <FormItem label="状态" style="width: 300px">
147
-          <RadioGroup v-model="wallpaperInfo.appState">
147
+          <RadioGroup v-model="wallpaperInfo.enable">
148 148
             <Radio :label="1">启用</Radio>
149 149
             <Radio :label="2">禁用</Radio>
150 150
           </RadioGroup>
@@ -525,7 +525,7 @@ export default {
525 525
         appid: null,
526 526
         appName: "",
527 527
         appgroupid: "",
528
-        appState: 1,
528
+        enable: 1,
529 529
         appType: 1,
530 530
         forced: 1,
531 531
         whited: 1,
@@ -980,7 +980,7 @@ export default {
980 980
         appid: null,
981 981
         appName: "",
982 982
         appgroupid: "",
983
-        appState: 1,
983
+        enable: 1,
984 984
         appType: 1,
985 985
         forced: 1,
986 986
         whited: 1,
@@ -1052,7 +1052,7 @@ export default {
1052 1052
           let appImg = this.wallpaperInfo.appImg.join(";");
1053 1053
           let form = {
1054 1054
             appName: this.wallpaperInfo.appName,
1055
-            appState: this.wallpaperInfo.appState,
1055
+            enable: this.wallpaperInfo.enable,
1056 1056
             appType: this.wallpaperInfo.appType,
1057 1057
             forced: this.wallpaperInfo.forced,
1058 1058
             whited: this.wallpaperInfo.whited,
@@ -1138,7 +1138,7 @@ export default {
1138 1138
             appid: res.obj.appid,
1139 1139
             appName: res.obj.appName,
1140 1140
             appgroupid: res.obj.appgroupid,
1141
-            appState: res.obj.enable,
1141
+            enable: res.obj.enable,
1142 1142
             appType: res.obj.appType,
1143 1143
             forced: res.obj.forced,
1144 1144
             whited: res.obj.whited,

+ 3
- 3
src/views/regionSection/regionManage/schoolManage.vue Прегледај датотеку

@@ -314,7 +314,7 @@
314 314
 </template>
315 315
 
316 316
 <script>
317
-import { region_list_sel_pt } from "@/api/region";
317
+import { region_list_sel_pt, region_list_sel_qy } from "@/api/region";
318 318
 import { login_msg_code } from "@/api/login";
319 319
 import { generateRandomString } from "@/utils";
320 320
 import {
@@ -559,7 +559,7 @@ export default {
559 559
     },
560 560
     // 获取搜索区域列表
561 561
     getSearchRegionList() {
562
-      region_list_sel_pt({}).then((data) => {
562
+      region_list_sel_qy({ regionid: this.userInfo.regionid }).then((data) => {
563 563
         if (data.code === 0) {
564 564
           this.searchForm.dropList = data.obj;
565 565
         } else {
@@ -588,7 +588,7 @@ export default {
588 588
       school_list({
589 589
         page: this.searchForm.page,
590 590
         size: this.searchForm.size,
591
-        areaCode: obj && obj.areaCode?obj.areaCode:this.searchForm.areaCode,
591
+        areaCode: obj && obj.areaCode ? obj.areaCode : this.searchForm.areaCode,
592 592
         schoolName: this.searchForm.schoolName,
593 593
         regionid: this.searchForm.regionid
594 594
       }).then((data) => {

+ 18
- 14
src/views/regionSection/search/allUsers.vue Прегледај датотеку

@@ -2,12 +2,12 @@
2 2
   <div class="main_root">
3 3
     <div class="search_header">
4 4
       <Input
5
-        v-model="searchForm.regionName"
5
+        v-model="searchForm.name"
6 6
         placeholder="请输入学生姓名、账号"
7 7
         style="width: 200px"
8 8
       />
9 9
       <Input
10
-        v-model="searchForm.regionName"
10
+        v-model="searchForm.title"
11 11
         placeholder="请输入学校名称"
12 12
         style="width: 150px; margin: 0 10px"
13 13
       />
@@ -16,7 +16,9 @@
16 16
       </Button>
17 17
     </div>
18 18
     <div class="table_wrap">
19
-      <Table :columns="columns" :data="searchForm.list"> </Table>
19
+      <Table :columns="columns" :data="searchForm.list">
20
+
21
+      </Table>
20 22
     </div>
21 23
     <div class="page_wrap">
22 24
       <Page
@@ -35,12 +37,13 @@
35 37
 </template>
36 38
 
37 39
 <script>
38
-import { region_list_qy } from "@/api/region";
40
+import {region_list_qy, search_list_user} from "@/api/region";
39 41
 export default {
40 42
   data() {
41 43
     return {
42 44
       searchForm: {
43
-        regionName: "",
45
+        title: "",
46
+        name: "",
44 47
         page: 1,
45 48
         size: 10,
46 49
         list: [],
@@ -62,36 +65,36 @@ export default {
62 65
         },
63 66
         {
64 67
           title: "登录名",
65
-          key: "regionName",
68
+          key: "loginname",
66 69
           align: "center"
67 70
         },
68 71
         {
69 72
           title: "学生姓名",
70
-          key: "createname",
73
+          key: "username",
71 74
           width: 140,
72 75
           align: "center"
73 76
         },
74 77
         {
75 78
           title: "状态",
76
-          key: "createtime",
79
+          slot: "enabled",
77 80
           width: 190,
78 81
           align: "center"
79 82
         },
80 83
         {
81 84
           title: "学校名称",
82
-          key: "updatename",
85
+          key: "schoolName",
83 86
           width: 140,
84 87
           align: "center"
85 88
         },
86 89
         {
87 90
           title: "创建时间",
88
-          key: "updatetime",
91
+          key: "createtime",
89 92
           width: 190,
90 93
           align: "center"
91 94
         },
92 95
         {
93 96
           title: "最后登录时间",
94
-          slot: "actionSlot",
97
+          key: "createtime",
95 98
           width: 220,
96 99
           align: "center"
97 100
         }
@@ -120,14 +123,15 @@ export default {
120 123
     },
121 124
     // 获取列表
122 125
     getList() {
123
-      return;
124
-      region_list_qy({
126
+      search_list_user({
125 127
         page: this.searchForm.page,
126 128
         size: this.searchForm.size,
127
-        regionName: this.searchForm.regionName
129
+        name: this.searchForm.name,
130
+        title: this.searchForm.title,
128 131
       }).then((data) => {
129 132
         if (data.code === 0) {
130 133
           this.searchForm.list = data.obj.data;
134
+          console.log(this.searchForm.list)
131 135
           this.searchForm.total = data.obj.total;
132 136
         } else {
133 137
           this.$Message.error(data.msg);

+ 1
- 1
src/views/regionSection/setting/wallpaper.vue Прегледај датотеку

@@ -119,7 +119,7 @@
119 119
       <div class="view_content">
120 120
         <div class="view_title">壁纸效果</div>
121 121
         <div class="hpath">
122
-          <img :src="$api.showImageUrl + viewInfo.hpath" />
122
+          <img v-if="viewInfo.hpat" :src="$api.showImageUrl + viewInfo.hpath" />
123 123
         </div>
124 124
       </div>
125 125
       <div class="view_content" style="margin-top: 20px">

Loading…
Откажи
Сачувај