cloud-web-corejs 1.0.80 → 1.0.82

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