|
@@ -15,7 +15,9 @@
|
15
|
15
|
</p>
|
16
|
16
|
<el-row :gutter="20" type="flex" justify="center">
|
17
|
17
|
<el-col :span="6" style="text-align: center">
|
18
|
|
- <div>
|
|
18
|
+ <div
|
|
19
|
+ @click="imgClick('https://images.shengws.com/fangji.jpg')"
|
|
20
|
+ >
|
19
|
21
|
<el-tooltip
|
20
|
22
|
class="item"
|
21
|
23
|
effect="dark"
|
|
@@ -23,11 +25,17 @@
|
23
|
25
|
content="点击查看大图"
|
24
|
26
|
placement="top-start"
|
25
|
27
|
>
|
|
28
|
+ <!--<el-image-->
|
|
29
|
+ <!--style="width: 200px; height: 200px"-->
|
|
30
|
+ <!--:src="require('@/assets/home/1.jpg')"-->
|
|
31
|
+ <!--:preview-src-list="imgs_one"-->
|
|
32
|
+ <!--></el-image>-->
|
|
33
|
+
|
26
|
34
|
<el-image
|
27
|
35
|
style="width: 200px; height: 200px"
|
28
|
36
|
:src="require('@/assets/home/1.jpg')"
|
29
|
|
- :preview-src-list="imgs_one"
|
30
|
37
|
></el-image>
|
|
38
|
+
|
31
|
39
|
</el-tooltip>
|
32
|
40
|
</div>
|
33
|
41
|
<el-radio v-model="radio" label="1" @change="change"
|
|
@@ -38,7 +46,10 @@
|
38
|
46
|
:span="6"
|
39
|
47
|
style="margin-left: 100px;margin-right: 100px;text-align: center"
|
40
|
48
|
>
|
41
|
|
- <div>
|
|
49
|
+ <div
|
|
50
|
+ @click="imgClick('https://images.shengws.com/template_two.jpg')"
|
|
51
|
+
|
|
52
|
+ >
|
42
|
53
|
<el-tooltip
|
43
|
54
|
class="item"
|
44
|
55
|
effect="dark"
|
|
@@ -46,10 +57,15 @@
|
46
|
57
|
placement="top-start"
|
47
|
58
|
:hide-after="2000"
|
48
|
59
|
>
|
|
60
|
+ <!--<el-image-->
|
|
61
|
+ <!--style="width: 200px; height: 200px"-->
|
|
62
|
+ <!--:src="require('@/assets/home/2.jpg')"-->
|
|
63
|
+ <!--:preview-src-list="imgs_two"-->
|
|
64
|
+ <!--></el-image>-->
|
|
65
|
+
|
49
|
66
|
<el-image
|
50
|
67
|
style="width: 200px; height: 200px"
|
51
|
68
|
:src="require('@/assets/home/2.jpg')"
|
52
|
|
- :preview-src-list="imgs_two"
|
53
|
69
|
></el-image>
|
54
|
70
|
</el-tooltip>
|
55
|
71
|
</div>
|
|
@@ -58,7 +74,7 @@
|
58
|
74
|
>
|
59
|
75
|
</el-col>
|
60
|
76
|
<el-col :span="6" style="text-align: center">
|
61
|
|
- <div class="demo-image__preview">
|
|
77
|
+ <div class="demo-image__preview" @click="imgClick('https://images.shengws.com/template_five.jpg')">
|
62
|
78
|
<el-tooltip
|
63
|
79
|
class="item"
|
64
|
80
|
effect="dark"
|
|
@@ -66,11 +82,17 @@
|
66
|
82
|
placement="top-start"
|
67
|
83
|
:hide-after="2000"
|
68
|
84
|
>
|
|
85
|
+ <!--<el-image-->
|
|
86
|
+ <!--style="width: 200px; height: 200px"-->
|
|
87
|
+ <!--:src="require('@/assets/home/5.jpg')"-->
|
|
88
|
+ <!--:preview-src-list="imgs_five"-->
|
|
89
|
+ <!--></el-image>-->
|
|
90
|
+
|
69
|
91
|
<el-image
|
70
|
92
|
style="width: 200px; height: 200px"
|
71
|
93
|
:src="require('@/assets/home/5.jpg')"
|
72
|
|
- :preview-src-list="imgs_five"
|
73
|
94
|
></el-image>
|
|
95
|
+
|
74
|
96
|
</el-tooltip>
|
75
|
97
|
</div>
|
76
|
98
|
<el-radio v-model="radio" label="5" @change="change"
|
|
@@ -78,7 +100,7 @@
|
78
|
100
|
>
|
79
|
101
|
</el-col>
|
80
|
102
|
<el-col :span="6" style="text-align: center">
|
81
|
|
- <div class="demo-image__preview">
|
|
103
|
+ <div class="demo-image__preview" @click="imgClick('https://images.shengws.com/serven.png')">
|
82
|
104
|
<el-tooltip
|
83
|
105
|
class="item"
|
84
|
106
|
effect="dark"
|
|
@@ -86,10 +108,15 @@
|
86
|
108
|
placement="top-start"
|
87
|
109
|
:hide-after="2000"
|
88
|
110
|
>
|
|
111
|
+ <!--<el-image-->
|
|
112
|
+ <!--style="width: 200px; height: 200px"-->
|
|
113
|
+ <!--:src="require('@/assets/home/serven.png')"-->
|
|
114
|
+ <!--:preview-src-list="imgs_seven"-->
|
|
115
|
+ <!--></el-image>-->
|
|
116
|
+
|
89
|
117
|
<el-image
|
90
|
118
|
style="width: 200px; height: 200px"
|
91
|
119
|
:src="require('@/assets/home/serven.png')"
|
92
|
|
- :preview-src-list="imgs_seven"
|
93
|
120
|
></el-image>
|
94
|
121
|
</el-tooltip>
|
95
|
122
|
</div>
|
|
@@ -100,7 +127,7 @@
|
100
|
127
|
</el-row>
|
101
|
128
|
<el-row :gutter="20" type="flex">
|
102
|
129
|
<el-col :span="6" style="text-align: center">
|
103
|
|
- <div class="demo-image__preview">
|
|
130
|
+ <div class="demo-image__preview" @click="imgClick('https://images.shengws.com/eight.png')">
|
104
|
131
|
<el-tooltip
|
105
|
132
|
class="item"
|
106
|
133
|
effect="dark"
|
|
@@ -108,10 +135,15 @@
|
108
|
135
|
placement="top-start"
|
109
|
136
|
:hide-after="2000"
|
110
|
137
|
>
|
|
138
|
+ <!--<el-image-->
|
|
139
|
+ <!--style="width: 200px; height: 200px;margin-left:-60px"-->
|
|
140
|
+ <!--:src="require('@/assets/home/eight.png')"-->
|
|
141
|
+ <!--:preview-src-list="imgs_six"-->
|
|
142
|
+ <!--></el-image>-->
|
|
143
|
+
|
111
|
144
|
<el-image
|
112
|
145
|
style="width: 200px; height: 200px;margin-left:-60px"
|
113
|
146
|
:src="require('@/assets/home/eight.png')"
|
114
|
|
- :preview-src-list="imgs_six"
|
115
|
147
|
></el-image>
|
116
|
148
|
</el-tooltip>
|
117
|
149
|
</div>
|
|
@@ -124,7 +156,7 @@
|
124
|
156
|
>
|
125
|
157
|
</el-col>
|
126
|
158
|
<el-col :span="6" style="text-align: center">
|
127
|
|
- <div class="demo-image__preview">
|
|
159
|
+ <div class="demo-image__preview" @click="imgClick('https://images.shengws.com/template_six.png')">
|
128
|
160
|
<el-tooltip
|
129
|
161
|
class="item"
|
130
|
162
|
effect="dark"
|
|
@@ -132,10 +164,15 @@
|
132
|
164
|
placement="top-start"
|
133
|
165
|
:hide-after="2000"
|
134
|
166
|
>
|
|
167
|
+ <!--<el-image-->
|
|
168
|
+ <!--style="width: 200px; height: 200px;margin-left:30px"-->
|
|
169
|
+ <!--:src="require('@/assets/home/template_six.png')"-->
|
|
170
|
+ <!--:preview-src-list="imgs_eight"-->
|
|
171
|
+ <!--></el-image>-->
|
|
172
|
+
|
135
|
173
|
<el-image
|
136
|
174
|
style="width: 200px; height: 200px;margin-left:30px"
|
137
|
175
|
:src="require('@/assets/home/template_six.png')"
|
138
|
|
- :preview-src-list="imgs_eight"
|
139
|
176
|
></el-image>
|
140
|
177
|
</el-tooltip>
|
141
|
178
|
</div>
|
|
@@ -166,20 +203,30 @@
|
166
|
203
|
<!--</el-col>-->
|
167
|
204
|
</el-row>
|
168
|
205
|
</div>
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+ <el-image-viewer
|
|
209
|
+ v-if="showViewer"
|
|
210
|
+ :on-close="closeViewer"
|
|
211
|
+ :url-list="imgs"
|
|
212
|
+ ></el-image-viewer>
|
|
213
|
+
|
169
|
214
|
</div>
|
170
|
215
|
</div>
|
171
|
216
|
</template>
|
172
|
217
|
|
173
|
218
|
<script>
|
174
|
219
|
import BreadCrumb from "@/xt_pages/components/bread-crumb";
|
|
220
|
+import ElImageViewer from 'element-ui/packages/image/src/image-viewer'
|
175
|
221
|
import { getPrintTemplate, postPrintTemplate } from "@/api/data";
|
176
|
222
|
import store from "@/store";
|
177
|
223
|
|
178
|
224
|
export default {
|
179
|
225
|
name: "printTemplate",
|
180
|
|
- components: { BreadCrumb },
|
|
226
|
+ components: { ElImageViewer, BreadCrumb },
|
181
|
227
|
data() {
|
182
|
228
|
return {
|
|
229
|
+ showViewer:false,
|
183
|
230
|
crumbs: [
|
184
|
231
|
{ path: false, name: "管理中心" },
|
185
|
232
|
{ path: "data/print", name: "打印模版" }
|
|
@@ -188,14 +235,16 @@ export default {
|
188
|
235
|
imgUrl_Two: require("@/assets/home/2.jpg"),
|
189
|
236
|
imgUrl_Five: require("@/assets/home/5.jpg"),
|
190
|
237
|
|
|
238
|
+ imgs:[],
|
|
239
|
+
|
191
|
240
|
imgs_one: [
|
192
|
241
|
// 'https://images.shengws.com/template_one.jpg'
|
193
|
242
|
"https://images.shengws.com/fangji.jpg"
|
194
|
243
|
],
|
195
|
244
|
imgs_two: ["https://images.shengws.com/template_two.jpg"],
|
196
|
245
|
imgs_five: ["https://images.shengws.com/template_five.jpg"],
|
197
|
|
- imgs_seven: ["http://images.shengws.com/serven.png"],
|
198
|
|
- imgs_six: ["http://images.shengws.com/eight.png"],
|
|
246
|
+ imgs_seven: ["https://images.shengws.com/serven.png"],
|
|
247
|
+ imgs_six: ["https://images.shengws.com/eight.png"],
|
199
|
248
|
imgs_eight: ["https://images.shengws.com/template_six.png"],
|
200
|
249
|
imgs_ten: ["https://kuyi.shengws.com/template_ten.jpg"],
|
201
|
250
|
|
|
@@ -206,6 +255,15 @@ export default {
|
206
|
255
|
};
|
207
|
256
|
},
|
208
|
257
|
methods: {
|
|
258
|
+ imgClick(val){
|
|
259
|
+ this.imgs = []
|
|
260
|
+ this.imgs.push(val)
|
|
261
|
+ this.showViewer = true
|
|
262
|
+
|
|
263
|
+ },
|
|
264
|
+ closeViewer() {
|
|
265
|
+ this.showViewer = false
|
|
266
|
+ },
|
209
|
267
|
change: function(val) {
|
210
|
268
|
console.log("val是什么", val);
|
211
|
269
|
this.$confirm(
|
|
@@ -227,7 +285,7 @@ export default {
|
227
|
285
|
// 同步
|
228
|
286
|
// console.log(response.data.data.fileds)
|
229
|
287
|
this.loading = false;
|
230
|
|
- store.dispatch("updateAllFiledConfigList", response.data.data.fileds).then(() => {});
|
|
288
|
+ // store.dispatch("updateAllFiledConfigList", response.data.data.fileds).then(() => {});
|
231
|
289
|
this.$message({
|
232
|
290
|
type: "success",
|
233
|
291
|
message: "切换成功"
|