cloud-web-corejs 1.1.0-dev.26 → 1.1.0-dev.28
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/Tinymce/index.vue +3 -0
- package/src/components/Tinymce/mce-chrome.scss +150 -0
- package/src/components/VabUpload/index.vue +1 -1
- package/src/components/VabUpload/style.scss +282 -0
- package/src/components/baseArea/index.vue +2 -2
- package/src/components/code-editor/ace-chrome.scss +17 -0
- package/src/components/code-editor/index.vue +3 -0
- package/src/components/excelImport/index.vue +1 -1
- package/src/components/fileLibrary/style.scss +579 -0
- package/src/components/hiprint/style.scss +188 -0
- package/src/components/jsonImport/index.vue +1 -1
- package/src/components/langImport/index.vue +1 -1
- package/src/components/mobile/buttonGroup/index.vue +1 -1
- package/src/components/obsUpload/index.vue +1 -1
- package/src/components/onlineTalk/index.vue +2 -2
- package/src/components/table/index.js +3 -0
- package/src/components/table/style.scss +1399 -0
- package/src/components/wf/style.scss +265 -0
- package/src/components/xform/docs/2026-08 xform H5 P0 /345/256/236/347/216/260/350/247/204/346/240/274.md" +1 -1
- package/src/components/xform/docs/2026-08 xform /347/247/273/345/212/250/347/253/257/345/270/203/345/261/200/345/257/271/351/275/220 bill_setting /346/226/271/346/241/210.md" +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/a-text-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/area-select-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/autocomplete-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/cascader-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/census-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/color-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/descriptions-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/divider-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/download-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-item-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/file-upload-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/html-text-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/input-batch-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/input-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/multiSearch-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/news-list-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/oplog-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/picture-upload-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/rate-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/rich-editor-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/save_submit_wf_button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/script-input-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/search_button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/select-export-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/select-export-item-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/singerSearch-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/singleUpload-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/slider-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/static-text-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/switch-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/tempStorage-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/textarea-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/time-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/title-head-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/vabSearch-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/vue-page-widget.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +18 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +33 -20
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +8 -8
- package/src/components/xform/form-render/container-item/data-table-mixin.js +16 -8
- package/src/components/xform/form-render/container-item/list-h5-item.vue +92 -309
- package/src/components/xform/mixins/scriptHttp.js +28 -7
- package/src/components/xform/styles/census.scss +288 -0
- package/src/components/xform/styles/containers.scss +208 -0
- package/src/components/xform/styles/designer.scss +904 -0
- package/src/components/xform/styles/detail-temp.scss +71 -0
- package/src/components/xform/styles/h5-designer.scss +191 -0
- package/src/components/xform/styles/h5.scss +5 -6
- package/src/components/xform/styles/skins.scss +398 -0
- package/src/components/xform/styles/table-layout.scss +91 -0
- package/src/components/xform/styles/titles.scss +255 -0
- package/src/components/xform/utils/util.js +20 -0
- package/src/index.js +2 -514
- package/src/layout/components/Sidebar/default.vue +3 -3
- package/src/layout/components/TagsView/index.vue +1 -1
- package/src/layout/defaultLayout.vue +2 -2
- package/src/store/modules/settings.js +1 -1
- package/src/utils/vab.js +33 -11
- package/src/views/bd/setting/formVersion/compareContMixin.scss +1 -1
- package/src/views/mobile/user/area/dialog.vue +1 -1
- package/src/views/mobile/user/user/dialog.vue +1 -1
- package/src/views/user/commMenu/index.vue +3 -1
- package/src/views/user/commMenu/style.scss +123 -0
- package/src/views/user/home/default.vue +5 -5
- package/src/views/user/home/default2.vue +2 -2
- package/src/views/user/role/edit.vue +4 -0
- package/src/views/user/role/role-box.scss +83 -0
- package/src/views/user/role/voc_edit.vue +4 -0
- package/src/views/user/wf/wf_obj_config/importItemDialog.vue +1 -1
- package/src/resources/js/base/common.js +0 -110
- package/src/views/user/outLink/cc_form_view.vue +0 -188
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
</script>
|
|
94
94
|
|
|
95
95
|
<style lang="scss" scoped>
|
|
96
|
-
@import "
|
|
96
|
+
@import "~@base/styles/theme-variables.scss"; //* form-item-wrapper已引入,还需要重复引入吗? *//
|
|
97
97
|
|
|
98
98
|
.full-width-input {
|
|
99
99
|
width: 100% !important;
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
</script>
|
|
115
115
|
|
|
116
116
|
<style lang="scss" scoped>
|
|
117
|
-
@import "
|
|
117
|
+
@import "~@base/styles/theme-variables.scss"; //* form-item-wrapper已引入,还需要重复引入吗? *//
|
|
118
118
|
|
|
119
119
|
.full-width-input {
|
|
120
120
|
width: 100% !important;
|
|
@@ -130,7 +130,7 @@ export default {
|
|
|
130
130
|
</script>
|
|
131
131
|
|
|
132
132
|
<style lang="scss" scoped>
|
|
133
|
-
@import "
|
|
133
|
+
@import "~@base/styles/theme-variables.scss"; //* form-item-wrapper已引入,还需要重复引入吗? *//
|
|
134
134
|
|
|
135
135
|
.full-width-input {
|
|
136
136
|
width: 100% !important;
|
|
@@ -30,7 +30,7 @@ export default {
|
|
|
30
30
|
</script>
|
|
31
31
|
|
|
32
32
|
<style lang="scss" scoped>
|
|
33
|
-
@import "
|
|
33
|
+
@import "~@base/styles/theme-variables.scss"; //* form-item-wrapper已引入,还需要重复引入吗? *//
|
|
34
34
|
|
|
35
35
|
.full-width-input {
|
|
36
36
|
width: 100% !important;
|
|
@@ -122,7 +122,7 @@ export default {
|
|
|
122
122
|
</script>
|
|
123
123
|
|
|
124
124
|
<style lang="scss" scoped>
|
|
125
|
-
@import "
|
|
125
|
+
@import "~@base/styles/theme-variables.scss"; //* form-item-wrapper已引入,还需要重复引入吗? *//
|
|
126
126
|
|
|
127
127
|
.full-width-input {
|
|
128
128
|
width: 100% !important;
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
</script>
|
|
92
92
|
|
|
93
93
|
<style lang="scss" scoped>
|
|
94
|
-
@import "
|
|
94
|
+
@import "~@base/styles/theme-variables.scss"; //* form-item-wrapper已引入,还需要重复引入吗? *//
|
|
95
95
|
|
|
96
96
|
.full-width-input {
|
|
97
97
|
width: 100% !important;
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
</script>
|
|
101
101
|
|
|
102
102
|
<style lang="scss" scoped>
|
|
103
|
-
@import "
|
|
103
|
+
@import "~@base/styles/theme-variables.scss"; //* form-item-wrapper已引入,还需要重复引入吗? *//
|
|
104
104
|
|
|
105
105
|
.full-width-input {
|
|
106
106
|
width: 100% !important;
|
|
@@ -162,7 +162,7 @@ export default {
|
|
|
162
162
|
</script>
|
|
163
163
|
|
|
164
164
|
<style lang="scss" scoped>
|
|
165
|
-
@import "
|
|
165
|
+
@import "~@base/styles/theme-variables.scss"; //* form-item-wrapper已引入,还需要重复引入吗? *//
|
|
166
166
|
::v-deep .el-form-item {
|
|
167
167
|
min-height: 34px;
|
|
168
168
|
}
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
</script>
|
|
98
98
|
|
|
99
99
|
<style lang="scss" scoped>
|
|
100
|
-
@import "
|
|
100
|
+
@import "~@base/styles/theme-variables.scss"; //* form-item-wrapper已引入,还需要重复引入吗? *//
|
|
101
101
|
|
|
102
102
|
.full-width-input {
|
|
103
103
|
width: 100% !important;
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
</script>
|
|
126
126
|
|
|
127
127
|
<style lang="scss" scoped>
|
|
128
|
-
@import "
|
|
128
|
+
@import "~@base/styles/theme-variables.scss"; //* form-item-wrapper已引入,还需要重复引入吗? *//
|
|
129
129
|
|
|
130
130
|
.full-width-input {
|
|
131
131
|
width: 100% !important;
|
|
@@ -30,7 +30,7 @@ export default {
|
|
|
30
30
|
</script>
|
|
31
31
|
|
|
32
32
|
<style lang="scss" scoped>
|
|
33
|
-
@import "
|
|
33
|
+
@import "~@base/styles/theme-variables.scss"; //* form-item-wrapper已引入,还需要重复引入吗? *//
|
|
34
34
|
|
|
35
35
|
.full-width-input {
|
|
36
36
|
width: 100% !important;
|
|
@@ -314,7 +314,7 @@ export default {
|
|
|
314
314
|
</script>
|
|
315
315
|
|
|
316
316
|
<style lang="scss" scoped>
|
|
317
|
-
@import "
|
|
317
|
+
@import "~@base/styles/theme-variables.scss"; //* form-item-wrapper已引入,还需要重复引入吗? *//
|
|
318
318
|
|
|
319
319
|
.full-width-input {
|
|
320
320
|
width: 100% !important;
|
|
@@ -728,7 +728,7 @@ export default {
|
|
|
728
728
|
</script>
|
|
729
729
|
|
|
730
730
|
<style lang="scss" scoped>
|
|
731
|
-
@import "
|
|
731
|
+
@import "~@base/styles/theme-variables.scss"; //* form-item-wrapper已引入,还需要重复引入吗? *//
|
|
732
732
|
|
|
733
733
|
.full-width-input {
|
|
734
734
|
width: 100% !important;
|
|
@@ -51,7 +51,10 @@
|
|
|
51
51
|
<el-switch v-model="isShowQueryButton"></el-switch>
|
|
52
52
|
</el-form-item>
|
|
53
53
|
<el-form-item :label="i18nt('designer.setting.showPagination')">
|
|
54
|
-
<el-switch
|
|
54
|
+
<el-switch
|
|
55
|
+
v-model="optionModel.showPagination"
|
|
56
|
+
:disabled="isPagedReturnType"
|
|
57
|
+
></el-switch>
|
|
55
58
|
</el-form-item>
|
|
56
59
|
<el-form-item :label="i18nt('是否显示表尾统计行')">
|
|
57
60
|
<el-switch v-model="optionModel.showGridFooter"></el-switch>
|
|
@@ -719,6 +722,7 @@ import Draggable from "vuedraggable";
|
|
|
719
722
|
import {
|
|
720
723
|
deepClone,
|
|
721
724
|
generateId,
|
|
725
|
+
isPagedCollectionReturnType,
|
|
722
726
|
} from "../../../../../../components/xform/utils/util";
|
|
723
727
|
import Sortable from "sortablejs";
|
|
724
728
|
import requestaccessDialog from "../../../../../../views/user/form/report_requestaccess/dialog.vue";
|
|
@@ -1065,6 +1069,19 @@ export default {
|
|
|
1065
1069
|
dynamicSchemaConvertDisplay() {
|
|
1066
1070
|
return this.optionModel.dynamicSchemaConvert || "";
|
|
1067
1071
|
},
|
|
1072
|
+
isPagedReturnType() {
|
|
1073
|
+
return isPagedCollectionReturnType(this.optionModel.accessReturnType);
|
|
1074
|
+
},
|
|
1075
|
+
},
|
|
1076
|
+
watch: {
|
|
1077
|
+
"optionModel.accessReturnType": {
|
|
1078
|
+
immediate: true,
|
|
1079
|
+
handler(val) {
|
|
1080
|
+
if (isPagedCollectionReturnType(val)) {
|
|
1081
|
+
this.optionModel.showPagination = true;
|
|
1082
|
+
}
|
|
1083
|
+
},
|
|
1084
|
+
},
|
|
1068
1085
|
},
|
|
1069
1086
|
mounted: function () {
|
|
1070
1087
|
const preloadColumnDialog = () => {
|
|
@@ -59,10 +59,11 @@
|
|
|
59
59
|
<el-input v-model="scope.row.prop"></el-input>
|
|
60
60
|
</template>
|
|
61
61
|
</el-table-column>
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
<el-table-column :label="i18nt('designer.setting.columnWidth')" width="100" prop="width">
|
|
63
|
+
<template slot-scope="scope">
|
|
64
|
+
<el-input v-model="scope.row.width"></el-input>
|
|
65
|
+
</template>
|
|
66
|
+
</el-table-column>
|
|
66
67
|
<el-table-column :label="i18nt('designer.setting.visibleColumn')" width="70" prop="show">
|
|
67
68
|
<template slot-scope="scope">
|
|
68
69
|
<el-switch v-model="scope.row.show"></el-switch>
|
|
@@ -78,21 +79,6 @@
|
|
|
78
79
|
<el-switch v-model="scope.row.showForRow"></el-switch>
|
|
79
80
|
</template>
|
|
80
81
|
</el-table-column>
|
|
81
|
-
<!-- H5 明细卡片里这个字段占整行还是半行(半行=一行两个)。
|
|
82
|
-
不配即整行,运行期判等只认 'half'(存量列读到 undefined 就是整行),
|
|
83
|
-
不能写成 !== 'full'。样式见 xform/styles/h5.scss 块 I2。
|
|
84
|
-
★ 用 :value + $set 而不是 v-model:h5Span 是后加的键,存量列上没有,
|
|
85
|
-
Vue 2 只给赋值那一刻已存在的属性装 getter/setter,直接 v-model
|
|
86
|
-
新增属性追踪不到,选完不回显。 -->
|
|
87
|
-
<el-table-column label="H5列宽" width="110" prop="h5Span">
|
|
88
|
-
<template slot-scope="scope">
|
|
89
|
-
<el-select :value="scope.row.h5Span" clearable placeholder="整行"
|
|
90
|
-
@input="v => $set(scope.row, 'h5Span', v)">
|
|
91
|
-
<el-option value="full" label="整行"></el-option>
|
|
92
|
-
<el-option value="half" label="半行(一行两个)"></el-option>
|
|
93
|
-
</el-select>
|
|
94
|
-
</template>
|
|
95
|
-
</el-table-column>
|
|
96
82
|
<el-table-column :label="i18nt('designer.setting.formatOfColumn')" width="200" prop="formatS">
|
|
97
83
|
<template slot-scope="scope">
|
|
98
84
|
<el-select v-model="scope.row.formatS" @change="changeFormatS(scope.row)" clearable>
|
|
@@ -455,11 +441,38 @@ export default {
|
|
|
455
441
|
},
|
|
456
442
|
{
|
|
457
443
|
label: 'edit Format',
|
|
458
|
-
/* H5 暂时只读:编辑格式只留下拉框,其余先不下发 */
|
|
459
444
|
options: [
|
|
445
|
+
{
|
|
446
|
+
value: 'editInput',
|
|
447
|
+
label: '文本输入框'
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
value: 'editNumber',
|
|
451
|
+
label: '数字输入框'
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
value: 'editDate',
|
|
455
|
+
label: '日期输入框'
|
|
456
|
+
},
|
|
460
457
|
{
|
|
461
458
|
value: 'editSelect',
|
|
462
459
|
label: '下拉框'
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
value: 'editSearch',
|
|
463
|
+
label: '搜索框'
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
value: 'editDelete',
|
|
467
|
+
label: '删除按钮'
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
value: 'editButton',
|
|
471
|
+
label: '查看按钮'
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
value: 'button',
|
|
475
|
+
label: '按钮'
|
|
463
476
|
}
|
|
464
477
|
]
|
|
465
478
|
},
|
|
@@ -123,7 +123,7 @@ export const containers = [
|
|
|
123
123
|
}, {
|
|
124
124
|
type: "grid-sub-form",
|
|
125
125
|
category: "container",
|
|
126
|
-
icon: "
|
|
126
|
+
icon: "sub-form",
|
|
127
127
|
widgetList: [],
|
|
128
128
|
options: {
|
|
129
129
|
name: "",
|
|
@@ -141,7 +141,7 @@ export const containers = [
|
|
|
141
141
|
{
|
|
142
142
|
type: "grid-col",
|
|
143
143
|
category: "container",
|
|
144
|
-
icon: "grid
|
|
144
|
+
icon: "grid",
|
|
145
145
|
internal: !0,
|
|
146
146
|
widgetList: [],
|
|
147
147
|
options: {
|
|
@@ -163,7 +163,7 @@ export const containers = [
|
|
|
163
163
|
{
|
|
164
164
|
type: "table-cell",
|
|
165
165
|
category: "container",
|
|
166
|
-
icon: "table
|
|
166
|
+
icon: "table",
|
|
167
167
|
internal: !0,
|
|
168
168
|
widgetList: [],
|
|
169
169
|
merged: !1,
|
|
@@ -179,7 +179,7 @@ export const containers = [
|
|
|
179
179
|
{
|
|
180
180
|
type: "tab-pane",
|
|
181
181
|
category: "container",
|
|
182
|
-
icon: "tab
|
|
182
|
+
icon: "tab",
|
|
183
183
|
internal: !0,
|
|
184
184
|
widgetList: [],
|
|
185
185
|
options: {
|
|
@@ -588,7 +588,7 @@ export const containers = [
|
|
|
588
588
|
* 直接拖进 tab-pane(见 docs/详情模块标签承载方案.md) */
|
|
589
589
|
type: "detail-pane",
|
|
590
590
|
category: "container",
|
|
591
|
-
icon: "grid
|
|
591
|
+
icon: "grid",
|
|
592
592
|
buttonWidgetList: [],
|
|
593
593
|
widgetList: [],
|
|
594
594
|
options: {
|
|
@@ -798,7 +798,7 @@ export const containers = [
|
|
|
798
798
|
{
|
|
799
799
|
type: "h5-card-pane",
|
|
800
800
|
category: "container",
|
|
801
|
-
icon: "tab
|
|
801
|
+
icon: "tab",
|
|
802
802
|
internal: !0,
|
|
803
803
|
buttonWidgetList: [],
|
|
804
804
|
widgetList: [],
|
|
@@ -828,7 +828,7 @@ export const containers = [
|
|
|
828
828
|
{
|
|
829
829
|
type: "h5-table-cell",
|
|
830
830
|
category: "container",
|
|
831
|
-
icon: "table
|
|
831
|
+
icon: "table",
|
|
832
832
|
internal: !0,
|
|
833
833
|
widgetList: [],
|
|
834
834
|
merged: !1,
|
|
@@ -3861,7 +3861,7 @@ export const advancedFields = [
|
|
|
3861
3861
|
},
|
|
3862
3862
|
{
|
|
3863
3863
|
type: "dropdown-item",
|
|
3864
|
-
icon: "tab
|
|
3864
|
+
icon: "tab",
|
|
3865
3865
|
internal: !0,
|
|
3866
3866
|
options: {
|
|
3867
3867
|
name: "",
|
|
@@ -21,6 +21,8 @@ import {
|
|
|
21
21
|
traverseAllWidgetsNew,
|
|
22
22
|
isAttachmentWidgetType,
|
|
23
23
|
isVabsearchMultiWidget,
|
|
24
|
+
isPagedCollectionReturnType,
|
|
25
|
+
shouldShowDataTablePagination,
|
|
24
26
|
XFORM_ROW_CLEAN_FIELDS,
|
|
25
27
|
} from "../../../../components/xform/utils/util";
|
|
26
28
|
import {
|
|
@@ -266,6 +268,12 @@ modules = {
|
|
|
266
268
|
let formRef = this.getFormRef();
|
|
267
269
|
return formRef.dataId;
|
|
268
270
|
},
|
|
271
|
+
/**
|
|
272
|
+
* 分页集合数据必须显示分页,否则查询结果按 records/total 解析会报错。
|
|
273
|
+
*/
|
|
274
|
+
isPaginationVisible() {
|
|
275
|
+
return shouldShowDataTablePagination(this.widget.options);
|
|
276
|
+
},
|
|
269
277
|
},
|
|
270
278
|
created: function () {
|
|
271
279
|
if (!this.formModel[this.fieldKeyName])
|
|
@@ -2697,7 +2705,9 @@ modules = {
|
|
|
2697
2705
|
let tableRef = this.getTableRef();
|
|
2698
2706
|
let formDataModel = this.getFormRef().formDataModel;
|
|
2699
2707
|
let isQueryTable = this.widget.options.isQueryTable || false;
|
|
2700
|
-
let isDataPage =
|
|
2708
|
+
let isDataPage = isPagedCollectionReturnType(
|
|
2709
|
+
this.widget.options.accessReturnType
|
|
2710
|
+
);
|
|
2701
2711
|
let reportTemplate = this.getFormRef().reportTemplate;
|
|
2702
2712
|
let formCode = reportTemplate.formCode;
|
|
2703
2713
|
let dataId = this.formDataId;
|
|
@@ -2719,7 +2729,7 @@ modules = {
|
|
|
2719
2729
|
paramFun = () => {
|
|
2720
2730
|
let conditions = this.getSearchCondition();
|
|
2721
2731
|
let $grid = this.getGridTable();
|
|
2722
|
-
if (this.
|
|
2732
|
+
if (this.isPaginationVisible) {
|
|
2723
2733
|
let proxyInfo = $grid.getProxyInfo();
|
|
2724
2734
|
let searchCount = true;
|
|
2725
2735
|
let isQueryAllPage = getTableStateValue($grid, "isQueryAllPage");
|
|
@@ -3166,9 +3176,7 @@ modules = {
|
|
|
3166
3176
|
config: {
|
|
3167
3177
|
height: height,
|
|
3168
3178
|
showFooter,
|
|
3169
|
-
pagerConfig: this.
|
|
3170
|
-
? pagerConfig
|
|
3171
|
-
: false,
|
|
3179
|
+
pagerConfig: this.isPaginationVisible ? pagerConfig : false,
|
|
3172
3180
|
treeConfig,
|
|
3173
3181
|
rowConfig,
|
|
3174
3182
|
headerCellStyle,
|
|
@@ -3799,10 +3807,10 @@ modules = {
|
|
|
3799
3807
|
getScriptCode() {
|
|
3800
3808
|
let accessReturnType = this.widget.options.accessReturnType;
|
|
3801
3809
|
let defaultScriptCode = "getList";
|
|
3802
|
-
if (accessReturnType
|
|
3803
|
-
defaultScriptCode = "getList";
|
|
3804
|
-
} else if (accessReturnType === "2") {
|
|
3810
|
+
if (isPagedCollectionReturnType(accessReturnType)) {
|
|
3805
3811
|
defaultScriptCode = "getPage";
|
|
3812
|
+
} else if (String(accessReturnType) === "1") {
|
|
3813
|
+
defaultScriptCode = "getList";
|
|
3806
3814
|
}
|
|
3807
3815
|
let scriptCode = this.widget.options.formScriptCode || defaultScriptCode;
|
|
3808
3816
|
return scriptCode;
|