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

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,829 @@
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
+ :disabled="!!row.systems || !!row.relationZd"
445
+ >
446
+ <i
447
+ slot="suffix"
448
+ class="el-input__icon el-icon-search"
449
+ @click="openToTaBmZdDialog(row, rowIndex, $table)"
450
+ ></i>
451
+ </el-input>
452
+ </template>
453
+ <template #treeFlag="{ row }">
454
+ <el-select
455
+ v-model="row.treeFlag"
456
+ clearable
457
+ :disabled="!!row.systems || !!row.relationZd || szTaMb.taRule!==1"
458
+ >
459
+ <el-option value="name" :label="$t1('名称')"></el-option>
460
+ <el-option value="wbs" :label="$t1('WBS码')"></el-option>
461
+ <el-option value="parent" :label="$t1('上级ID')"></el-option>
462
+ <el-option value="treePath" :label="$t1('树ID路径')"></el-option>
463
+ <el-option value="treePathName" :label="$t1('树名称路径')"></el-option>
464
+ <el-option value="hasChild" :label="$t1('是否有下级')"></el-option>
465
+ <el-option value="grade" :label="$t1('层级')"></el-option>
466
+ </el-select>
467
+ </template>
468
+ </vxe-grid>
469
+ </div>
470
+ <table class="table-detail">
471
+ <tbody>
472
+ <tr>
473
+ <th>
474
+ {{ $t1("表编码") }}
475
+ </th>
476
+ <td colspan="7">
477
+ {{ szTaMb.taCode }}
478
+ </td>
479
+ </tr>
480
+ </tbody>
481
+ </table>
482
+ </template>
483
+ </baseTabPane>
484
+ <baseTabPane :label="$t1('操作日志')">
485
+ <template #default>
486
+ <formOplogTable
487
+ :parent-target="_self"
488
+ ref="oplogTable"
489
+ ></formOplogTable>
490
+ </template>
491
+ </baseTabPane>
492
+ </baseTabs>
493
+ </el-form>
494
+
495
+ <szTaMbDialog
496
+ v-if="showSzTaMbDialog"
497
+ :visiable.sync="showSzTaMbDialog"
498
+ @confirm="confirmInsertSzTaMb"
499
+ :multi="false"
500
+ />
501
+ <szTaMbDialog
502
+ v-if="showItemSzTaMbDialog"
503
+ :visiable.sync="showItemSzTaMbDialog"
504
+ @confirm="confirmInsertItemSzTaMb"
505
+ multi="false"
506
+ />
507
+ <MenuKindDialog
508
+ v-if="showMenuKindDialog"
509
+ :visiable.sync="showMenuKindDialog"
510
+ @confirm="confirmInsertMenuKind"
511
+ :multi="false"
512
+ />
513
+
514
+ <el-dialog
515
+ :title="$t1('关联表维护')"
516
+ v-if="showReferenceZdDialog"
517
+ :visible.sync="showReferenceZdDialog"
518
+ :modal-append-to-body="false"
519
+ :close-on-click-modal="false"
520
+ :modal="false"
521
+ custom-class="dialog-style wf-dialog"
522
+ v-el-drag-dialog
523
+ v-el-dialog-center
524
+ >
525
+ <el-form>
526
+ <div id="containt">
527
+ <table class="table-detail">
528
+ <tbody>
529
+ <tr>
530
+ <th>
531
+ <span class="t">
532
+ {{ $t1("关联表") }}
533
+ </span>
534
+ </th>
535
+ <td>
536
+ <el-form-item label="">
537
+ <el-input
538
+ class="search-input"
539
+ max="200"
540
+ v-model="referenceEntity"
541
+ @clear="
542
+ referenceKey = null;
543
+ refServiceName = null;
544
+ referenceShowFields = [];
545
+ $forceUpdate();
546
+ "
547
+ v-el-readonly
548
+ clearable
549
+ >
550
+ <i
551
+ slot="suffix"
552
+ class="el-input__icon el-icon-search"
553
+ @click="showEntityDialog = true"
554
+ ></i>
555
+ </el-input>
556
+ </el-form-item>
557
+ </td>
558
+ </tr>
559
+ <tr>
560
+ <th>
561
+ <span class="t">
562
+ {{ $t1("关联字段") }}
563
+ </span>
564
+ </th>
565
+ <td>
566
+ <el-form-item label="">
567
+ <el-input
568
+ class="search-input"
569
+ max="200"
570
+ v-model="referenceKey"
571
+ @clear="referenceKey = null"
572
+ v-el-readonly
573
+ clearable
574
+ >
575
+ <i
576
+ slot="suffix"
577
+ class="el-input__icon el-icon-search"
578
+ @click="openEntityFieldDialog1"
579
+ ></i>
580
+ </el-input>
581
+ </el-form-item>
582
+ </td>
583
+ </tr>
584
+ <tr>
585
+ <th>
586
+ <span class="t">
587
+ {{ $t1("显示字段") }}
588
+ </span>
589
+ </th>
590
+ <td>
591
+ <el-form-item label="">
592
+ <el-input
593
+ class="search-input"
594
+ max="200"
595
+ :value="referenceShowFields.join(',')"
596
+ @clear="referenceShowFields = []"
597
+ v-el-readonly
598
+ clearable
599
+ >
600
+ <i
601
+ slot="suffix"
602
+ class="el-input__icon el-icon-search"
603
+ @click="openEntityFieldDialog2"
604
+ ></i>
605
+ </el-input>
606
+ </el-form-item>
607
+ </td>
608
+ </tr>
609
+ </tbody>
610
+ </table>
611
+ </div>
612
+ </el-form>
613
+ <span slot="footer" class="dialog-footer">
614
+ <el-button
615
+ type="primary"
616
+ plain
617
+ class="button-sty"
618
+ @click="showReferenceZdDialog = false"
619
+ >
620
+ <i class="el-icon-close el-icon"></i>
621
+ {{ $t1("取 消") }}
622
+ </el-button>
623
+ <el-button
624
+ type="primary"
625
+ @click="confirmReferenceZdDialog"
626
+ class="button-sty"
627
+ >
628
+ <i class="el-icon-check el-icon"></i>
629
+ {{ $t1("确 定") }}
630
+ </el-button>
631
+ </span>
632
+ </el-dialog>
633
+
634
+ <szTaMbDialog
635
+ v-if="showEntityDialog"
636
+ :visiable.sync="showEntityDialog"
637
+ @confirm="confirmEntityDialog"
638
+ :multi="false"
639
+ />
640
+
641
+ <zdDialog
642
+ v-if="showEntityFieldDialog1"
643
+ :visiable.sync="showEntityFieldDialog1"
644
+ @confirm="confirmEntityFieldDialog1"
645
+ :taBm="referenceEntity"
646
+ :multi="false"
647
+ />
648
+ <zdDialog
649
+ v-if="showEntityFieldDialog2"
650
+ :visiable.sync="showEntityFieldDialog2"
651
+ @confirm="confirmEntityFieldDialog2"
652
+ :taBm="referenceEntity"
653
+ :multi="true"
654
+ />
655
+ <preformDialog
656
+ v-if="showPreformDialog"
657
+ :visiable.sync="showPreformDialog"
658
+ @confirm="confirmPreformDialog"
659
+ ></preformDialog>
660
+
661
+ <szTaMbDialog
662
+ v-if="showTmDialog"
663
+ :visiable.sync="showTmDialog"
664
+ @confirm="confirmTmDialog"
665
+ :multi="false"
666
+ />
667
+
668
+ <el-dialog
669
+ :title="$t1('引用数据库中数据表结构')"
670
+ :append-to-body="true"
671
+ :modal-append-to-body="true"
672
+ :close-on-click-modal="false"
673
+ v-if="showDtDialog"
674
+ :visible.sync="showDtDialog"
675
+ :modal="false"
676
+ custom-class="dialog-style list-dialog dialog-checkbox pd_8"
677
+ width="350px"
678
+ v-el-drag-dialog
679
+ >
680
+ <div class="cont">
681
+ <el-form
682
+ ref="editCategoryForm"
683
+ label-width="102px"
684
+ class="adSearchForm"
685
+ style="height: auto; width: auto"
686
+ >
687
+ <el-form-item :label="$t1('数据表')">
688
+ <el-input v-model="dbTable" clearable class="all-width" />
689
+ </el-form-item>
690
+ </el-form>
691
+ </div>
692
+ <span slot="footer" class="dialog-footer">
693
+ <el-button
694
+ type="primary"
695
+ plain
696
+ class="button-sty"
697
+ @click="showDtDialog = false"
698
+ >
699
+ <i class="el-icon-close el-icon"></i>
700
+ {{ $t2("取 消", "system.button.cancel2") }}
701
+ </el-button>
702
+ <el-button type="primary" @click="confirmDtDialog" class="button-sty">
703
+ <i class="el-icon-check el-icon"></i>
704
+ {{ $t1("确定") }}
705
+ </el-button>
706
+ </span>
707
+ </el-dialog>
708
+
709
+ <!--begin-->
710
+ <el-dialog
711
+ :title="$t1('数据值对应表字段')"
712
+ v-if="showToTaBmZdDialog"
713
+ :visible.sync="showToTaBmZdDialog"
714
+ :modal-append-to-body="false"
715
+ :close-on-click-modal="false"
716
+ :modal="false"
717
+ custom-class="dialog-style wf-dialog"
718
+ v-el-drag-dialog
719
+ v-el-dialog-center
720
+ >
721
+ <el-form>
722
+ <div id="containt">
723
+ <table class="table-detail">
724
+ <tbody>
725
+ <tr>
726
+ <th>
727
+ <span class="t">
728
+ {{ $t1("关联表") }}
729
+ </span>
730
+ </th>
731
+ <td>
732
+ <el-form-item label="">
733
+ <el-input
734
+ class="search-input"
735
+ max="200"
736
+ v-model="toTaBmZdEntity"
737
+ @clear="
738
+ toTaBmZdEntity = null;
739
+ toTaBmZdField = null;
740
+ "
741
+ v-el-readonly
742
+ clearable
743
+ >
744
+ <i
745
+ slot="suffix"
746
+ class="el-input__icon el-icon-search"
747
+ @click="showEntityDialog3 = true"
748
+ ></i>
749
+ </el-input>
750
+ </el-form-item>
751
+ </td>
752
+ </tr>
753
+ <tr>
754
+ <th>
755
+ <span class="t">
756
+ {{ $t1("关联字段") }}
757
+ </span>
758
+ </th>
759
+ <td>
760
+ <el-form-item label="">
761
+ <el-input
762
+ class="search-input"
763
+ max="200"
764
+ v-model="toTaBmZdField"
765
+ @clear="toTaBmZdField = null"
766
+ v-el-readonly
767
+ clearable
768
+ >
769
+ <i
770
+ slot="suffix"
771
+ class="el-input__icon el-icon-search"
772
+ @click="openEntityFieldDialog3"
773
+ ></i>
774
+ </el-input>
775
+ </el-form-item>
776
+ </td>
777
+ </tr>
778
+ </tbody>
779
+ </table>
780
+ </div>
781
+ </el-form>
782
+ <span slot="footer" class="dialog-footer">
783
+ <el-button
784
+ type="primary"
785
+ plain
786
+ class="button-sty"
787
+ @click="showToTaBmZdDialog = false"
788
+ >
789
+ <i class="el-icon-close el-icon"></i>
790
+ {{ $t1("取 消") }}
791
+ </el-button>
792
+ <el-button
793
+ type="primary"
794
+ @click="confirmToTaBmZdDialog"
795
+ class="button-sty"
796
+ >
797
+ <i class="el-icon-check el-icon"></i>
798
+ {{ $t1("确 定") }}
799
+ </el-button>
800
+ </span>
801
+ </el-dialog>
802
+
803
+ <szTaMbDialog
804
+ v-if="showEntityDialog3"
805
+ :visiable.sync="showEntityDialog3"
806
+ @confirm="confirmEntityDialog3"
807
+ :multi="false"
808
+ />
809
+
810
+ <zdDialog
811
+ v-if="showEntityFieldDialog3"
812
+ :visiable.sync="showEntityFieldDialog3"
813
+ @confirm="confirmEntityFieldDialog3"
814
+ :taBm="toTaBmZdEntity"
815
+ :multi="false"
816
+ />
817
+ <!--end-->
818
+
819
+ </div>
820
+ </template>
821
+
822
+ <script>
823
+ import mixin from "./mixins/edit";
824
+
825
+ export default {
826
+ name: "szTaMbEdit",
827
+ mixins: [mixin],
828
+ };
829
+ </script>