vue2-client 1.8.430 → 1.8.431
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
ref="XReportDesign"
|
|
21
21
|
id="printReady"
|
|
22
22
|
:server-name="serverName"
|
|
23
|
+
:env="env"
|
|
23
24
|
:show-title="showTitle"
|
|
24
25
|
:no-padding="noPadding"
|
|
25
26
|
:no-top-border="noTopBorder"
|
|
@@ -138,6 +139,11 @@ export default {
|
|
|
138
139
|
type: String,
|
|
139
140
|
default: process.env.VUE_APP_SYSTEM_NAME
|
|
140
141
|
},
|
|
142
|
+
// 环境
|
|
143
|
+
env: {
|
|
144
|
+
type: String,
|
|
145
|
+
default: 'prod'
|
|
146
|
+
},
|
|
141
147
|
// 只做展示
|
|
142
148
|
displayOnly: {
|
|
143
149
|
type: Boolean,
|
|
@@ -226,7 +232,7 @@ export default {
|
|
|
226
232
|
getConfigByName(this.configName, undefined, res => {
|
|
227
233
|
this.config = res
|
|
228
234
|
this.configInit()
|
|
229
|
-
})
|
|
235
|
+
}, this.env === 'dev')
|
|
230
236
|
}
|
|
231
237
|
},
|
|
232
238
|
// 如果本地配置更改了,重新初始化
|
|
@@ -756,7 +762,7 @@ export default {
|
|
|
756
762
|
getConfigByName(configName, this.serverName, res => {
|
|
757
763
|
this.configFromWeb[configName] = res
|
|
758
764
|
count++
|
|
759
|
-
})
|
|
765
|
+
}, this.env === 'dev')
|
|
760
766
|
})
|
|
761
767
|
|
|
762
768
|
// 使用定时器循环判断锁状态,用于多个插槽,要等待统一获取完成之后,再进行下一步初始化
|
|
@@ -893,7 +899,7 @@ export default {
|
|
|
893
899
|
}
|
|
894
900
|
this.configInit()
|
|
895
901
|
}
|
|
896
|
-
})
|
|
902
|
+
}, this.env === 'dev')
|
|
897
903
|
}
|
|
898
904
|
},
|
|
899
905
|
mounted () {
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
:show-img-in-cell="showImgInCell"
|
|
56
56
|
:img-prefix="imgPrefix"
|
|
57
57
|
:server-name="serverName"
|
|
58
|
+
:env="env"
|
|
58
59
|
:use-oss-for-img="useOssForImg"
|
|
59
60
|
:key="rowIndex"
|
|
60
61
|
:columns="row"
|
|
@@ -74,6 +75,7 @@
|
|
|
74
75
|
:show-img-in-cell="showImgInCell"
|
|
75
76
|
:img-prefix="imgPrefix"
|
|
76
77
|
:server-name="serverName"
|
|
78
|
+
:env="env"
|
|
77
79
|
:use-oss-for-img="useOssForImg"
|
|
78
80
|
:config="activatedConfig"
|
|
79
81
|
:key="rowIndex + listIndex"
|
|
@@ -90,6 +92,7 @@
|
|
|
90
92
|
:show-img-in-cell="showImgInCell"
|
|
91
93
|
:img-prefix="imgPrefix"
|
|
92
94
|
:server-name="serverName"
|
|
95
|
+
:env="env"
|
|
93
96
|
:use-oss-for-img="useOssForImg"
|
|
94
97
|
:config="activatedConfig"
|
|
95
98
|
:key="rowIndex + listIndex"
|
|
@@ -111,6 +114,7 @@
|
|
|
111
114
|
:show-img-in-cell="showImgInCell"
|
|
112
115
|
:img-prefix="imgPrefix"
|
|
113
116
|
:server-name="serverName"
|
|
117
|
+
:env="env"
|
|
114
118
|
:use-oss-for-img="useOssForImg"
|
|
115
119
|
:config="activatedConfig"
|
|
116
120
|
:columns="row[0].definition"
|
|
@@ -129,6 +133,7 @@
|
|
|
129
133
|
:show-img-in-cell="showImgInCell"
|
|
130
134
|
:img-prefix="imgPrefix"
|
|
131
135
|
:server-name="serverName"
|
|
136
|
+
:env="env"
|
|
132
137
|
:use-oss-for-img="useOssForImg"
|
|
133
138
|
:config="activatedConfig"
|
|
134
139
|
:columns="row[0].definition"
|
|
@@ -145,6 +150,7 @@
|
|
|
145
150
|
:show-img-in-cell="showImgInCell"
|
|
146
151
|
:img-prefix="imgPrefix"
|
|
147
152
|
:server-name="serverName"
|
|
153
|
+
:env="env"
|
|
148
154
|
:use-oss-for-img="useOssForImg"
|
|
149
155
|
:config="activatedConfig"
|
|
150
156
|
:key="rowIndex"
|
|
@@ -165,6 +171,7 @@
|
|
|
165
171
|
:show-img-in-cell="showImgInCell"
|
|
166
172
|
:img-prefix="imgPrefix"
|
|
167
173
|
:server-name="serverName"
|
|
174
|
+
:env="env"
|
|
168
175
|
:use-oss-for-img="useOssForImg"
|
|
169
176
|
:key="rowIndex"
|
|
170
177
|
:columns="row"
|
|
@@ -180,6 +187,7 @@
|
|
|
180
187
|
:show-img-in-cell="showImgInCell"
|
|
181
188
|
:img-prefix="imgPrefix"
|
|
182
189
|
:server-name="serverName"
|
|
190
|
+
:env="env"
|
|
183
191
|
:use-oss-for-img="useOssForImg"
|
|
184
192
|
:config="activatedConfig"
|
|
185
193
|
:key="rowIndex"
|
|
@@ -234,6 +242,11 @@ export default {
|
|
|
234
242
|
type: String,
|
|
235
243
|
default: 'af-system'
|
|
236
244
|
},
|
|
245
|
+
// 环境
|
|
246
|
+
env: {
|
|
247
|
+
type: String,
|
|
248
|
+
default: 'prod'
|
|
249
|
+
},
|
|
237
250
|
// 是否只能展示不可编辑
|
|
238
251
|
displayOnly: {
|
|
239
252
|
type: Boolean,
|
|
@@ -361,7 +374,7 @@ export default {
|
|
|
361
374
|
this.config.data = res.data
|
|
362
375
|
this.activatedConfig = res
|
|
363
376
|
this.render = true
|
|
364
|
-
})
|
|
377
|
+
}, this.env === 'dev')
|
|
365
378
|
} else {
|
|
366
379
|
this.activatedConfig = this.config
|
|
367
380
|
this.render = true
|
|
@@ -422,6 +422,11 @@ export default {
|
|
|
422
422
|
type: String,
|
|
423
423
|
default: 'af-system'
|
|
424
424
|
},
|
|
425
|
+
// 环境
|
|
426
|
+
env: {
|
|
427
|
+
type: String,
|
|
428
|
+
default: 'prod'
|
|
429
|
+
},
|
|
425
430
|
// 原始配置
|
|
426
431
|
configData: {
|
|
427
432
|
type: Object,
|
|
@@ -514,7 +519,7 @@ export default {
|
|
|
514
519
|
images: param.images
|
|
515
520
|
}
|
|
516
521
|
})
|
|
517
|
-
})
|
|
522
|
+
}, this.env === 'dev')
|
|
518
523
|
}
|
|
519
524
|
},
|
|
520
525
|
getEventHandlers (cell) {
|