cloud-web-corejs 1.0.54-dev.332 → 1.0.54-dev.334
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/designer.js +5 -3
- package/src/components/xform/form-designer/form-widget/container-widget/containerMixin.js +3 -3
- package/src/components/xform/form-designer/indexMixin.js +825 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +9 -1
- package/src/components/xform/form-render/container-item/data-table-mixin.js +12 -0
- package/src/utils/request.js +324 -1
@@ -32,7 +32,7 @@
|
|
32
32
|
<el-switch v-model="optionModel.hideGridCheckBox"></el-switch>
|
33
33
|
</el-form-item>
|
34
34
|
<el-form-item label="是否查询总页数">
|
35
|
-
<el-switch v-model="
|
35
|
+
<el-switch v-model="isQueryAllPage"></el-switch>
|
36
36
|
</el-form-item>
|
37
37
|
<el-form-item label="默认每页查询数">
|
38
38
|
<base-input-number v-model="optionModel.gridPageSize" size="mini" :min="1" :max="10000"/>
|
@@ -731,6 +731,14 @@ export default {
|
|
731
731
|
},
|
732
732
|
reportTemplate: function () {
|
733
733
|
return this.getReportTemplate();
|
734
|
+
},
|
735
|
+
isQueryAllPage: {
|
736
|
+
get(){
|
737
|
+
return !this.optionModel.isNotQueryAllPage;
|
738
|
+
},
|
739
|
+
set(val){
|
740
|
+
this.optionModel.isNotQueryAllPage = !val;
|
741
|
+
}
|
734
742
|
}
|
735
743
|
},
|
736
744
|
created: function () {
|
@@ -873,6 +873,18 @@ modules = {
|
|
873
873
|
otherConfig.checkBoxRequired = false;
|
874
874
|
}
|
875
875
|
|
876
|
+
let gridPageSize = this.widget.options.gridPageSize;
|
877
|
+
let gridPageSizeList = this.widget.options.gridPageSizeList || [];
|
878
|
+
if(!gridPageSizeList || !gridPageSizeList.length){
|
879
|
+
pagerConfig.pageSizes = [50,100,200,500]
|
880
|
+
if(!gridPageSize)gridPageSize = 100
|
881
|
+
pagerConfig.pageSize = gridPageSize
|
882
|
+
}else{
|
883
|
+
pagerConfig.pageSizes = gridPageSizeList.filter(item=>item.value).map(item=>item.value);
|
884
|
+
if(!gridPageSize)gridPageSize = pagerConfig.pageSizes[0]
|
885
|
+
pagerConfig.pageSize = gridPageSize
|
886
|
+
}
|
887
|
+
|
876
888
|
//标题颜色
|
877
889
|
let headerCellStyle = null;
|
878
890
|
let tableColumns = this.widget.options.tableColumns;
|