@zscreate/zhxy-app-component 1.0.354 → 1.0.356
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.
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
<view v-else-if="item.type === 'grid'" v-show="item.options.canView" class="form_layout">
|
|
156
156
|
<view class="form-item-container" v-for="(colItem, colIndex) in item.columns" :key="colIndex">
|
|
157
157
|
<view v-for="(col, itemIndex) in colItem.list" :key="itemIndex" v-show="col.options.canView">
|
|
158
|
-
<evan-form-item :isCorrect="isCorrect" :labelPosition="labelPosition" :prop="col.model"
|
|
158
|
+
<evan-form-item @upDateWidget="data => upDateGridWidget(data)" :isCorrect="isCorrect" :labelPosition="labelPosition" :prop="col.model"
|
|
159
159
|
:ref="String(Math.random()).split('.')[1]" :models.sync="models" :rules="rules"
|
|
160
160
|
:widget.sync="col" :isDraft="isDraft" :formId="formId" :linkage="linkage" :isApply="isApply" :applyId="applyId"
|
|
161
161
|
@changedate="changedate" :zbrqList="zbrqList" :thrqList="thrqList" :zjfmFormDesign="zjfmFormDesign" :thrqDataModalShow="thrqDataModalShow"
|
|
@@ -720,8 +720,20 @@ export default {
|
|
|
720
720
|
},
|
|
721
721
|
//更新widget 目前应用于子表单关联子组件隐藏 禁用
|
|
722
722
|
upDateTableWidget(widget, key, tableKey, tableIndex) {
|
|
723
|
+
debugger
|
|
723
724
|
this.tableData[tableKey][tableIndex].columns.splice(key, 1, widget)
|
|
724
725
|
},
|
|
726
|
+
upDateGridWidget(widget) {
|
|
727
|
+
this.data.list.forEach((item, index) => {
|
|
728
|
+
if(item.model == widget.parentModel) {
|
|
729
|
+
let obj = {}
|
|
730
|
+
obj = {...item}
|
|
731
|
+
let idx = obj.columns.findIndex(val => val.list[0].model == widget.model)
|
|
732
|
+
obj.columns[idx].list[0] = widget
|
|
733
|
+
this.$set(this.dataObj.list, index, obj)
|
|
734
|
+
}
|
|
735
|
+
})
|
|
736
|
+
},
|
|
725
737
|
// 选择操作类型
|
|
726
738
|
selectConfirm(e, item) {
|
|
727
739
|
const { model, options, type } = item
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view>
|
|
3
|
-
<u-upload ref="uUpload" :
|
|
3
|
+
<u-upload ref="uUpload" :file-list="fileList" :action="action" :deletable="!disabled"
|
|
4
4
|
@afterRead="afterRead"
|
|
5
5
|
@delete="onRemove"
|
|
6
6
|
:header="header"
|
|
@@ -60,7 +60,6 @@ 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
|
|
64
63
|
};
|
|
65
64
|
},
|
|
66
65
|
computed: {
|
|
@@ -285,7 +284,6 @@ export default {
|
|
|
285
284
|
this.$emit('filePost', imgObj)
|
|
286
285
|
},
|
|
287
286
|
async onRemove(index, lists, name) {
|
|
288
|
-
this.refreshKey++
|
|
289
287
|
if (typeof (index) === 'object') index = index.index
|
|
290
288
|
this.emitList.splice(index, 1);
|
|
291
289
|
this.fileList.splice(index, 1);
|