cloud-web-corejs 1.0.54-dev.22 → 1.0.54-dev.221

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 (253) hide show
  1. package/package.json +6 -3
  2. package/src/components/Qrcode/fileParse.vue +0 -1
  3. package/src/components/VabUpload/index.vue +2 -1
  4. package/src/components/VabUpload/mixins.js +1 -1
  5. package/src/components/VabUpload/view.vue +22 -6
  6. package/src/components/advancedSearchDialog/mixins.js +1 -1
  7. package/src/components/baseAttachment/index.vue +22 -13
  8. package/src/components/baseAttachment/mixins.js +1 -1
  9. package/src/components/excelExport/exportFieldDialog.vue +16 -6
  10. package/src/components/excelExport/index.js +2 -1
  11. package/src/components/excelExport/index.vue +8 -6
  12. package/src/components/excelExport/mixins.js +3 -2
  13. package/src/components/excelImport/mixins.js +1 -1
  14. package/src/components/fileLibrary/fileObjAuthDialog.vue +1 -1
  15. package/src/components/fileLibrary/fileObjAuthEditDialog.vue +7 -1
  16. package/src/components/fileLibrary/fileObjNotifyEdit.vue +90 -68
  17. package/src/components/fileLibrary/filterDialog.vue +383 -0
  18. package/src/components/fileLibrary/index.vue +23 -24
  19. package/src/components/fileLibrary/mixins/categoryMoveDialogMixins.js +1 -1
  20. package/src/components/fileLibrary/mixins/fileCategoryDialogMixins.js +1 -1
  21. package/src/components/fileLibrary/mixins/fileHistoryDialogMixins.js +2 -2
  22. package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +337 -207
  23. package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +33 -26
  24. package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +5 -5
  25. package/src/components/fileLibrary/mixins/indexMixins.js +77 -27
  26. package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +63 -3
  27. package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +1 -1
  28. package/src/components/fileLibrary/propertiesDialog.vue +18 -0
  29. package/src/components/fileLibrary/shareDialog.vue +1 -1
  30. package/src/components/jsonImport/index.js +1 -1
  31. package/src/components/jsonImport/mixins.js +1 -1
  32. package/src/components/onlineTalk/index.vue +327 -5
  33. package/src/components/onlineTalk/mixins.js +1 -1
  34. package/src/components/table/CellSlot.vue +1 -0
  35. package/src/components/table/index.js +12 -10
  36. package/src/components/table/tableForm.vue +99 -63
  37. package/src/components/table/tableFormMixin.js +1 -1
  38. package/src/components/table/util/index.js +328 -0
  39. package/src/components/table/vxeFilter/mixin.js +1 -1
  40. package/src/components/vb-tabs/x-tabs.vue +3 -2
  41. package/src/components/wf/content.vue +2 -0
  42. package/src/components/wf/setCandidateDialog.vue +1 -0
  43. package/src/components/wf/wf.js +3 -1
  44. package/src/components/wf/wfStartDialog.vue +1 -1
  45. package/src/components/wf/wfUtil.js +1 -1
  46. package/src/components/xform/form-designer/designer.js +1 -1
  47. package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +2 -1
  48. package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +16 -4
  49. package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +5 -1
  50. package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +37 -6
  51. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +3 -1
  52. package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +26 -7
  53. package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +34 -5
  54. package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +1 -1
  55. package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +14 -6
  56. package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +1 -0
  57. package/src/components/xform/form-designer/form-widget/field-widget/dropdown-item-widget.vue +77 -0
  58. package/src/components/xform/form-designer/form-widget/field-widget/dropdown-menu-widget.vue +106 -0
  59. package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +1 -1
  60. package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +1 -1
  61. package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +1 -1
  62. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +21 -16
  63. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +200 -6
  64. package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +6 -8
  65. package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +81 -0
  66. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +49 -8
  67. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +61 -88
  68. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +13 -0
  69. package/src/components/xform/form-designer/form-widget/field-widget/mixins/vabsearch-mixin.js +176 -0
  70. package/src/components/xform/form-designer/form-widget/field-widget/multiSearch-widget.vue +53 -0
  71. package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +1 -1
  72. package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +70 -3
  73. package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +13 -5
  74. package/src/components/xform/form-designer/form-widget/field-widget/search_button-widget.vue +1 -1
  75. package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +13 -3
  76. package/src/components/xform/form-designer/form-widget/field-widget/singerSearch-widget.vue +53 -0
  77. package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +3 -2
  78. package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +6 -1
  79. package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +46 -34
  80. package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +2 -2
  81. package/src/components/xform/form-designer/form-widget/field-widget/vabSearch-widget.vue +2 -170
  82. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +88 -8
  83. package/src/components/xform/form-designer/indexMixin.js +1 -1
  84. package/src/components/xform/form-designer/setting-panel/form-setting.vue +312 -56
  85. package/src/components/xform/form-designer/setting-panel/index.vue +4 -0
  86. package/src/components/xform/form-designer/setting-panel/indexMixin.js +1 -1
  87. package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +8 -3
  88. package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +1 -1
  89. package/src/components/xform/form-designer/setting-panel/property-editor/autoValueEnabled-editor.vue +38 -0
  90. package/src/components/xform/form-designer/setting-panel/property-editor/censusClass-editor.vue +6 -0
  91. package/src/components/xform/form-designer/setting-panel/property-editor/commonAttributeEnabled-editor.vue +41 -0
  92. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +126 -0
  93. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +1077 -1042
  94. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/onCheckboxChange-editor.vue +1 -1
  95. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +1043 -496
  96. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +2 -2
  97. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-offset-editor.vue +1 -1
  98. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-pull-editor.vue +1 -1
  99. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-push-editor.vue +1 -1
  100. package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +0 -8
  101. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin.js +2 -2
  102. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onAfterConfirmFile-editor.vue +32 -0
  103. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +2 -2
  104. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +48 -5
  105. package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultTime-editor.vue +27 -0
  106. package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-item-editor.vue +21 -0
  107. package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-menu-editor.vue +59 -0
  108. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +185 -69
  109. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +188 -86
  110. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +84 -39
  111. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +26 -10
  112. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +86 -0
  113. package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-defaultValue-editor.vue +1 -1
  114. package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +47 -28
  115. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +26 -7
  116. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchName-editor.vue +13 -1
  117. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +30 -1
  118. package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +46 -4
  119. package/src/components/xform/form-designer/setting-panel/property-editor/formula-editor.vue +721 -466
  120. package/src/components/xform/form-designer/setting-panel/property-editor/limit-editor.vue +1 -1
  121. package/src/components/xform/form-designer/setting-panel/property-editor/multiple-editor.vue +19 -14
  122. package/src/components/xform/form-designer/setting-panel/property-editor/multipleLimit-editor.vue +1 -1
  123. package/src/components/xform/form-designer/setting-panel/property-editor/placeholder-editor.vue +1 -1
  124. package/src/components/xform/form-designer/setting-panel/property-editor/precision-editor.vue +1 -1
  125. package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +318 -0
  126. package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue +22 -18
  127. package/src/components/xform/form-designer/setting-panel/property-editor/showRuleFlag-editor.vue +1 -1
  128. package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +216 -17
  129. package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +216 -29
  130. package/src/components/xform/form-designer/setting-panel/property-editor/widgetShowRuleFlag-editor.vue +220 -0
  131. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +11 -0
  132. package/src/components/xform/form-designer/toolbar-panel/index.vue +12 -11
  133. package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +1 -1
  134. package/src/components/xform/form-designer/widget-panel/index.vue +21 -1
  135. package/src/components/xform/form-designer/widget-panel/indexMixin.js +3 -2
  136. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +747 -355
  137. package/src/components/xform/form-render/container-item/containerItemMixin.js +1 -1
  138. package/src/components/xform/form-render/container-item/data-table-item.vue +45 -15
  139. package/src/components/xform/form-render/container-item/data-table-mixin.js +2361 -18
  140. package/src/components/xform/form-render/container-item/data-table-mixin2.js +2169 -0
  141. package/src/components/xform/form-render/container-item/detail-pane-item.vue +15 -2
  142. package/src/components/xform/form-render/container-item/grid-col-item.vue +10 -3
  143. package/src/components/xform/form-render/container-item/grid-item.vue +1 -1
  144. package/src/components/xform/form-render/container-item/list-h5-item.vue +1 -9
  145. package/src/components/xform/form-render/container-item/list-h5-item2.vue +1 -8
  146. package/src/components/xform/form-render/container-item/tab-item.vue +11 -6
  147. package/src/components/xform/form-render/container-item/table-cell-item.vue +38 -32
  148. package/src/components/xform/form-render/container-item/table-item.vue +4 -2
  149. package/src/components/xform/form-render/indexMixin.js +2429 -3
  150. package/src/components/xform/lang/zh-CN.js +14 -3
  151. package/src/components/xform/mixins/defaultHandle.js +1 -1
  152. package/src/components/xform/mixins/scriptHttp.js +182 -1
  153. package/src/components/xform/utils/emitter.js +4 -4
  154. package/src/components/xform/utils/format.js +21 -30
  155. package/src/components/xform/utils/formula-util.js +669 -0
  156. package/src/components/xform/utils/util.js +1 -1
  157. package/src/layout/components/AppMain.vue +5 -1
  158. package/src/layout/components/Sidebar/default.vue +50 -6
  159. package/src/layout/components/TagsView/index.vue +0 -1
  160. package/src/layout/components/extractedCode/createDialog.vue +92 -0
  161. package/src/layout/components/extractedCode/queryDialog.vue +96 -0
  162. package/src/layout/components/extractedCode/viewDialog.vue +192 -0
  163. package/src/layout/components/watermark/index.vue +83 -0
  164. package/src/mixins/selectDialog/index.js +1 -1
  165. package/src/mixins/tableTree/index.js +1 -1
  166. package/src/router/modules/customer.js +15 -0
  167. package/src/store/config/index.js +760 -1
  168. package/src/store/modules/permission.js +1 -1
  169. package/src/store/modules/settings.js +1 -1
  170. package/src/store/modules/user.js +1 -1
  171. package/src/utils/index.js +4 -2
  172. package/src/utils/pddLog.js +103 -0
  173. package/src/utils/request.js +28 -28
  174. package/src/utils/vab.js +19 -27
  175. package/src/views/bd/setting/bd_attach_setting/edit.vue +5 -5
  176. package/src/views/bd/setting/bd_attach_setting/list.vue +28 -55
  177. package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +4 -5
  178. package/src/views/bd/setting/bd_attach_setting/mixins/list.js +239 -1
  179. package/src/views/bd/setting/form_import_log/edit.vue +127 -0
  180. package/src/views/bd/setting/form_import_log/list.vue +205 -0
  181. package/src/views/bd/setting/form_script/edit1.vue +14 -3
  182. package/src/views/bd/setting/form_script/form_list.vue +1 -1
  183. package/src/views/bd/setting/form_script/mixins/edit.js +3 -1
  184. package/src/views/bd/setting/form_script/mixins/edit1.js +1 -1
  185. package/src/views/bd/setting/form_script/mixins/form_list.js +1 -1
  186. package/src/views/bd/setting/form_script/mixins/list.js +212 -1
  187. package/src/views/bd/setting/form_script/mixins/list1.js +381 -14
  188. package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +105 -0
  189. package/src/views/bd/setting/form_template/edit.vue +9 -1
  190. package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +2 -2
  191. package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +4 -0
  192. package/src/views/bd/setting/form_template/mixins/edit.js +1 -1
  193. package/src/views/bd/setting/form_template/mixins/list.js +645 -22
  194. package/src/views/bd/setting/form_template/mixins/wf_list.js +12 -0
  195. package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +254 -0
  196. package/src/views/bd/setting/form_template/wf_list.vue +127 -0
  197. package/src/views/bd/setting/menu_kind/list.vue +4 -0
  198. package/src/views/bd/setting/menu_kind/mixins/list.js +201 -1
  199. package/src/views/bd/setting/table_model/edit.vue +834 -426
  200. package/src/views/bd/setting/table_model/mixins/dialog.js +1 -1
  201. package/src/views/bd/setting/table_model/mixins/edit.js +12 -13
  202. package/src/views/bd/setting/table_model/mixins/list.js +399 -14
  203. package/src/views/user/area/dialog.vue +21 -9
  204. package/src/views/user/bill_setting/edit.vue +1 -1
  205. package/src/views/user/bill_setting/list.vue +1 -1
  206. package/src/views/user/common_attribute/itemEdit.vue +2 -2
  207. package/src/views/user/common_attribute/list.vue +1 -1
  208. package/src/views/user/common_script/edit.vue +1 -1
  209. package/src/views/user/common_script/list.vue +1 -1
  210. package/src/views/user/company_info/dialog.vue +164 -154
  211. package/src/views/user/company_info/edit.vue +1 -1
  212. package/src/views/user/extend_datasource/dialog.vue +1 -0
  213. package/src/views/user/extend_datasource/edit.vue +3 -0
  214. package/src/views/user/extend_datasource/list.vue +2 -1
  215. package/src/views/user/file_type/edit.vue +30 -1
  216. package/src/views/user/file_type/list.vue +28 -0
  217. package/src/views/user/form/vform/designer.vue +775 -749
  218. package/src/views/user/form/view/list.vue +27 -9
  219. package/src/views/user/groups/edit.vue +2 -0
  220. package/src/views/user/groups/list.vue +1 -0
  221. package/src/views/user/home/default.vue +1022 -979
  222. package/src/views/user/home/dev.vue +29 -0
  223. package/src/views/user/home/index.vue +16 -6
  224. package/src/views/user/login/default.vue +36 -5
  225. package/src/views/user/login/indexMixin.js +117 -3
  226. package/src/views/user/notify_message/dialog.vue +1 -1
  227. package/src/views/user/notify_template/edit.vue +188 -187
  228. package/src/views/user/notify_template/edit2.vue +176 -0
  229. package/src/views/user/notify_template/list.vue +4 -1
  230. package/src/views/user/notify_template/list2.vue +190 -0
  231. package/src/views/user/outLink/form_view.vue +39 -12
  232. package/src/views/user/outLink/index.vue +17 -0
  233. package/src/views/user/outLink/view.vue +39 -13
  234. package/src/views/user/position/list.vue +4 -4
  235. package/src/views/user/project_tag/list.vue +9 -4
  236. package/src/views/user/push_setting/list.vue +2 -2
  237. package/src/views/user/request_setting/edit.vue +252 -0
  238. package/src/views/user/request_setting/list.vue +249 -0
  239. package/src/views/user/role/dialog.vue +1 -1
  240. package/src/views/user/role/list.vue +4 -4
  241. package/src/views/user/sale_org/dialog.vue +1 -1
  242. package/src/views/user/sale_org/list.vue +4 -1
  243. package/src/views/user/user/dialog.vue +1 -1
  244. package/src/views/user/user/edit.vue +39 -19
  245. package/src/views/user/user/form_edit.vue +63 -2
  246. package/src/views/user/user/form_info.vue +210 -0
  247. package/src/views/user/user/form_list.vue +1 -0
  248. package/src/views/user/user/list.vue +4 -11
  249. package/src/views/user/wf/wf_manage/list.vue +1 -1
  250. package/src/views/user/wf/wf_manage/wfContentDialog.vue +1 -1
  251. package/src/views/user/wf/wf_obj_config/importItemDialog.vue +109 -0
  252. package/src/views/user/wf/wf_obj_config/list.vue +94 -8
  253. package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +2 -2
