@zscreate/zhxy-app-component 1.0.349 → 1.0.351
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.
|
@@ -2596,6 +2596,8 @@ export default {
|
|
|
2596
2596
|
this.updateDataModel();
|
|
2597
2597
|
if(!(this.widget.model == 'thr' && this.zjfmFormDesign)) this.showFormData();
|
|
2598
2598
|
}
|
|
2599
|
+
|
|
2600
|
+
if(['left', 'right'].includes(this.widget.model) && this.widget.type === 'number')this.updateDataModel();
|
|
2599
2601
|
}
|
|
2600
2602
|
},
|
|
2601
2603
|
dataModel: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view>
|
|
3
|
-
<u-upload ref="uUpload" :file-list="fileList" :action="action" :deletable="!disabled"
|
|
3
|
+
<u-upload ref="uUpload" :key="refreshKey" :file-list="fileList" :action="action" :deletable="!disabled"
|
|
4
4
|
@afterRead="afterRead"
|
|
5
5
|
@delete="onRemove"
|
|
6
6
|
:header="header"
|
|
@@ -60,6 +60,7 @@ export default {
|
|
|
60
60
|
header: {
|
|
61
61
|
'X-Access-Token': uni.getStorageSync('token') || this.$store.state.token || this.$store.getters.token
|
|
62
62
|
},
|
|
63
|
+
refreshKey: 1
|
|
63
64
|
};
|
|
64
65
|
},
|
|
65
66
|
computed: {
|
|
@@ -284,6 +285,7 @@ export default {
|
|
|
284
285
|
this.$emit('filePost', imgObj)
|
|
285
286
|
},
|
|
286
287
|
async onRemove(index, lists, name) {
|
|
288
|
+
this.refreshKey++
|
|
287
289
|
if (typeof (index) === 'object') index = index.index
|
|
288
290
|
this.emitList.splice(index, 1);
|
|
289
291
|
this.fileList.splice(index, 1);
|