Browse Source

上传应用自动识别名称

gzb
guozhongbo 8 months ago
parent
commit
5332b7a3f0

+ 7
- 5
src/views/regionSection/applicationManage/applicationManage.vue View File

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

+ 0
- 1
src/views/regionSection/notice/index.vue View File

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

+ 18
- 6
src/views/schoolSection/applicationManage/applicationList.vue View File

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

Loading…
Cancel
Save