cloud-web-corejs 1.0.280 → 1.1.0-dev.10

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.
Files changed (193) hide show
  1. package/package.json +6 -2
  2. package/src/components/VabUpload/image-viewer.vue +442 -442
  3. package/src/components/VabUpload/index.vue +45 -3
  4. package/src/components/VabUpload/mixins.js +174 -34
  5. package/src/components/VabUpload/previewGroup.js +128 -0
  6. package/src/components/VabUpload/view.vue +248 -209
  7. package/src/components/baseTabs/mixins.js +181 -181
  8. package/src/components/bizTab/BizBillActions.vue +129 -0
  9. package/src/components/bizTab/BizTabListPage.vue +391 -0
  10. package/src/components/bizTab/README.md +378 -0
  11. package/src/components/bizTab/billTableUtil.js +48 -0
  12. package/src/components/bizTab/billValidators.js +136 -0
  13. package/src/components/bizTab/bizBillDetailMixin.js +705 -0
  14. package/src/components/bizTab/index.js +24 -0
  15. package/src/components/excelExport/exportFieldDialog.vue +23 -12
  16. package/src/components/excelExport/exportItemConfigUtil.js +30 -0
  17. package/src/components/excelExport/mixins.js +3 -3
  18. package/src/components/excelImport/index.vue +156 -156
  19. package/src/components/jsonImport/index.vue +1 -1
  20. package/src/components/langImport/index.vue +1 -1
  21. package/src/components/mobile/statusTag/mixins.js +1 -61
  22. package/src/components/mobile/wf/addTaskUserdialog.vue +23 -3
  23. package/src/components/mobile/wf/content.vue +1705 -1556
  24. package/src/components/mobile/wf/deleteTaskUserDialog.vue +22 -3
  25. package/src/components/mobile/wf/mixins/wfModifyDialogMixin.js +8 -6
  26. package/src/components/mobile/wf/selectUserDialog.vue +122 -0
  27. package/src/components/mobile/wf/setCandidateDialog.vue +25 -4
  28. package/src/components/mobile/wf/urgingDialog.vue +26 -3
  29. package/src/components/mobile/wf/wfModifyDialog.vue +4 -0
  30. package/src/components/obsUpload/index.vue +1 -1
  31. package/src/components/table/config.js +78 -78
  32. package/src/components/table/index.js +1276 -1276
  33. package/src/components/table/plugins/cell-area/index.js +1055 -0
  34. package/src/components/table/plugins/cell-area/index.scss +77 -0
  35. package/src/components/table/plugins/cell-area/util.js +224 -0
  36. package/src/components/table/tableForm.vue +330 -330
  37. package/src/components/table/tableFormMixin.js +318 -318
  38. package/src/components/table/vxeFilter/index.js +163 -163
  39. package/src/components/table/vxeFilter/mixin.js +316 -316
  40. package/src/components/wf/content.vue +1188 -1188
  41. package/src/components/wf/wf.js +40 -20
  42. package/src/components/wf/wfActionDropdown.vue +1 -1
  43. package/src/components/wf/wfActionItems.js +1 -1
  44. package/src/components/xform/docs/2026-08 xform H5 P0 /345/256/236/347/216/260/350/247/204/346/240/274.md" +528 -0
  45. package/src/components/xform/docs/2026-08 xform H5 P1 /345/256/236/347/216/260/350/247/204/346/240/274.md" +412 -0
  46. package/src/components/xform/docs/2026-08 xform H5 P2 /345/256/236/347/216/260/350/247/204/346/240/274.md" +287 -0
  47. 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" +400 -0
  48. package/src/components/xform/form-designer/designer.js +51 -52
  49. package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +269 -269
  50. package/src/components/xform/form-designer/form-widget/container-widget/detail-h5-widget.vue +18 -2
  51. package/src/components/xform/form-designer/form-widget/container-widget/detail-temp-widget.vue +132 -0
  52. package/src/components/xform/form-designer/form-widget/container-widget/detail-widget.vue +250 -250
  53. package/src/components/xform/form-designer/form-widget/container-widget/h5-card-pane-widget.vue +23 -2
  54. package/src/components/xform/form-designer/form-widget/container-widget/h5-card-widget.vue +30 -1
  55. package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +319 -320
  56. package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +365 -365
  57. package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +185 -185
  58. package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +554 -555
  59. package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +409 -409
  60. package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +150 -132
  61. package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +114 -114
  62. package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +154 -154
  63. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +47 -1
  64. package/src/components/xform/form-designer/form-widget/field-widget/mixins/date-limit-mixin.js +178 -178
  65. package/src/components/xform/form-designer/form-widget/field-widget/mixins/time-limit-mixin.js +77 -77
  66. package/src/components/xform/form-designer/form-widget/field-widget/select-export-item-button-widget.vue +6 -0
  67. package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +139 -139
  68. package/src/components/xform/form-designer/form-widget/field-widget/singleUpload-widget.vue +1 -1
  69. package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +106 -106
  70. package/src/components/xform/form-designer/form-widget/field-widget/time-widget.vue +134 -134
  71. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +3 -2
  72. package/src/components/xform/form-designer/indexMixin.js +35 -1
  73. package/src/components/xform/form-designer/setting-panel/form-setting.vue +39 -39
  74. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +10 -10
  75. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/exportItemColumns-dialog.vue +438 -432
  76. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +2103 -2103
  77. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-temp-edito.vue +90 -0
  78. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid/gutter-editor.vue +82 -82
  79. package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +833 -846
  80. package/src/components/xform/form-designer/setting-panel/property-editor/container-table/table-dynamicField-editor.vue +8 -8
  81. package/src/components/xform/form-designer/setting-panel/property-editor/dropdownFlag-editor.vue +137 -137
  82. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +237 -237
  83. package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-defaultValue-editor.vue +43 -43
  84. package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultValue-editor.vue +43 -43
  85. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +96 -96
  86. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-item-button-editor.vue +51 -0
  87. package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-defaultValue-editor.vue +42 -42
  88. package/src/components/xform/form-designer/setting-panel/property-editor/field-time-range/time-range-defaultValue-editor.vue +43 -43
  89. package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +158 -158
  90. package/src/components/xform/form-designer/setting-panel/property-editor/h5Span-editor.vue +51 -0
  91. package/src/components/xform/form-designer/setting-panel/property-editor/itemStyle-editor.vue +39 -0
  92. package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +188 -188
  93. package/src/components/xform/form-designer/setting-panel/property-editor/styleTempClass-editor.vue +51 -0
  94. package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +347 -347
  95. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +12 -0
  96. package/src/components/xform/form-designer/toolbar-panel/index.vue +884 -874
  97. package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +14 -0
  98. package/src/components/xform/form-designer/widget-panel/index.vue +11 -7
  99. package/src/components/xform/form-designer/widget-panel/indexMixin.js +30 -6
  100. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +112 -4
  101. package/src/components/xform/form-render/container-item/data-table-mixin.js +151 -93
  102. package/src/components/xform/form-render/container-item/detail-h5-item.vue +204 -34
  103. package/src/components/xform/form-render/container-item/detail-temp-item.vue +110 -0
  104. package/src/components/xform/form-render/container-item/h5-card-pane-item.vue +160 -140
  105. package/src/components/xform/form-render/container-item/list-h5-item.vue +1913 -1699
  106. package/src/components/xform/form-render/index.vue +153 -147
  107. package/src/components/xform/form-render/indexMixin.js +35 -3
  108. package/src/components/xform/lang/en-US.js +14 -0
  109. package/src/components/xform/lang/zh-CN.js +17 -0
  110. package/src/components/xform/mixins/defaultHandle.js +707 -707
  111. package/src/components/xform/styles/h5.scss +2238 -0
  112. package/src/components/xform/utils/textMaskUtil.js +182 -179
  113. package/src/components/xform/utils/treeTableUtil.js +1292 -1265
  114. package/src/components/xform/utils/util.js +56 -11
  115. package/src/directive/append-to-body/index.js +48 -0
  116. package/src/index.js +13 -4
  117. package/src/layout/components/Sidebar/default.vue +1655 -1655
  118. package/src/layout/components/extractedCode/viewDialog.vue +7 -7
  119. package/src/router/index.js +48 -27
  120. package/src/router/modules/customer.js +71 -14
  121. package/src/store/modules/permission.js +17 -18
  122. package/src/utils/assetUrl.js +19 -0
  123. package/src/utils/pdfUtil.js +429 -429
  124. package/src/utils/resolveViewComponent.js +142 -16
  125. package/src/utils/vab.js +1283 -1279
  126. package/src/views/bd/project/branch/bd_branch/edit.vue +145 -0
  127. package/src/views/bd/project/branch/bd_branch/list.vue +72 -0
  128. package/src/views/bd/project/branch/bd_branch/menuKindDialog.vue +106 -0
  129. package/src/views/bd/project/branch/bd_branch/mixins/edit.js +189 -0
  130. package/src/views/bd/project/branch/bd_branch/mixins/list.js +124 -0
  131. package/src/views/bd/project/branch/bd_branch/mixins/menuKindDialog.js +85 -0
  132. package/src/views/bd/project/branch/form_script/list.vue +31 -0
  133. package/src/views/bd/project/branch/form_template/list.vue +30 -0
  134. package/src/views/bd/project/branch/menu_kind/list.vue +31 -0
  135. package/src/views/bd/project/common/form_script/list.vue +16 -0
  136. package/src/views/bd/project/common/form_template/list.vue +15 -0
  137. package/src/views/bd/project/common/menu_kind/list.vue +15 -0
  138. package/src/views/bd/project/core/branchContext.js +100 -0
  139. package/src/views/bd/project/core/branchPage.js +78 -0
  140. package/src/views/bd/project/core/branchPageWrap.vue +225 -0
  141. package/src/views/bd/project/core/branchScope.js +44 -0
  142. package/src/views/bd/project/core/branchSearchPage.js +285 -0
  143. package/src/views/bd/project/core/branchSelect.vue +85 -0
  144. package/src/views/bd/project/core/branchTreeBar.vue +81 -0
  145. package/src/views/bd/project/core/httpBranchPatch.js +58 -0
  146. package/src/views/bd/project/datatable/menu_kind/list.vue +15 -0
  147. package/src/views/bd/project/datatable/table_model/list.vue +15 -0
  148. package/src/views/bd/setting/bd_company_env/dialog.vue +174 -174
  149. package/src/views/bd/setting/form_template/edit.vue +378 -356
  150. package/src/views/bd/setting/form_template/formDesignerDialog.vue +6 -0
  151. package/src/views/bd/setting/form_template/formTemplateType.js +43 -0
  152. package/src/views/bd/setting/form_template/list.vue +304 -303
  153. package/src/views/bd/setting/form_template/mixins/edit.js +344 -280
  154. package/src/views/bd/setting/form_template/mixins/list.js +748 -721
  155. package/src/views/bd/setting/table_model/edit.vue +1066 -1066
  156. package/src/views/bd/setting/table_model/mixins/edit.js +1455 -1455
  157. package/src/views/bd/setting/table_model/mixins/zdDialog.js +148 -148
  158. package/src/views/demo/bizTab/bill/billConfig.js +41 -0
  159. package/src/views/demo/bizTab/bill/detail.vue +436 -0
  160. package/src/views/demo/bizTab/bill/list.vue +288 -0
  161. package/src/views/demo/bizTab/bill/productDialog.vue +176 -0
  162. package/src/views/demo/bizTab/simple/billApi.js +123 -0
  163. package/src/views/demo/bizTab/simple/detail.vue +407 -0
  164. package/src/views/demo/bizTab/simple/list.vue +217 -0
  165. package/src/views/demo/bizTab/standalone/index.vue +121 -0
  166. package/src/views/demo/bizTab/wf/billConfig.js +44 -0
  167. package/src/views/demo/bizTab/wf/detail.vue +661 -0
  168. package/src/views/demo/bizTab/wf/list.vue +242 -0
  169. package/src/views/support/form-dialog-demo/demoPickerDialog.vue +72 -0
  170. package/src/views/support/form-dialog-demo/index.vue +537 -0
  171. package/src/views/user/file_view_ins/list.vue +970 -970
  172. package/src/views/user/form/vform/designer.vue +823 -821
  173. package/src/views/user/home/default.vue +1117 -1117
  174. package/src/views/user/home/default2.vue +1 -1
  175. package/src/views/user/home/index.vue +103 -101
  176. package/src/views/user/home/wjl/content.vue +1569 -0
  177. package/src/views/user/notify_message/dialog.vue +139 -137
  178. package/src/views/user/outLink/cc_form_view.vue +188 -0
  179. package/src/views/user/outLink/form_view.vue +202 -202
  180. package/src/views/user/outLink/index.vue +110 -110
  181. package/src/views/user/outLink/view.vue +3 -3
  182. package/src/views/user/role/edit.vue +632 -632
  183. package/src/views/user/role/list.vue +260 -260
  184. package/src/views/user/wf/iframe/index.vue +51 -51
  185. package/src/views/user/wf/iframe/index2.vue +64 -64
  186. package/src/views/user/wf/wf_manage/list.vue +1112 -1116
  187. package/src/views/user/wf/wf_manage/list2.vue +871 -875
  188. package/src/views/user/wf/wf_manage/wfContentDialog.vue +134 -131
  189. package/src/views/user/wf/wf_obj_config/importItemDialog.vue +1 -1
  190. package/src/components/xform/form-designer/form-widget/field-widget/dropdown-menu-widget.vue +0 -106
  191. package/src/components/xform/form-designer/form-widget/field-widget/tableexportbuttonwidget.vue +0 -99
  192. package/src/components/xform/form-render/container-item/list-h5-item2.vue +0 -1340
  193. package/src/utils/wf.js +0 -766
