cloud-web-corejs 1.0.54-dev.571 → 1.0.54-dev.573
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 +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +3 -0
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +1 -0
- package/src/components/xform/form-render/container-item/data-table-mixin.js +1 -1
- package/src/components/xform/form-render/indexMixin.js +1 -1
- package/src/resources/js/base/common.js +2 -2
- package/src/views/user/form/vform/render.vue +8 -0
- package/src/views/user/form/view/list.vue +9 -0
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
formData[key] = toDo(value);
|
|
56
56
|
} else {
|
|
57
57
|
if (key == 'id' && value.toString().indexOf('row_') == 0) {
|
|
58
|
-
formData[key] =
|
|
58
|
+
formData[key] = null;
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
}
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
Object.assign(formData, commonDataUtil.handleForm2(value, rKey));
|
|
81
81
|
} else {
|
|
82
82
|
if (key == 'id' && value.toString().indexOf('row_') == 0) {
|
|
83
|
-
value =
|
|
83
|
+
value = null;
|
|
84
84
|
} else {
|
|
85
85
|
formData[rKey] = value;
|
|
86
86
|
}
|
|
@@ -59,6 +59,14 @@ export default {
|
|
|
59
59
|
this.getReportTemplate();
|
|
60
60
|
},
|
|
61
61
|
methods: {
|
|
62
|
+
dataTableSearch() {
|
|
63
|
+
let gridRef = this.$refs.vFormRef.getGridWidgetRef()
|
|
64
|
+
if(!gridRef)return
|
|
65
|
+
let options = gridRef.widget.options;
|
|
66
|
+
if(options.searchOnSwitchTab && options.isQueryTable){
|
|
67
|
+
gridRef.searchEvent();
|
|
68
|
+
}
|
|
69
|
+
},
|
|
62
70
|
initReportCode() {
|
|
63
71
|
let code = this.$attrs.formCode;
|
|
64
72
|
if (!code) {
|
|
@@ -159,6 +159,7 @@ export default {
|
|
|
159
159
|
let num = Number(val.substring("otherTab".length));
|
|
160
160
|
this.otherTabList[num].showContent = true;
|
|
161
161
|
}
|
|
162
|
+
this.handleTabChange(val)
|
|
162
163
|
},
|
|
163
164
|
},
|
|
164
165
|
created() {
|
|
@@ -171,6 +172,14 @@ export default {
|
|
|
171
172
|
};
|
|
172
173
|
},
|
|
173
174
|
methods: {
|
|
175
|
+
handleTabChange(tabName){
|
|
176
|
+
if(tabName == "second"){
|
|
177
|
+
this.$refs.list.dataTableSearch();
|
|
178
|
+
}else if(tabName.startsWith("otherTab")){
|
|
179
|
+
let refName = tabName.replace("otherTab","list")
|
|
180
|
+
if(this.$refs[refName]?.length)this.$refs[refName][0].dataTableSearch();
|
|
181
|
+
}
|
|
182
|
+
},
|
|
174
183
|
initParam() {
|
|
175
184
|
let path = this.$route.path;
|
|
176
185
|
let param = path.split("/").reverse();
|