|
@@ -114,7 +114,7 @@
|
114
|
114
|
v-model="downloadInfo.show"
|
115
|
115
|
title="下载"
|
116
|
116
|
>
|
117
|
|
- <div class="content">
|
|
117
|
+ <div class="content" v-if="downloadInfo.show">
|
118
|
118
|
<div class="title">{{ downloadInfo.appName }}</div>
|
119
|
119
|
<div class="qrcode">
|
120
|
120
|
<div id="ScanShare" ref="ScanShare"></div>
|
|
@@ -136,328 +136,330 @@
|
136
|
136
|
v-model="wallpaperInfo.show"
|
137
|
137
|
:title="wallpaperInfo.appid ? '编辑' : '新建'"
|
138
|
138
|
>
|
139
|
|
- <Form
|
140
|
|
- ref="addForm"
|
141
|
|
- :model="wallpaperInfo"
|
142
|
|
- :rules="rules"
|
143
|
|
- :label-width="130"
|
144
|
|
- inline
|
145
|
|
- >
|
146
|
|
- <FormItem label="名称" prop="appName" style="width: 100%">
|
147
|
|
- <Input
|
148
|
|
- v-model="wallpaperInfo.appName"
|
149
|
|
- placeholder="请输入名称"
|
150
|
|
- ></Input>
|
151
|
|
- </FormItem>
|
152
|
|
- <FormItem label="分组" style="width: 100%" class="require">
|
153
|
|
- <Select
|
154
|
|
- v-model="wallpaperInfo.appgroupid"
|
155
|
|
- placeholder="请选择分组"
|
156
|
|
- style="width: 300px"
|
157
|
|
- @on-change="groupChange()"
|
158
|
|
- >
|
159
|
|
- <template v-if="group_list.length > 0">
|
160
|
|
- <Option
|
161
|
|
- v-for="item in group_list"
|
162
|
|
- :value="item.appgroupid"
|
163
|
|
- :key="item.appgroupid"
|
164
|
|
- >{{ item.appgroupName }}</Option
|
165
|
|
- >
|
166
|
|
- </template>
|
167
|
|
- </Select>
|
168
|
|
- </FormItem>
|
169
|
|
- <FormItem label="状态" style="width: 300px">
|
170
|
|
- <RadioGroup v-model="wallpaperInfo.enable">
|
171
|
|
- <Radio :label="1">启用</Radio>
|
172
|
|
- <Radio :label="2">禁用</Radio>
|
173
|
|
- </RadioGroup>
|
174
|
|
- </FormItem>
|
175
|
|
- <FormItem label="应用属性">
|
176
|
|
- <RadioGroup v-model="wallpaperInfo.appType">
|
177
|
|
- <Radio :label="1">推荐应用</Radio>
|
178
|
|
- <Radio :label="2">必装应用</Radio>
|
179
|
|
- </RadioGroup>
|
180
|
|
- </FormItem>
|
181
|
|
- <FormItem label="强制安装" style="width: 100%">
|
182
|
|
- <div class="comm">
|
183
|
|
- <RadioGroup v-model="wallpaperInfo.forced">
|
184
|
|
- <Radio :label="1">是</Radio>
|
185
|
|
- <Radio :label="0">否</Radio>
|
186
|
|
- </RadioGroup>
|
187
|
|
- <span>用户进入安全桌面,该应用将被强制安装。</span>
|
188
|
|
- </div>
|
189
|
|
- </FormItem>
|
190
|
|
- <FormItem label="网址白名单例外" style="width: 100%">
|
191
|
|
- <div class="comm">
|
192
|
|
- <RadioGroup v-model="wallpaperInfo.whited">
|
193
|
|
- <Radio :label="1">是</Radio>
|
194
|
|
- <Radio :label="0">否</Radio>
|
195
|
|
- </RadioGroup>
|
196
|
|
- <span>选择白名单例外则该应用访问网络不受网址白名单限制。</span>
|
197
|
|
- </div>
|
198
|
|
- </FormItem>
|
199
|
|
- <FormItem label="可信任" style="width: 100%">
|
200
|
|
- <div class="comm">
|
201
|
|
- <RadioGroup v-model="wallpaperInfo.trusted">
|
202
|
|
- <Radio :label="1">是</Radio>
|
203
|
|
- <Radio :label="0">否</Radio>
|
204
|
|
- </RadioGroup>
|
205
|
|
- <span
|
206
|
|
- >选择可信任时,应用申请权限不需要用户确认,防止用户取消。</span
|
|
139
|
+ <div v-if="wallpaperInfo.show">
|
|
140
|
+ <Form
|
|
141
|
+ ref="addForm"
|
|
142
|
+ :model="wallpaperInfo"
|
|
143
|
+ :rules="rules"
|
|
144
|
+ :label-width="130"
|
|
145
|
+ inline
|
|
146
|
+ >
|
|
147
|
+ <FormItem label="名称" prop="appName" style="width: 100%">
|
|
148
|
+ <Input
|
|
149
|
+ v-model="wallpaperInfo.appName"
|
|
150
|
+ placeholder="请输入名称"
|
|
151
|
+ ></Input>
|
|
152
|
+ </FormItem>
|
|
153
|
+ <FormItem label="分组" style="width: 100%" class="require">
|
|
154
|
+ <Select
|
|
155
|
+ v-model="wallpaperInfo.appgroupid"
|
|
156
|
+ placeholder="请选择分组"
|
|
157
|
+ style="width: 300px"
|
|
158
|
+ @on-change="groupChange()"
|
207
|
159
|
>
|
208
|
|
- </div>
|
209
|
|
- </FormItem>
|
210
|
|
- <FormItem label="隐藏图标" style="width: 100%">
|
211
|
|
- <div class="comm">
|
212
|
|
- <RadioGroup v-model="wallpaperInfo.showico">
|
213
|
|
- <Radio :label="1">是</Radio>
|
214
|
|
- <Radio :label="0">否</Radio>
|
|
160
|
+ <template v-if="group_list.length > 0">
|
|
161
|
+ <Option
|
|
162
|
+ v-for="item in group_list"
|
|
163
|
+ :value="item.appgroupid"
|
|
164
|
+ :key="item.appgroupid"
|
|
165
|
+ >{{ item.appgroupName }}</Option
|
|
166
|
+ >
|
|
167
|
+ </template>
|
|
168
|
+ </Select>
|
|
169
|
+ </FormItem>
|
|
170
|
+ <FormItem label="状态" style="width: 300px">
|
|
171
|
+ <RadioGroup v-model="wallpaperInfo.enable">
|
|
172
|
+ <Radio :label="1">启用</Radio>
|
|
173
|
+ <Radio :label="2">禁用</Radio>
|
215
|
174
|
</RadioGroup>
|
216
|
|
- <span>隐藏图标时,设备安装应用后,桌面不显示应用图标。</span>
|
217
|
|
- </div>
|
218
|
|
- </FormItem>
|
219
|
|
- <FormItem label="允许清空缓存" style="width: 100%">
|
220
|
|
- <div class="comm">
|
221
|
|
- <RadioGroup v-model="wallpaperInfo.cached">
|
222
|
|
- <Radio :label="1">是</Radio>
|
223
|
|
- <Radio :label="0">否</Radio>
|
|
175
|
+ </FormItem>
|
|
176
|
+ <FormItem label="应用属性">
|
|
177
|
+ <RadioGroup v-model="wallpaperInfo.appType">
|
|
178
|
+ <Radio :label="1">推荐应用</Radio>
|
|
179
|
+ <Radio :label="2">必装应用</Radio>
|
224
|
180
|
</RadioGroup>
|
225
|
|
- <span>选择是时,设备上允许清除该应用对应的缓存。</span>
|
226
|
|
- </div>
|
227
|
|
- </FormItem>
|
228
|
|
- <FormItem label="添加到已有策略" style="width: 100%">
|
229
|
|
- <div class="comm">
|
230
|
|
- <RadioGroup v-model="wallpaperInfo.strategy">
|
231
|
|
- <Radio :label="1">是</Radio>
|
232
|
|
- <Radio :label="0">否</Radio>
|
233
|
|
- </RadioGroup>
|
234
|
|
- <span
|
235
|
|
- >选择添加到已有策略,则当前应用会被添加到其授权的且不存在相同包名应用的学校策略。</span
|
236
|
|
- >
|
237
|
|
- </div>
|
238
|
|
- </FormItem>
|
239
|
|
- <FormItem label="适配设备" style="width: 100%" class="require">
|
240
|
|
- <div v-for="item in device_list" :key="item.dgroupid">
|
241
|
|
- <CheckboxDevice
|
242
|
|
- @CheckboxDevice="CheckboxDevice"
|
243
|
|
- :dgroupid="item.dgroupid"
|
244
|
|
- ref="checkbevice"
|
245
|
|
- :module="item"
|
246
|
|
- ></CheckboxDevice>
|
247
|
|
- </div>
|
248
|
|
- </FormItem>
|
249
|
|
- <FormItem label="应用上传" class="require" style="width: 400px">
|
250
|
|
- <div class="upload_box">
|
251
|
|
- <uploader
|
252
|
|
- ref="uploader"
|
253
|
|
- :options="options"
|
254
|
|
- :autoStart="true"
|
255
|
|
- :file-status-text="statusText"
|
256
|
|
- @file-added="onFileAdded"
|
257
|
|
- @file-progress="onFileProgress"
|
258
|
|
- @file-success="onFileSuccess"
|
259
|
|
- @file-error="onFileError"
|
260
|
|
- >
|
261
|
|
- <uploader-unsupport></uploader-unsupport>
|
262
|
|
- <uploader-btn
|
263
|
|
- id="global_uploader_btn"
|
264
|
|
- :attrs="attrs"
|
265
|
|
- ref="uploadBtn"
|
|
181
|
+ </FormItem>
|
|
182
|
+ <FormItem label="强制安装" style="width: 100%">
|
|
183
|
+ <div class="comm">
|
|
184
|
+ <RadioGroup v-model="wallpaperInfo.forced">
|
|
185
|
+ <Radio :label="1">是</Radio>
|
|
186
|
+ <Radio :label="0">否</Radio>
|
|
187
|
+ </RadioGroup>
|
|
188
|
+ <span>用户进入安全桌面,该应用将被强制安装。</span>
|
|
189
|
+ </div>
|
|
190
|
+ </FormItem>
|
|
191
|
+ <FormItem label="网址白名单例外" style="width: 100%">
|
|
192
|
+ <div class="comm">
|
|
193
|
+ <RadioGroup v-model="wallpaperInfo.whited">
|
|
194
|
+ <Radio :label="1">是</Radio>
|
|
195
|
+ <Radio :label="0">否</Radio>
|
|
196
|
+ </RadioGroup>
|
|
197
|
+ <span>选择白名单例外则该应用访问网络不受网址白名单限制。</span>
|
|
198
|
+ </div>
|
|
199
|
+ </FormItem>
|
|
200
|
+ <FormItem label="可信任" style="width: 100%">
|
|
201
|
+ <div class="comm">
|
|
202
|
+ <RadioGroup v-model="wallpaperInfo.trusted">
|
|
203
|
+ <Radio :label="1">是</Radio>
|
|
204
|
+ <Radio :label="0">否</Radio>
|
|
205
|
+ </RadioGroup>
|
|
206
|
+ <span
|
|
207
|
+ >选择可信任时,应用申请权限不需要用户确认,防止用户取消。</span
|
266
|
208
|
>
|
267
|
|
- <div class="primary_btn">上传应用</div>
|
268
|
|
- </uploader-btn>
|
269
|
|
- </uploader>
|
270
|
|
- </div>
|
271
|
|
- <div class="upProgress" v-if="file_list.length > 0">
|
272
|
|
- <div v-for="file in file_list" key="file1">
|
273
|
|
- <div class="file_name" :title="wallpaperInfo.appPackage">
|
274
|
|
- <div class="show_name">
|
275
|
|
- {{ wallpaperInfo.appPackage }}
|
|
209
|
+ </div>
|
|
210
|
+ </FormItem>
|
|
211
|
+ <FormItem label="隐藏图标" style="width: 100%">
|
|
212
|
+ <div class="comm">
|
|
213
|
+ <RadioGroup v-model="wallpaperInfo.showico">
|
|
214
|
+ <Radio :label="1">是</Radio>
|
|
215
|
+ <Radio :label="0">否</Radio>
|
|
216
|
+ </RadioGroup>
|
|
217
|
+ <span>隐藏图标时,设备安装应用后,桌面不显示应用图标。</span>
|
|
218
|
+ </div>
|
|
219
|
+ </FormItem>
|
|
220
|
+ <FormItem label="允许清空缓存" style="width: 100%">
|
|
221
|
+ <div class="comm">
|
|
222
|
+ <RadioGroup v-model="wallpaperInfo.cached">
|
|
223
|
+ <Radio :label="1">是</Radio>
|
|
224
|
+ <Radio :label="0">否</Radio>
|
|
225
|
+ </RadioGroup>
|
|
226
|
+ <span>选择是时,设备上允许清除该应用对应的缓存。</span>
|
|
227
|
+ </div>
|
|
228
|
+ </FormItem>
|
|
229
|
+ <FormItem label="添加到已有策略" style="width: 100%">
|
|
230
|
+ <div class="comm">
|
|
231
|
+ <RadioGroup v-model="wallpaperInfo.strategy">
|
|
232
|
+ <Radio :label="1">是</Radio>
|
|
233
|
+ <Radio :label="0">否</Radio>
|
|
234
|
+ </RadioGroup>
|
|
235
|
+ <span
|
|
236
|
+ >选择添加到已有策略,则当前应用会被添加到其授权的且不存在相同包名应用的学校策略。</span
|
|
237
|
+ >
|
|
238
|
+ </div>
|
|
239
|
+ </FormItem>
|
|
240
|
+ <FormItem label="适配设备" style="width: 100%" class="require">
|
|
241
|
+ <div v-for="item in device_list" :key="item.dgroupid">
|
|
242
|
+ <CheckboxDevice
|
|
243
|
+ @CheckboxDevice="CheckboxDevice"
|
|
244
|
+ :dgroupid="item.dgroupid"
|
|
245
|
+ ref="checkbevice"
|
|
246
|
+ :module="item"
|
|
247
|
+ ></CheckboxDevice>
|
|
248
|
+ </div>
|
|
249
|
+ </FormItem>
|
|
250
|
+ <FormItem label="应用上传" class="require" style="width: 400px">
|
|
251
|
+ <div class="upload_box">
|
|
252
|
+ <uploader
|
|
253
|
+ ref="uploader"
|
|
254
|
+ :options="options"
|
|
255
|
+ :autoStart="true"
|
|
256
|
+ :file-status-text="statusText"
|
|
257
|
+ @file-added="onFileAdded"
|
|
258
|
+ @file-progress="onFileProgress"
|
|
259
|
+ @file-success="onFileSuccess"
|
|
260
|
+ @file-error="onFileError"
|
|
261
|
+ >
|
|
262
|
+ <uploader-unsupport></uploader-unsupport>
|
|
263
|
+ <uploader-btn
|
|
264
|
+ id="global_uploader_btn"
|
|
265
|
+ :attrs="attrs"
|
|
266
|
+ ref="uploadBtn"
|
|
267
|
+ >
|
|
268
|
+ <div class="primary_btn">上传应用</div>
|
|
269
|
+ </uploader-btn>
|
|
270
|
+ </uploader>
|
|
271
|
+ </div>
|
|
272
|
+ <div class="upProgress" v-if="file_list.length > 0">
|
|
273
|
+ <div v-for="file in file_list" key="file1">
|
|
274
|
+ <div class="file_name" :title="wallpaperInfo.appPackage">
|
|
275
|
+ <div class="show_name">
|
|
276
|
+ {{ wallpaperInfo.appPackage }}
|
|
277
|
+ </div>
|
276
|
278
|
</div>
|
|
279
|
+ <Progress
|
|
280
|
+ hide-info
|
|
281
|
+ :stroke-width="8"
|
|
282
|
+ :percent="getUploadProgress(file)"
|
|
283
|
+ status="active"
|
|
284
|
+ />
|
277
|
285
|
</div>
|
278
|
|
- <Progress
|
279
|
|
- hide-info
|
280
|
|
- :stroke-width="8"
|
281
|
|
- :percent="getUploadProgress(file)"
|
282
|
|
- status="active"
|
283
|
|
- />
|
284
|
286
|
</div>
|
285
|
|
- </div>
|
286
|
|
- </FormItem>
|
287
|
|
- <FormItem label="应用图标" class="require">
|
288
|
|
- <div class="logo">
|
289
|
|
- <Upload
|
290
|
|
- action
|
291
|
|
- :show-upload-list="false"
|
292
|
|
- :before-upload="
|
293
|
|
- (file) => {
|
294
|
|
- upLoadUserpic(file, 1);
|
295
|
|
- return false;
|
296
|
|
- }
|
297
|
|
- "
|
298
|
|
- accept=".png,.jpeg,.jpg"
|
299
|
|
- >
|
300
|
|
- <Button type="primary" class="primary_btn">上传图标</Button>
|
301
|
|
- </Upload>
|
302
|
|
- <span>支持图片格式:jpg、jgeg、png</span>
|
303
|
|
- </div>
|
304
|
|
- <div class="app_img" style="border-radius: 20px">
|
305
|
|
- <img
|
306
|
|
- v-if="wallpaperInfo.appIcon"
|
307
|
|
- :src="$api.showImageUrl + wallpaperInfo.appIcon"
|
308
|
|
- />
|
309
|
|
- </div>
|
310
|
|
- </FormItem>
|
311
|
|
- <FormItem label="应用截图" style="width: 100%">
|
312
|
|
- <div class="logo">
|
313
|
|
- <Upload
|
314
|
|
- action
|
315
|
|
- :show-upload-list="false"
|
316
|
|
- :before-upload="
|
317
|
|
- (file) => {
|
318
|
|
- upLoadUserpic(file, 2);
|
319
|
|
- return false;
|
320
|
|
- }
|
321
|
|
- "
|
322
|
|
- accept=".png,.jpeg,.jpg"
|
323
|
|
- >
|
324
|
|
- <Button type="primary" class="primary_btn">上传截图</Button>
|
325
|
|
- </Upload>
|
326
|
|
- <span>支持图片格式:jpg、jgeg、png</span>
|
327
|
|
- </div>
|
328
|
|
- <div class="img_list">
|
329
|
|
- <div
|
330
|
|
- class="app_img"
|
331
|
|
- v-for="(img, idx) in wallpaperInfo.appImg"
|
332
|
|
- :key="idx"
|
333
|
|
- >
|
334
|
|
- <img :src="$api.showImageUrl + img" />
|
|
287
|
+ </FormItem>
|
|
288
|
+ <FormItem label="应用图标" class="require">
|
|
289
|
+ <div class="logo">
|
|
290
|
+ <Upload
|
|
291
|
+ action
|
|
292
|
+ :show-upload-list="false"
|
|
293
|
+ :before-upload="
|
|
294
|
+ (file) => {
|
|
295
|
+ upLoadUserpic(file, 1);
|
|
296
|
+ return false;
|
|
297
|
+ }
|
|
298
|
+ "
|
|
299
|
+ accept=".png,.jpeg,.jpg"
|
|
300
|
+ >
|
|
301
|
+ <Button type="primary" class="primary_btn">上传图标</Button>
|
|
302
|
+ </Upload>
|
|
303
|
+ <span>支持图片格式:jpg、jgeg、png</span>
|
|
304
|
+ </div>
|
|
305
|
+ <div class="app_img" style="border-radius: 20px">
|
335
|
306
|
<img
|
336
|
|
- @click="delAppImg(idx)"
|
337
|
|
- class="del"
|
338
|
|
- src="../../../assets/img/guanbi_red.png"
|
|
307
|
+ v-if="wallpaperInfo.appIcon"
|
|
308
|
+ :src="$api.showImageUrl + wallpaperInfo.appIcon"
|
339
|
309
|
/>
|
340
|
310
|
</div>
|
341
|
|
- </div>
|
342
|
|
- </FormItem>
|
343
|
|
- <FormItem
|
344
|
|
- label="版本名称"
|
345
|
|
- prop="versionName"
|
346
|
|
- style="width: calc(50% - 10px)"
|
347
|
|
- >
|
348
|
|
- <Input
|
349
|
|
- v-model="wallpaperInfo.versionName"
|
350
|
|
- placeholder="请输入版本名称"
|
351
|
|
- ></Input>
|
352
|
|
- </FormItem>
|
353
|
|
- <FormItem
|
354
|
|
- label="版本号码"
|
355
|
|
- class="require"
|
356
|
|
- style="width: calc(50% - 10px)"
|
357
|
|
- >
|
358
|
|
- <Input
|
359
|
|
- v-model="wallpaperInfo.versionNum"
|
360
|
|
- placeholder="请输入版本号码"
|
361
|
|
- ></Input>
|
362
|
|
- </FormItem>
|
363
|
|
- <FormItem
|
364
|
|
- label="应用大小"
|
365
|
|
- class="require"
|
366
|
|
- style="width: calc(50% - 10px)"
|
367
|
|
- >
|
368
|
|
- <Input
|
369
|
|
- v-model="wallpaperInfo.appSize"
|
370
|
|
- placeholder="请输入应用大小"
|
371
|
|
- ></Input>
|
372
|
|
- </FormItem>
|
373
|
|
- <FormItem label="开发者" style="width: calc(50% - 10px)">
|
374
|
|
- <Input
|
375
|
|
- v-model="wallpaperInfo.appDeveloper"
|
376
|
|
- placeholder="请输入开发者"
|
377
|
|
- ></Input>
|
378
|
|
- </FormItem>
|
379
|
|
- <FormItem label="应用包名" style="width: 100%">
|
380
|
|
- <Input
|
381
|
|
- v-model="wallpaperInfo.appPackage"
|
382
|
|
- placeholder="请输入应用包名"
|
383
|
|
- ></Input>
|
384
|
|
- </FormItem>
|
385
|
|
- <FormItem label="应用简介" style="width: 100%">
|
386
|
|
- <Input
|
387
|
|
- v-model="wallpaperInfo.appAbbr"
|
388
|
|
- type="textarea"
|
389
|
|
- :maxlength="255"
|
390
|
|
- :rows="4"
|
391
|
|
- placeholder="请输入应用简介"
|
392
|
|
- ></Input>
|
393
|
|
- <div class="appcomm">
|
394
|
|
- 应用简介不能超过255个字符<span class="red">{{
|
395
|
|
- wallpaperInfo.appAbbr.length
|
396
|
|
- }}</span
|
397
|
|
- >/255
|
398
|
|
- </div>
|
399
|
|
- </FormItem>
|
400
|
|
- <FormItem label="更新" style="width: 100%">
|
401
|
|
- <Input
|
402
|
|
- v-model="wallpaperInfo.appRenew"
|
403
|
|
- type="textarea"
|
404
|
|
- :rows="4"
|
405
|
|
- :maxlength="1000"
|
406
|
|
- placeholder="请输入更新描述"
|
407
|
|
- ></Input>
|
408
|
|
- <div class="appcomm">
|
409
|
|
- 更新描述不能超过1000个字符<span class="red">{{
|
410
|
|
- wallpaperInfo.appRenew.length
|
411
|
|
- }}</span
|
412
|
|
- >/1000
|
413
|
|
- </div>
|
414
|
|
- </FormItem>
|
415
|
|
- <FormItem label="选择学校" style="width: 100%" class="require">
|
416
|
|
- <RadioGroup v-model="wallpaperInfo.targetSchool">
|
417
|
|
- <Radio :label="1">所有学校</Radio>
|
418
|
|
- <Radio :label="2">自定义学校</Radio>
|
419
|
|
- </RadioGroup>
|
420
|
|
- <div class="targetSchool" v-if="wallpaperInfo.targetSchool === 2">
|
421
|
|
- <div class="allSchool">
|
422
|
|
- <Input
|
423
|
|
- v-model="wallpaperInfo.schoolname"
|
424
|
|
- placeholder="请输入关键字"
|
425
|
|
- search
|
426
|
|
- @on-search="getSchool"
|
427
|
|
- ></Input>
|
428
|
|
- <div class="school_list">
|
429
|
|
- <Tree
|
430
|
|
- @on-check-change="getSelectedNodes"
|
431
|
|
- :data="school_list"
|
432
|
|
- show-checkbox
|
433
|
|
- ></Tree>
|
|
311
|
+ </FormItem>
|
|
312
|
+ <FormItem label="应用截图" style="width: 100%">
|
|
313
|
+ <div class="logo">
|
|
314
|
+ <Upload
|
|
315
|
+ action
|
|
316
|
+ :show-upload-list="false"
|
|
317
|
+ :before-upload="
|
|
318
|
+ (file) => {
|
|
319
|
+ upLoadUserpic(file, 2);
|
|
320
|
+ return false;
|
|
321
|
+ }
|
|
322
|
+ "
|
|
323
|
+ accept=".png,.jpeg,.jpg"
|
|
324
|
+ >
|
|
325
|
+ <Button type="primary" class="primary_btn">上传截图</Button>
|
|
326
|
+ </Upload>
|
|
327
|
+ <span>支持图片格式:jpg、jgeg、png</span>
|
|
328
|
+ </div>
|
|
329
|
+ <div class="img_list">
|
|
330
|
+ <div
|
|
331
|
+ class="app_img"
|
|
332
|
+ v-for="(img, idx) in wallpaperInfo.appImg"
|
|
333
|
+ :key="idx"
|
|
334
|
+ >
|
|
335
|
+ <img :src="$api.showImageUrl + img" />
|
|
336
|
+ <img
|
|
337
|
+ @click="delAppImg(idx)"
|
|
338
|
+ class="del"
|
|
339
|
+ src="../../../assets/img/guanbi_red.png"
|
|
340
|
+ />
|
434
|
341
|
</div>
|
435
|
342
|
</div>
|
436
|
|
- <div class="selectSchool">
|
437
|
|
- <div class="school_num">
|
438
|
|
- 已选<span class="num">{{ select_schools.length }}</span
|
439
|
|
- >所学校
|
|
343
|
+ </FormItem>
|
|
344
|
+ <FormItem
|
|
345
|
+ label="版本名称"
|
|
346
|
+ prop="versionName"
|
|
347
|
+ style="width: calc(50% - 10px)"
|
|
348
|
+ >
|
|
349
|
+ <Input
|
|
350
|
+ v-model="wallpaperInfo.versionName"
|
|
351
|
+ placeholder="请输入版本名称"
|
|
352
|
+ ></Input>
|
|
353
|
+ </FormItem>
|
|
354
|
+ <FormItem
|
|
355
|
+ label="版本号码"
|
|
356
|
+ class="require"
|
|
357
|
+ style="width: calc(50% - 10px)"
|
|
358
|
+ >
|
|
359
|
+ <Input
|
|
360
|
+ v-model="wallpaperInfo.versionNum"
|
|
361
|
+ placeholder="请输入版本号码"
|
|
362
|
+ ></Input>
|
|
363
|
+ </FormItem>
|
|
364
|
+ <FormItem
|
|
365
|
+ label="应用大小"
|
|
366
|
+ class="require"
|
|
367
|
+ style="width: calc(50% - 10px)"
|
|
368
|
+ >
|
|
369
|
+ <Input
|
|
370
|
+ v-model="wallpaperInfo.appSize"
|
|
371
|
+ placeholder="请输入应用大小"
|
|
372
|
+ ></Input>
|
|
373
|
+ </FormItem>
|
|
374
|
+ <FormItem label="开发者" style="width: calc(50% - 10px)">
|
|
375
|
+ <Input
|
|
376
|
+ v-model="wallpaperInfo.appDeveloper"
|
|
377
|
+ placeholder="请输入开发者"
|
|
378
|
+ ></Input>
|
|
379
|
+ </FormItem>
|
|
380
|
+ <FormItem label="应用包名" style="width: 100%">
|
|
381
|
+ <Input
|
|
382
|
+ v-model="wallpaperInfo.appPackage"
|
|
383
|
+ placeholder="请输入应用包名"
|
|
384
|
+ ></Input>
|
|
385
|
+ </FormItem>
|
|
386
|
+ <FormItem label="应用简介" style="width: 100%">
|
|
387
|
+ <Input
|
|
388
|
+ v-model="wallpaperInfo.appAbbr"
|
|
389
|
+ type="textarea"
|
|
390
|
+ :maxlength="255"
|
|
391
|
+ :rows="4"
|
|
392
|
+ placeholder="请输入应用简介"
|
|
393
|
+ ></Input>
|
|
394
|
+ <div class="appcomm">
|
|
395
|
+ 应用简介不能超过255个字符<span class="red">{{
|
|
396
|
+ wallpaperInfo.appAbbr.length
|
|
397
|
+ }}</span
|
|
398
|
+ >/255
|
|
399
|
+ </div>
|
|
400
|
+ </FormItem>
|
|
401
|
+ <FormItem label="更新" style="width: 100%">
|
|
402
|
+ <Input
|
|
403
|
+ v-model="wallpaperInfo.appRenew"
|
|
404
|
+ type="textarea"
|
|
405
|
+ :rows="4"
|
|
406
|
+ :maxlength="1000"
|
|
407
|
+ placeholder="请输入更新描述"
|
|
408
|
+ ></Input>
|
|
409
|
+ <div class="appcomm">
|
|
410
|
+ 更新描述不能超过1000个字符<span class="red">{{
|
|
411
|
+ wallpaperInfo.appRenew.length
|
|
412
|
+ }}</span
|
|
413
|
+ >/1000
|
|
414
|
+ </div>
|
|
415
|
+ </FormItem>
|
|
416
|
+ <FormItem label="选择学校" style="width: 100%" class="require">
|
|
417
|
+ <RadioGroup v-model="wallpaperInfo.targetSchool">
|
|
418
|
+ <Radio :label="1">所有学校</Radio>
|
|
419
|
+ <Radio :label="2">自定义学校</Radio>
|
|
420
|
+ </RadioGroup>
|
|
421
|
+ <div class="targetSchool" v-if="wallpaperInfo.targetSchool === 2">
|
|
422
|
+ <div class="allSchool">
|
|
423
|
+ <Input
|
|
424
|
+ v-model="wallpaperInfo.schoolname"
|
|
425
|
+ placeholder="请输入关键字"
|
|
426
|
+ search
|
|
427
|
+ @on-search="getSchool"
|
|
428
|
+ ></Input>
|
|
429
|
+ <div class="school_list">
|
|
430
|
+ <Tree
|
|
431
|
+ @on-check-change="getSelectedNodes"
|
|
432
|
+ :data="school_list"
|
|
433
|
+ show-checkbox
|
|
434
|
+ ></Tree>
|
|
435
|
+ </div>
|
440
|
436
|
</div>
|
441
|
|
- <div class="school_list">
|
442
|
|
- <span
|
443
|
|
- class="school_item"
|
444
|
|
- v-for="(item, index) in this.select_schools"
|
445
|
|
- :key="item.schoolid"
|
446
|
|
- >
|
447
|
|
- <span class="title" :title="item.title">{{
|
448
|
|
- item.title
|
449
|
|
- }}</span>
|
450
|
|
- <img
|
451
|
|
- @click="delSchool(item)"
|
452
|
|
- class="del"
|
453
|
|
- src="../../../assets/img/guanbi_red.png"
|
454
|
|
- />
|
455
|
|
- </span>
|
|
437
|
+ <div class="selectSchool">
|
|
438
|
+ <div class="school_num">
|
|
439
|
+ 已选<span class="num">{{ select_schools.length }}</span
|
|
440
|
+ >所学校
|
|
441
|
+ </div>
|
|
442
|
+ <div class="school_list">
|
|
443
|
+ <span
|
|
444
|
+ class="school_item"
|
|
445
|
+ v-for="(item, index) in this.select_schools"
|
|
446
|
+ :key="item.schoolid"
|
|
447
|
+ >
|
|
448
|
+ <span class="title" :title="item.title">{{
|
|
449
|
+ item.title
|
|
450
|
+ }}</span>
|
|
451
|
+ <img
|
|
452
|
+ @click="delSchool(item)"
|
|
453
|
+ class="del"
|
|
454
|
+ src="../../../assets/img/guanbi_red.png"
|
|
455
|
+ />
|
|
456
|
+ </span>
|
|
457
|
+ </div>
|
456
|
458
|
</div>
|
457
|
459
|
</div>
|
458
|
|
- </div>
|
459
|
|
- </FormItem>
|
460
|
|
- </Form>
|
|
460
|
+ </FormItem>
|
|
461
|
+ </Form>
|
|
462
|
+ </div>
|
461
|
463
|
<div slot="footer">
|
462
|
464
|
<Button @click="wallpaperInfo.show = false">取消</Button>
|
463
|
465
|
<Button @click="saveAddInfo()" class="primary_btn" type="primary"
|
|
@@ -472,7 +474,7 @@
|
472
|
474
|
v-model="deviceInfo.show"
|
473
|
475
|
title="授权型号"
|
474
|
476
|
>
|
475
|
|
- <div class="view_content">
|
|
477
|
+ <div class="view_content" v-if="deviceInfo.show">
|
476
|
478
|
<div class="view_title">名称</div>
|
477
|
479
|
<div class="view_devices" style="width: 100%">
|
478
|
480
|
<Input style="width: 100%" disabled v-model="deviceInfo.appName" />
|
|
@@ -506,7 +508,7 @@
|
506
|
508
|
v-model="viewInfo.show"
|
507
|
509
|
title="查看"
|
508
|
510
|
>
|
509
|
|
- <div class="view_conten">
|
|
511
|
+ <div class="view_conten" v-if="viewInfo.show">
|
510
|
512
|
<div class="view_logo">
|
511
|
513
|
<div>
|
512
|
514
|
<img
|
|
@@ -1230,6 +1232,9 @@ export default {
|
1230
|
1232
|
if (res.code === 0) {
|
1231
|
1233
|
this.searchForm.list = res.obj.data;
|
1232
|
1234
|
this.searchForm.total = res.obj.total;
|
|
1235
|
+ if (document.querySelector(".section_main")) {
|
|
1236
|
+ document.querySelector(".section_main").scrollTop = 0;
|
|
1237
|
+ }
|
1233
|
1238
|
console.log(this.searchForm.list);
|
1234
|
1239
|
} else {
|
1235
|
1240
|
this.$Message.error(res.msg);
|
|
@@ -1830,6 +1835,7 @@ export default {
|
1830
|
1835
|
text-align: center;
|
1831
|
1836
|
.title {
|
1832
|
1837
|
font-size: 18px;
|
|
1838
|
+ font-weight: bold;
|
1833
|
1839
|
margin-bottom: 30px;
|
1834
|
1840
|
}
|
1835
|
1841
|
.qrcode {
|
|
@@ -1846,7 +1852,7 @@ export default {
|
1846
|
1852
|
}
|
1847
|
1853
|
}
|
1848
|
1854
|
.download {
|
1849
|
|
- margin-top: 10px;
|
|
1855
|
+ margin-top: 40px;
|
1850
|
1856
|
&:hover {
|
1851
|
1857
|
cursor: pointer;
|
1852
|
1858
|
color: #339cff;
|