cloud-web-corejs-haier 1.0.18 → 1.0.19

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 (176) hide show
  1. package/package.json +1 -1
  2. package/src/components/VabUpload/index.js +48 -1
  3. package/src/components/VabUpload/mixins.js +1821 -1
  4. package/src/components/VabUpload/privateProfileDialogMixins.js +1063 -1
  5. package/src/components/advancedSearchDialog/mixins.js +28 -1
  6. package/src/components/baseAlert/index.js +44 -1
  7. package/src/components/baseAlert/index.vue +53 -53
  8. package/src/components/baseAlert/mixins.js +61 -1
  9. package/src/components/baseAttachment/install.js +21 -5
  10. package/src/components/baseAttachment/mixins.js +309 -1
  11. package/src/components/baseInputBatch/mixins.js +58 -1
  12. package/src/components/baseInputExport/mixins.js +391 -1
  13. package/src/components/baseTabs/mixins.js +166 -1
  14. package/src/components/cnPrint/index.js +44 -1
  15. package/src/components/cnPrint/mixins.js +189 -1
  16. package/src/components/code-editor/index.vue +51 -136
  17. package/src/components/confirmDialog/index.js +41 -1
  18. package/src/components/confirmDialog/mixins.js +31 -1
  19. package/src/components/errorMsg/index.js +44 -1
  20. package/src/components/errorMsg/index.vue +3 -3
  21. package/src/components/errorMsg/mixins.js +96 -1
  22. package/src/components/excelExport/index.js +43 -1
  23. package/src/components/excelExport/mixins.js +964 -1
  24. package/src/components/excelImport/index.js +74 -13
  25. package/src/components/excelImport/mixins.js +774 -1
  26. package/src/components/fileLibrary/mixins/categoryMoveDialogMixins.js +1 -1
  27. package/src/components/fileLibrary/mixins/fileCategoryDialogMixins.js +1 -1
  28. package/src/components/fileLibrary/mixins/fileHistoryDialogMixins.js +2 -2
  29. package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +202 -350
  30. package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +26 -33
  31. package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +5 -5
  32. package/src/components/fileLibrary/mixins/indexMixins.js +106 -250
  33. package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +4 -64
  34. package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +4 -3
  35. package/src/components/formOplog/mixins.js +77 -1
  36. package/src/components/hiprint/view/design/mixins.js +611 -1
  37. package/src/components/jdPrint/index.js +44 -1
  38. package/src/components/jdPrint/mixins.js +208 -1
  39. package/src/components/jsonImport/index.js +187 -17
  40. package/src/components/jsonImport/mixins.js +332 -1
  41. package/src/components/langImport/index.js +80 -1
  42. package/src/components/langImport/mixins.js +484 -1
  43. package/src/components/langTag/mixins/addButton.js +51 -5
  44. package/src/components/langTag/mixins/deleteButton.js +55 -5
  45. package/src/components/langTag/mixins/view.js +47 -5
  46. package/src/components/obsUpload/index.js +34 -1
  47. package/src/components/obsUpload/mixins.js +1469 -1
  48. package/src/components/onlineTalk/index.vue +5 -327
  49. package/src/components/onlineTalk/mixins.js +852 -1
  50. package/src/components/oplogTable/mixins.js +83 -4
  51. package/src/components/pddPrint/index.js +44 -1
  52. package/src/components/pddPrint/mixins.js +252 -1
  53. package/src/components/projectTag/mixins/addButton.js +52 -1
  54. package/src/components/projectTag/mixins/deleteButton.js +52 -1
  55. package/src/components/projectTag/mixins/view.js +43 -1
  56. package/src/components/scriptDescription/mixins.js +30 -1
  57. package/src/components/scriptTest/mixins.js +90 -1
  58. package/src/components/statusTag/mixins.js +66 -1
  59. package/src/components/table/CellSlot.vue +2 -29
  60. package/src/components/table/config.js +74 -1
  61. package/src/components/table/index.js +1 -1
  62. package/src/components/table/tableFormMixin.js +1 -1
  63. package/src/components/table/util/index.js +2 -2
  64. package/src/components/table/vxeFilter/index.js +153 -1
  65. package/src/components/table/vxeFilter/mixin.js +1 -4
  66. package/src/components/vipPrint/index.js +44 -1
  67. package/src/components/vipPrint/mixins.js +268 -1
  68. package/src/components/xform/form-designer/designer.js +1 -1
  69. package/src/components/xform/form-designer/form-widget/container-widget/containerMixin.js +1 -1
  70. package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +1 -1
  71. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1 -1
  72. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1 -1
  73. package/src/components/xform/form-designer/form-widget/field-widget/select-export-item-button-widget.vue +92 -0
  74. package/src/components/xform/form-designer/form-widget/indexMixin.js +1 -1
  75. package/src/components/xform/form-designer/indexMixin.js +1 -1
  76. package/src/components/xform/form-designer/setting-panel/indexMixin.js +1 -1
  77. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/exportItemColumns-dialog.vue +432 -0
  78. package/src/components/xform/form-designer/setting-panel/property-editor/field-static-text/preWrap-editor.vue +23 -0
  79. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-item-button-editor.vue +71 -0
  80. package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +1 -1
  81. package/src/components/xform/form-designer/widget-panel/indexMixin.js +290 -1
  82. package/src/components/xform/form-render/container-item/containerItemMixin.js +1 -1
  83. package/src/components/xform/form-render/container-item/data-table-mixin.js +1 -1
  84. package/src/components/xform/form-render/dynamicDialogRender.js +195 -1
  85. package/src/components/xform/form-render/indexMixin.js +2 -3501
  86. package/src/components/xform/form-render/refMixin.js +3 -3
  87. package/src/components/xform/mixins/defaultHandle.js +340 -2
  88. package/src/components/xform/mixins/scriptHttp.js +172 -1
  89. package/src/components/xform/utils/formHttp.js +162 -0
  90. package/src/components/xform/utils/format.js +12 -6
  91. package/src/components/xform/utils/util.js +1464 -1
  92. package/src/components/xform/utils/validators.js +134 -1
  93. package/src/components/xhsPrint/index.js +44 -1
  94. package/src/components/xhsPrint/mixins.js +269 -1
  95. package/src/directive/LimitNumber/index.js +125 -1
  96. package/src/directive/el-dialog-center/index.js +34 -1
  97. package/src/directive/el-drag-dialog/drag.js +86 -1
  98. package/src/directive/el-readonly/index.js +15 -1
  99. package/src/directive/permission/hasPermi.js +34 -1
  100. package/src/index.js +2 -2
  101. package/src/router/modules/customer.js +3 -16
  102. package/src/store/config/index.js +1 -1
  103. package/src/store/modules/permission.js +40 -41
  104. package/src/store/modules/settings.js +1 -1
  105. package/src/store/modules/tagsView.js +11 -1
  106. package/src/store/modules/user.js +23 -1
  107. package/src/utils/aes.js +1 -1
  108. package/src/utils/auth.js +1 -1
  109. package/src/utils/global.js +362 -1
  110. package/src/utils/index.js +579 -1
  111. package/src/utils/keepAlive.js +181 -1
  112. package/src/utils/pddLog.js +17 -28
  113. package/src/utils/request.js +1 -1
  114. package/src/utils/vab.js +1 -1
  115. package/src/utils/validate.js +106 -1
  116. package/src/utils/wf.js +749 -4
  117. package/src/views/bd/setting/bd_attach_setting/mixins/dialog.js +84 -1
  118. package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +113 -1
  119. package/src/views/bd/setting/bd_company_env/dialog.vue +174 -174
  120. package/src/views/bd/setting/bd_company_env/edit.vue +193 -193
  121. package/src/views/bd/setting/form_script/mixins/form_list.js +283 -1
  122. package/src/views/bd/setting/form_script/mixins/list2.js +10 -1
  123. package/src/views/bd/setting/form_script/mixins/preformDialog.js +34 -1
  124. package/src/views/bd/setting/form_template/mixins/dialog.js +103 -1
  125. package/src/views/bd/setting/form_template/mixins/editWfObjConfigDialog.js +92 -1
  126. package/src/views/bd/setting/form_template/mixins/ftHistoryDialog.js +91 -1
  127. package/src/views/bd/setting/form_template/mixins/itemEdit.js +104 -1
  128. package/src/views/bd/setting/form_template/mixins/itemList.js +234 -1
  129. package/src/views/bd/setting/form_template/mixins/list2.js +411 -0
  130. package/src/views/bd/setting/form_template/mixins/preformDialog.js +28 -3
  131. package/src/views/bd/setting/form_template/mixins/wf_list.js +423 -1
  132. package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +254 -254
  133. package/src/views/bd/setting/logic_param/mixins/edit.js +91 -1
  134. package/src/views/bd/setting/logic_param/mixins/list.js +368 -1
  135. package/src/views/bd/setting/menu_kind/mixins/dialog.js +139 -1
  136. package/src/views/bd/setting/request_async_setting/edit.vue +320 -320
  137. package/src/views/bd/setting/request_setting/edit.vue +300 -300
  138. package/src/views/bd/setting/table_model/mixins/dialog.js +71 -1
  139. package/src/views/bd/setting/table_model/mixins/zdDialog.js +108 -1
  140. package/src/views/bd/setting/utils/index.js +60 -1
  141. package/src/views/user/api_request/list.vue +203 -203
  142. package/src/views/user/bill_setting/list.vue +345 -345
  143. package/src/views/user/code_rules/list.vue +204 -204
  144. package/src/views/user/common_attribute/list.vue +378 -378
  145. package/src/views/user/common_script/list.vue +341 -341
  146. package/src/views/user/country/list.vue +197 -197
  147. package/src/views/user/extend_datasource/list.vue +224 -224
  148. package/src/views/user/fieldTranslation/list.vue +473 -473
  149. package/src/views/user/field_values_invisible/list.vue +207 -207
  150. package/src/views/user/file_type/list.vue +271 -271
  151. package/src/views/user/file_view_area/list.vue +331 -331
  152. package/src/views/user/form/form_template/itemList.vue +221 -221
  153. package/src/views/user/form/form_template/list.vue +512 -512
  154. package/src/views/user/form/form_type/list.vue +142 -142
  155. package/src/views/user/form/report_requestaccess/list.vue +198 -198
  156. package/src/views/user/groups/list.vue +158 -158
  157. package/src/views/user/lang_tag/list.vue +170 -170
  158. package/src/views/user/language_setting/list.vue +208 -208
  159. package/src/views/user/menu/list.vue +575 -575
  160. package/src/views/user/notify_template/list.vue +192 -192
  161. package/src/views/user/notify_template/list2.vue +190 -190
  162. package/src/views/user/position/list.vue +188 -188
  163. package/src/views/user/project_tag/list.vue +175 -175
  164. package/src/views/user/push_setting/list.vue +236 -236
  165. package/src/views/user/request_setting/list.vue +248 -248
  166. package/src/views/user/role/list.vue +182 -182
  167. package/src/views/user/system_notice/list.vue +203 -203
  168. package/src/views/user/system_parameter/list.vue +141 -141
  169. package/src/views/user/user/form_list.vue +245 -245
  170. package/src/views/user/user_log_classify/list.vue +197 -197
  171. package/src/views/user/wf/wf_obj_config/list.vue +753 -753
  172. package/src/views/user/wf/wf_obj_config/list_form.vue +373 -373
  173. package/src/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.es6.min.js +0 -11028
  174. package/src/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.min.css +0 -200
  175. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin - /345/211/257/346/234/254.js" +0 -1639
  176. package/src/components/xform/form-render/indexMixin copy.js +0 -3462