@@ -1,269 +1,269 @@
1
- <!--
2
- /**
3
- * author: vformAdmin
4
- * email: vdpadmin@163.com
5
- * website: https://www.vform666.com
6
- * date: 2021.08.18
7
- * remark: 如果要分发VForm源码,需在本文件顶部保留此文件头信息!!
8
- */
9
- -->
10
-
11
- <template>
12
- <container-wrapper :designer="designer" :widget="widget" :parent-widget="parentWidget" :parent-list="parentList"
13
- :index-of-parent-list="indexOfParentList">
14
- <div :key="widget.id" class="table-container" :class="[selected ? 'selected' : '', customClass]"
15
- @click.stop="selectWidget(widget)">
16
- <vxe-grid v-bind="gridOptions" :data="widget.options.tableData" :auto-resize="true">
17
- <template #form>
18
- <template v-if="widget.options.isQueryTable">
19
- <div class="clearfix screen-btns">
20
- <div class="fl button-drag-zone">
21
- <!-- <vxe-button status="primary" class="button-sty" icon="el-icon-upload2"
22
- v-if="widget.options.showExportBtn!==false">导出
23
- </vxe-button>-->
24
- <el-form label-position="top">
25
- <draggable
26
- :list="widget.buttons"
27
- v-bind="{ group: 'dragGroup', ghostClass: 'ghost', animation: 200 }"
28
- handle=".drag-handler"
29
- @add="evt => onContainerDragAdd(evt, widget.buttons)"
30
- @update="onContainerDragUpdate"
31
- :move="checkContainerMove"
32
- >
33
- <transition-group name="fade" tag="div" class="sub-form-table form-widget-list">
34
- <template v-for="(subWidget, swIdx) in widget.buttons">
35
- <div class="sub-form-table-column" :key="swIdx">
36
- <template v-if="'container' === subWidget.category">
37
- <component
38
- :is="subWidget.type + '-widget'"
39
- :widget="subWidget"
40
- :designer="designer"
41
- :key="subWidget.id"
42
- :parent-list="widget.buttons"
43
- :index-of-parent-list="swIdx"
44
- :parent-widget="widget"
45
- ></component>
46
- </template>
47
- <template v-else>
48
- <component
49
- :is="subWidget.type + '-widget'"
50
- :field="subWidget"
51
- :designer="designer"
52
- :key="subWidget.id"
53
- :parent-list="widget.buttons"
54
- :index-of-parent-list="swIdx"
55
- :parent-widget="widget"
56
- :design-state="true"
57
- ></component>
58
- </template>
59
- </div>
60
- </template>
61
- </transition-group>
62
- </draggable>
63
- </el-form>
64
- </div>
65
- <div class="fr">
66
- <!-- <vxe-button icon="el-icon-view" class="button-sty" @click="searchEvent">显示总记录数</vxe-button> -->
67
- <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
68
- plain>刷新
69
- </vxe-button>
70
-
71
- <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">搜索
72
- </vxe-button>
73
- </div>
74
- </div>
75
- <div class="screen-box" title-width="92px" title-align="right" @click.stop="selectWidget(widget)">
76
- <draggable
77
- :list="widget.widgetList"
78
- v-bind="{ group: 'dragGroup', ghostClass: 'ghost', animation: 200 }"
79
- handle=".drag-handler"
80
- @add="evt => onContainerDragAdd(evt, widget.widgetList)"
81
- @update="onContainerDragUpdate"
82
- :move="checkContainerMove"
83
- >
84
- <transition-group name="fade" tag="div" class="form-widget-list">
85
- <template v-for="(subWidget, swIdx) in widget.widgetList">
86
- <template v-if="'container' === subWidget.category">
87
- <component
88
- :is="subWidget.type + '-widget'"
89
- :widget="subWidget"
90
- :designer="designer"
91
- :key="subWidget.id"
92
- :parent-list="widget.widgetList"
93
- :index-of-parent-list="swIdx"
94
- :parent-widget="widget"
95
- ></component>
96
- </template>
97
- <template v-else>
98
- <component
99
- :is="subWidget.type + '-widget'"
100
- :field="subWidget"
101
- :designer="designer"
102
- :key="subWidget.id"
103
- :parent-list="widget.widgetList"
104
- :index-of-parent-list="swIdx"
105
- :parent-widget="widget"
106
- :design-state="true"
107
- :table-condition="true"
108
- ></component>
109
- </template>
110
- </template>
111
- </transition-group>
112
- </draggable>
113
- <!-- <vxe-form-item title="机构名称:" field="saleOrgName">
114
- <template v-slot>
115
- <el-input v-model="formData.saleOrgName" size="small" :disabled="true"></el-input>
116
- </template>
117
- </vxe-form-item>
118
- <vxe-form-item title="登录名:" field="loginAccount">
119
- <template v-slot>
120
- <el-input v-model="formData.loginAccount" size="small" clearable></el-input>
121
- </template>
122
- </vxe-form-item>
123
- <vxe-form-item title="手机号:" field="mobile">
124
- <template v-slot>
125
- <el-input v-model="formData.mobile" size="small" clearable></el-input>
126
- </template>
127
- </vxe-form-item>
128
- <vxe-form-item title="是否启用:" field="enabled">
129
- <template v-slot>
130
- <el-select v-model="formData.enabled" clearable>
131
- <el-option value="true" label="启用"></el-option>
132
- <el-option value="false" label="禁用"></el-option>
133
- </el-select>
134
- </template>
135
- </vxe-form-item> -->
136
- </div>
137
- </template>
138
- <!-- <div class="design-listcolu" title-width="92px" title-align="right" @click.stop="selectWidget(widget)">
139
- <el-form label-position="top">
140
- <draggable
141
- :list="widget.columns"
142
- v-bind="{ group: 'dragGroup', ghostClass: 'ghost', animation: 200 }"
143
- handle=".drag-handler"
144
- @add="evt => onContainerDragAdd(evt, widget.columns)"
145
- @update="onContainerDragUpdate"
146
- :move="checkContainerMove"
147
- >
148
- <transition-group name="fade" tag="div" class="sub-form-table form-widget-list">
149
- <template v-for="(subWidget, swIdx) in widget.columns">
150
- <div class="sub-form-table-column" :key="swIdx" :style="'width:'+subWidget.options.columnWidth">
151
- <template v-if="'container' === subWidget.category">
152
- <component
153
- :is="subWidget.type + '-widget'"
154
- :widget="subWidget"
155
- :designer="designer"
156
- :key="subWidget.id"
157
- :parent-list="widget.columns"
158
- :index-of-parent-list="swIdx"
159
- :parent-widget="widget"
160
- ></component>
161
- </template>
162
- <template v-else>
163
- <component
164
- :is="subWidget.type + '-widget'"
165
- :field="subWidget"
166
- :designer="designer"
167
- :key="subWidget.id"
168
- :parent-list="widget.columns"
169
- :index-of-parent-list="swIdx"
170
- :parent-widget="widget"
171
- :design-state="true"
172
- ></component>
173
- </template>
174
- </div>
175
- </template>
176
- </transition-group>
177
- </draggable>
178
- </el-form>
179
-
180
- </div>-->
181
- </template>
182
- </vxe-grid>
183
- </div>
184
- </container-wrapper>
185
- </template>
186
-
187
- <script>
188
- import ContainerWrapper from '../../../../../components/xform/form-designer/form-widget/container-widget/container-wrapper';
189
- import TableCellWidget from '../../../../../components/xform/form-designer/form-widget/container-widget/table-cell-widget';
190
- import FieldComponents from '../../../../../components/xform/form-designer/form-widget/field-widget/index';
191
- import Draggable from 'vuedraggable';
192
- import dataTableMixin from './data-table-mixin.js';
193
- import { enrichTableColumnsWithLabelIcon } from '../../../utils/tableColumnHelper';
194
-
195
- export default {
196
- name: 'data-table-widget',
197
- components: {
198
- ContainerWrapper,
199
- TableCellWidget,
200
- Draggable,
201
- ...FieldComponents
202
- },
203
- mixins: [dataTableMixin],
204
- computed: {
205
- columns() {
206
- const baseColumns = dataTableMixin.computed.columns.call(this);
207
- return enrichTableColumnsWithLabelIcon(
208
- baseColumns,
209
- this.widget.options.tableColumns || []
210
- );
211
- },
212
- },
213
- created() {
214
- if(this.widget.options.isNotQueryAllPage===undefined)this.widget.options.isNotQueryAllPage = false;
215
- }
216
- };
217
- </script>
218
-
219
- <style lang="scss" scoped>
220
- div.table-container {
221
- padding: 5px;
222
- border: 1px dashed #336699;
223
- box-sizing: border-box;
224
-
225
- table.table-layout {
226
- width: 100%;
227
- text-align: center;
228
- //border: 1px solid #c8ebfb;
229
- border-collapse: collapse;
230
- table-layout: fixed;
231
-
232
- ::v-deep td {
233
- height: 48px;
234
- border: 0.5px dashed #336699;
235
- padding: 3px;
236
- display: table-cell;
237
- }
238
- }
239
-
240
- .form-widget-list {
241
- border: 1px dashed #336699;
242
- min-height: 36px;
243
- }
244
-
245
- &.selected {
246
- outline: 2px solid $--color-primary !important;
247
- }
248
- }
249
-
250
- /* 按钮拖放区:宽度自适应,最多占满除右侧刷新/搜索按钮外的空间,超出后按钮换行 */
251
- .screen-btns .fl.button-drag-zone {
252
- max-width: calc(100% - 180px);
253
- }
254
-
255
- .sub-form-table {
256
- min-height: 68px;
257
- min-width: 200px
258
- }
259
-
260
- .sub-form-table .sub-form-drag-drop-zone {
261
- min-height: 68px
262
- }
263
-
264
- .sub-form-table div.sub-form-table-column {
265
- display: inline-block;
266
- vertical-align: top
267
- }
268
-
269
- </style>
1
+ <!--
2
+ /**
3
+ * author: vformAdmin
4
+ * email: vdpadmin@163.com
5
+ * website: https://www.vform666.com
6
+ * date: 2021.08.18
7
+ * remark: 如果要分发VForm源码,需在本文件顶部保留此文件头信息!!
8
+ */
9
+ -->
10
+
11
+ <template>
12
+ <container-wrapper :designer="designer" :widget="widget" :parent-widget="parentWidget" :parent-list="parentList"
13
+ :index-of-parent-list="indexOfParentList">
14
+ <div :key="widget.id" class="table-container" :class="[selected ? 'selected' : '', customClass]"
15
+ @click.stop="selectWidget(widget)">
16
+ <vxe-grid v-bind="gridOptions" :data="widget.options.tableData" :auto-resize="true">
17
+ <template #form>
18
+ <template v-if="widget.options.isQueryTable">
19
+ <div class="clearfix screen-btns">
20
+ <div class="fl button-drag-zone">
21
+ <!-- <vxe-button status="primary" class="button-sty" icon="el-icon-upload2"
22
+ v-if="widget.options.showExportBtn!==false">导出
23
+ </vxe-button>-->
24
+ <el-form label-position="top">
25
+ <draggable
26
+ :list="widget.buttons"
27
+ v-bind="{ group: 'dragGroup', ghostClass: 'ghost', animation: 200 }"
28
+ handle=".drag-handler"
29
+ @add="evt => onContainerDragAdd(evt, widget.buttons)"
30
+ @update="onContainerDragUpdate"
31
+ :move="checkContainerMove"
32
+ >
33
+ <transition-group name="fade" tag="div" class="sub-form-table form-widget-list">
34
+ <template v-for="(subWidget, swIdx) in widget.buttons">
35
+ <div class="sub-form-table-column" :key="swIdx">
36
+ <template v-if="'container' === subWidget.category">
37
+ <component
38
+ :is="subWidget.type + '-widget'"
39
+ :widget="subWidget"
40
+ :designer="designer"
41
+ :key="subWidget.id"
42
+ :parent-list="widget.buttons"
43
+ :index-of-parent-list="swIdx"
44
+ :parent-widget="widget"
45
+ ></component>
46
+ </template>
47
+ <template v-else>
48
+ <component
49
+ :is="subWidget.type + '-widget'"
50
+ :field="subWidget"
51
+ :designer="designer"
52
+ :key="subWidget.id"
53
+ :parent-list="widget.buttons"
54
+ :index-of-parent-list="swIdx"
55
+ :parent-widget="widget"
56
+ :design-state="true"
57
+ ></component>
58
+ </template>
59
+ </div>
60
+ </template>
61
+ </transition-group>
62
+ </draggable>
63
+ </el-form>
64
+ </div>
65
+ <div class="fr">
66
+ <!-- <vxe-button icon="el-icon-view" class="button-sty" @click="searchEvent">显示总记录数</vxe-button> -->
67
+ <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
68
+ plain>刷新
69
+ </vxe-button>
70
+
71
+ <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">搜索
72
+ </vxe-button>
73
+ </div>
74
+ </div>
75
+ <div class="screen-box" title-width="92px" title-align="right" @click.stop="selectWidget(widget)">
76
+ <draggable
77
+ :list="widget.widgetList"
78
+ v-bind="{ group: 'dragGroup', ghostClass: 'ghost', animation: 200 }"
79
+ handle=".drag-handler"
80
+ @add="evt => onContainerDragAdd(evt, widget.widgetList)"
81
+ @update="onContainerDragUpdate"
82
+ :move="checkContainerMove"
83
+ >
84
+ <transition-group name="fade" tag="div" class="form-widget-list">
85
+ <template v-for="(subWidget, swIdx) in widget.widgetList">
86
+ <template v-if="'container' === subWidget.category">
87
+ <component
88
+ :is="subWidget.type + '-widget'"
89
+ :widget="subWidget"
90
+ :designer="designer"
91
+ :key="subWidget.id"
92
+ :parent-list="widget.widgetList"
93
+ :index-of-parent-list="swIdx"
94
+ :parent-widget="widget"
95
+ ></component>
96
+ </template>
97
+ <template v-else>
98
+ <component
99
+ :is="subWidget.type + '-widget'"
100
+ :field="subWidget"
101
+ :designer="designer"
102
+ :key="subWidget.id"
103
+ :parent-list="widget.widgetList"
104
+ :index-of-parent-list="swIdx"
105
+ :parent-widget="widget"
106
+ :design-state="true"
107
+ :table-condition="true"
108
+ ></component>
109
+ </template>
110
+ </template>
111
+ </transition-group>
112
+ </draggable>
113
+ <!-- <vxe-form-item title="机构名称:" field="saleOrgName">
114
+ <template v-slot>
115
+ <el-input v-model="formData.saleOrgName" size="small" :disabled="true"></el-input>
116
+ </template>
117
+ </vxe-form-item>
118
+ <vxe-form-item title="登录名:" field="loginAccount">
119
+ <template v-slot>
120
+ <el-input v-model="formData.loginAccount" size="small" clearable></el-input>
121
+ </template>
122
+ </vxe-form-item>
123
+ <vxe-form-item title="手机号:" field="mobile">
124
+ <template v-slot>
125
+ <el-input v-model="formData.mobile" size="small" clearable></el-input>
126
+ </template>
127
+ </vxe-form-item>
128
+ <vxe-form-item title="是否启用:" field="enabled">
129
+ <template v-slot>
130
+ <el-select v-model="formData.enabled" clearable>
131
+ <el-option value="true" label="启用"></el-option>
132
+ <el-option value="false" label="禁用"></el-option>
133
+ </el-select>
134
+ </template>
135
+ </vxe-form-item> -->
136
+ </div>
137
+ </template>
138
+ <!-- <div class="design-listcolu" title-width="92px" title-align="right" @click.stop="selectWidget(widget)">
139
+ <el-form label-position="top">
140
+ <draggable
141
+ :list="widget.columns"
142
+ v-bind="{ group: 'dragGroup', ghostClass: 'ghost', animation: 200 }"
143
+ handle=".drag-handler"
144
+ @add="evt => onContainerDragAdd(evt, widget.columns)"
145
+ @update="onContainerDragUpdate"
146
+ :move="checkContainerMove"
147
+ >
148
+ <transition-group name="fade" tag="div" class="sub-form-table form-widget-list">
149
+ <template v-for="(subWidget, swIdx) in widget.columns">
150
+ <div class="sub-form-table-column" :key="swIdx" :style="'width:'+subWidget.options.columnWidth">
151
+ <template v-if="'container' === subWidget.category">
152
+ <component
153
+ :is="subWidget.type + '-widget'"
154
+ :widget="subWidget"
155
+ :designer="designer"
156
+ :key="subWidget.id"
157
+ :parent-list="widget.columns"
158
+ :index-of-parent-list="swIdx"
159
+ :parent-widget="widget"
160
+ ></component>
161
+ </template>
162
+ <template v-else>
163
+ <component
164
+ :is="subWidget.type + '-widget'"
165
+ :field="subWidget"
166
+ :designer="designer"
167
+ :key="subWidget.id"
168
+ :parent-list="widget.columns"
169
+ :index-of-parent-list="swIdx"
170
+ :parent-widget="widget"
171
+ :design-state="true"
172
+ ></component>
173
+ </template>
174
+ </div>
175
+ </template>
176
+ </transition-group>
177
+ </draggable>
178
+ </el-form>
179
+
180
+ </div>-->
181
+ </template>
182
+ </vxe-grid>
183
+ </div>
184
+ </container-wrapper>
185
+ </template>
186
+
187
+ <script>
188
+ import ContainerWrapper from '../../../../../components/xform/form-designer/form-widget/container-widget/container-wrapper';
189
+ import TableCellWidget from '../../../../../components/xform/form-designer/form-widget/container-widget/table-cell-widget';
190
+ import FieldComponents from '../../../../../components/xform/form-designer/form-widget/field-widget/index';
191
+ import Draggable from 'vuedraggable';
192
+ import dataTableMixin from './data-table-mixin.js';
193
+ import { enrichTableColumnsWithLabelIcon } from '../../../utils/tableColumnHelper';
194
+
195
+ export default {
196
+ name: 'data-table-widget',
197
+ components: {
198
+ ContainerWrapper,
199
+ TableCellWidget,
200
+ Draggable,
201
+ ...FieldComponents
202
+ },
203
+ mixins: [dataTableMixin],
204
+ computed: {
205
+ columns() {
206
+ const baseColumns = dataTableMixin.computed.columns.call(this);
207
+ return enrichTableColumnsWithLabelIcon(
208
+ baseColumns,
209
+ this.widget.options.tableColumns || []
210
+ );
211
+ },
212
+ },
213
+ created() {
214
+ if(this.widget.options.isNotQueryAllPage===undefined)this.widget.options.isNotQueryAllPage = false;
215
+ }
216
+ };
217
+ </script>
218
+
219
+ <style lang="scss" scoped>
220
+ div.table-container {
221
+ padding: 5px;
222
+ border: 1px dashed #336699;
223
+ box-sizing: border-box;
224
+
225
+ table.table-layout {
226
+ width: 100%;
227
+ text-align: center;
228
+ //border: 1px solid #c8ebfb;
229
+ border-collapse: collapse;
230
+ table-layout: fixed;
231
+
232
+ ::v-deep td {
233
+ height: 48px;
234
+ border: 0.5px dashed #336699;
235
+ padding: 3px;
236
+ display: table-cell;
237
+ }
238
+ }
239
+
240
+ .form-widget-list {
241
+ border: 1px dashed #336699;
242
+ min-height: 36px;
243
+ }
244
+
245
+ &.selected {
246
+ outline: 2px solid $--color-primary !important;
247
+ }
248
+ }
249
+
250
+ /* 按钮拖放区:宽度自适应,最多占满除右侧刷新/搜索按钮外的空间,超出后按钮换行 */
251
+ .screen-btns .fl.button-drag-zone {
252
+ max-width: calc(100% - 180px);
253
+ }
254
+
255
+ .sub-form-table {
256
+ min-height: 68px;
257
+ min-width: 200px
258
+ }
259
+
260
+ .sub-form-table .sub-form-drag-drop-zone {
261
+ min-height: 68px
262
+ }
263
+
264
+ .sub-form-table div.sub-form-table-column {
265
+ display: inline-block;
266
+ vertical-align: top
267
+ }
268
+
269
+ </style>
@@ -23,7 +23,11 @@
23
23
  :index-of-parent-list="index" :parent-widget="widget"
