cloud-web-corejs 1.0.54-dev.137 → 1.0.54-dev.138

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.
@@ -1,484 +1,702 @@
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
+ <template v-if="!dataId">
79
+ <el-form-item prop="taBm" :rules="[{ required: false, trigger: ['blur', 'change'] }]">
80
+ <el-input type="text" autocomplete="off" v-model="szTaMb.taBm" clearable />
81
+ </el-form-item>
82
+ </template>
83
+ <template v-else>
84
+ {{ szTaMb.taBm }}
85
+ </template>
86
+ </td>
87
+ <template v-if="!dataId">
88
+ <td colspan="4">
89
+ <span class="fl tips">{{ $t1('注:数据库表名必须定义为:1、与实体名称一样,2、表单分类数据表前缀_实体名称。') }}</span>
90
+ </td>
91
+ </template>
92
+ </tr>
93
+ <tr>
94
+ <th>
95
+ <em class="f-red">*</em>
96
+ {{ $t1("实体名称") }}
97
+ </th>
98
+ <td colspan="3">
99
+ <el-form-item
100
+ prop="taEn"
101
+ :rules="[{ required: true, trigger: ['blur', 'change'] }]"
102
+ >
103
+ <el-input
104
+ type="text"
105
+ autocomplete="off"
106
+ v-model="szTaMb.taEn"
107
+ clearable
108
+ />
109
+ </el-form-item>
110
+ </td>
111
+ </tr>
112
+ <tr>
113
+ <th><em class="f-red">*</em>{{ $t1("表描述") }}</th>
114
+ <td colspan="5">
115
+ <el-form-item
116
+ prop="taCh"
117
+ :rules="[{ required: true, trigger: ['blur', 'change'] }]"
118
+ >
119
+ <el-input
120
+ type="text"
121
+ autocomplete="off"
122
+ v-model="szTaMb.taCh"
123
+ clearable
124
+ />
125
+ </el-form-item>
126
+ </td>
127
+ </tr>
128
+ <tr>
129
+ <th><em class="f-red">*</em>{{ $t1("是否明细") }}</th>
130
+ <td>
131
+ <el-form-item
132
+ prop="taType"
133
+ :rules="[{ required: true, trigger: ['blur', 'change'] }]"
134
+ >
135
+ <el-radio-group v-model="szTaMb.taType">
136
+ <el-radio :label="1">{{ $t1("是") }}</el-radio>
137
+ <el-radio :label="0">{{ $t1("否") }}</el-radio>
138
+ </el-radio-group>
139
+ </el-form-item>
140
+ </td>
141
+ <th>
142
+ <em class="f-red" v-show="szTaMb.taType === 1">*</em>
143
+ {{ $t1("所属主实体") }}
144
+ </th>
145
+ <td colspan="3">
146
+ <el-form-item
147
+ prop="sszstEn"
148
+ :rules="[
149
+ {
150
+ required: szTaMb.taType === 1,
151
+ trigger: ['blur', 'change'],
152
+ },
153
+ ]"
154
+ >
155
+ <el-input
156
+ class="search-input"
157
+ max="200"
158
+ v-model="szTaMb.sszstEn"
159
+ @clear="
160
+ szTaMb.sszst = '';
161
+ $forceUpdate();
162
+ "
163
+ :disabled="szTaMb.taType == 0"
164
+ v-el-readonly
165
+ clearable
166
+ >
167
+ <i
168
+ slot="suffix"
169
+ class="el-input__icon el-icon-search"
170
+ @click="showSzTaMbDialog = true"
171
+ ></i>
172
+ </el-input>
173
+ </el-form-item>
174
+ </td>
175
+ </tr>
176
+ <tr>
177
+ <th><em class="f-red">*</em>{{ $t1("是否树结构") }}</th>
178
+ <td>
179
+ <el-form-item
180
+ prop="taRule"
181
+ :rules="[{ required: true, trigger: ['blur', 'change'] }]"
182
+ >
183
+ <el-radio-group
184
+ v-model="szTaMb.taRule"
185
+ @change="changeTaRule"
186
+ >
187
+ <el-radio :label="1">{{ $t1("是") }}</el-radio>
188
+ <el-radio :label="0">{{ $t1("否") }}</el-radio>
189
+ </el-radio-group>
190
+ </el-form-item>
191
+ </td>
192
+ <th><em class="f-red">*</em>{{ $t1("数据范围") }}</th>
193
+ <td colspan="3">
194
+ <el-form-item
195
+ prop="dataRange"
196
+ :rules="[{ required: true, trigger: ['blur', 'change'] }]"
197
+ >
198
+ <el-radio-group v-model="szTaMb.dataRange">
199
+ <el-radio :label="1">{{ $t1("集团") }}</el-radio>
200
+ <el-radio :label="0">{{ $t1("当前组织") }}</el-radio>
201
+ </el-radio-group>
202
+ </el-form-item>
203
+ </td>
204
+ </tr>
205
+ <tr>
206
+ <th>
207
+ <em class="f-red">*</em>
208
+ {{ $t1("表单分类") }}
209
+ </th>
210
+ <td colspan="5">
211
+ <el-form-item
212
+ prop="menuKindName"
213
+ :rules="[
214
+ {
215
+ required: true,
216
+ trigger: ['blur', 'change'],
217
+ },
218
+ ]"
219
+ >
220
+ <el-input
221
+ class="search-input"
222
+ max="200"
223
+ v-model="szTaMb.menuKindName"
224
+ @clear="
225
+ szTaMb.menuKindCode = '';
226
+ $forceUpdate();
227
+ "
228
+ v-el-readonly
229
+ clearable
230
+ >
231
+ <i
232
+ slot="suffix"
233
+ class="el-input__icon el-icon-search"
234
+ @click="showMenuKindDialog = true"
235
+ ></i>
236
+ </el-input>
237
+ </el-form-item>
238
+ </td>
239
+ </tr>
240
+ <tr>
241
+ <th>
242
+ {{ $t1("项目标签") }}
243
+ </th>
244
+ <td colspan="7">
245
+ <projectTagView
246
+ v-model="szTaMb.szTaMbTagDTOs"
247
+ ></projectTagView>
248
+ </td>
249
+ </tr>
250
+ <tr>
251
+ <th>
252
+ {{ $t1("服务名") }}
253
+ </th>
254
+ <td colspan="7">
255
+ {{ szTaMb.serviceName }}
256
+ </td>
257
+ </tr>
258
+
259
+ <tr>
260
+ <th>
261
+ {{ $t1("唯一标识") }}
262
+ </th>
263
+ <td colspan="7">
264
+ {{ szTaMb.sid }}
265
+ </td>
266
+ </tr>
267
+ <tr>
268
+ <th>{{ $t1("创建人") }}</th>
269
+ <td>{{ szTaMb.createBy }}</td>
270
+ <th>{{ $t1("创建时间") }}</th>
271
+ <td>{{ szTaMb.createDate }}</td>
272
+ <th>{{ $t1("更新人") }}</th>
273
+ <td>{{ szTaMb.modifyBy }}</td>
274
+ <th>{{ $t1("更新时间") }}</th>
275
+ <td>{{ szTaMb.modifyDate }}</td>
276
+ </tr>
277
+ </tbody>
278
+ </table>
279
+ </template>
280
+ </baseTabPane>
281
+ <baseTabPane :label="$t1('数据表字段明细')">
282
+ <template #button>
283
+ <el-button
284
+ class="button-sty"
285
+ @click="addTaMbItems"
286
+ icon="el-icon-plus"
287
+ >{{ $t1("新增") }}</el-button
288
+ >
289
+ </template>
290
+ <template #default>
291
+ <div>
292
+ <vxe-grid
293
+ ref="table-szTaZdMb"
294
+ :data="szTaMb.szTaZdMbDTOs"
295
+ v-bind="productOption"
296
+ @resizable-change="$vxeTableUtil.onColumnWitchChange"
297
+ @custom="$vxeTableUtil.customHandle"
298
+ >
299
+ <template #zdType="{ row }">
300
+ <el-select
301
+ v-model="row.zdType"
302
+ clearable
303
+ :disabled="!!row.systems || !!row.relationZd"
304
+ >
305
+ <el-option value="Boolean" :label="$t1('布尔')"></el-option>
306
+ <el-option value="Integer" :label="$t1('整数')"></el-option>
307
+ <el-option value="Long" :label="$t1('长整数')"></el-option>
308
+ <el-option
309
+ value="Decimal"
310
+ :label="$t1('精度小数')"
311
+ ></el-option>
312
+ <el-option value="Money" :label="$t1('金额')"></el-option>
313
+ <el-option value="Text" :label="$t1('文本')"></el-option>
314
+ <el-option
315
+ value="TextArea"
316
+ :label="$t1('长文本')"
317
+ ></el-option>
318
+ <el-option
319
+ value="DateTime"
320
+ :label="$t1('日期时间')"
321
+ ></el-option>
322
+ <el-option
323
+ value="Reference"
324
+ :label="$t1('关联表')"
325
+ ></el-option>
326
+ </el-select>
327
+ </template>
328
+ <template #referenceZd="{ row, rowIndex, $table }">
329
+ <el-input
330
+ class="search-input"
331
+ v-model="row.referenceZd"
332
+ clearable
333
+ @clear="$forceUpdate()"
334
+ v-el-readonly
335
+ v-if="row.zdType == 'Reference'"
336
+ >
337
+ <i
338
+ slot="suffix"
339
+ class="el-input__icon el-icon-search"
340
+ @click="openReferenceZdDialog(row, rowIndex, $table)"
341
+ ></i>
342
+ </el-input>
343
+ <template v-else>
344
+ {{ row.referenceZd }}
345
+ </template>
346
+ </template>
347
+ <template #zdEn="{ row, rowIndex }">
348
+ <template
349
+ v-if="!!row.systems || !!row.relationZd || row.fromTable"
350
+ >
351
+ <div :style="!!row.relationZd ? 'margin-left:20px' : ''">
352
+ {{ row.zdEn }}
353
+ </div>
354
+ </template>
355
+ <template v-else>
356
+ <el-form-item
357
+ :prop="'szTaZdMbDTOs.' + rowIndex + '.zdEn'"
358
+ :rules="[{ required: true, trigger: ['blur', 'change'] }]"
359
+ >
360
+ <el-input v-model="row.zdEn" clearable />
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 #t1="{ row, rowIndex }">
407
+ <el-checkbox
408
+ v-model="row.t1"
409
+ :disabled="!!row.systems || !!row.relationZd"
410
+ />
411
+ </template>
412
+ <template #codeType="{ row, rowIndex }">
413
+ <el-form-item
414
+ :prop="'szTaZdMbDTOs.' + rowIndex + '.codeType'"
415
+ :rules="[{ required: false, trigger: ['blur', 'change'] }]"
416
+ >
417
+ <el-input
418
+ v-model="row.codeType"
419
+ clearable
420
+ :disabled="!!row.systems || !!row.relationZd"
421
+ />
422
+ </el-form-item>
423
+ </template>
424
+ <template #orders="{ row, rowIndex }">
425
+ <el-form-item
426
+ :prop="'szTaZdMbDTOs.' + rowIndex + '.orders'"
427
+ :rules="[{ required: false, trigger: ['blur', 'change'] }]"
428
+ >
429
+ <base-input-number
430
+ v-model="row.orders"
431
+ clearable
432
+ :disabled="!!row.systems"
433
+ @change="changeOrders(row)"
434
+ />
435
+ </el-form-item>
436
+ </template>
437
+ <template #toTaBmZd="{ row, rowIndex, $table }">
438
+ <el-input
439
+ class="search-input"
440
+ v-model="row.toTaBmZd"
441
+ clearable
442
+ @clear="$forceUpdate()"
443
+ v-el-readonly
444
+ >
445
+ <i
446
+ slot="suffix"
447
+ class="el-input__icon el-icon-search"
448
+ @click="openToTaBmZdDialog(row, rowIndex, $table)"
449
+ ></i>
450
+ </el-input>
451
+ </template>
452
+ </vxe-grid>
453
+ </div>
454
+ <table class="table-detail">
455
+ <tbody>
456
+ <tr>
457
+ <th>
458
+ {{ $t1("表编码") }}
459
+ </th>
460
+ <td colspan="7">
461
+ {{ szTaMb.taCode }}
462
+ </td>
463
+ </tr>
464
+ </tbody>
465
+ </table>
466
+ </template>
467
+ </baseTabPane>
468
+ <baseTabPane :label="$t1('操作日志')">
469
+ <template #default>
470
+ <formOplogTable
471
+ :parent-target="_self"
472
+ ref="oplogTable"
473
+ ></formOplogTable>
474
+ </template>
475
+ </baseTabPane>
476
+ </baseTabs>
477
+ </el-form>
478
+
479
+ <szTaMbDialog
480
+ v-if="showSzTaMbDialog"
481
+ :visiable.sync="showSzTaMbDialog"
482
+ @confirm="confirmInsertSzTaMb"
483
+ :multi="false"
484
+ />
485
+ <szTaMbDialog
486
+ v-if="showItemSzTaMbDialog"
487
+ :visiable.sync="showItemSzTaMbDialog"
488
+ @confirm="confirmInsertItemSzTaMb"
489
+ multi="false"
490
+ />
491
+ <MenuKindDialog
492
+ v-if="showMenuKindDialog"
493
+ :visiable.sync="showMenuKindDialog"
494
+ @confirm="confirmInsertMenuKind"
495
+ :multi="false"
496
+ />
497
+
498
+ <el-dialog
499
+ :title="$t1('关联表维护')"
500
+ v-if="showReferenceZdDialog"
501
+ :visible.sync="showReferenceZdDialog"
502
+ :modal-append-to-body="false"
503
+ :close-on-click-modal="false"
504
+ :modal="false"
505
+ custom-class="dialog-style wf-dialog"
506
+ v-el-drag-dialog
507
+ v-el-dialog-center
508
+ >
509
+ <el-form>
510
+ <div id="containt">
511
+ <table class="table-detail">
512
+ <tbody>
513
+ <tr>
514
+ <th>
515
+ <span class="t">
516
+ {{ $t1("关联表") }}
517
+ </span>
518
+ </th>
519
+ <td>
520
+ <el-form-item label="">
521
+ <el-input
522
+ class="search-input"
523
+ max="200"
524
+ v-model="referenceEntity"
525
+ @clear="
526
+ referenceKey = null;
527
+ refServiceName = null;
528
+ referenceShowFields = [];
529
+ $forceUpdate();
530
+ "
531
+ v-el-readonly
532
+ clearable
533
+ >
534
+ <i
535
+ slot="suffix"
536
+ class="el-input__icon el-icon-search"
537
+ @click="showEntityDialog = true"
538
+ ></i>
539
+ </el-input>
540
+ </el-form-item>
541
+ </td>
542
+ </tr>
543
+ <tr>
544
+ <th>
545
+ <span class="t">
546
+ {{ $t1("关联字段") }}
547
+ </span>
548
+ </th>
549
+ <td>
550
+ <el-form-item label="">
551
+ <el-input
552
+ class="search-input"
553
+ max="200"
554
+ v-model="referenceKey"
555
+ @clear="referenceKey = null"
556
+ v-el-readonly
557
+ clearable
558
+ >
559
+ <i
560
+ slot="suffix"
561
+ class="el-input__icon el-icon-search"
562
+ @click="showEntityFieldDialog1 = true"
563
+ ></i>
564
+ </el-input>
565
+ </el-form-item>
566
+ </td>
567
+ </tr>
568
+ <tr>
569
+ <th>
570
+ <span class="t">
571
+ {{ $t1("显示字段") }}
572
+ </span>
573
+ </th>
574
+ <td>
575
+ <el-form-item label="">
576
+ <el-input
577
+ class="search-input"
578
+ max="200"
579
+ :value="referenceShowFields.join(',')"
580
+ @clear="referenceShowFields = []"
581
+ v-el-readonly
582
+ clearable
583
+ >
584
+ <i
585
+ slot="suffix"
586
+ class="el-input__icon el-icon-search"
587
+ @click="showEntityFieldDialog2 = true"
588
+ ></i>
589
+ </el-input>
590
+ </el-form-item>
591
+ </td>
592
+ </tr>
593
+ </tbody>
594
+ </table>
595
+ </div>
596
+ </el-form>
597
+ <span slot="footer" class="dialog-footer">
598
+ <el-button
599
+ type="primary"
600
+ plain
601
+ class="button-sty"
602
+ @click="showReferenceZdDialog = false"
603
+ >
604
+ <i class="el-icon-close el-icon"></i>
605
+ {{ $t1("取 消") }}
606
+ </el-button>
607
+ <el-button
608
+ type="primary"
609
+ @click="confirmReferenceZdDialog"
610
+ class="button-sty"
611
+ >
612
+ <i class="el-icon-check el-icon"></i>
613
+ {{ $t1("确 定") }}
614
+ </el-button>
615
+ </span>
616
+ </el-dialog>
617
+
618
+ <szTaMbDialog
619
+ v-if="showEntityDialog"
620
+ :visiable.sync="showEntityDialog"
621
+ @confirm="confirmEntityDialog"
622
+ :multi="false"
623
+ />
624
+
625
+ <zdDialog
626
+ v-if="showEntityFieldDialog1"
627
+ :visiable.sync="showEntityFieldDialog1"
628
+ @confirm="confirmEntityFieldDialog1"
629
+ :taBm="referenceEntity"
630
+ :multi="false"
631
+ />
632
+ <zdDialog
633
+ v-if="showEntityFieldDialog2"
634
+ :visiable.sync="showEntityFieldDialog2"
635
+ @confirm="confirmEntityFieldDialog2"
636
+ :taBm="referenceEntity"
637
+ :multi="true"
638
+ />
639
+ <preformDialog
640
+ v-if="showPreformDialog"
641
+ :visiable.sync="showPreformDialog"
642
+ @confirm="confirmPreformDialog"
643
+ ></preformDialog>
644
+
645
+ <szTaMbDialog
646
+ v-if="showTmDialog"
647
+ :visiable.sync="showTmDialog"
648
+ @confirm="confirmTmDialog"
649
+ :multi="false"
650
+ />
651
+
652
+ <el-dialog
653
+ :title="$t1('引用数据库中数据表结构')"
654
+ :append-to-body="true"
655
+ :modal-append-to-body="true"
656
+ :close-on-click-modal="false"
657
+ v-if="showDtDialog"
658
+ :visible.sync="showDtDialog"
659
+ :modal="false"
660
+ custom-class="dialog-style list-dialog dialog-checkbox pd_8"
661
+ width="350px"
662
+ v-el-drag-dialog
663
+ >
664
+ <div class="cont">
665
+ <el-form
666
+ ref="editCategoryForm"
667
+ label-width="102px"
668
+ class="adSearchForm"
669
+ style="height: auto; width: auto"
670
+ >
671
+ <el-form-item :label="$t1('数据表')">
672
+ <el-input v-model="dbTable" clearable class="all-width" />
673
+ </el-form-item>
674
+ </el-form>
675
+ </div>
676
+ <span slot="footer" class="dialog-footer">
677
+ <el-button
678
+ type="primary"
679
+ plain
680
+ class="button-sty"
681
+ @click="showDtDialog = false"
682
+ >
683
+ <i class="el-icon-close el-icon"></i>
684
+ {{ $t2("取 消", "system.button.cancel2") }}
685
+ </el-button>
686
+ <el-button type="primary" @click="confirmDtDialog" class="button-sty">
687
+ <i class="el-icon-check el-icon"></i>
688
+ {{ $t1("确定") }}
689
+ </el-button>
690
+ </span>
691
+ </el-dialog>
692
+ </div>
693
+ </template>
694
+
695
+ <script>
696
+ import mixin from "./mixins/edit";
697
+
698
+ export default {
699
+ name: "szTaMbEdit",
700
+ mixins: [mixin],
701
+ };
702
+ </script>