Quellcode durchsuchen

上传应用自动识别名称

gzb
guozhongbo vor 8 Monaten
Ursprung
Commit
5332b7a3f0

+ 7
- 5
src/views/regionSection/applicationManage/applicationManage.vue Datei anzeigen

@@ -183,10 +183,10 @@
183 183
           :label-width="130"
184 184
           inline
185 185
         >
186
-          <FormItem label="名称" prop="appName" style="width: 100%">
186
+          <FormItem label="应用名称" prop="appName" style="width: 100%">
187 187
             <Input
188
-              v-model="wallpaperInfo.appName"
189
-              placeholder="请输入名称"
188
+                v-model="wallpaperInfo.appName"
189
+                placeholder="上传应用自动识别"
190 190
             ></Input>
191 191
           </FormItem>
192 192
           <FormItem label="分组" style="width: 100%" class="require">
@@ -419,6 +419,7 @@
419 419
             <Input
420 420
               v-model="wallpaperInfo.appPackage"
421 421
               placeholder="请输入应用包名"
422
+              disabled
422 423
             ></Input>
423 424
           </FormItem>
424 425
           <FormItem label="应用简介" style="width: 100%">
@@ -689,7 +690,7 @@
689 690
 </template>
690 691
 
691 692
 <script>
692
-import {date_format, getResourceSize, uuid} from "@/utils";
693
+import { date_format, getResourceSize, uuid } from "@/utils";
693 694
 import QRCode from "qrcodejs2";
694 695
 import axios from "axios";
695 696
 import {
@@ -846,7 +847,7 @@ export default {
846 847
         appName: [
847 848
           {
848 849
             required: true,
849
-            message: "请输入名称",
850
+            message: "请输入应用名称",
850 851
             trigger: "blur"
851 852
           }
852 853
         ],
@@ -1259,6 +1260,7 @@ export default {
1259 1260
               that.wallpaperInfo.appSize = res.obj.appSize;
1260 1261
               that.wallpaperInfo.versionName = res.obj.versionName;
1261 1262
               that.wallpaperInfo.versionNum = res.obj.versionNum;
1263
+              that.wallpaperInfo.appName = res.obj.appName;
1262 1264
               that.showLiading = false;
1263 1265
             } else {
1264 1266
               that.$Message.error(`${file.name} ${res.msg}`);

+ 0
- 1
src/views/regionSection/notice/index.vue Datei anzeigen

@@ -197,7 +197,6 @@ export default {
197 197
             noticeType: data.obj.noticeType,
198 198
             regions: data.obj.noticeType === 1 ? [] : data.obj.regions
199 199
           };
200
-          console.log(data.obj.noticeContent);
201 200
         } else {
202 201
           this.$Message.error(data.msg);
203 202
         }

+ 18
- 6
src/views/schoolSection/applicationManage/applicationList.vue Datei anzeigen

@@ -105,8 +105,10 @@
105 105
         <template slot-scope="{ row }" slot="actionSlot">
106 106
           <div class="action_list">
107 107
             <div @click="toView(row)">查看</div>
108
-            <div @click="toEdit(row)">编辑</div>
109
-            <div class="action_del" @click="toDel(row)">删除</div>
108
+            <div v-if="row.belong === 2" @click="toEdit(row)">编辑</div>
109
+            <div v-if="row.belong === 2" class="action_del" @click="toDel(row)">
110
+              删除
111
+            </div>
110 112
           </div>
111 113
         </template>
112 114
       </Table>
@@ -162,10 +164,10 @@
162 164
           :label-width="130"
163 165
           inline
164 166
         >
165
-          <FormItem label="名称" prop="appName" style="width: 100%">
167
+          <FormItem label="应用名称" prop="appName" style="width: 100%">
166 168
             <Input
167 169
               v-model="wallpaperInfo.appName"
168
-              placeholder="请输入名称"
170
+              placeholder="上传应用自动识别"
169 171
             ></Input>
170 172
           </FormItem>
171 173
           <FormItem label="分组" style="width: 100%" class="require">
@@ -398,6 +400,7 @@
398 400
             <Input
399 401
               v-model="wallpaperInfo.appPackage"
400 402
               placeholder="请输入应用包名"
403
+              disabled
401 404
             ></Input>
402 405
           </FormItem>
403 406
           <FormItem label="应用简介" style="width: 100%">
@@ -651,7 +654,7 @@
651 654
 </template>
652 655
 
653 656
 <script>
654
-import {date_format, getResourceSize, uuid} from "@/utils";
657
+import { date_format, getResourceSize, uuid } from "@/utils";
655 658
 import QRCode from "qrcodejs2";
656 659
 import axios from "axios";
657 660
 import {
@@ -773,7 +776,7 @@ export default {
773 776
         appName: [
774 777
           {
775 778
             required: true,
776
-            message: "请输入名称",
779
+            message: "请输入应用名称",
777 780
             trigger: "blur"
778 781
           }
779 782
         ],
@@ -1211,6 +1214,7 @@ export default {
1211 1214
               that.wallpaperInfo.appPackage = res.obj.appPackage;
1212 1215
               that.wallpaperInfo.appSize = res.obj.appSize;
1213 1216
               that.wallpaperInfo.versionName = res.obj.versionName;
1217
+              that.wallpaperInfo.appName = res.obj.appName;
1214 1218
               that.wallpaperInfo.versionNum = res.obj.versionNum;
1215 1219
               that.showLiading = false;
1216 1220
             } else {
@@ -1337,6 +1341,7 @@ export default {
1337 1341
         if (res.code === 0) {
1338 1342
           this.searchForm.list = res.obj.data;
1339 1343
           this.searchForm.total = res.obj.total;
1344
+          console.log(this.searchForm.list);
1340 1345
           if (document.querySelector(".section_main")) {
1341 1346
             document.querySelector(".section_main").scrollTop = 0;
1342 1347
           }
@@ -1374,6 +1379,13 @@ export default {
1374 1379
         schoolids: []
1375 1380
       };
1376 1381
       this.school_list = JSON.parse(JSON.stringify(this.curRegion));
1382
+      this.file_list = [
1383
+        {
1384
+          progress: () => {
1385
+            return 0;
1386
+          }
1387
+        }
1388
+      ];
1377 1389
     },
1378 1390
     // 保存新建
1379 1391
     saveAddInfo() {

Laden…
Abbrechen
Speichern