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,303 +1,304 @@
1
- <template>
2
- <div id="containt">
3
- <x-tabs ref="xTabs" v-model="activeName" class="tab-box" paneKeyName="id">
4
- <el-tab-pane :label="$t1('常规')" name="first">
5
- <editView
6
- v-if="showEdit"
7
- visible-key="showEdit"
8
- :_dataId.sync="dataId"
9
- :currentFormType="currentFormType"
10
- :parent-target="_self"
11
- @reload="$reloadHandle"
12
- @openDesignDialog="openDesingerDialogByChild"
13
- :otherFlag="otherFlag"
14
- ></editView>
15
- </el-tab-pane>
16
- <el-tab-pane :label="$t1('列表')" name="second">
17
- <div class="tree-box fl">
18
- <slot name="treeTop"></slot>
19
- <div class="tit">
20
- <b>{{ $t1("表单分类") }}</b>
21
- </div>
22
- <div class="tree-btns" style="margin-top: 10px"></div>
23
- <el-tree
24
- v-if="showTree"
25
- :props="defaultProps"
26
- :load="loadNode"
27
- node-key="id"
28
- ref="tree"
29
- highlight-current
30
- lazy
31
- :expand-on-click-node="false"
32
- @node-click="handleNodeClick"
33
- class="tree-list"
34
- icon-class="el-icon-arrow-down"
35
- ></el-tree>
36
- </div>
37
- <label id="labBtn">
38
- <div class="icon">
39
- <i class="el-icon-more"></i>
40
- <i class="el-icon-more"></i>
41
- </div>
42
- </label>
43
- <div class="main-right fr" style="padding-left: 6px">
44
- <div class="grid-height">
45
- <vxe-grid
46
- ref="table-m1"
47
- v-bind="vxeOption"
48
- @resizable-change="$vxeTableUtil.onColumnWitchChange"
49
- @custom="$vxeTableUtil.customHandle"
50
- >
51
- <template #form>
52
- <tableForm
53
- :formData.sync="formData"
54
- @searchEvent="searchEvent"
55
- @resetEvent="resetEvent"
56
- >
57
- <template #buttonLeft>
58
- <vxe-button
59
- status="primary"
60
- class="button-sty"
61
- icon="el-icon-plus"
62
- @click="openEditDialog()"
63
- v-if="isDev && currentFormType.addAuth === 1"
64
- >{{ $t1("新增") }}
65
- </vxe-button>
66
- <vxe-button
67
- status="success"
68
- class="button-sty"
69
- icon="el-icon-download"
70
- @click="jsonImport"
71
- >{{ $t1("导入发布") }}
72
- </vxe-button>
73
- <vxe-button
74
- status="success"
75
- class="button-sty"
76
- icon="el-icon-upload2"
77
- @click="jsonExport"
78
- v-if="isDev && currentFormType.exportAuth === 1"
79
- >{{ $t1("导出发布") }}
80
- </vxe-button>
81
- <projectTagAddButton
82
- :option="addProjectTagOption"
83
- v-if="isDev && (currentFormType.editAuth === 1 || otherFlag)"
84
- ></projectTagAddButton>
85
- <projectTagDeleteButton
86
- :option="deleteProjectTagOption"
87
- v-if="isDev && (currentFormType.editAuth === 1 || otherFlag)"
88
- ></projectTagDeleteButton>
89
- </template>
90
- <template #buttonRight>
91
- <vxe-button
92
- icon="el-icon-brush"
93
- class="button-sty"
94
- @click="resetEvent"
95
- type="text"
96
- status="primary"
97
- plain
98
- >{{ $t1("刷新") }}
99
- </vxe-button>
100
- <vxe-button
101
- status="warning"
102
- icon="el-icon-search"
103
- class="button-sty"
104
- @click="searchEvent"
105
- >
106
- {{ $t1("搜索") }}
107
- </vxe-button>
108
- </template>
109
- <template #menuKindName>
110
- <vxe-form-item :title="$t1('表单分类') + ':'" field="tag">
111
- <template v-slot>
112
- <el-input v-model="currentMenuKindName" disabled></el-input>
113
- </template>
114
- </vxe-form-item>
115
- </template>
116
- <template #tag>
117
- <vxe-form-item :title="$t1('项目标签') + ':'" field="tag">
118
- <template v-slot>
119
- <el-input
120
- class="search-input"
121
- max="200"
122
- :value="getTabNames()"
123
- @clear="checkTags = []"
124
- v-el-readonly
125
- clearable
126
- >
127
- <i
128
- slot="suffix"
129
- class="el-input__icon el-icon-search"
130
- @click="openProjectTagDialog3"
131
- ></i>
132
- </el-input>
133
- </template>
134
- </vxe-form-item>
135
- </template>
136
- </tableForm>
137
- </template>
138
- <template #tag="{ row }">
139
- <projectTagView
140
- v-model="row.formTemplateTagDTOs"
141
- :readonly="true"
142
- ></projectTagView>
143
- </template>
144
- <template #operation="{ row }">
145
- <a
146
- href="javascript:void(0);"
147
- class="a-link"
148
- @click="openDesingerDialogByAuth(row)"
149
- >
150
- <el-tooltip
151
- :enterable="false"
152
- effect="dark"
153
- :content="$t1('表单设计')"
154
- placement="top"
155
- popper-class="tooltip-skin"
156
- >
157
- <i class="iconfont icon-liuchengguanli-shejiqi_liucheng" />
158
- </el-tooltip>
159
- </a>
160
- <formVersionButton
161
- objType="FormTemplate"
162
- :objCode="row.formCode"
163
- :sid="row.sid"
164
- @reverCallback="searchEvent"
165
- ></formVersionButton>
166
- <a
167
- v-if="exportArchiveEnabled"
168
- href="javascript:void(0);"
169
- class="a-link"
170
- @click="jsonExportArchive(row)"
171
- >
172
- <el-tooltip
173
- :enterable="false"
174
- effect="dark"
175
- :content="$t1('导出归档')"
176
- placement="top"
177
- popper-class="tooltip-skin"
178
- >
179
- <i class="el-icon-upload2" />
180
- </el-tooltip>
181
- </a>
182
- </template>
183
- </vxe-grid>
184
- <el-drawer
185
- :title="$t1('流程模板')"
186
- :visible.sync="showItemView"
187
- :modal="false"
188
- :wrapperClosable="false"
189
- :destroy-on-close="true"
190
- size="90%"
191
- direction="btt"
192
- >
193
- <itemList
194
- v-if="showItemView"
195
- :formTemplate="currentRow"
196
- @openWfDesignDialog="openWfDesignDialog"
197
- ></itemList>
198
- </el-drawer>
199
- </div>
200
- </div>
201
- </el-tab-pane>
202
- <template #editTab="{ tab, index, reloadTabContent }">
203
- <el-tab-pane
204
- :key="tab.data.id"
205
- :label.sync="tab.data.formName"
206
- :name="tab.data.id + ''"
207
- :closable="true"
208
- >
209
- <editView
210
- v-if="tab.showContent"
211
- :_dataId="tab.dataId"
212
- :currentFormType="currentFormType"
213
- :parent-target="_self"
214
- @reload="reloadTabContent"
215
- @openDesignDialog="openDesingerDialogByChild"
216
- :otherFlag="otherFlag"
217
- ></editView>
218
- </el-tab-pane>
219
- </template>
220
- </x-tabs>
221
- <formDesignerDialog
222
- ref="formDesignerDialog"
223
- v-if="showDesingerDialog"
224
- :visiable.sync="showDesingerDialog"
225
- :formName="formName"
226
- :formCode="formCode"
227
- @reflushTemplateList="reflushTemplateList"
228
- :readonly="designerReadonly"
229
- :formTemplate="currentFormTemplate"
230
- ></formDesignerDialog>
231
- <el-dialog
232
- :title="$t1('流程设计')"
233
- :append-to-body="true"
234
- :modal-append-to-body="true"
235
- :close-on-click-modal="false"
236
- v-if="showWfDialog"
237
- :visible.sync="showWfDialog"
238
- :modal="false"
239
- custom-class="dialog-style designer-dialog"
240
- width="100%"
241
- height="100%"
242
- top="0px"
243
- bottom="0px"
244
- :before-close="closeDesignwinEvent"
245
- :destroy-on-close="true"
246
- v-el-drag-dialog
247
- >
248
- <iframe
249
- :src="wfUrl"
250
- :style="'width:100%;height:' + ($root.$el.clientHeight - 30 - 12) + 'px'"
251
- ></iframe>
252
- </el-dialog>
253
-
254
- <userDialog
255
- v-if="showUserDialog"
256
- :visiable.sync="showUserDialog"
257
- @confirm="confirmUser"
258
- :multi.sync="wfAssignMulti"
259
- />
260
- <positionDialog
261
- v-if="showPositionDialog"
262
- :visiable.sync="showPositionDialog"
263
- @confirm="confirmPosition"
264
- />
265
- <scriptDescriptionDialog
266
- path="static/readme/Wf.txt"
267
- v-if="showScriptDescriptionDialog"
268
- :visiable.sync="showScriptDescriptionDialog"
269
- ></scriptDescriptionDialog>
270
-
271
- <formTypeEditDialog
272
- v-if="showFormTypeDialog"
273
- :visiable.sync="showFormTypeDialog"
274
- :_dataId.sync="editFormTypeId"
275
- @confirm="confirmFormTypeEditDialog"
276
- ></formTypeEditDialog>
277
-
278
- <ftHistoryDialog
279
- v-if="showFtHistoryDialog"
280
- :visiable.sync="showFtHistoryDialog"
281
- :formCode.sync="operateFtHistory.formCode"
282
- @confirm="confirmFtHistoryDialog"
283
- :multi="false"
284
- />
285
- <projectTagDialog
286
- v-if="showProjectTagDialog3"
287
- :visiable.sync="showProjectTagDialog3"
288
- @confirm="confirmProjectTagDialog3"
289
- :rows="checkTags"
290
- :multi="true"
291
- ></projectTagDialog>
292
- </div>
293
- </template>
294
-
295
- <script>
296
- import mixin from "./mixins/list";
297
-
298
- export default {
299
- name: "bd_form_template:list",
300
- mixins: [mixin],
301
- };
302
- </script>
303
- <style scoped lang="scss"></style>
1
+ <template>
2
+ <div id="containt">
3
+ <x-tabs ref="xTabs" v-model="activeName" class="tab-box" paneKeyName="id">
4
+ <el-tab-pane :label="$t1('常规')" name="first">
5
+ <editView
6
+ v-if="showEdit"
7
+ visible-key="showEdit"
8
+ :_dataId.sync="dataId"
9
+ :currentFormType="currentFormType"
10
+ :parent-target="_self"
11
+ @reload="$reloadHandle"
12
+ @openDesignDialog="openDesingerDialogByChild"
13
+ :otherFlag="otherFlag"
14
+ ></editView>
15
+ </el-tab-pane>
16
+ <el-tab-pane :label="$t1('列表')" name="second">
17
+ <div class="tree-box fl">
18
+ <slot name="treeTop"></slot>
19
+ <div class="tit">
20
+ <b>{{ $t1("表单分类") }}</b>
21
+ </div>
22
+ <div class="tree-btns" style="margin-top: 10px"></div>
23
+ <el-tree
24
+ v-if="showTree"
25
+ :props="defaultProps"
26
+ :load="loadNode"
27
+ node-key="id"
28
+ ref="tree"
29
+ highlight-current
30
+ lazy
31
+ :expand-on-click-node="false"
32
+ @node-click="handleNodeClick"
33
+ class="tree-list"
34
+ icon-class="el-icon-arrow-down"
35
+ ></el-tree>
36
+ </div>
37
+ <label id="labBtn">
38
+ <div class="icon">
39
+ <i class="el-icon-more"></i>
40
+ <i class="el-icon-more"></i>
41
+ </div>
42
+ </label>
43
+ <div class="main-right fr" style="padding-left: 6px">
44
+ <div class="grid-height">
45
+ <vxe-grid
46
+ ref="table-m1"
47
+ v-bind="vxeOption"
48
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
49
+ @custom="$vxeTableUtil.customHandle"
50
+ >
51
+ <template #form>
52
+ <tableForm
53
+ :formData.sync="formData"
54
+ @searchEvent="searchEvent"
55
+ @resetEvent="resetEvent"
56
+ >
57
+ <template #buttonLeft>
58
+ <vxe-button
59
+ status="primary"
60
+ class="button-sty"
61
+ icon="el-icon-plus"
62
+ @click="openEditDialog()"
63
+ v-if="isDev && currentFormType.addAuth === 1"
64
+ >{{ $t1("新增") }}
65
+ </vxe-button>
66
+ <vxe-button
67
+ status="success"
68
+ class="button-sty"
69
+ icon="el-icon-download"
70
+ @click="jsonImport"
71
+ >{{ $t1("导入发布") }}
72
+ </vxe-button>
73
+ <vxe-button
74
+ status="success"
75
+ class="button-sty"
76
+ icon="el-icon-upload2"
77
+ @click="jsonExport"
78
+ v-if="isDev && currentFormType.exportAuth === 1"
79
+ >{{ $t1("导出发布") }}
80
+ </vxe-button>
81
+ <projectTagAddButton
82
+ :option="addProjectTagOption"
83
+ v-if="isDev && (currentFormType.editAuth === 1 || otherFlag)"
84
+ ></projectTagAddButton>
85
+ <projectTagDeleteButton
86
+ :option="deleteProjectTagOption"
87
+ v-if="isDev && (currentFormType.editAuth === 1 || otherFlag)"
88
+ ></projectTagDeleteButton>
89
+ </template>
90
+ <template #buttonRight>
91
+ <vxe-button
92
+ icon="el-icon-brush"
93
+ class="button-sty"
94
+ @click="resetEvent"
95
+ type="text"
96
+ status="primary"
97
+ plain
98
+ >{{ $t1("刷新") }}
99
+ </vxe-button>
100
+ <vxe-button
101
+ status="warning"
102
+ icon="el-icon-search"
103
+ class="button-sty"
104
+ @click="searchEvent"
105
+ >
106
+ {{ $t1("搜索") }}
107
+ </vxe-button>
108
+ </template>
109
+ <template #menuKindName>
110
+ <vxe-form-item :title="$t1('表单分类') + ':'" field="tag">
111
+ <template v-slot>
112
+ <el-input v-model="currentMenuKindName" disabled></el-input>
113
+ </template>
114
+ </vxe-form-item>
115
+ </template>
116
+ <template #tag>
117
+ <vxe-form-item :title="$t1('项目标签') + ':'" field="tag">
118
+ <template v-slot>
119
+ <el-input
120
+ class="search-input"
121
+ max="200"
122
+ :value="getTabNames()"
123
+ @clear="checkTags = []"
124
+ v-el-readonly
125
+ clearable
126
+ >
127
+ <i
128
+ slot="suffix"
129
+ class="el-input__icon el-icon-search"
130
+ @click="openProjectTagDialog3"
131
+ ></i>
132
+ </el-input>
133
+ </template>
134
+ </vxe-form-item>
135
+ </template>
136
+ </tableForm>
137
+ </template>
138
+ <template #tag="{ row }">
139
+ <projectTagView
140
+ v-model="row.formTemplateTagDTOs"
141
+ :readonly="true"
142
+ ></projectTagView>
143
+ </template>
144
+ <template #operation="{ row }">
145
+ <a
146
+ href="javascript:void(0);"
147
+ class="a-link"
148
+ @click="openDesingerDialogByAuth(row)"
149
+ >
150
+ <el-tooltip
151
+ :enterable="false"
152
+ effect="dark"
153
+ :content="$t1('表单设计')"
154
+ placement="top"
155
+ popper-class="tooltip-skin"
156
+ >
157
+ <i class="iconfont icon-liuchengguanli-shejiqi_liucheng" />
158
+ </el-tooltip>
159
+ </a>
160
+ <formVersionButton
161
+ objType="FormTemplate"
162
+ :objCode="row.formCode"
163
+ :sid="row.sid"
164
+ @reverCallback="searchEvent"
165
+ ></formVersionButton>
166
+ <a
167
+ v-if="exportArchiveEnabled"
168
+ href="javascript:void(0);"
169
+ class="a-link"
170
+ @click="jsonExportArchive(row)"
171
+ >
172
+ <el-tooltip
173
+ :enterable="false"
174
+ effect="dark"
175
+ :content="$t1('导出归档')"
176
+ placement="top"
177
+ popper-class="tooltip-skin"
178
+ >
179
+ <i class="el-icon-upload2" />
180
+ </el-tooltip>
181
+ </a>
182
+ </template>
183
+ </vxe-grid>
184
+ <el-drawer
185
+ :title="$t1('流程模板')"
186
+ :visible.sync="showItemView"
187
+ :modal="false"
188
+ :wrapperClosable="false"
189
+ :destroy-on-close="true"
190
+ size="90%"
191
+ direction="btt"
192
+ >
193
+ <itemList
194
+ v-if="showItemView"
195
+ :formTemplate="currentRow"
196
+ @openWfDesignDialog="openWfDesignDialog"
197
+ ></itemList>
198
+ </el-drawer>
199
+ </div>
200
+ </div>
201
+ </el-tab-pane>
202
+ <template #editTab="{ tab, index, reloadTabContent }">
203
+ <el-tab-pane
204
+ :key="tab.data.id"
205
+ :label.sync="tab.data.formName"
206
+ :name="tab.data.id + ''"
207
+ :closable="true"
208
+ >
209
+ <editView
210
+ v-if="tab.showContent"
211
+ :_dataId="tab.dataId"
212
+ :currentFormType="currentFormType"
213
+ :parent-target="_self"
214
+ @reload="reloadTabContent"
215
+ @openDesignDialog="openDesingerDialogByChild"
216
+ :otherFlag="otherFlag"
217
+ ></editView>
218
+ </el-tab-pane>
219
+ </template>
220
+ </x-tabs>
221
+ <formDesignerDialog
222
+ ref="formDesignerDialog"
223
+ v-if="showDesingerDialog"
224
+ :visiable.sync="showDesingerDialog"
225
+ :formName="formName"
226
+ :formCode="formCode"
227
+ @reflushTemplateList="reflushTemplateList"
228
+ :readonly="designerReadonly"
229
+ :formTemplate="currentFormTemplate"
230
+ :defaultLayoutType="designerLayoutType"
231
+ ></formDesignerDialog>
232
+ <el-dialog
233
+ :title="$t1('流程设计')"
234
+ :append-to-body="true"
235
+ :modal-append-to-body="true"
236
+ :close-on-click-modal="false"
237
+ v-if="showWfDialog"
238
+ :visible.sync="showWfDialog"
239
+ :modal="false"
240
+ custom-class="dialog-style designer-dialog"
241
+ width="100%"
242
+ height="100%"
243
+ top="0px"
244
+ bottom="0px"
245
+ :before-close="closeDesignwinEvent"
246
+ :destroy-on-close="true"
247
+ v-el-drag-dialog
248
+ >
249
+ <iframe
250
+ :src="wfUrl"
251
+ :style="'width:100%;height:' + ($root.$el.clientHeight - 30 - 12) + 'px'"
252
+ ></iframe>
253
+ </el-dialog>
254
+
255
+ <userDialog
256
+ v-if="showUserDialog"
257
+ :visiable.sync="showUserDialog"
258
+ @confirm="confirmUser"
259
+ :multi.sync="wfAssignMulti"
260
+ />
261
+ <positionDialog
262
+ v-if="showPositionDialog"
263
+ :visiable.sync="showPositionDialog"
264
+ @confirm="confirmPosition"
265
+ />
266
+ <scriptDescriptionDialog
267
+ path="static/readme/Wf.txt"
268
+ v-if="showScriptDescriptionDialog"
269
+ :visiable.sync="showScriptDescriptionDialog"
270
+ ></scriptDescriptionDialog>
271
+
272
+ <formTypeEditDialog
273
+ v-if="showFormTypeDialog"
274
+ :visiable.sync="showFormTypeDialog"
275
+ :_dataId.sync="editFormTypeId"
276
+ @confirm="confirmFormTypeEditDialog"
277
+ ></formTypeEditDialog>
278
+
279
+ <ftHistoryDialog
280
+ v-if="showFtHistoryDialog"
281
+ :visiable.sync="showFtHistoryDialog"
282
+ :formCode.sync="operateFtHistory.formCode"
283
+ @confirm="confirmFtHistoryDialog"
284
+ :multi="false"
285
+ />
286
+ <projectTagDialog
287
+ v-if="showProjectTagDialog3"
288
+ :visiable.sync="showProjectTagDialog3"
289
+ @confirm="confirmProjectTagDialog3"
290
+ :rows="checkTags"
291
+ :multi="true"
292
+ ></projectTagDialog>
293
+ </div>
294
+ </template>
295
+
296
+ <script>
297
+ import mixin from "./mixins/list";
298
+
299
+ export default {
300
+ name: "bd_form_template:list",
301
+ mixins: [mixin],
302
+ };
303
+ </script>
304
+ <style scoped lang="scss"></style>