@@ -1,512 +1,512 @@
1
- <template>
2
- <div id="containt">
3
- <el-tabs v-model="activeName" class="tab-box">
4
- <el-tab-pane :label="$t1('常规')" name="first">
5
- <editView v-if="showEdit" visible-key="showEdit" :_dataId.sync="dataId" :parent-target="_self"
6
- @reload="$reloadHandle"></editView>
7
- </el-tab-pane>
8
- <el-tab-pane :label="$t1('列表')" name="second">
9
- <div class="tree-box fl">
10
- <div class="tit" @click="clearNodeClick"><b>表单类型</b></div>
11
- <div class="tree-btns" style="margin-top: 10px;">
12
- <el-button type="primary" plain icon="el-icon-circle-plus-outline" class="btn" @click="addFormType()">{{ $t1('新增') }}
13
- </el-button>
14
- <el-button type="primary" plain icon="el-icon-edit-outline" class="btn" @click="editFormType()"
15
- :disabled="!currentFormType">编辑
16
- </el-button>
17
- </div>
18
- <el-tree
19
- :props="defaultProps"
20
- :load="loadNode"
21
- node-key="id"
22
- ref="tree"
23
- highlight-current
24
- lazy
25
- :expand-on-click-node="false"
26
- @node-click="handleNodeClick"
27
- class="tree-list"
28
- icon-class="el-icon-arrow-down"
29
- ></el-tree>
30
- </div>
31
- <label id="labBtn">
32
- <div class="icon">
33
- <i class="el-icon-more"></i>
34
- <i class="el-icon-more"></i>
35
- </div>
36
- </label>
37
- <div class="main-right fr" style="padding-left:6px;">
38
- <div class="grid-height">
39
- <vxe-grid
40
- ref="table-m1"
41
- v-bind="vxeOption"
42
- @resizable-change="$vxeTableUtil.onColumnWitchChange"
43
- @custom="$vxeTableUtil.customHandle"
44
- >
45
- <template #form>
46
- <div class="clearfix screen-btns">
47
- <div class="fl">
48
- <vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog">{{ $t1('新增') }}
49
- </vxe-button>
50
- <base-table-export :option="{ title: '报表模板导出', targetRef: 'table-m1'}"
51
- :parent-target="_self"/>
52
- <!-- <vxe-button status="primary" class="button-sty" icon="el-icon-download" @click="importExcel">导入</vxe-button> -->
53
- </div>
54
- <div class="fr">
55
- <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
56
- plain>{{$t1('重置')}}
57
- </vxe-button>
58
- <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">{{ $t1('搜索') }}
59
- </vxe-button>
60
- </div>
61
- </div>
62
- <vxe-form ref="form" class="screen-box" title-width="92px" title-align="right" :data="formData"
63
- @submit="searchEvent" @reset="searchEvent">
64
- <vxe-form-item title="表单类型:" field="formTypeCode">
65
- <template v-slot>
66
- <el-input v-model="formData.formTypeName" size="small" disabled/>
67
- </template>
68
- </vxe-form-item>
69
- <vxe-form-item title="模板名称:" field="formName">
70
- <template v-slot>
71
- <el-input v-model="formData.formName" size="small" clearable/>
72
- </template>
73
- </vxe-form-item>
74
- <vxe-form-item title="模板编码:" field="formCode">
75
- <template v-slot>
76
- <el-input v-model="formData.formCode" size="small" clearable/>
77
- </template>
78
- </vxe-form-item>
79
- <vxe-form-item title="模板版本:" field="formVersion">
80
- <template v-slot>
81
- <base-input-number v-model="formData.formVersion"/>
82
- </template>
83
- </vxe-form-item>
84
- <vxe-form-item title="是否启用:" field="enabled">
85
- <template v-slot>
86
- <el-select v-model="formData.enabled" clearable>
87
- <el-option :value="true" label="启用"></el-option>
88
- <el-option :value="false" label="禁用"></el-option>
89
- </el-select>
90
- </template>
91
- </vxe-form-item>
92
- </vxe-form>
93
- </template>
94
- </vxe-grid>
95
- <el-drawer title="流程模板" :visible.sync="showItemView" :modal="false" :wrapperClosable="false"
96
- :destroy-on-close="true" size="90%" direction="btt">
97
- <itemList v-if="showItemView" :formTemplate="currentRow" :formCode="currentRow.formCode"
98
- :formName="currentRow.formName" @openWfDesignDialog="openWfDesignDialog"></itemList>
99
- </el-drawer>
100
- </div>
101
- </div>
102
- </el-tab-pane>
103
- </el-tabs>
104
-
105
- <el-dialog
106
- title="流程设计"
107
- :append-to-body="true"
108
- :modal-append-to-body="true"
109
- :close-on-click-modal="false"
110
- v-if="showWfDialog"
111
- :visible.sync="showWfDialog"
112
- :modal="false"
113
- custom-class="dialog-style designer-dialog"
114
- width="100%"
115
- height="100%"
116
- top="0px"
117
- bottom="0px"
118
- :before-close="closeDesignwinEvent"
119
- :destroy-on-close="true"
120
- v-el-drag-dialog
121
- >
122
- <iframe :src="wfUrl" :style="'width:100%;height:' + ($root.$el.clientHeight - 30 - 12) + 'px'"></iframe>
123
- </el-dialog>
124
-
125
- <el-dialog
126
- title="表单设计"
127
- :append-to-body="true"
128
- :modal-append-to-body="true"
129
- :close-on-click-modal="false"
130
- v-if="showDesingerDialog"
131
- :visible.sync="showDesingerDialog"
132
- :modal="false"
133
- custom-class="dialog-style designer-dialog"
134
- width="100%"
135
- height="100%"
136
- top="0px"
137
- bottom="0px"
138
- :before-close="closeFormDesignwinEvent"
139
- :destroy-on-close="true"
140
- v-el-drag-dialog
141
- >
142
- <designer ref="designer" :formCode.sync="formCode"></designer>
143
- </el-dialog>
144
-
145
- <userDialog v-if="showUserDialog" :visiable.sync="showUserDialog" @confirm="confirmUser"
146
- :multi.sync="wfAssignMulti"/>
147
- <positionDialog v-if="showPositionDialog" :visiable.sync="showPositionDialog" @confirm="confirmPosition"/>
148
- <scriptDescriptionDialog path="static/readme/Wf.txt" v-if="showScriptDescriptionDialog"
149
- :visiable.sync="showScriptDescriptionDialog"></scriptDescriptionDialog>
150
-
151
- <formTypeEditDialog v-if="showFormTypeDialog" :visiable.sync="showFormTypeDialog" :_dataId.sync="editFormTypeId"
152
- @confirm="confirmFormTypeEditDialog"></formTypeEditDialog>
153
- </div>
154
- </template>
155
-
156
- <script>
157
- import {treeScollx} from '@base/utils/global.js';
158
- import editView from './edit.vue';
159
-
160
- import userDialog from '../../../../views/user/user/dialog.vue';
161
- import positionDialog from '../../../../views/user/position/dialog.vue';
162
- import scriptDescriptionDialog from '@base/components/scriptDescription/dialog'
163
-
164
- // import designer from '../../../../views/user/form/vform/designer.vue';
165
- import itemList from "./itemList";
166
- import formTypeEditDialog from "../../../../views/user/form/form_type/editDialog";
167
-
168
- export default {
169
- name: 'form_template:list',
170
- components: {
171
- editView,
172
- userDialog,
173
- positionDialog,
174
- scriptDescriptionDialog,
175
- itemList,
176
- formTypeEditDialog,
177
- designer: () => import('../../../../views/user/form/vform/designer.vue')
178
- },
179
- data() {
180
- return {
181
- activeName: 'second',
182
- dataId: 0,
183
- showEdit: false,
184
- vxeOption: {},
185
- formData: {},
186
- showDesingerDialog: false,
187
- formCode: null,
188
- templateId: null,
189
-
190
- showItemEdit: false,
191
- showParamEdit: false,
192
- vxeOption1: {},
193
- editId: '',
194
- itemEditId: '',
195
- pRow: null,
196
- currentRow: {},
197
- serviceId: null,
198
- itemServiceId: null,
199
-
200
- showWfDialog: false,
201
- wfUrl: '',
202
- ph: '',
203
- dialogActiveName: 'first',
204
- showFunctionScriptList: false,
205
- showUserDialog: false,
206
- wfAssignData: [],
207
- wfAssignCallback: null,
208
- wfAssignMulti: true,
209
-
210
- showPositionDialog: false,
211
- wfAssignPositionData: [],
212
- wfAssignPositionCallback: null,
213
-
214
- showFormTemplateDialog: false,
215
- wfAssignFormTemplateCallback: null,
216
-
217
- showScriptDescriptionDialog: false,
218
- showWfDiyAttributeEdit: false,
219
-
220
- defaultProps: {
221
- label: 'formTypeName', //这里是树结构中需显示的数据(即接口返回的需展示在页面上的参数)
222
- children: [],
223
- isLeaf: 'leaf'
224
- },
225
- showItemView: false,
226
-
227
- currentFormType: null,
228
- editFormTypeId: null,
229
- showFormTypeDialog: false
230
- };
231
- },
232
- mounted() {
233
- treeScollx({target: this, type: 'default'});
234
- this.initTableList();
235
- this.initWfWinParam();
236
- },
237
- methods: {
238
- searchEvent() {
239
- this.$refs['table-m1'].commitProxy('reload');
240
- },
241
- resetEvent() {
242
- this.formData = {};
243
- this.currentFormType = null;
244
- this.$refs.tree.setCurrentKey();
245
- this.$refs['table-m1'].commitProxy('reload');
246
- },
247
- openEditDialog(id) {
248
- this.dataId = !id || typeof id == 'object' ? 0 : id;
249
- this.activeName = 'first';
250
- this.showItemEdit = false;
251
- this.$openEditView('showEdit');
252
- },
253
- openDesingerDialog(row) {
254
- this.formCode = row.formCode;
255
- this.showDesingerDialog = true;
256
- },
257
- closeFormDesignwinEvent(done) {
258
- this.$baseConfirm('请确认"已保存"报表模板,是否继续关闭?').then(() => {
259
- done && done();
260
- });
261
- },
262
- initTableList() {
263
- let that = this;
264
- let tableOption = {
265
- vue: this,
266
- tableRef: 'table-m1',
267
- tableName: 'user_form_template_list-m1',
268
- path: USER_PREFIX + '/form_template/listPage',
269
- param: () => {
270
- return {
271
- ...this.formData,
272
- history: false
273
- };
274
- },
275
- columns: [
276
- {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
277
- {
278
- title: '模板名称',
279
- field: 'formName',
280
- width: 150,
281
- fixed: 'left'
282
- },
283
- {
284
- title: '模板编码',
285
- field: 'formCode',
286
- width: 150
287
- },
288
- {
289
- title: '模板版本',
290
- field: 'formVersion',
291
- width: 150
292
- },
293
- {
294
- title: '表单类型',
295
- field: 'formTypeName',
296
- width: 150,
297
- },
298
- {
299
- title: this.$t1('是否启用'),
300
- field: 'enabled',
301
- width: 150,
302
- slots: {
303
- default: ({row}) => {
304
- if (row.enabled) {
305
- return [
306
- <div class="txt-status">
307
- <span>启用</span>
308
- </div>
309
- ];
310
- } else {
311
- return [
312
- <div class="txt-status disable">
313
- <span>禁用</span>
314
- </div>
315
- ];
316
- }
317
- }
318
- }
319
- },
320
- {
321
- title: this.$t1('备注'),
322
- field: 'remark',
323
- width: 150
324
- },
325
- {
326
- title: this.$t1('创建时间'),
327
- field: 'createDate',
328
- width: 150
329
- },
330
- {
331
- width: 300,
332
- fixed: 'right',
333
- title: '',
334
- sortable: false,
335
- slots: {
336
- default: ({row}) => {
337
- return [
338
- <div>
339
- <a
340
- href="javascript:void(0);"
341
- class="a-link"
342
- onclick={() => {
343
- this.openEditDialog(row.formCode);
344
- }}
345
- >
346
- <el-tooltip enterable={false} effect="dark" content={ this.$t1('查看') } placement="top"
347
- popper-class="tooltip-skin">
348
- <i class="el-icon-edit"/>
349
- </el-tooltip>
350
- </a>
351
- <a
352
- href="javascript:void(0);"
353
- onClick={() => {
354
- this.openDesingerDialog(row);
355
- }}
356
- class="a-link"
357
- >
358
- <el-tooltip enterable={false} effect="dark" content="表单设计" placement="top"
359
- popper-class="tooltip-skin">
360
- <i class="iconfont icon-liuchengguanli-shejiqi_liucheng"/>
361
- </el-tooltip>
362
- </a>
363
- <a
364
- href="javascript:void(0);"
365
- onClick={() => {
366
- this.chooseCellM1(row);
367
- }}
368
- class="a-link"
369
- >
370
- <el-tooltip enterable={false} effect="dark" content="查看流程模板" placement="top"
371
- popper-class="tooltip-skin">
372
- <i class="el-icon-edit"/>
373
- <span>查看流程模板</span>
374
- </el-tooltip>
375
- </a>
376
- </div>
377
- ];
378
- }
379
- }
380
- }
381
- ]
382
- };
383
- this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
384
- this.vxeOption = opts;
385
- });
386
- },
387
- chooseCellM1(row) {
388
- this.currentRow = row;
389
- this.showItemView = true;
390
- },
391
- openWfDesignDialog(actModelId) {
392
- //wfType 0:单据流程,1:场景流程
393
- let serviceId = this.currentRow.serviceId;
394
- this.wfUrl = WEB_PREFIX + '/activiti-explorer/modeler.html?wfType=0&serviceId=' + 'user' + '&modelId=' + actModelId;
395
- this.dialogActiveName = 'first';
396
- this.showWfDialog = true;
397
- },
398
- closeDesignwinEvent(done) {
399
- this.$baseConfirm('请确认"已保存"流程模板,是否继续关闭?').then(() => {
400
- this.showWfDialog = false;
401
- // this.showDesingerDialog = false;
402
- });
403
- },
404
- initWfWinParam() {
405
- this.initCloseWfDesignWin();
406
- this.initWinUserDialog();
407
- this.initWinPositionDialog();
408
- this.initSysParamForWf();
409
- this.initWinFormTemplateDialog();
410
- this.initWinScriptDescriptionDialog();
411
- },
412
- initCloseWfDesignWin() {
413
- window.closeWfDesignWin = () => {
414
- this.showWfDialog = false;
415
- };
416
- },
417
- initWinUserDialog() {
418
- window.openAssignUserDialog = opts => {
419
- this.wfAssignMulti = opts.multi;
420
- this.wfAssignData = opts.data || [];
421
- this.wfAssignCallback = opts.callback;
422
- this.showUserDialog = true;
423
- };
424
- },
425
- confirmUser(rows) {
426
- this.wfAssignCallback(rows);
427
- },
428
- initWinPositionDialog() {
429
- window.openAssignPositionDialog = opts => {
430
- this.wfAssignPositionData = opts.data || [];
431
- this.wfAssignPositionCallback = opts.callback;
432
- this.showPositionDialog = true;
433
- };
434
- },
435
- initSysParamForWf() {
436
- let webPrefix = WEB_PREFIX;
437
- let baseApi = process.env.VUE_APP_BASE_API;
438
- window.sysParamForWf = {
439
- webPrefix,
440
- baseApi
441
- }
442
- },
443
- confirmPosition(rows) {
444
- this.wfAssignPositionCallback(rows);
445
- },
446
- initWinFormTemplateDialog() {
447
- window.openAssignFormTemplateDialog = opts => {
448
- this.wfAssignFormTemplateCallback = opts.callback;
449
- this.showFormTemplateDialog = true;
450
- };
451
- },
452
- confirmFormTemplate(rows) {
453
- this.wfAssignFormTemplateCallback(rows);
454
- },
455
- initWinScriptDescriptionDialog() {
456
- window.openScriptDescriptionDialog = opts => {
457
- this.showScriptDescriptionDialog = true;
458
- };
459
- },
460
- clearNodeClick() {
461
- this.formData.formTypeCode = null;
462
- this.formData.formTypeName = null;
463
- this.currentFormType = null;
464
- this.$refs.tree.setCurrentKey();
465
- this.searchEvent();
466
- },
467
- handleNodeClick(data, node, v) {
468
- this.$set(this.formData, 'formTypeCode', data.formTypeCode);
469
- this.$set(this.formData, 'formTypeName', data.formTypeName);
470
- this.currentFormType = data;
471
- this.$forceUpdate();
472
- this.searchEvent();
473
- },
474
- // 异步树叶子节点懒加载逻辑
475
- loadNode(node, resolve) {
476
- let url = USER_PREFIX + '/form_type/listPage';
477
- this.$http({
478
- url: url,
479
- method: 'post',
480
- data: {},
481
- success: res => {
482
- let records = res.objx && res.objx.records ? res.objx.records : [];
483
- records.forEach(value => {
484
- value.leaf = true;
485
- });
486
- resolve(records);
487
- }
488
- });
489
- },
490
- addFormType() {
491
- this.editFormTypeId = null;
492
- this.currentFormType = null;
493
- this.showFormTypeDialog = true;
494
- },
495
- editFormType() {
496
- let row = this.currentFormType;
497
- this.editFormTypeId = row.id;
498
- this.showFormTypeDialog = true;
499
- },
500
- confirmFormTypeEditDialog(row) {
501
- row.leaf = true;
502
- let editFormTypeId = this.editFormTypeId;
503
- if (!editFormTypeId) {
504
- this.$refs.tree.append(row);
505
- } else {
506
- let node = this.$refs.tree.getNode(row.id + "");
507
- node.data = row;
508
- }
509
- }
510
- }
511
- };
512
- </script>
1
+ <template>
2
+ <div id="containt">
3
+ <el-tabs v-model="activeName" class="tab-box">
4
+ <el-tab-pane :label="$t1('常规')" name="first">
5
+ <editView v-if="showEdit" visible-key="showEdit" :_dataId.sync="dataId" :parent-target="_self"
6
+ @reload="$reloadHandle"></editView>
7
+ </el-tab-pane>
8
+ <el-tab-pane :label="$t1('列表')" name="second">
9
+ <div class="tree-box fl">
10
+ <div class="tit" @click="clearNodeClick"><b>表单类型</b></div>
11
+ <div class="tree-btns" style="margin-top: 10px;">
12
+ <el-button type="primary" plain icon="el-icon-circle-plus-outline" class="btn" @click="addFormType()">{{ $t1('新增') }}
13
+ </el-button>
14
+ <el-button type="primary" plain icon="el-icon-edit-outline" class="btn" @click="editFormType()"
15
+ :disabled="!currentFormType">编辑
16
+ </el-button>
17
+ </div>
18
+ <el-tree
19
+ :props="defaultProps"
20
+ :load="loadNode"
21
+ node-key="id"
22
+ ref="tree"
23
+ highlight-current
24
+ lazy
25
+ :expand-on-click-node="false"
26
+ @node-click="handleNodeClick"
27
+ class="tree-list"
28
+ icon-class="el-icon-arrow-down"
29
+ ></el-tree>
30
+ </div>
31
+ <label id="labBtn">
32
+ <div class="icon">
33
+ <i class="el-icon-more"></i>
34
+ <i class="el-icon-more"></i>
35
+ </div>
36
+ </label>
37
+ <div class="main-right fr" style="padding-left:6px;">
38
+ <div class="grid-height">
39
+ <vxe-grid
40
+ ref="table-m1"
41
+ v-bind="vxeOption"
42
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
43
+ @custom="$vxeTableUtil.customHandle"
44
+ >
45
+ <template #form>
46
+ <div class="clearfix screen-btns">
47
+ <div class="fl">
48
+ <vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog">{{ $t1('新增') }}
49
+ </vxe-button>
50
+ <base-table-export :option="{ title: '报表模板导出', targetRef: 'table-m1'}"
51
+ :parent-target="_self"/>
52
+ <!-- <vxe-button status="primary" class="button-sty" icon="el-icon-download" @click="importExcel">导入</vxe-button> -->
53
+ </div>
54
+ <div class="fr">
55
+ <vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
56
+ plain>{{$t1('重置')}}
57
+ </vxe-button>
58
+ <vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">{{ $t1('搜索') }}
59
+ </vxe-button>
60
+ </div>
61
+ </div>
62
+ <vxe-form ref="form" class="screen-box" title-width="92px" title-align="right" :data="formData"
63
+ @submit="searchEvent" @reset="searchEvent">
64
+ <vxe-form-item title="表单类型:" field="formTypeCode">
65
+ <template v-slot>
66
+ <el-input v-model="formData.formTypeName" size="small" disabled/>
67
+ </template>
68
+ </vxe-form-item>
69
+ <vxe-form-item title="模板名称:" field="formName">
70
+ <template v-slot>
71
+ <el-input v-model="formData.formName" size="small" clearable/>
72
+ </template>
73
+ </vxe-form-item>
74
+ <vxe-form-item title="模板编码:" field="formCode">
75
+ <template v-slot>
76
+ <el-input v-model="formData.formCode" size="small" clearable/>
77
+ </template>
78
+ </vxe-form-item>
79
+ <vxe-form-item title="模板版本:" field="formVersion">
80
+ <template v-slot>
81
+ <base-input-number v-model="formData.formVersion"/>
82
+ </template>
83
+ </vxe-form-item>
84
+ <vxe-form-item title="是否启用:" field="enabled">
85
+ <template v-slot>
86
+ <el-select v-model="formData.enabled" clearable>
87
+ <el-option :value="true" label="启用"></el-option>
88
+ <el-option :value="false" label="禁用"></el-option>
89
+ </el-select>
90
+ </template>
91
+ </vxe-form-item>
92
+ </vxe-form>
93
+ </template>
94
+ </vxe-grid>
95
+ <el-drawer title="流程模板" :visible.sync="showItemView" :modal="false" :wrapperClosable="false"
96
+ :destroy-on-close="true" size="90%" direction="btt">
97
+ <itemList v-if="showItemView" :formTemplate="currentRow" :formCode="currentRow.formCode"
98
+ :formName="currentRow.formName" @openWfDesignDialog="openWfDesignDialog"></itemList>
99
+ </el-drawer>
100
+ </div>
101
+ </div>
102
+ </el-tab-pane>
103
+ </el-tabs>
104
+
105
+ <el-dialog
106
+ title="流程设计"
107
+ :append-to-body="true"
108
+ :modal-append-to-body="true"
109
+ :close-on-click-modal="false"
110
+ v-if="showWfDialog"
111
+ :visible.sync="showWfDialog"
112
+ :modal="false"
113
+ custom-class="dialog-style designer-dialog"
114
+ width="100%"
115
+ height="100%"
116
+ top="0px"
117
+ bottom="0px"
118
+ :before-close="closeDesignwinEvent"
119
+ :destroy-on-close="true"
120
+ v-el-drag-dialog
121
+ >
122
+ <iframe :src="wfUrl" :style="'width:100%;height:' + ($root.$el.clientHeight - 30 - 12) + 'px'"></iframe>
123
+ </el-dialog>
124
+
125
+ <el-dialog
126
+ title="表单设计"
127
+ :append-to-body="true"
128
+ :modal-append-to-body="true"
129
+ :close-on-click-modal="false"
130
+ v-if="showDesingerDialog"
131
+ :visible.sync="showDesingerDialog"
132
+ :modal="false"
133
+ custom-class="dialog-style designer-dialog"
134
+ width="100%"
135
+ height="100%"
136
+ top="0px"
137
+ bottom="0px"
138
+ :before-close="closeFormDesignwinEvent"
139
+ :destroy-on-close="true"
140
+ v-el-drag-dialog
141
+ >
142
+ <designer ref="designer" :formCode.sync="formCode"></designer>
143
+ </el-dialog>
144
+
145
+ <userDialog v-if="showUserDialog" :visiable.sync="showUserDialog" @confirm="confirmUser"
146
+ :multi.sync="wfAssignMulti"/>
147
+ <positionDialog v-if="showPositionDialog" :visiable.sync="showPositionDialog" @confirm="confirmPosition"/>
148
+ <scriptDescriptionDialog path="static/readme/Wf.txt" v-if="showScriptDescriptionDialog"
149
+ :visiable.sync="showScriptDescriptionDialog"></scriptDescriptionDialog>
150
+
151
+ <formTypeEditDialog v-if="showFormTypeDialog" :visiable.sync="showFormTypeDialog" :_dataId.sync="editFormTypeId"
152
+ @confirm="confirmFormTypeEditDialog"></formTypeEditDialog>
153
+ </div>
154
+ </template>
155
+
156
+ <script>
157
+ import {treeScollx} from '@base/utils/global.js';
158
+ import editView from './edit.vue';
159
+
160
+ import userDialog from '../../../../views/user/user/dialog.vue';
161
+ import positionDialog from '../../../../views/user/position/dialog.vue';
162
+ import scriptDescriptionDialog from '@base/components/scriptDescription/dialog'
163
+
164
+ // import designer from '../../../../views/user/form/vform/designer.vue';
165
+ import itemList from "./itemList";
166
+ import formTypeEditDialog from "../../../../views/user/form/form_type/editDialog";
167
+
168
+ export default {
169
+ name: 'form_template:list',
170
+ components: {
171
+ editView,
172
+ userDialog,
173
+ positionDialog,
174
+ scriptDescriptionDialog,
175
+ itemList,
176
+ formTypeEditDialog,
177
+ designer: () => import('../../../../views/user/form/vform/designer.vue')
178
+ },
179
+ data() {
180
+ return {
181
+ activeName: 'second',
182
+ dataId: 0,
183
+ showEdit: false,
184
+ vxeOption: {},
185
+ formData: {},
186
+ showDesingerDialog: false,
187
+ formCode: null,
188
+ templateId: null,
189
+
190
+ showItemEdit: false,
191
+ showParamEdit: false,
192
+ vxeOption1: {},
193
+ editId: '',
194
+ itemEditId: '',
195
+ pRow: null,
196
+ currentRow: {},
197
+ serviceId: null,
198
+ itemServiceId: null,
199
+
200
+ showWfDialog: false,
201
+ wfUrl: '',
202
+ ph: '',
203
+ dialogActiveName: 'first',
204
+ showFunctionScriptList: false,
205
+ showUserDialog: false,
206
+ wfAssignData: [],
207
+ wfAssignCallback: null,
208
+ wfAssignMulti: true,
209
+
210
+ showPositionDialog: false,
211
+ wfAssignPositionData: [],
212
+ wfAssignPositionCallback: null,
213
+
214
+ showFormTemplateDialog: false,
215
+ wfAssignFormTemplateCallback: null,
216
+
217
+ showScriptDescriptionDialog: false,
218
+ showWfDiyAttributeEdit: false,
219
+
220
+ defaultProps: {
221
+ label: 'formTypeName', //这里是树结构中需显示的数据(即接口返回的需展示在页面上的参数)
222
+ children: [],
223
+ isLeaf: 'leaf'
224
+ },
225
+ showItemView: false,
226
+
227
+ currentFormType: null,
228
+ editFormTypeId: null,
229
+ showFormTypeDialog: false
230
+ };
231
+ },
232
+ mounted() {
233
+ treeScollx({target: this, type: 'default'});
234
+ this.initTableList();
235
+ this.initWfWinParam();
236
+ },
237
+ methods: {
238
+ searchEvent() {
239
+ this.$refs['table-m1'].commitProxy('reload');
240
+ },
241
+ resetEvent() {
242
+ this.formData = {};
243
+ this.currentFormType = null;
244
+ this.$refs.tree.setCurrentKey();
245
+ this.$refs['table-m1'].commitProxy('reload');
246
+ },
247
+ openEditDialog(id) {
248
+ this.dataId = !id || typeof id == 'object' ? 0 : id;
249
+ this.activeName = 'first';
250
+ this.showItemEdit = false;
251
+ this.$openEditView('showEdit');
252
+ },
253
+ openDesingerDialog(row) {
254
+ this.formCode = row.formCode;
255
+ this.showDesingerDialog = true;
256
+ },
257
+ closeFormDesignwinEvent(done) {
258
+ this.$baseConfirm('请确认"已保存"报表模板,是否继续关闭?').then(() => {
259
+ done && done();
260
+ });
261
+ },
262
+ initTableList() {
263
+ let that = this;
264
+ let tableOption = {
265
+ vue: this,
266
+ tableRef: 'table-m1',
267
+ tableName: 'user_form_template_list-m1',
268
+ path: USER_PREFIX + '/form_template/listPage',
269
+ param: () => {
270
+ return {
271
+ ...this.formData,
272
+ history: false
273
+ };
274
+ },
275
+ columns: [
276
+ {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
277
+ {
278
+ title: '模板名称',
279
+ field: 'formName',
280
+ width: 150,
281
+ fixed: 'left'
282
+ },
283
+ {
284
+ title: '模板编码',
285
+ field: 'formCode',
286
+ width: 150
287
+ },
288
+ {
289
+ title: '模板版本',
290
+ field: 'formVersion',
291
+ width: 150
292
+ },
293
+ {
294
+ title: '表单类型',
295
+ field: 'formTypeName',
296
+ width: 150,
297
+ },
298
+ {
299
+ title: this.$t1('是否启用'),
300
+ field: 'enabled',
301
+ width: 150,
302
+ slots: {
303
+ default: ({row}) => {
304
+ if (row.enabled) {
305
+ return [
306
+ <div class="txt-status">
307
+ <span>启用</span>
308
+ </div>
309
+ ];
310
+ } else {
311
+ return [
312
+ <div class="txt-status disable">
313
+ <span>禁用</span>
314
+ </div>
315
+ ];
316
+ }
317
+ }
318
+ }
319
+ },
320
+ {
321
+ title: this.$t1('备注'),
322
+ field: 'remark',
323
+ width: 150
324
+ },
325
+ {
326
+ title: this.$t1('创建时间'),
327
+ field: 'createDate',
328
+ width: 150
329
+ },
330
+ {
331
+ width: 300,
332
+ fixed: 'right',
333
+ title: '',
334
+ sortable: false,
335
+ slots: {
336
+ default: ({row}) => {
337
+ return [
338
+ <div>
339
+ <a
340
+ href="javascript:void(0);"
341
+ class="a-link"
342
+ onclick={() => {
343
+ this.openEditDialog(row.formCode);
344
+ }}
345
+ >
346
+ <el-tooltip enterable={false} effect="dark" content={ this.$t1('查看') } placement="top"
347
+ popper-class="tooltip-skin">
348
+ <i class="el-icon-edit"/>
349
+ </el-tooltip>
350
+ </a>
351
+ <a
352
+ href="javascript:void(0);"
353
+ onClick={() => {
354
+ this.openDesingerDialog(row);
355
+ }}
356
+ class="a-link"
357
+ >
358
+ <el-tooltip enterable={false} effect="dark" content="表单设计" placement="top"
359
+ popper-class="tooltip-skin">
360
+ <i class="iconfont icon-liuchengguanli-shejiqi_liucheng"/>
361
+ </el-tooltip>
362
+ </a>
363
+ <a
364
+ href="javascript:void(0);"
365
+ onClick={() => {
366
+ this.chooseCellM1(row);
367
+ }}
368
+ class="a-link"
369
+ >
370
+ <el-tooltip enterable={false} effect="dark" content="查看流程模板" placement="top"
371
+ popper-class="tooltip-skin">
372
+ <i class="el-icon-edit"/>
373
+ <span>查看流程模板</span>
374
+ </el-tooltip>
375
+ </a>
376
+ </div>
377
+ ];
378
+ }
379
+ }
380
+ }
381
+ ]
382
+ };
383
+ this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
384
+ this.vxeOption = opts;
385
+ });
386
+ },
387
+ chooseCellM1(row) {
388
+ this.currentRow = row;
389
+ this.showItemView = true;
390
+ },
391
+ openWfDesignDialog(actModelId) {
392
+ //wfType 0:单据流程,1:场景流程
393
+ let serviceId = this.currentRow.serviceId;
394
+ this.wfUrl = WEB_PREFIX + '/activiti-explorer/modeler.html?wfType=0&serviceId=' + 'user' + '&modelId=' + actModelId;
395
+ this.dialogActiveName = 'first';
396
+ this.showWfDialog = true;
397
+ },
398
+ closeDesignwinEvent(done) {
399
+ this.$baseConfirm('请确认"已保存"流程模板,是否继续关闭?').then(() => {
400
+ this.showWfDialog = false;
401
+ // this.showDesingerDialog = false;
402
+ });
403
+ },
404
+ initWfWinParam() {
405
+ this.initCloseWfDesignWin();
406
+ this.initWinUserDialog();
407
+ this.initWinPositionDialog();
408
+ this.initSysParamForWf();
409
+ this.initWinFormTemplateDialog();
410
+ this.initWinScriptDescriptionDialog();
411
+ },
412
+ initCloseWfDesignWin() {
413
+ window.closeWfDesignWin = () => {
414
+ this.showWfDialog = false;
415
+ };
416
+ },
417
+ initWinUserDialog() {
418
+ window.openAssignUserDialog = opts => {
419
+ this.wfAssignMulti = opts.multi;
420
+ this.wfAssignData = opts.data || [];
421
+ this.wfAssignCallback = opts.callback;
422
+ this.showUserDialog = true;
423
+ };
424
+ },
425
+ confirmUser(rows) {
426
+ this.wfAssignCallback(rows);
427
+ },
428
+ initWinPositionDialog() {
429
+ window.openAssignPositionDialog = opts => {
430
+ this.wfAssignPositionData = opts.data || [];
431
+ this.wfAssignPositionCallback = opts.callback;
432
+ this.showPositionDialog = true;
433
+ };
434
+ },
435
+ initSysParamForWf() {
436
+ let webPrefix = WEB_PREFIX;
437
+ let baseApi = process.env.VUE_APP_BASE_API;
438
+ window.sysParamForWf = {
439
+ webPrefix,
440
+ baseApi
441
+ }
442
+ },
443
+ confirmPosition(rows) {
444
+ this.wfAssignPositionCallback(rows);
445
+ },
446
+ initWinFormTemplateDialog() {
447
+ window.openAssignFormTemplateDialog = opts => {
448
+ this.wfAssignFormTemplateCallback = opts.callback;
449
+ this.showFormTemplateDialog = true;
450
+ };
451
+ },
452
+ confirmFormTemplate(rows) {
453
+ this.wfAssignFormTemplateCallback(rows);
454
+ },
455
+ initWinScriptDescriptionDialog() {
456
+ window.openScriptDescriptionDialog = opts => {
457
+ this.showScriptDescriptionDialog = true;
458
+ };
459
+ },
460
+ clearNodeClick() {
461
+ this.formData.formTypeCode = null;
462
+ this.formData.formTypeName = null;
463
+ this.currentFormType = null;
464
+ this.$refs.tree.setCurrentKey();
465
+ this.searchEvent();
466
+ },
467
+ handleNodeClick(data, node, v) {
468
+ this.$set(this.formData, 'formTypeCode', data.formTypeCode);
469
+ this.$set(this.formData, 'formTypeName', data.formTypeName);
470
+ this.currentFormType = data;
471
+ this.$forceUpdate();
472
+ this.searchEvent();
473
+ },
474
+ // 异步树叶子节点懒加载逻辑
475
+ loadNode(node, resolve) {
476
+ let url = USER_PREFIX + '/form_type/listPage';
477
+ this.$http({
478
+ url: url,
479
+ method: 'post',
480
+ data: {},
481
+ success: res => {
482
+ let records = res.objx && res.objx.records ? res.objx.records : [];
483
+ records.forEach(value => {
484
+ value.leaf = true;
485
+ });
486
+ resolve(records);
487
+ }
488
+ });
489
+ },
490
+ addFormType() {
491
+ this.editFormTypeId = null;
492
+ this.currentFormType = null;
493
+ this.showFormTypeDialog = true;
494
+ },
495
+ editFormType() {
496
+ let row = this.currentFormType;
497
+ this.editFormTypeId = row.id;
498
+ this.showFormTypeDialog = true;
499
+ },
500
+ confirmFormTypeEditDialog(row) {
501
+ row.leaf = true;
502
+ let editFormTypeId = this.editFormTypeId;
503
+ if (!editFormTypeId) {
504
+ this.$refs.tree.append(row);
505
+ } else {
506
+ let node = this.$refs.tree.getNode(row.id + "");
507
+ node.data = row;
508
+ }
509
+ }
510
+ }
511
+ };
512
+ </script>