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.
- package/package.json +1 -1
- package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +325 -214
- package/src/components/fileLibrary/mixins/indexMixins.js +1 -1
- package/src/views/bd/setting/table_model/edit.vue +829 -484
- package/src/views/bd/setting/table_model/mixins/edit.js +1030 -1
- package/src/views/bd/setting/table_model/mixins/edit copy.js +0 -903
@@ -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(
|
8
|
-
</div>
|
9
|
-
<div class="fr">
|
10
|
-
<el-button
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
<
|
76
|
-
<
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
<el-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
>
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
<
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
<
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
</
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
<
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
</
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
</
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
{
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
</el-
|
375
|
-
</
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
</
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
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>
|