cloud-web-corejs 1.0.285 → 1.0.286
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/table/index.js +5 -2
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +1 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +20 -9
- 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 -0
package/package.json
CHANGED
|
@@ -97,7 +97,7 @@ async function initVxeTable(option) {
|
|
|
97
97
|
let searchColumns = null;
|
|
98
98
|
if (tableName) {
|
|
99
99
|
setTableState($grid, "tableName", tableName);
|
|
100
|
-
if (option.path) {
|
|
100
|
+
if (option.path && option.readQueryAllPage !== false) {
|
|
101
101
|
await getTableData(that, option.tableRef, "isQueryAllPage", (res1) => {
|
|
102
102
|
let result = res1.objx ? res1.objx.data : null;
|
|
103
103
|
if (result !== null && result !== undefined) {
|
|
@@ -1252,7 +1252,10 @@ function checkQueryTotal(that, tableRef, value) {
|
|
|
1252
1252
|
let pagerConfig = $grid.pagerConfig;
|
|
1253
1253
|
|
|
1254
1254
|
$grid.pagerConfig.layouts = pagerConfig.layouts || [];
|
|
1255
|
-
|
|
1255
|
+
let originOption = $grid.params && $grid.params.originOption;
|
|
1256
|
+
if (!originOption || originOption.readQueryAllPage !== false) {
|
|
1257
|
+
addTableData(that, tableRef, value);
|
|
1258
|
+
}
|
|
1256
1259
|
$grid.commitProxy("query");
|
|
1257
1260
|
}
|
|
1258
1261
|
|
package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue
CHANGED
|
@@ -212,6 +212,7 @@ export default {
|
|
|
212
212
|
},
|
|
213
213
|
created() {
|
|
214
214
|
if(this.widget.options.isNotQueryAllPage===undefined)this.widget.options.isNotQueryAllPage = false;
|
|
215
|
+
if(this.widget.options.isNotReadQueryAllPage===undefined)this.widget.options.isNotReadQueryAllPage = false;
|
|
215
216
|
}
|
|
216
217
|
};
|
|
217
218
|
</script>
|
|
@@ -62,6 +62,9 @@
|
|
|
62
62
|
<el-form-item label="是否查询总页数">
|
|
63
63
|
<el-switch v-model="isQueryAllPage"></el-switch>
|
|
64
64
|
</el-form-item>
|
|
65
|
+
<el-form-item label="是否读取总页数记忆">
|
|
66
|
+
<el-switch v-model="isReadQueryAllPage"></el-switch>
|
|
67
|
+
</el-form-item>
|
|
65
68
|
<el-form-item label="默认每页查询数" class="form-item-label-top">
|
|
66
69
|
<base-input-number
|
|
67
70
|
v-model="optionModel.gridPageSize"
|
|
@@ -741,6 +744,14 @@ export default {
|
|
|
741
744
|
this.optionModel.isNotQueryAllPage = !val;
|
|
742
745
|
},
|
|
743
746
|
},
|
|
747
|
+
isReadQueryAllPage: {
|
|
748
|
+
get() {
|
|
749
|
+
return !this.optionModel.isNotReadQueryAllPage;
|
|
750
|
+
},
|
|
751
|
+
set(val) {
|
|
752
|
+
this.optionModel.isNotReadQueryAllPage = !val;
|
|
753
|
+
},
|
|
754
|
+
},
|
|
744
755
|
isShowQueryButton: {
|
|
745
756
|
get() {
|
|
746
757
|
return !this.optionModel.isNotShowQueryButton;
|
|
@@ -1107,15 +1118,15 @@ export default {
|
|
|
1107
1118
|
</style>
|
|
1108
1119
|
|
|
1109
1120
|
<style scoped>
|
|
1110
|
-
.form-section-label {
|
|
1111
|
-
margin: 16px 0 8px;
|
|
1112
|
-
padding-left: 8px;
|
|
1113
|
-
color: rgba(0, 0, 0, 0.65);
|
|
1114
|
-
font-size: 13px;
|
|
1115
|
-
font-weight: 600;
|
|
1116
|
-
line-height: 1.3;
|
|
1117
|
-
background: rgba(0, 0, 0, 0.04);
|
|
1118
|
-
padding: 4px 0 4px 8px;
|
|
1121
|
+
.form-section-label {
|
|
1122
|
+
margin: 16px 0 8px;
|
|
1123
|
+
padding-left: 8px;
|
|
1124
|
+
color: rgba(0, 0, 0, 0.65);
|
|
1125
|
+
font-size: 13px;
|
|
1126
|
+
font-weight: 600;
|
|
1127
|
+
line-height: 1.3;
|
|
1128
|
+
background: rgba(0, 0, 0, 0.04);
|
|
1129
|
+
padding: 4px 0 4px 8px;
|
|
1119
1130
|
}
|
|
1120
1131
|
|
|
1121
1132
|
.label-tip-icon {
|
|
@@ -2686,6 +2686,7 @@ modules = {
|
|
|
2686
2686
|
columns: columns,
|
|
2687
2687
|
searchColumns: searchColumns,
|
|
2688
2688
|
isQueryAllPage,
|
|
2689
|
+
readQueryAllPage: !this.widget.options.isNotReadQueryAllPage,
|
|
2689
2690
|
exportItemConfig,
|
|
2690
2691
|
vform: true,
|
|
2691
2692
|
...(this.getDynamicColumnSourceType() !== "none"
|