@@ -1,426 +1,834 @@
1
- <template>
2
- <div class="detail-wrap">
3
- <el-form ref="editForm" :model="szTaMb">
4
- <div class="d-header clearfix">
5
- <div class="fl">
6
- <i class="el-icon-info"/>
7
- {{ dataId ? $t1('查看数据表定义模板') : $t1('新增数据表定义模板') }}
8
- </div>
9
- <div class="fr">
10
- <el-button type="primary" plain class="button-sty" @click="$baseReload()" icon="el-icon-refresh-right">
11
- {{ $t1('重置') }}
12
- </el-button>
13
- <el-button type="primary" class="button-sty" icon="el-icon-check" @click="saveData"
14
- v-if="isDev && !szTaMb.systems && menuKindAuth.editAuth===1">
15
- {{ $t1('保存') }}
16
- </el-button>
17
-
18
- <el-button type="success" class="button-sty" icon="el-icon-check"
19
- @click="createModifyTable()" v-if="!szTaMb.systems && menuKindAuth.editAuth===1"> {{ $t1('创建/更新数据表') }}
20
- </el-button>
21
- </div>
22
- </div>
23
- <baseTabs>
24
- <baseTabPane :label="$t1('基本信息')">
25
- <template #default>
26
- <table class="table-detail">
27
- <tbody>
28
- <tr>
29
- <th>
30
- <em class="f-red">*</em>
31
- {{ $t1('实体名称') }}
32
- </th>
33
- <td colspan="3">
34
- <el-form-item prop="taEn" :rules="[{ required: true, trigger: ['blur', 'change'] }]">
35
- <el-input type="text" autocomplete="off" v-model="szTaMb.taEn" clearable/>
36
- </el-form-item>
37
- </td>
38
- <th><em class="f-red">*</em>{{ $t1('数据库表名') }}</th>
39
- <td colspan="3">
40
- {{ szTaMb.taBm }}
41
- </td>
42
- </tr>
43
- <tr>
44
- <th><em class="f-red">*</em>{{ $t1('表描述') }}</th>
45
- <td colspan="5">
46
- <el-form-item prop="taCh" :rules="[{ required: true, trigger: ['blur', 'change'] }]">
47
- <el-input type="text" autocomplete="off" v-model="szTaMb.taCh" clearable/>
48
- </el-form-item>
49
- </td>
50
- </tr>
51
- <tr>
52
- <th><em class="f-red">*</em>{{ $t1('是否明细') }}</th>
53
- <td>
54
- <el-form-item prop="taType" :rules="[{ required: true, trigger: ['blur', 'change'] }]">
55
- <el-radio-group v-model="szTaMb.taType">
56
- <el-radio :label="1">{{ $t1('是') }}</el-radio>
57
- <el-radio :label="0">{{ $t1('否') }}</el-radio>
58
- </el-radio-group>
59
- </el-form-item>
60
- </td>
61
- <th>
62
- <em class="f-red" v-show="szTaMb.taType===1">*</em>
63
- {{ $t1('所属主实体') }}
64
- </th>
65
- <td colspan="3">
66
- <el-form-item prop="sszstEn"
67
- :rules="[{
68
- required:szTaMb.taType===1,
69
- trigger: ['blur', 'change']
70
- }]">
71
- <el-input
72
- class="search-input"
73
- max="200"
74
- v-model="szTaMb.sszstEn"
75
- @clear="
76
- szTaMb.sszst = '';
77
- $forceUpdate();
78
- "
79
- :disabled="szTaMb.taType==0"
80
- v-el-readonly
81
- clearable
82
- >
83
- <i slot="suffix" class="el-input__icon el-icon-search" @click="showSzTaMbDialog = true"></i>
84
- </el-input>
85
- </el-form-item>
86
- </td>
87
- </tr>
88
- <tr>
89
- <th><em class="f-red">*</em>{{ $t1('是否树结构') }}</th>
90
- <td>
91
- <el-form-item prop="taRule" :rules="[{ required: true, trigger: ['blur', 'change'] }]">
92
- <el-radio-group v-model="szTaMb.taRule" @change="changeTaRule">
93
- <el-radio :label="1">{{ $t1('是') }}</el-radio>
94
- <el-radio :label="0">{{ $t1('否') }}</el-radio>
95
- </el-radio-group>
96
- </el-form-item>
97
- </td>
98
- <th><em class="f-red">*</em>{{ $t1('数据范围') }}</th>
99
- <td colspan="3">
100
- <el-form-item prop="dataRange" :rules="[{ required: true, trigger: ['blur', 'change'] }]">
101
- <el-radio-group v-model="szTaMb.dataRange">
102
- <el-radio :label="1">{{ $t1('集团') }}</el-radio>
103
- <el-radio :label="0">{{ $t1('当前企业') }}</el-radio>
104
- </el-radio-group>
105
- </el-form-item>
106
- </td>
107
- </tr>
108
- <tr>
109
- <th>
110
- <em class="f-red">*</em>
111
- {{ $t1('表单分类') }}
112
- </th>
113
- <td colspan="5">
114
- <el-form-item prop="menuKindName"
115
- :rules="[{
116
- required:true,
117
- trigger: ['blur', 'change']
118
- }]">
119
- <el-input
120
- class="search-input"
121
- max="200"
122
- v-model="szTaMb.menuKindName"
123
- @clear="
124
- szTaMb.menuKindCode = '';
125
- $forceUpdate();
126
- "
127
- v-el-readonly
128
- clearable
129
- >
130
- <i slot="suffix" class="el-input__icon el-icon-search" @click="showMenuKindDialog = true"></i>
131
- </el-input>
132
- </el-form-item>
133
- </td>
134
- </tr>
135
- <tr>
136
- <th>
137
- {{ $t1('项目标签') }}
138
- </th>
139
- <td colspan="7">
140
- <projectTagView v-model="szTaMb.szTaMbTagDTOs"></projectTagView>
141
- </td>
142
- </tr>
143
- <tr>
144
- <th>
145
- {{ $t1('服务名') }}
146
- </th>
147
- <td colspan="7">
148
- {{szTaMb.serviceName}}
149
- </td>
150
- </tr>
151
- <tr>
152
- <th>{{ $t1('创建人') }}</th>
153
- <td>{{ szTaMb.createBy }}</td>
154
- <th>{{ $t1('创建时间') }}</th>
155
- <td>{{ szTaMb.createDate }}</td>
156
- <th>{{ $t1('更新人') }}</th>
157
- <td>{{ szTaMb.modifyBy }}</td>
158
- <th>{{ $t1('更新时间') }}</th>
159
- <td>{{ szTaMb.modifyDate }}</td>
160
- </tr>
161
- </tbody>
162
- </table>
163
- </template>
164
- </baseTabPane>
165
- <baseTabPane :label="$t1('数据表字段明细')">
166
- <template #button>
167
- <el-button class="button-sty" @click="addTaMbItems" icon="el-icon-plus">{{ $t1('新增') }}</el-button>
168
- </template>
169
- <template #default>
170
- <div>
171
- <vxe-grid
172
- ref="table-szTaZdMb"
173
- :data="szTaMb.szTaZdMbDTOs"
174
- v-bind="productOption"
175
- @resizable-change="$vxeTableUtil.onColumnWitchChange"
176
- @custom="$vxeTableUtil.customHandle"
177
- >
178
- <template #zdType="{row}">
179
- <el-select v-model="row.zdType" clearable :disabled="!!row.systems || !!row.relationZd">
180
- <el-option value="Boolean" :label="$t1('布尔')"></el-option>
181
- <el-option value="Integer" :label="$t1('整数')"></el-option>
182
- <el-option value="Long" :label="$t1('长整数')"></el-option>
183
- <el-option value="Decimal" :label="$t1('精度小数')"></el-option>
184
- <el-option value="Money" :label="$t1('金额')"></el-option>
185
- <el-option value="Text" :label="$t1('文本')"></el-option>
186
- <el-option value="TextArea" :label="$t1('长文本')"></el-option>
187
- <el-option value="DateTime" :label="$t1('日期时间')"></el-option>
188
- <el-option value="Reference" :label="$t1('关联表')"></el-option>
189
- </el-select>
190
- </template>
191
- <template #referenceZd="{row, rowIndex, $table}">
192
- <el-input
193
- class="search-input"
194
- v-model="row.referenceZd"
195
- clearable
196
- @clear="
197
- $forceUpdate();
198
- "
199
- v-el-readonly
200
- v-if="row.zdType=='Reference'"
201
- >
202
- <i slot="suffix" class="el-input__icon el-icon-search"
203
- @click="openReferenceZdDialog(row, rowIndex, $table)"></i>
204
- </el-input>
205
- <template v-else>
206
- {{ row.referenceZd }}
207
- </template>
208
- </template>
209
- <template #zdEn="{row, rowIndex}">
210
- <template v-if="!!row.systems || !!row.relationZd">
211
- <div :style="!!row.relationZd ? 'margin-left:20px' : ''">{{ row.zdEn }}</div>
212
- </template>
213
- <template v-else>
214
- <el-form-item :prop="'szTaZdMbDTOs.' + rowIndex + '.zdEn'"
215
- :rules="[{required: true, trigger: ['blur', 'change']}]">
216
- <el-input v-model="row.zdEn" clearable/>
217
- </el-form-item>
218
- </template>
219
- </template>
220
- <template #zdCh="{row, rowIndex}">
221
- <el-form-item :prop="'szTaZdMbDTOs.' + rowIndex + '.zdCh'"
222
- :rules="[{required: true, trigger: ['blur', 'change']}]">
223
- <el-input v-model="row.zdCh" clearable :disabled="!!row.systems"/>
224
- </el-form-item>
225
- </template>
226
- <template #zdTypeValues="{row, rowIndex}">
227
- <el-form-item :prop="'szTaZdMbDTOs.' + rowIndex + '.zdTypeValues'"
228
- :rules="[{required: false, trigger: ['blur', 'change']}]">
229
- <el-input v-model="row.zdTypeValues" clearable :disabled="!!row.systems || !!row.relationZd"/>
230
- </el-form-item>
231
- </template>
232
- <template #required="{row, rowIndex}">
233
- <el-checkbox v-model="row.required" :disabled="!!row.systems || !!row.relationZd"/>
234
- </template>
235
- <template #enabled="{row, rowIndex}">
236
- <el-checkbox v-model="row.enabled" :disabled="!!row.systems || !!row.relationZd"/>
237
- </template>
238
- <template #generateCode="{row, rowIndex}">
239
- <el-checkbox v-model="row.generateCode" :disabled="!!row.systems || !!row.relationZd"/>
240
- </template>
241
- <template #t1="{row, rowIndex}">
242
- <el-checkbox v-model="row.t1" :disabled="!!row.systems || !!row.relationZd"/>
243
- </template>
244
- <template #codeType="{row, rowIndex}">
245
- <el-form-item :prop="'szTaZdMbDTOs.' + rowIndex + '.codeType'"
246
- :rules="[{required: false, trigger: ['blur', 'change']}]">
247
- <el-input v-model="row.codeType" clearable :disabled="!!row.systems || !!row.relationZd"/>
248
- </el-form-item>
249
- </template>
250
- <template #orders="{row, rowIndex}">
251
- <el-form-item :prop="'szTaZdMbDTOs.' + rowIndex + '.orders'"
252
- :rules="[{required: false, trigger: ['blur', 'change']}]">
253
- <base-input-number v-model="row.orders" clearable :disabled="!!row.systems" @change="changeOrders(row)"/>
254
- </el-form-item>
255
- </template>
256
- </vxe-grid>
257
- </div>
258
- <table class="table-detail">
259
- <tbody>
260
- <tr>
261
- <th>
262
- {{ $t1('表编码') }}
263
- </th>
264
- <td colspan="7">
265
- {{ szTaMb.taCode }}
266
- </td>
267
- </tr>
268
- </tbody>
269
- </table>
270
- </template>
271
- </baseTabPane>
272
- <baseTabPane :label="$t1('操作日志')">
273
- <template #default>
274
- <formOplogTable :parent-target="_self" ref="oplogTable"></formOplogTable>
275
- </template>
276
- </baseTabPane>
277
- </baseTabs>
278
- </el-form>
279
-
280
- <szTaMbDialog v-if="showSzTaMbDialog"
281
- :visiable.sync="showSzTaMbDialog"
282
- @confirm="confirmInsertSzTaMb"
283
- :multi="false"
284
- />
285
- <itemSzTaMbDialog v-if="showItemSzTaMbDialog"
286
- :visiable.sync="showItemSzTaMbDialog"
287
- @confirm="confirmInsertItemSzTaMb" multi="false"/>
288
- <MenuKindDialog v-if="showMenuKindDialog"
289
- :visiable.sync="showMenuKindDialog"
290
- @confirm="confirmInsertMenuKind"
291
- :multi="false"
292
- />
293
-
294
- <el-dialog
295
- :title="$t1('关联表维护')"
296
- v-if="showReferenceZdDialog"
297
- :visible.sync="showReferenceZdDialog"
298
- :modal-append-to-body="false"
299
- :close-on-click-modal="false"
300
- :modal="false"
301
- custom-class="dialog-style wf-dialog"
302
- v-el-drag-dialog
303
- v-el-dialog-center
304
- >
305
- <el-form>
306
- <div id="containt">
307
- <table class="table-detail">
308
- <tbody>
309
- <tr>
310
- <th>
311
- <span class="t">
312
- {{ $t1('关联表') }}
313
- </span>
314
- </th>
315
- <td>
316
- <el-form-item label="">
317
- <el-input
318
- class="search-input"
319
- max="200"
320
- v-model="referenceEntity"
321
- @clear="
322
- referenceKey = null;
323
- referenceShowFields = [];
324
- $forceUpdate();
325
- "
326
- v-el-readonly
327
- clearable
328
- >
329
- <i slot="suffix" class="el-input__icon el-icon-search" @click="showEntityDialog = true"></i>
330
- </el-input>
331
- </el-form-item>
332
- </td>
333
- </tr>
334
- <tr>
335
- <th>
336
- <span class="t">
337
- {{ $t1('关联字段') }}
338
- </span>
339
- </th>
340
- <td>
341
- <el-form-item label="">
342
- <el-input
343
- class="search-input"
344
- max="200"
345
- v-model="referenceKey"
346
- @clear="
347
- referenceKey = null;
348
- "
349
- v-el-readonly
350
- clearable
351
- >
352
- <i slot="suffix" class="el-input__icon el-icon-search" @click="showEntityFieldDialog1 = true"></i>
353
- </el-input>
354
- </el-form-item>
355
- </td>
356
- </tr>
357
- <tr>
358
- <th>
359
- <span class="t">
360
- {{ $t1('显示字段') }}
361
- </span>
362
- </th>
363
- <td>
364
- <el-form-item label="">
365
- <el-input
366
- class="search-input"
367
- max="200"
368
- :value="referenceShowFields.join(',')"
369
- @clear="
370
- referenceShowFields = [];
371
- "
372
- v-el-readonly
373
- clearable
374
- >
375
- <i slot="suffix" class="el-input__icon el-icon-search" @click="showEntityFieldDialog2 = true"></i>
376
- </el-input>
377
- </el-form-item>
378
- </td>
379
- </tr>
380
- </tbody>
381
- </table>
382
- </div>
383
- </el-form>
384
- <span slot="footer" class="dialog-footer">
385
- <el-button type="primary" plain class="button-sty" @click="showReferenceZdDialog = false">
386
- <i class="el-icon-close el-icon"></i>
387
- {{ $t1('取 消') }}
388
- </el-button>
389
- <el-button type="primary" @click="confirmReferenceZdDialog" class="button-sty">
390
- <i class="el-icon-check el-icon"></i>
391
- {{ $t1('确 定') }}
392
- </el-button>
393
- </span>
394
- </el-dialog>
395
-
396
- <szTaMbDialog v-if="showEntityDialog"
397
- :visiable.sync="showEntityDialog"
398
- @confirm="confirmEntityDialog"
399
- :multi="false"
400
- />
401
-
402
- <zdDialog v-if="showEntityFieldDialog1"
403
- :visiable.sync="showEntityFieldDialog1"
404
- @confirm="confirmEntityFieldDialog1"
405
- :taBm="referenceEntity"
406
- :multi="false"
407
- />
408
- <zdDialog v-if="showEntityFieldDialog2"
409
- :visiable.sync="showEntityFieldDialog2"
410
- @confirm="confirmEntityFieldDialog2"
411
- :taBm="referenceEntity"
412
- :multi="true"
413
- />
414
- <preformDialog v-if="showPreformDialog" :visiable.sync="showPreformDialog"
415
- @confirm="confirmPreformDialog"></preformDialog>
416
- </div>
417
- </template>
418
-
419
- <script>
420
- import mixin from "./mixins/edit";
421
-
422
- export default {
423
- name: 'szTaMbEdit',
424
- mixins: [mixin]
425
- }
426
- </script>
1
+ <template>
2
+ <div class="detail-wrap">
3
+ <el-form ref="editForm" :model="szTaMb">
4
+ <div class="d-header clearfix">
5
+ <div class="fl">
6
+ <i class="el-icon-info" />
7
+ {{ dataId ? $t1("查看数据表定义模板") : $t1("新增数据表定义模板") }}
8
+ </div>
9
+ <div class="fr">
10
+ <el-button
11
+ type="primary"
12
+ plain
13
+ class="button-sty"
14
+ icon="el-icon-set-up"
15
+ @click="openDtDialog"
16
+ v-if="isDev && !dataId && menuKindAuth.editAuth === 1 && !readonly"
17
+ >
18
+ {{ $t1("引用数据库中数据表结构") }}
19
+ </el-button>
20
+ <el-button
21
+ type="primary"
22
+ plain
23
+ class="button-sty"
24
+ icon="el-icon-set-up"
25
+ @click="openTmDialog"
26
+ v-if="isDev && !dataId && menuKindAuth.editAuth === 1 && !readonly"
27
+ >
28
+ {{ $t1("引用数据表定义的结构") }}
29
+ </el-button>
30
+
31
+ <el-button
32
+ type="success"
33
+ class="button-sty"
34
+ icon="el-icon-check"
35
+ @click="createModifyTable()"
36
+ v-if="
37
+ !szTaMb.systems &&
38
+ szTaMb.id &&
39
+ menuKindAuth.editAuth === 1 &&
40
+ !readonly
41
+ "
42
+ >
43
+ {{ $t1("创建/更新数据表") }}
44
+ </el-button>
45
+ <el-button
46
+ type="primary"
47
+ plain
48
+ class="button-sty"
49
+ @click="$baseReload()"
50
+ icon="el-icon-refresh-right"
51
+ >
52
+ {{ $t1("重置") }}
53
+ </el-button>
54
+ <el-button
55
+ type="primary"
56
+ class="button-sty"
57
+ icon="el-icon-check"
58
+ @click="saveData"
59
+ v-if="
60
+ isDev &&
61
+ !szTaMb.systems &&
62
+ menuKindAuth.editAuth === 1 &&
63
+ !readonly
64
+ "
65
+ >
66
+ {{ $t1("保存") }}
67
+ </el-button>
68
+ </div>
69
+ </div>
70
+ <baseTabs>
71
+ <baseTabPane :label="$t1('基本信息')">
72
+ <template #default>
73
+ <table class="table-detail">
74
+ <tbody>
75
+ <tr>
76
+ <th>{{ $t1('数据库表名') }}</th>
77
+ <td colspan="3">
78
+ <el-form-item prop="taBm" :rules="[{ required: false, trigger: ['blur', 'change'] }]">
79
+ <el-input type="text" autocomplete="off" v-model="szTaMb.taBm" clearable :disabled="!!dataId"/>
80
+ </el-form-item>
81
+ </td>
82
+ </tr>
83
+ <tr>
84
+ <th class="no"></th>
85
+ <td colspan="7">
86
+ <span class="fl tips">{{ $t1('注:数据库表名必须定义为:1、与实体名称一样,2、表单分类数据表前缀_实体名称,3、不填自动生成:表单分类数据表前缀_实体名称。') }}</span>
87
+ </td>
88
+ </tr>
89
+ <tr>
90
+ <th>
91
+ <em class="f-red">*</em>
92
+ {{ $t1("实体名称") }}
93
+ </th>
94
+ <td colspan="3">
95
+ <el-form-item
96
+ prop="taEn"
97
+ :rules="[{ required: true, trigger: ['blur', 'change'] }]"
98
+ >
99
+ <el-input
100
+ type="text"
101
+ autocomplete="off"
102
+ v-model="szTaMb.taEn"
103
+ clearable
104
+ />
105
+ </el-form-item>
106
+ </td>
107
+ </tr>
108
+ <tr>
109
+ <th><em class="f-red">*</em>{{ $t1("表描述") }}</th>
110
+ <td colspan="5">
111
+ <el-form-item
112
+ prop="taCh"
113
+ :rules="[{ required: true, trigger: ['blur', 'change'] }]"
114
+ >
115
+ <el-input
116
+ type="text"
117
+ autocomplete="off"
118
+ v-model="szTaMb.taCh"
119
+ clearable
120
+ />
121
+ </el-form-item>
122
+ </td>
123
+ </tr>
124
+ <tr>
125
+ <th><em class="f-red">*</em>{{ $t1("是否明细") }}</th>
126
+ <td>
127
+ <el-form-item
128
+ prop="taType"
129
+ :rules="[{ required: true, trigger: ['blur', 'change'] }]"
130
+ >
131
+ <el-radio-group v-model="szTaMb.taType">
132
+ <el-radio :label="1">{{ $t1("是") }}</el-radio>
133
+ <el-radio :label="0">{{ $t1("否") }}</el-radio>
134
+ </el-radio-group>
135
+ </el-form-item>
136
+ </td>
137
+ <th>
138
+ <em class="f-red" v-show="szTaMb.taType === 1">*</em>
139
+ {{ $t1("所属主实体") }}
140
+ </th>
141
+ <td colspan="3">
142
+ <el-form-item
143
+ prop="sszstEn"
144
+ :rules="[
145
+ {
146
+ required: szTaMb.taType === 1,
147
+ trigger: ['blur', 'change'],
148
+ },
149
+ ]"
150
+ >
151
+ <el-input
152
+ class="search-input"
153
+ max="200"
154
+ v-model="szTaMb.sszstEn"
155
+ @clear="
156
+ szTaMb.sszst = null;
157
+ szTaMb.sszstBm = null;
158
+ $forceUpdate();
159
+ "
160
+ :disabled="szTaMb.taType == 0"
161
+ v-el-readonly
162
+ clearable
163
+ >
164
+ <i
165
+ slot="suffix"
166
+ class="el-input__icon el-icon-search"
167
+ @click="showSzTaMbDialog = true"
168
+ ></i>
169
+ </el-input>
170
+ </el-form-item>
171
+ </td>
172
+ </tr>
173
+ <tr>
174
+ <th><em class="f-red">*</em>{{ $t1("是否树结构") }}</th>
175
+ <td>
176
+ <el-form-item
177
+ prop="taRule"
178
+ :rules="[{ required: true, trigger: ['blur', 'change'] }]"
179
+ >
180
+ <el-radio-group
181
+ v-model="szTaMb.taRule"
182
+ @change="changeTaRule"
183
+ >
184
+ <el-radio :label="1">{{ $t1("是") }}</el-radio>
185
+ <el-radio :label="0">{{ $t1("否") }}</el-radio>
186
+ </el-radio-group>
187
+ </el-form-item>
188
+ </td>
189
+ <th><em class="f-red">*</em>{{ $t1("数据范围") }}</th>
190
+ <td colspan="3">
191
+ <el-form-item
192
+ prop="dataRange"
193
+ :rules="[{ required: true, trigger: ['blur', 'change'] }]"
194
+ >
195
+ <el-radio-group v-model="szTaMb.dataRange">
196
+ <el-radio :label="1">{{ $t1("集团") }}</el-radio>
197
+ <el-radio :label="0">{{ $t1("当前组织") }}</el-radio>
198
+ </el-radio-group>
199
+ </el-form-item>
200
+ </td>
201
+ </tr>
202
+ <tr>
203
+ <th>
204
+ <em class="f-red">*</em>
205
+ {{ $t1("表单分类") }}
206
+ </th>
207
+ <td colspan="5">
208
+ <el-form-item
209
+ prop="menuKindName"
210
+ :rules="[
211
+ {
212
+ required: true,
213
+ trigger: ['blur', 'change'],
214
+ },
215
+ ]"
216
+ >
217
+ <el-input
218
+ class="search-input"
219
+ max="200"
220
+ v-model="szTaMb.menuKindName"
221
+ @clear="
222
+ szTaMb.menuKindCode = '';
223
+ $forceUpdate();
224
+ "
225
+ v-el-readonly
226
+ clearable
227
+ >
228
+ <i
229
+ slot="suffix"
230
+ class="el-input__icon el-icon-search"
231
+ @click="showMenuKindDialog = true"
232
+ ></i>
233
+ </el-input>
234
+ </el-form-item>
235
+ </td>
236
+ </tr>
237
+ <tr>
238
+ <th>
239
+ {{ $t1("项目标签") }}
240
+ </th>
241
+ <td colspan="7">
242
+ <projectTagView
243
+ v-model="szTaMb.szTaMbTagDTOs"
244
+ ></projectTagView>
245
+ </td>
246
+ </tr>
247
+ <tr>
248
+ <th>
249
+ {{ $t1("服务名") }}
250
+ </th>
251
+ <td colspan="7">
252
+ {{ szTaMb.serviceName }}
253
+ </td>
254
+ </tr>
255
+
256
+ <tr>
257
+ <th>
258
+ {{ $t1("唯一标识") }}
259
+ </th>
260
+ <td colspan="7">
261
+ {{ szTaMb.sid }}
262
+ </td>
263
+ </tr>
264
+ <tr>
265
+ <th>{{ $t1("创建人") }}</th>
266
+ <td>{{ szTaMb.createBy }}</td>
267
+ <th>{{ $t1("创建时间") }}</th>
268
+ <td>{{ szTaMb.createDate }}</td>
269
+ <th>{{ $t1("更新人") }}</th>
270
+ <td>{{ szTaMb.modifyBy }}</td>
271
+ <th>{{ $t1("更新时间") }}</th>
272
+ <td>{{ szTaMb.modifyDate }}</td>
273
+ </tr>
274
+ </tbody>
275
+ </table>
276
+ </template>
277
+ </baseTabPane>
278
+ <baseTabPane :label="$t1('数据表字段明细')">
279
+ <template #button>
280
+ <el-button
281
+ class="button-sty"
282
+ @click="addTaMbItems"
283
+ icon="el-icon-plus"
284
+ >{{ $t1("新增") }}</el-button
285
+ >
286
+ </template>
287
+ <template #default>
288
+ <div>
289
+ <vxe-grid
290
+ ref="table-szTaZdMb"
291
+ :data="szTaMb.szTaZdMbDTOs"
292
+ v-bind="productOption"
293
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
294
+ @custom="$vxeTableUtil.customHandle"
295
+ >
296
+ <template #zdType="{ row }">
297
+ <el-select
298
+ v-model="row.zdType"
299
+ clearable
300
+ :disabled="!!row.systems || !!row.relationZd"
301
+ @change="changeZdType(row)"
302
+ >
303
+ <el-option value="Boolean" :label="$t1('布尔')"></el-option>
304
+ <el-option value="Integer" :label="$t1('整数')"></el-option>
305
+ <el-option value="Long" :label="$t1('长整数')"></el-option>
306
+ <el-option
307
+ value="Decimal"
308
+ :label="$t1('精度小数')"
309
+ ></el-option>
310
+ <el-option value="Money" :label="$t1('金额')"></el-option>
311
+ <el-option value="Text" :label="$t1('文本')"></el-option>
312
+ <el-option
313
+ value="TextArea"
314
+ :label="$t1('长文本')"
315
+ ></el-option>
316
+ <el-option
317
+ value="DateTime"
318
+ :label="$t1('日期时间')"
319
+ ></el-option>
320
+ <el-option
321
+ value="Reference"
322
+ :label="$t1('关联表')"
323
+ ></el-option>
324
+ </el-select>
325
+ </template>
326
+ <template #referenceZd="{ row, rowIndex, $table }">
327
+ <el-input
328
+ class="search-input"
329
+ v-model="row.referenceZd"
330
+ v-el-readonly
331
+ v-if="row.zdType == 'Reference'"
332
+ :disabled="!row.zdEn"
333
+ >
334
+ <i
335
+ slot="suffix"
336
+ class="el-input__icon el-icon-search"
337
+ @click="openReferenceZdDialog(row, rowIndex, $table)"
338
+ ></i>
339
+ </el-input>
340
+ <template v-else>
341
+ {{ row.referenceZd }}
342
+ </template>
343
+ </template>
344
+ <template #zdEn="{ row, rowIndex }">
345
+ <template
346
+ v-if="!!row.systems || row.fromTable"
347
+ >
348
+ <div>
349
+ {{ row.zdEn }}
350
+ </div>
351
+ </template>
352
+ <template v-else>
353
+ <el-form-item
354
+ :prop="'szTaZdMbDTOs.' + rowIndex + '.zdEn'"
355
+ :rules="[{ required: true, trigger: ['blur', 'change'] }]"
356
+ :style="!!row.relationZd ? 'padding-left:20px' : ''"
357
+ >
358
+ <el-input v-model="row.zdEn" @keydown.native="inputZdEn(row)"
359
+ @input="(val)=>{changeZdEn(val,row)}" />
360
+ </el-form-item>
361
+ </template>
362
+ </template>
363
+ <template #zdCh="{ row, rowIndex }">
364
+ <el-form-item
365
+ :prop="'szTaZdMbDTOs.' + rowIndex + '.zdCh'"
366
+ :rules="[{ required: true, trigger: ['blur', 'change'] }]"
367
+ >
368
+ <el-input
369
+ v-model="row.zdCh"
370
+ clearable
371
+ :disabled="!!row.systems"
372
+ />
373
+ </el-form-item>
374
+ </template>
375
+ <template #zdTypeValues="{ row, rowIndex }">
376
+ <el-form-item
377
+ :prop="'szTaZdMbDTOs.' + rowIndex + '.zdTypeValues'"
378
+ :rules="[{ required: false, trigger: ['blur', 'change'] }]"
379
+ >
380
+ <el-input
381
+ v-model="row.zdTypeValues"
382
+ clearable
383
+ :disabled="!!row.systems || !!row.relationZd"
384
+ />
385
+ </el-form-item>
386
+ </template>
387
+ <template #required="{ row, rowIndex }">
388
+ <el-checkbox
389
+ v-model="row.required"
390
+ :disabled="!!row.systems || !!row.relationZd"
391
+ />
392
+ </template>
393
+ <template #enabled="{ row, rowIndex }">
394
+ <el-checkbox
395
+ v-model="row.enabled"
396
+ :disabled="!!row.systems || !!row.relationZd"
397
+ />
398
+ </template>
399
+ <template #generateCode="{ row, rowIndex }">
400
+ <el-checkbox
401
+ v-model="row.generateCode"
402
+ :disabled="!!row.systems || !!row.relationZd"
403
+ />
404
+ </template>
405
+ <template #atened="{ row, rowIndex }">
406
+ <el-checkbox
407
+ v-model="row.atened"
408
+ :disabled="!!row.systems || !!row.relationZd"
409
+ />
410
+ </template>
411
+ <template #updateIgnore="{ row, rowIndex }">
412
+ <el-checkbox
413
+ v-model="row.updateIgnore"
414
+ :disabled="!!row.systems || !!row.relationZd"
415
+ />
416
+ </template>
417
+ <template #codeType="{ row, rowIndex }">
418
+ <el-form-item
419
+ :prop="'szTaZdMbDTOs.' + rowIndex + '.codeType'"
420
+ :rules="[{ required: false, trigger: ['blur', 'change'] }]"
421
+ >
422
+ <el-input
423
+ v-model="row.codeType"
424
+ clearable
425
+ :disabled="!!row.systems || !!row.relationZd"
426
+ />
427
+ </el-form-item>
428
+ </template>
429
+ <template #orders="{ row, rowIndex }">
430
+ <el-form-item
431
+ :prop="'szTaZdMbDTOs.' + rowIndex + '.orders'"
432
+ :rules="[{ required: false, trigger: ['blur', 'change'] }]"
433
+ >
434
+ <base-input-number
435
+ v-model="row.orders"
436
+ clearable
437
+ :disabled="!!row.systems"
438
+ @change="changeOrders(row)"
439
+ />
440
+ </el-form-item>
441
+ </template>
442
+ <template #toTaBmZd="{ row, rowIndex, $table }">
443
+ <el-input
444
+ class="search-input"
445
+ v-model="row.toTaBmZd"
446
+ clearable
447
+ @clear="$forceUpdate()"
448
+ v-el-readonly
449
+ :disabled="!!row.systems || !!row.relationZd"
450
+ >
451
+ <i
452
+ slot="suffix"
453
+ class="el-input__icon el-icon-search"
454
+ @click="openToTaBmZdDialog(row, rowIndex, $table)"
455
+ ></i>
456
+ </el-input>
457
+ </template>
458
+ <template #treeFlag="{ row }">
459
+ <el-select
460
+ v-model="row.treeFlag"
461
+ clearable
462
+ :disabled="!!row.systems || !!row.relationZd || szTaMb.taRule!==1"
463
+ >
464
+ <el-option value="name" :label="$t1('名称')"></el-option>
465
+ <el-option value="wbs" :label="$t1('WBS码')"></el-option>
466
+ <el-option value="parent" :label="$t1('上级ID')"></el-option>
467
+ <el-option value="treePath" :label="$t1('树ID路径')"></el-option>
468
+ <el-option value="treePathName" :label="$t1('树名称路径')"></el-option>
469
+ <el-option value="hasChild" :label="$t1('是否有下级')"></el-option>
470
+ <el-option value="grade" :label="$t1('层级')"></el-option>
471
+ </el-select>
472
+ </template>
473
+ </vxe-grid>
474
+ </div>
475
+ <table class="table-detail">
476
+ <tbody>
477
+ <tr>
478
+ <th>
479
+ {{ $t1("表编码") }}
480
+ </th>
481
+ <td colspan="7">
482
+ {{ szTaMb.taCode }}
483
+ </td>
484
+ </tr>
485
+ </tbody>
486
+ </table>
487
+ </template>
488
+ </baseTabPane>
489
+ <baseTabPane :label="$t1('操作日志')">
490
+ <template #default>
491
+ <formOplogTable
492
+ :parent-target="_self"
493
+ ref="oplogTable"
494
+ ></formOplogTable>
495
+ </template>
496
+ </baseTabPane>
497
+ </baseTabs>
498
+ </el-form>
499
+
500
+ <szTaMbDialog
501
+ v-if="showSzTaMbDialog"
502
+ :visiable.sync="showSzTaMbDialog"
503
+ @confirm="confirmInsertSzTaMb"
504
+ :multi="false"
505
+ />
506
+ <szTaMbDialog
507
+ v-if="showItemSzTaMbDialog"
508
+ :visiable.sync="showItemSzTaMbDialog"
509
+ @confirm="confirmInsertItemSzTaMb"
510
+ multi="false"
511
+ />
512
+ <MenuKindDialog
513
+ v-if="showMenuKindDialog"
514
+ :visiable.sync="showMenuKindDialog"
515
+ @confirm="confirmInsertMenuKind"
516
+ :multi="false"
517
+ />
518
+
519
+ <el-dialog
520
+ :title="$t1('关联表维护')"
521
+ v-if="showReferenceZdDialog"
522
+ :visible.sync="showReferenceZdDialog"
523
+ :modal-append-to-body="false"
524
+ :close-on-click-modal="false"
525
+ :modal="false"
526
+ custom-class="dialog-style wf-dialog"
527
+ v-el-drag-dialog
528
+ v-el-dialog-center
529
+ >
530
+ <el-form>
531
+ <div id="containt">
532
+ <table class="table-detail">
533
+ <tbody>
534
+ <tr>
535
+ <th>
536
+ <span class="t">
537
+ {{ $t1("关联表") }}
538
+ </span>
539
+ </th>
540
+ <td>
541
+ <el-form-item label="">
542
+ <el-input
543
+ class="search-input"
544
+ max="200"
545
+ v-model="referenceEntity"
546
+ @clear="
547
+ referenceKey = null;
548
+ refServiceName = null;
549
+ referenceShowFields = [];
550
+ $forceUpdate();
551
+ "
552
+ v-el-readonly
553
+ clearable
554
+ >
555
+ <i
556
+ slot="suffix"
557
+ class="el-input__icon el-icon-search"
558
+ @click="showEntityDialog = true"
559
+ ></i>
560
+ </el-input>
561
+ </el-form-item>
562
+ </td>
563
+ </tr>
564
+ <tr>
565
+ <th>
566
+ <span class="t">
567
+ {{ $t1("关联字段") }}
568
+ </span>
569
+ </th>
570
+ <td>
571
+ <el-form-item label="">
572
+ <el-input
573
+ class="search-input"
574
+ max="200"
575
+ v-model="referenceKey"
576
+ @clear="referenceKey = null"
577
+ v-el-readonly
578
+ clearable
579
+ >
580
+ <i
581
+ slot="suffix"
582
+ class="el-input__icon el-icon-search"
583
+ @click="openEntityFieldDialog1"
584
+ ></i>
585
+ </el-input>
586
+ </el-form-item>
587
+ </td>
588
+ </tr>
589
+ <tr>
590
+ <th>
591
+ <span class="t">
592
+ {{ $t1("显示字段") }}
593
+ </span>
594
+ </th>
595
+ <td>
596
+ <el-form-item label="">
597
+ <el-input
598
+ class="search-input"
599
+ max="200"
600
+ :value="referenceShowFields.join(',')"
601
+ @clear="referenceShowFields = []"
602
+ v-el-readonly
603
+ clearable
604
+ >
605
+ <i
606
+ slot="suffix"
607
+ class="el-input__icon el-icon-search"
608
+ @click="openEntityFieldDialog2"
609
+ ></i>
610
+ </el-input>
611
+ </el-form-item>
612
+ </td>
613
+ </tr>
614
+ </tbody>
615
+ </table>
616
+ </div>
617
+ </el-form>
618
+ <span slot="footer" class="dialog-footer">
619
+ <el-button
620
+ type="primary"
621
+ plain
622
+ class="button-sty"
623
+ @click="showReferenceZdDialog = false"
624
+ >
625
+ <i class="el-icon-close el-icon"></i>
626
+ {{ $t1("取 消") }}
627
+ </el-button>
628
+ <el-button
629
+ type="primary"
630
+ @click="confirmReferenceZdDialog"
631
+ class="button-sty"
632
+ >
633
+ <i class="el-icon-check el-icon"></i>
634
+ {{ $t1("确 定") }}
635
+ </el-button>
636
+ </span>
637
+ </el-dialog>
638
+
639
+ <szTaMbDialog
640
+ v-if="showEntityDialog"
641
+ :visiable.sync="showEntityDialog"
642
+ @confirm="confirmEntityDialog"
643
+ :multi="false"
644
+ />
645
+
646
+ <zdDialog
647
+ v-if="showEntityFieldDialog1"
648
+ :visiable.sync="showEntityFieldDialog1"
649
+ @confirm="confirmEntityFieldDialog1"
650
+ :taBm="referenceEntity"
651
+ :multi="false"
652
+ />
653
+ <zdDialog
654
+ v-if="showEntityFieldDialog2"
655
+ :visiable.sync="showEntityFieldDialog2"
656
+ @confirm="confirmEntityFieldDialog2"
657
+ :taBm="referenceEntity"
658
+ :multi="true"
659
+ />
660
+ <preformDialog
661
+ v-if="showPreformDialog"
662
+ :visiable.sync="showPreformDialog"
663
+ @confirm="confirmPreformDialog"
664
+ ></preformDialog>
665
+
666
+ <szTaMbDialog
667
+ v-if="showTmDialog"
668
+ :visiable.sync="showTmDialog"
669
+ @confirm="confirmTmDialog"
670
+ :multi="false"
671
+ />
672
+
673
+ <el-dialog
674
+ :title="$t1('引用数据库中数据表结构')"
675
+ :append-to-body="true"
676
+ :modal-append-to-body="true"
677
+ :close-on-click-modal="false"
678
+ v-if="showDtDialog"
679
+ :visible.sync="showDtDialog"
680
+ :modal="false"
681
+ custom-class="dialog-style list-dialog dialog-checkbox pd_8"
682
+ width="350px"
683
+ v-el-drag-dialog
684
+ >
685
+ <div class="cont">
686
+ <el-form
687
+ ref="editCategoryForm"
688
+ label-width="102px"
689
+ class="adSearchForm"
690
+ style="height: auto; width: auto"
691
+ >
692
+ <el-form-item :label="$t1('数据表')">
693
+ <el-input v-model="dbTable" clearable class="all-width" />
694
+ </el-form-item>
695
+ </el-form>
696
+ </div>
697
+ <span slot="footer" class="dialog-footer">
698
+ <el-button
699
+ type="primary"
700
+ plain
701
+ class="button-sty"
702
+ @click="showDtDialog = false"
703
+ >
704
+ <i class="el-icon-close el-icon"></i>
705
+ {{ $t2("取 消", "system.button.cancel2") }}
706
+ </el-button>
707
+ <el-button type="primary" @click="confirmDtDialog" class="button-sty">
708
+ <i class="el-icon-check el-icon"></i>
709
+ {{ $t1("确定") }}
710
+ </el-button>
711
+ </span>
712
+ </el-dialog>
713
+
714
+ <!--begin-->
715
+ <el-dialog
716
+ :title="$t1('数据值对应表字段')"
717
+ v-if="showToTaBmZdDialog"
718
+ :visible.sync="showToTaBmZdDialog"
719
+ :modal-append-to-body="false"
720
+ :close-on-click-modal="false"
721
+ :modal="false"
722
+ custom-class="dialog-style wf-dialog"
723
+ v-el-drag-dialog
724
+ v-el-dialog-center
725
+ >
726
+ <el-form>
727
+ <div id="containt">
728
+ <table class="table-detail">
729
+ <tbody>
730
+ <tr>
731
+ <th>
732
+ <span class="t">
733
+ {{ $t1("对应表") }}
734
+ </span>
735
+ </th>
736
+ <td>
737
+ <el-form-item label="">
738
+ <el-input
739
+ class="search-input"
740
+ max="200"
741
+ v-model="toTaBmZdEntity"
742
+ @clear="
743
+ toTaBmZdEntity = null;
744
+ toTaBmZdField = null;
745
+ "
746
+ v-el-readonly
747
+ clearable
748
+ >
749
+ <i
750
+ slot="suffix"
751
+ class="el-input__icon el-icon-search"
752
+ @click="showEntityDialog3 = true"
753
+ ></i>
754
+ </el-input>
755
+ </el-form-item>
756
+ </td>
757
+ </tr>
758
+ <tr>
759
+ <th>
760
+ <span class="t">
761
+ {{ $t1("对应表字段") }}
762
+ </span>
763
+ </th>
764
+ <td>
765
+ <el-form-item label="">
766
+ <el-input
767
+ class="search-input"
768
+ max="200"
769
+ v-model="toTaBmZdField"
770
+ @clear="toTaBmZdField = null"
771
+ v-el-readonly
772
+ clearable
773
+ >
774
+ <i
775
+ slot="suffix"
776
+ class="el-input__icon el-icon-search"
777
+ @click="openEntityFieldDialog3"
778
+ ></i>
779
+ </el-input>
780
+ </el-form-item>
781
+ </td>
782
+ </tr>
783
+ </tbody>
784
+ </table>
785
+ </div>
786
+ </el-form>
787
+ <span slot="footer" class="dialog-footer">
788
+ <el-button
789
+ type="primary"
790
+ plain
791
+ class="button-sty"
792
+ @click="showToTaBmZdDialog = false"
793
+ >
794
+ <i class="el-icon-close el-icon"></i>
795
+ {{ $t1("取 消") }}
796
+ </el-button>
797
+ <el-button
798
+ type="primary"
799
+ @click="confirmToTaBmZdDialog"
800
+ class="button-sty"
801
+ >
802
+ <i class="el-icon-check el-icon"></i>
803
+ {{ $t1("确 定") }}
804
+ </el-button>
805
+ </span>
806
+ </el-dialog>
807
+
808
+ <szTaMbDialog
809
+ v-if="showEntityDialog3"
810
+ :visiable.sync="showEntityDialog3"
811
+ @confirm="confirmEntityDialog3"
812
+ :multi="false"
813
+ />
814
+
815
+ <zdDialog
816
+ v-if="showEntityFieldDialog3"
817
+ :visiable.sync="showEntityFieldDialog3"
818
+ @confirm="confirmEntityFieldDialog3"
819
+ :taBm="toTaBmZdEntity"
820
+ :multi="false"
821
+ />
822
+ <!--end-->
823
+
824
+ </div>
825
+ </template>
826
+
827
+ <script>
828
+ import mixin from "./mixins/edit";
829
+
830
+ export default {
831
+ name: "szTaMbEdit",
832
+ mixins: [mixin],
833
+ };
834
+ </script>