24
24
  :col-height="widget.options.colHeight" tabRef="baseTabRef" :tabPaneGrade="2"></detail-pane-widget>
25
25
  -->
26
- <div>
26
+ <!-- 投放区说明(设计器画布常驻)。H5详情有两个投放区:这里收 panes(内容区,
27
+ 装 h5卡片),下面 .h5-fixed-bottom-btns 收 widgetList(底部动作栏按钮)。
28
+ 空框长得一样,不写清楚分不出哪个是哪个。同款见 h5-card-pane-widget。 -->
29
+ <div class="h5-area">
30
+ <span class="h5-area-hint">{{ i18nt('designer.hint.h5DetailContentArea') }}</span>
27
31
  <draggable
28
32
  :list="widget.panes"
29
33
  v-bind="{ group: 'dragGroup', ghostClass: 'ghost', animation: 200 }"
@@ -63,7 +67,8 @@
63
67
  </div>
64
68
 
65
69
  <div class="h5-fixed-bottom-btns " >
66
- <div class="grid-cell" :class="[selected ? 'selected' : '', customClass]" :key="widget.id" @click.stop="selectWidget(widget)" :visible="!widget.options.hidden">
70
+ <div class="grid-cell h5-area" :class="[selected ? 'selected' : '', customClass]" :key="widget.id" @click.stop="selectWidget(widget)" :visible="!widget.options.hidden">
71
+ <span class="h5-area-hint">{{ i18nt('designer.hint.h5DetailBottomArea') }}</span>
67
72
  <draggable
68
73
  :list="widget.widgetList"
69
74
  v-bind="{ group: 'dragGroup', ghostClass: 'ghost', animation: 200 }"
@@ -159,6 +164,17 @@
159
164
  </script>
160
165
 
161
166
  <style lang="scss" scoped>
167
+ /* 两个投放区的说明文字,与 h5-card-pane-widget 同款:走文档流排在各自那个
168
+ 虚线投放框的正上方,归属一眼对得上;不盖住已有组件,也不挡拖放。 */
169
+ .h5-area > .h5-area-hint {
170
+ display: block;
171
+ font-size: 12px;
172
+ line-height: 16px;
173
+ color: #a8abb2;
174
+ pointer-events: none;
175
+ white-space: nowrap;
176
+ }
177
+
162
178
  .grid-container {
163
179
  min-height: 50px;
164
180
  //line-height: 48px;