|
@@ -2,16 +2,27 @@
|
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
|
search
|
8
|
8
|
@on-search="searchList()"
|
9
|
9
|
style="width: 150px"
|
10
|
10
|
/>
|
11
|
|
- <Button type="primary" class="primary_btn" @click="toAdd()">新建</Button>
|
|
11
|
+ <Button
|
|
12
|
+ v-if="searchForm.list.length === 0"
|
|
13
|
+ type="primary"
|
|
14
|
+ class="primary_btn"
|
|
15
|
+ @click="toAdd()"
|
|
16
|
+ >新建</Button
|
|
17
|
+ >
|
12
|
18
|
</div>
|
13
|
19
|
<div class="table_wrap">
|
14
|
20
|
<Table :columns="columns" :data="searchForm.list">
|
|
21
|
+ <template slot-scope="{ row }" slot="hpath">
|
|
22
|
+ <div class="hpath">
|
|
23
|
+ <img v-if="row.hpath" :src="$api.showImageUrl + row.hpath" />
|
|
24
|
+ </div>
|
|
25
|
+ </template>
|
15
|
26
|
<template slot-scope="{ row }" slot="actionSlot">
|
16
|
27
|
<div class="action_list">
|
17
|
28
|
<div @click="toView(row)">查看</div>
|
|
@@ -39,7 +50,7 @@
|
39
|
50
|
class="modal1"
|
40
|
51
|
:mask-closable="false"
|
41
|
52
|
v-model="wallpaperInfo.show"
|
42
|
|
- :title="wallpaperInfo.id ? '编辑' : '新建'"
|
|
53
|
+ :title="wallpaperInfo.wallpaperid ? '编辑' : '新建'"
|
43
|
54
|
>
|
44
|
55
|
<Form
|
45
|
56
|
v-if="wallpaperInfo.show"
|
|
@@ -49,13 +60,13 @@
|
49
|
60
|
:label-width="100"
|
50
|
61
|
inline
|
51
|
62
|
>
|
52
|
|
- <FormItem label="名称" prop="Name" style="width: 100%">
|
|
63
|
+ <FormItem label="名称" prop="wname" style="width: 100%">
|
53
|
64
|
<Input
|
54
|
|
- v-model="wallpaperInfo.name"
|
|
65
|
+ v-model="wallpaperInfo.wname"
|
55
|
66
|
placeholder="请输入壁纸名称"
|
56
|
67
|
></Input>
|
57
|
68
|
</FormItem>
|
58
|
|
- <FormItem label="壁纸" prop="img" style="width: 100%">
|
|
69
|
+ <FormItem label="壁纸" style="width: 100%">
|
59
|
70
|
<div class="up">
|
60
|
71
|
<Upload
|
61
|
72
|
class="Upload"
|
|
@@ -67,14 +78,26 @@
|
67
|
78
|
return false;
|
68
|
79
|
}
|
69
|
80
|
"
|
70
|
|
- accept=".png,.jpeg,.jpg,gif"
|
|
81
|
+ accept=".png,.jpeg,.jpg,.gif"
|
71
|
82
|
>
|
72
|
|
- <div class="icon">横屏壁纸</div>
|
|
83
|
+ <div v-if="!wallpaperInfo.hpath" class="icon">横屏壁纸</div>
|
|
84
|
+ <div v-else class="hpath">
|
|
85
|
+ <img :src="$api.showImageUrl + wallpaperInfo.hpath" />
|
|
86
|
+ </div>
|
73
|
87
|
</Upload>
|
74
|
88
|
<span>支持图片格式:jpg、jgeg、gif、png</span>
|
75
|
89
|
</div>
|
76
|
90
|
</FormItem>
|
77
|
|
- <FormItem label="适配类型" style="width: 100%"> </FormItem>
|
|
91
|
+ <FormItem label="适配类型" class="require" style="width: 100%">
|
|
92
|
+ <div v-for="item in device_list" :key="item.dgroupid">
|
|
93
|
+ <CheckboxDevice
|
|
94
|
+ @CheckboxDevice="CheckboxDevice"
|
|
95
|
+ :dgroupid="item.dgroupid"
|
|
96
|
+ ref="checkbevice"
|
|
97
|
+ :module="item"
|
|
98
|
+ ></CheckboxDevice>
|
|
99
|
+ </div>
|
|
100
|
+ </FormItem>
|
78
|
101
|
</Form>
|
79
|
102
|
<div slot="footer">
|
80
|
103
|
<div>
|
|
@@ -87,39 +110,66 @@
|
87
|
110
|
</Modal>
|
88
|
111
|
<!-- 查看 -->
|
89
|
112
|
<Modal
|
90
|
|
- class="modal1"
|
|
113
|
+ class="modal1 view"
|
91
|
114
|
:mask-closable="false"
|
92
|
115
|
v-model="viewInfo.show"
|
93
|
116
|
title="查看"
|
94
|
117
|
>
|
95
|
|
- <div class="view_title">{{ viewInfo.regionName }}</div>
|
96
|
|
- <Table
|
97
|
|
- style="border: 1px solid #e8eaec; border-bottom: none"
|
98
|
|
- :columns="viewInfo.columns"
|
99
|
|
- :data="viewInfo.list"
|
100
|
|
- ></Table>
|
|
118
|
+ <div class="view_titles">{{ viewInfo.wname }}</div>
|
|
119
|
+ <div class="view_content">
|
|
120
|
+ <div class="view_title">壁纸效果</div>
|
|
121
|
+ <div class="hpath">
|
|
122
|
+ <img :src="$api.showImageUrl + viewInfo.hpath" />
|
|
123
|
+ </div>
|
|
124
|
+ </div>
|
|
125
|
+ <div class="view_content" style="margin-top: 20px">
|
|
126
|
+ <div class="view_title">适配类型</div>
|
|
127
|
+ <div class="view_devices">
|
|
128
|
+ <div
|
|
129
|
+ class="view_list"
|
|
130
|
+ v-for="item in viewInfo.devices"
|
|
131
|
+ :key="item.dgroupid"
|
|
132
|
+ >
|
|
133
|
+ <div class="dgname">{{ item.dgname }}</div>
|
|
134
|
+ <div class="devices">
|
|
135
|
+ <span v-for="sitem in item.devices" :key="sitem.deviceid">{{
|
|
136
|
+ sitem.deviceModel
|
|
137
|
+ }}</span>
|
|
138
|
+ </div>
|
|
139
|
+ </div>
|
|
140
|
+ </div>
|
|
141
|
+ </div>
|
101
|
142
|
<div slot="footer" style="text-align: center">
|
102
|
143
|
<Button @click="viewInfo.show = false">关闭</Button>
|
103
|
144
|
</div>
|
104
|
145
|
</Modal>
|
|
146
|
+ <Spin fix v-if="showLoading" style="background-color: transparent">
|
|
147
|
+ <Icon type="ios-loading" size="18" class="demo-spin-icon-load"></Icon>
|
|
148
|
+ <div>加载中</div>
|
|
149
|
+ </Spin>
|
105
|
150
|
</div>
|
106
|
151
|
</template>
|
107
|
152
|
|
108
|
153
|
<script>
|
109
|
|
-import { generateRandomString } from "@/utils";
|
|
154
|
+import axios from "axios";
|
|
155
|
+import CheckboxDevice from "@/components/Checkbox/CheckboxDevice";
|
110
|
156
|
import {
|
111
|
|
- region_list_admin,
|
112
|
|
- region_delete,
|
113
|
|
- region_add,
|
114
|
|
- region_edit,
|
115
|
|
- region_list_qy
|
116
|
|
-} from "@/api/region";
|
117
|
|
-import { login_msg_code } from "@/api/login";
|
|
157
|
+ wallpaper_add,
|
|
158
|
+ wallpaper_delete,
|
|
159
|
+ wallpaper_detail,
|
|
160
|
+ wallpaper_edit,
|
|
161
|
+ wallpaper_list
|
|
162
|
+} from "@/api/setting";
|
|
163
|
+import { device_list } from "@/api/appgroup";
|
118
|
164
|
export default {
|
|
165
|
+ components: {
|
|
166
|
+ CheckboxDevice
|
|
167
|
+ },
|
119
|
168
|
data() {
|
120
|
169
|
return {
|
|
170
|
+ showLoading: false,
|
121
|
171
|
searchForm: {
|
122
|
|
- regionName: "",
|
|
172
|
+ name: "",
|
123
|
173
|
page: 1,
|
124
|
174
|
size: 10,
|
125
|
175
|
list: [],
|
|
@@ -127,16 +177,19 @@ export default {
|
127
|
177
|
},
|
128
|
178
|
// 新建
|
129
|
179
|
wallpaperInfo: {
|
130
|
|
- show: true,
|
|
180
|
+ show: false,
|
131
|
181
|
id: null,
|
132
|
|
- name: "",
|
133
|
|
- img: ""
|
|
182
|
+ wname: "",
|
|
183
|
+ hpath: "",
|
|
184
|
+ wlevel: "",
|
|
185
|
+ objectid: "",
|
|
186
|
+ deviceids: []
|
134
|
187
|
},
|
135
|
188
|
// 编辑
|
136
|
189
|
modifyRegion: {
|
137
|
190
|
show: false,
|
138
|
191
|
regionid: null,
|
139
|
|
- regionName: "",
|
|
192
|
+ name: "",
|
140
|
193
|
regionCode: "",
|
141
|
194
|
comm: "",
|
142
|
195
|
rversion: null
|
|
@@ -144,34 +197,10 @@ export default {
|
144
|
197
|
// 查看
|
145
|
198
|
viewInfo: {
|
146
|
199
|
show: false,
|
147
|
|
- regionName: "",
|
148
|
|
- list: [],
|
149
|
|
- columns: [
|
150
|
|
- {
|
151
|
|
- title: "序号",
|
152
|
|
- type: "index",
|
153
|
|
- width: 70,
|
154
|
|
- align: "center"
|
155
|
|
- },
|
156
|
|
- {
|
157
|
|
- title: "名称",
|
158
|
|
- key: "aname",
|
159
|
|
- align: "center"
|
160
|
|
- },
|
161
|
|
- {
|
162
|
|
- title: "账号",
|
163
|
|
- key: "loginname",
|
164
|
|
- align: "center"
|
165
|
|
- },
|
166
|
|
- {
|
167
|
|
- title: "手机号码",
|
168
|
|
- key: "phone",
|
169
|
|
- align: "center"
|
170
|
|
- }
|
171
|
|
- ]
|
|
200
|
+ name: ""
|
172
|
201
|
},
|
173
|
202
|
rules: {
|
174
|
|
- regionName: [
|
|
203
|
+ wname: [
|
175
|
204
|
{
|
176
|
205
|
required: true,
|
177
|
206
|
message: "请输入区域名称",
|
|
@@ -179,6 +208,9 @@ export default {
|
179
|
208
|
}
|
180
|
209
|
]
|
181
|
210
|
},
|
|
211
|
+ userInfo: {},
|
|
212
|
+ device_list: [],
|
|
213
|
+ deviceids: {}, //设备类型
|
182
|
214
|
columns: [
|
183
|
215
|
{
|
184
|
216
|
title: "序号",
|
|
@@ -195,17 +227,17 @@ export default {
|
195
|
227
|
},
|
196
|
228
|
{
|
197
|
229
|
title: "横屏壁纸",
|
198
|
|
- key: "regionName",
|
|
230
|
+ slot: "hpath",
|
199
|
231
|
align: "center"
|
200
|
232
|
},
|
201
|
233
|
{
|
202
|
234
|
title: "壁纸名称",
|
203
|
|
- key: "createname",
|
|
235
|
+ key: "wname",
|
204
|
236
|
align: "center"
|
205
|
237
|
},
|
206
|
238
|
{
|
207
|
239
|
title: "操作人",
|
208
|
|
- key: "createtime",
|
|
240
|
+ key: "updatename",
|
209
|
241
|
align: "center"
|
210
|
242
|
},
|
211
|
243
|
{
|
|
@@ -224,10 +256,60 @@ export default {
|
224
|
256
|
};
|
225
|
257
|
},
|
226
|
258
|
created() {
|
227
|
|
- // this.searchList();
|
|
259
|
+ this.userInfo = JSON.parse(
|
|
260
|
+ localStorage.getItem("xh_control_userInfo")
|
|
261
|
+ ).content;
|
|
262
|
+ this.init();
|
|
263
|
+ this.searchList();
|
228
|
264
|
},
|
229
|
265
|
methods: {
|
230
|
|
- upLoad() {},
|
|
266
|
+ CheckboxDevice(dgroupid, val) {
|
|
267
|
+ this.deviceids[dgroupid] = val;
|
|
268
|
+ },
|
|
269
|
+ init() {
|
|
270
|
+ //获取分组下设备
|
|
271
|
+ this.showLoading = true;
|
|
272
|
+ device_list({}).then((res) => {
|
|
273
|
+ this.showLoading = false;
|
|
274
|
+ if (res.code === 0) {
|
|
275
|
+ this.device_list = res.obj;
|
|
276
|
+ } else {
|
|
277
|
+ this.$Message.error(res.msg);
|
|
278
|
+ }
|
|
279
|
+ });
|
|
280
|
+ },
|
|
281
|
+ upLoad(file) {
|
|
282
|
+ let str = file.name.split(".");
|
|
283
|
+ let suffix = str[str.length - 1];
|
|
284
|
+ suffix = suffix.toLowerCase();
|
|
285
|
+ if (suffix !== "png" && suffix !== "jpeg" && suffix !== "jpg") {
|
|
286
|
+ this.$Message.warning("请上传png、jpeg、jpg类型的文件");
|
|
287
|
+ return false;
|
|
288
|
+ }
|
|
289
|
+ let formData = new FormData();
|
|
290
|
+ formData.append("file", file);
|
|
291
|
+ formData.append("savefolder", "app");
|
|
292
|
+ formData.append("isrename", "1");
|
|
293
|
+ let Url = this.$api.baseImageUrl + "up/upfile";
|
|
294
|
+ this.showLoading = true;
|
|
295
|
+ axios
|
|
296
|
+ .post(Url, formData, {
|
|
297
|
+ timeout: 1000 * this.$api.axiosFileTimeout
|
|
298
|
+ })
|
|
299
|
+ .then((res) => {
|
|
300
|
+ this.showLoading = false;
|
|
301
|
+ if (res.data.code === 0) {
|
|
302
|
+ this.wallpaperInfo.hpath = res.data.obj;
|
|
303
|
+ this.$Message.success(res.data.msg);
|
|
304
|
+ } else {
|
|
305
|
+ this.$Message.error(res.data.msg);
|
|
306
|
+ }
|
|
307
|
+ })
|
|
308
|
+ .catch(() => {
|
|
309
|
+ this.showLoading = false;
|
|
310
|
+ this.$Message.error("图片上传失败");
|
|
311
|
+ });
|
|
312
|
+ },
|
231
|
313
|
// 搜索
|
232
|
314
|
searchList() {
|
233
|
315
|
this.searchForm.page = 1;
|
|
@@ -246,11 +328,14 @@ export default {
|
246
|
328
|
},
|
247
|
329
|
// 获取列表
|
248
|
330
|
getList() {
|
249
|
|
- region_list_qy({
|
|
331
|
+ this.showLoading = true;
|
|
332
|
+ wallpaper_list({
|
250
|
333
|
page: this.searchForm.page,
|
251
|
334
|
size: this.searchForm.size,
|
252
|
|
- regionName: this.searchForm.regionName
|
|
335
|
+ name: this.searchForm.name,
|
|
336
|
+ regionid: this.userInfo.regionid
|
253
|
337
|
}).then((data) => {
|
|
338
|
+ this.showLoading = false;
|
254
|
339
|
if (data.code === 0) {
|
255
|
340
|
this.searchForm.list = data.obj.data;
|
256
|
341
|
this.searchForm.total = data.obj.total;
|
|
@@ -261,57 +346,55 @@ export default {
|
261
|
346
|
},
|
262
|
347
|
// 新建
|
263
|
348
|
toAdd() {
|
264
|
|
- this.$refs.addForm.resetFields();
|
265
|
349
|
this.wallpaperInfo = {
|
266
|
350
|
show: true,
|
267
|
|
- // 验证码计时
|
268
|
|
- timer: null,
|
269
|
|
- name:"",
|
270
|
|
- img:""
|
|
351
|
+ id: null,
|
|
352
|
+ wname: "",
|
|
353
|
+ hpath: "",
|
|
354
|
+ wlevel: "",
|
|
355
|
+ objectid: "",
|
|
356
|
+ deviceids: []
|
271
|
357
|
};
|
272
|
|
-
|
273
|
358
|
},
|
274
|
359
|
// 保存新建
|
275
|
360
|
saveAddInfo() {
|
276
|
361
|
this.$refs.addForm.validate((valid) => {
|
277
|
362
|
if (valid) {
|
278
|
|
- this.wallpaperInfo.show = false;
|
279
|
|
- region_add({
|
280
|
|
- regionName: this.wallpaperInfo.regionName,
|
281
|
|
- regionCode: this.wallpaperInfo.regionCode,
|
282
|
|
- admin: {
|
283
|
|
- aname: this.wallpaperInfo.admin.aname,
|
284
|
|
- loginname: this.wallpaperInfo.admin.loginname,
|
285
|
|
- loginpwd: this.wallpaperInfo.admin.loginpwd,
|
286
|
|
- phone: this.wallpaperInfo.admin.phone,
|
287
|
|
- msgcode: this.wallpaperInfo.admin.msgcode,
|
288
|
|
- address: this.wallpaperInfo.admin.address,
|
289
|
|
- comm: this.wallpaperInfo.admin.comm
|
|
363
|
+ //获取选中设备
|
|
364
|
+ let deviceids = [];
|
|
365
|
+ for (let key in this.deviceids) {
|
|
366
|
+ for (let deviceid of this.deviceids[key]) {
|
|
367
|
+ deviceids.push(deviceid);
|
290
|
368
|
}
|
291
|
|
- }).then((data) => {
|
292
|
|
- if (data.code === 0) {
|
293
|
|
- this.searchList();
|
294
|
|
- this.$Message.success(data.msg);
|
295
|
|
- } else {
|
296
|
|
- this.$Message.error(data.msg);
|
297
|
|
- }
|
298
|
|
- });
|
299
|
|
- }
|
300
|
|
- });
|
301
|
|
- },
|
302
|
|
- // 保存编辑
|
303
|
|
- saveModifyInfo() {
|
304
|
|
- this.$refs.modifyForm.validate((valid) => {
|
305
|
|
- if (valid) {
|
306
|
|
- this.wallpaperInfo.show = false;
|
307
|
|
- region_edit({
|
308
|
|
- regionName: this.modifyRegion.regionName,
|
309
|
|
- regionCode: this.modifyRegion.regionCode,
|
310
|
|
- comm: this.modifyRegion.comm,
|
311
|
|
- regionid: this.modifyRegion.regionid,
|
312
|
|
- rversion: this.modifyRegion.rversion
|
313
|
|
- }).then((data) => {
|
|
369
|
+ }
|
|
370
|
+ if (deviceids.length === 0) {
|
|
371
|
+ this.$Message.error("请选择设备!");
|
|
372
|
+ return;
|
|
373
|
+ }
|
|
374
|
+ if (!this.wallpaperInfo.hpath) {
|
|
375
|
+ this.$Message.error("请上传横屏壁纸!");
|
|
376
|
+ return;
|
|
377
|
+ }
|
|
378
|
+ let api = this.wallpaperInfo.wallpaperid
|
|
379
|
+ ? wallpaper_edit
|
|
380
|
+ : wallpaper_add;
|
|
381
|
+ let form = {
|
|
382
|
+ wname: this.wallpaperInfo.wname,
|
|
383
|
+ hpath: this.wallpaperInfo.hpath,
|
|
384
|
+ wlevel: 2,
|
|
385
|
+ objectid: this.userInfo.regionid,
|
|
386
|
+ deviceids
|
|
387
|
+ };
|
|
388
|
+ if (this.wallpaperInfo.wallpaperid) {
|
|
389
|
+ //编辑
|
|
390
|
+ form.rversion = this.wallpaperInfo.rversion;
|
|
391
|
+ form.wallpaperid = this.wallpaperInfo.wallpaperid;
|
|
392
|
+ }
|
|
393
|
+ this.showLoading = true;
|
|
394
|
+ api(form).then((data) => {
|
|
395
|
+ this.showLoading = false;
|
314
|
396
|
if (data.code === 0) {
|
|
397
|
+ this.wallpaperInfo.show = false;
|
315
|
398
|
this.searchList();
|
316
|
399
|
this.$Message.success(data.msg);
|
317
|
400
|
} else {
|
|
@@ -323,13 +406,18 @@ export default {
|
323
|
406
|
},
|
324
|
407
|
// 查看
|
325
|
408
|
toView(row) {
|
326
|
|
- region_list_admin({
|
327
|
|
- regionid: row.regionid
|
|
409
|
+ this.showLoading = true;
|
|
410
|
+ wallpaper_detail({
|
|
411
|
+ wallpaperid: row.wallpaperid
|
328
|
412
|
}).then((data) => {
|
|
413
|
+ this.showLoading = false;
|
329
|
414
|
if (data.code === 0) {
|
330
|
|
- this.viewInfo.show = true;
|
331
|
|
- this.viewInfo.regionName = row.regionName;
|
332
|
|
- this.viewInfo.list = data.obj;
|
|
415
|
+ this.viewInfo = {
|
|
416
|
+ show: true,
|
|
417
|
+ wname: data.obj.wname,
|
|
418
|
+ hpath: data.obj.hpath,
|
|
419
|
+ devices: data.obj.devices
|
|
420
|
+ };
|
333
|
421
|
} else {
|
334
|
422
|
this.$Message.error(data.msg);
|
335
|
423
|
}
|
|
@@ -337,13 +425,48 @@ export default {
|
337
|
425
|
},
|
338
|
426
|
// 编辑
|
339
|
427
|
toEdit(row) {
|
340
|
|
- this.$refs.addForm.resetFields();
|
|
428
|
+ this.showLoading = true;
|
|
429
|
+ wallpaper_detail({
|
|
430
|
+ wallpaperid: row.wallpaperid
|
|
431
|
+ }).then((data) => {
|
|
432
|
+ this.showLoading = false;
|
|
433
|
+ if (data.code === 0) {
|
|
434
|
+ this.wallpaperInfo = {
|
|
435
|
+ show: true,
|
|
436
|
+ wallpaperid: data.obj.wallpaperid,
|
|
437
|
+ wname: data.obj.wname,
|
|
438
|
+ hpath: data.obj.hpath,
|
|
439
|
+ wlevel: data.obj.wlevel,
|
|
440
|
+ objectid: data.obj.objectid,
|
|
441
|
+ deviceids: data.obj.devices,
|
|
442
|
+ rversion: data.obj.rversion
|
|
443
|
+ };
|
|
444
|
+ this.$nextTick(() => {
|
|
445
|
+ //回显设备
|
|
446
|
+ let checkedArr = this.$refs.checkbevice;
|
|
447
|
+ if (checkedArr) {
|
|
448
|
+ for (let m = 0; m < checkedArr.length; m++) {
|
|
449
|
+ let dgroupid = checkedArr[m].module.dgroupid;
|
|
450
|
+ let marr = data.obj.devices;
|
|
451
|
+ for (let h = 0; h < marr.length; h++) {
|
|
452
|
+ let arr = marr[h].devices;
|
|
453
|
+ if (dgroupid == marr[h].dgroupid) {
|
|
454
|
+ checkedArr[m].getCheckedDevices(arr);
|
|
455
|
+ }
|
|
456
|
+ }
|
|
457
|
+ }
|
|
458
|
+ }
|
|
459
|
+ });
|
|
460
|
+ } else {
|
|
461
|
+ this.$Message.error(data.msg);
|
|
462
|
+ }
|
|
463
|
+ });
|
341
|
464
|
this.wallpaperInfo = {
|
342
|
465
|
show: true,
|
343
|
466
|
// 验证码计时
|
344
|
467
|
timer: null,
|
345
|
|
- name:"",
|
346
|
|
- img:""
|
|
468
|
+ name: "",
|
|
469
|
+ img: ""
|
347
|
470
|
};
|
348
|
471
|
},
|
349
|
472
|
// 删除
|
|
@@ -352,8 +475,8 @@ export default {
|
352
|
475
|
title: "提示",
|
353
|
476
|
content: "您确定删除选中数据吗?",
|
354
|
477
|
onOk: () => {
|
355
|
|
- region_delete({
|
356
|
|
- regionid: row.regionid,
|
|
478
|
+ wallpaper_delete({
|
|
479
|
+ wallpaperid: row.wallpaperid,
|
357
|
480
|
rversion: row.rversion
|
358
|
481
|
}).then((data) => {
|
359
|
482
|
if (data.code === 0) {
|
|
@@ -378,11 +501,63 @@ export default {
|
378
|
501
|
align-items: center;
|
379
|
502
|
margin: 16px 16px;
|
380
|
503
|
}
|
381
|
|
-.view_title {
|
382
|
|
- margin-bottom: 16px;
|
383
|
|
- font-size: 18px;
|
384
|
|
- font-weight: bold;
|
385
|
|
- text-align: center;
|
|
504
|
+.view {
|
|
505
|
+ .view_titles {
|
|
506
|
+ margin-bottom: 16px;
|
|
507
|
+ font-size: 18px;
|
|
508
|
+ font-weight: bold;
|
|
509
|
+ text-align: center;
|
|
510
|
+ }
|
|
511
|
+ .view_content {
|
|
512
|
+ display: flex;
|
|
513
|
+ .view_title {
|
|
514
|
+ width: 70px;
|
|
515
|
+ flex: none;
|
|
516
|
+ margin: 0 10px;
|
|
517
|
+ }
|
|
518
|
+ .hpath {
|
|
519
|
+ width: 180px;
|
|
520
|
+ height: 120px;
|
|
521
|
+ border-radius: 8px;
|
|
522
|
+ overflow: hidden;
|
|
523
|
+ border: 3px solid #333333;
|
|
524
|
+ background-color: #f0f6fc;
|
|
525
|
+ img {
|
|
526
|
+ width: 100%;
|
|
527
|
+ height: 100%;
|
|
528
|
+ object-fit: cover;
|
|
529
|
+ }
|
|
530
|
+ }
|
|
531
|
+ .view_devices {
|
|
532
|
+ .view_list {
|
|
533
|
+ margin-bottom: 20px;
|
|
534
|
+ }
|
|
535
|
+ .dgname {
|
|
536
|
+ line-height: 30px;
|
|
537
|
+ }
|
|
538
|
+ .devices {
|
|
539
|
+ display: flex;
|
|
540
|
+ flex-wrap: wrap;
|
|
541
|
+ span {
|
|
542
|
+ margin-right: 20px;
|
|
543
|
+ margin-bottom: 10px;
|
|
544
|
+ }
|
|
545
|
+ }
|
|
546
|
+ }
|
|
547
|
+ }
|
|
548
|
+}
|
|
549
|
+
|
|
550
|
+.table_wrap {
|
|
551
|
+ .hpath {
|
|
552
|
+ width: 100px;
|
|
553
|
+ height: 60px;
|
|
554
|
+ margin: 10px auto;
|
|
555
|
+ img {
|
|
556
|
+ width: 100%;
|
|
557
|
+ height: 100%;
|
|
558
|
+ object-fit: cover;
|
|
559
|
+ }
|
|
560
|
+ }
|
386
|
561
|
}
|
387
|
562
|
.up {
|
388
|
563
|
display: flex;
|
|
@@ -399,6 +574,18 @@ export default {
|
399
|
574
|
.icon {
|
400
|
575
|
color: #b8c2d9;
|
401
|
576
|
}
|
|
577
|
+ .hpath {
|
|
578
|
+ width: 180px;
|
|
579
|
+ height: 120px;
|
|
580
|
+ border-radius: 8px;
|
|
581
|
+ overflow: hidden;
|
|
582
|
+ padding: 3px;
|
|
583
|
+ img {
|
|
584
|
+ width: 100%;
|
|
585
|
+ height: 100%;
|
|
586
|
+ object-fit: cover;
|
|
587
|
+ }
|
|
588
|
+ }
|
402
|
589
|
}
|
403
|
590
|
span {
|
404
|
591
|
margin-left: 20px;
|