cloud-web-corejs 1.0.280 → 1.1.0-dev.10
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 +6 -2
- package/src/components/VabUpload/image-viewer.vue +442 -442
- package/src/components/VabUpload/index.vue +45 -3
- package/src/components/VabUpload/mixins.js +174 -34
- package/src/components/VabUpload/previewGroup.js +128 -0
- package/src/components/VabUpload/view.vue +248 -209
- package/src/components/baseTabs/mixins.js +181 -181
- package/src/components/bizTab/BizBillActions.vue +129 -0
- package/src/components/bizTab/BizTabListPage.vue +391 -0
- package/src/components/bizTab/README.md +378 -0
- package/src/components/bizTab/billTableUtil.js +48 -0
- package/src/components/bizTab/billValidators.js +136 -0
- package/src/components/bizTab/bizBillDetailMixin.js +705 -0
- package/src/components/bizTab/index.js +24 -0
- package/src/components/excelExport/exportFieldDialog.vue +23 -12
- package/src/components/excelExport/exportItemConfigUtil.js +30 -0
- package/src/components/excelExport/mixins.js +3 -3
- package/src/components/excelImport/index.vue +156 -156
- package/src/components/jsonImport/index.vue +1 -1
- package/src/components/langImport/index.vue +1 -1
- package/src/components/mobile/statusTag/mixins.js +1 -61
- package/src/components/mobile/wf/addTaskUserdialog.vue +23 -3
- package/src/components/mobile/wf/content.vue +1705 -1556
- package/src/components/mobile/wf/deleteTaskUserDialog.vue +22 -3
- package/src/components/mobile/wf/mixins/wfModifyDialogMixin.js +8 -6
- package/src/components/mobile/wf/selectUserDialog.vue +122 -0
- package/src/components/mobile/wf/setCandidateDialog.vue +25 -4
- package/src/components/mobile/wf/urgingDialog.vue +26 -3
- package/src/components/mobile/wf/wfModifyDialog.vue +4 -0
- package/src/components/obsUpload/index.vue +1 -1
- package/src/components/table/config.js +78 -78
- package/src/components/table/index.js +1276 -1276
- package/src/components/table/plugins/cell-area/index.js +1055 -0
- package/src/components/table/plugins/cell-area/index.scss +77 -0
- package/src/components/table/plugins/cell-area/util.js +224 -0
- package/src/components/table/tableForm.vue +330 -330
- package/src/components/table/tableFormMixin.js +318 -318
- package/src/components/table/vxeFilter/index.js +163 -163
- package/src/components/table/vxeFilter/mixin.js +316 -316
- package/src/components/wf/content.vue +1188 -1188
- package/src/components/wf/wf.js +40 -20
- package/src/components/wf/wfActionDropdown.vue +1 -1
- package/src/components/wf/wfActionItems.js +1 -1
- package/src/components/xform/docs/2026-08 xform H5 P0 /345/256/236/347/216/260/350/247/204/346/240/274.md" +528 -0
- package/src/components/xform/docs/2026-08 xform H5 P1 /345/256/236/347/216/260/350/247/204/346/240/274.md" +412 -0
- package/src/components/xform/docs/2026-08 xform H5 P2 /345/256/236/347/216/260/350/247/204/346/240/274.md" +287 -0
- package/src/components/xform/docs/2026-08 xform /347/247/273/345/212/250/347/253/257/345/270/203/345/261/200/345/257/271/351/275/220 bill_setting /346/226/271/346/241/210.md" +400 -0
- package/src/components/xform/form-designer/designer.js +51 -52
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +269 -269
- package/src/components/xform/form-designer/form-widget/container-widget/detail-h5-widget.vue +18 -2
- package/src/components/xform/form-designer/form-widget/container-widget/detail-temp-widget.vue +132 -0
- package/src/components/xform/form-designer/form-widget/container-widget/detail-widget.vue +250 -250
- package/src/components/xform/form-designer/form-widget/container-widget/h5-card-pane-widget.vue +23 -2
- package/src/components/xform/form-designer/form-widget/container-widget/h5-card-widget.vue +30 -1
- package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +319 -320
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +365 -365
- package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +185 -185
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +554 -555
- package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +409 -409
- package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +150 -132
- package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +114 -114
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +154 -154
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +47 -1
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/date-limit-mixin.js +178 -178
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/time-limit-mixin.js +77 -77
- package/src/components/xform/form-designer/form-widget/field-widget/select-export-item-button-widget.vue +6 -0
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +139 -139
- package/src/components/xform/form-designer/form-widget/field-widget/singleUpload-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +106 -106
- package/src/components/xform/form-designer/form-widget/field-widget/time-widget.vue +134 -134
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +3 -2
- package/src/components/xform/form-designer/indexMixin.js +35 -1
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +39 -39
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +10 -10
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/exportItemColumns-dialog.vue +438 -432
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +2103 -2103
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-temp-edito.vue +90 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid/gutter-editor.vue +82 -82
- package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +833 -846
- package/src/components/xform/form-designer/setting-panel/property-editor/container-table/table-dynamicField-editor.vue +8 -8
- package/src/components/xform/form-designer/setting-panel/property-editor/dropdownFlag-editor.vue +137 -137
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +237 -237
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-defaultValue-editor.vue +43 -43
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultValue-editor.vue +43 -43
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +96 -96
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-item-button-editor.vue +51 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-defaultValue-editor.vue +42 -42
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time-range/time-range-defaultValue-editor.vue +43 -43
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +158 -158
- package/src/components/xform/form-designer/setting-panel/property-editor/h5Span-editor.vue +51 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/itemStyle-editor.vue +39 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +188 -188
- package/src/components/xform/form-designer/setting-panel/property-editor/styleTempClass-editor.vue +51 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +347 -347
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +12 -0
- package/src/components/xform/form-designer/toolbar-panel/index.vue +884 -874
- package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +14 -0
- package/src/components/xform/form-designer/widget-panel/index.vue +11 -7
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +30 -6
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +112 -4
- package/src/components/xform/form-render/container-item/data-table-mixin.js +151 -93
- package/src/components/xform/form-render/container-item/detail-h5-item.vue +204 -34
- package/src/components/xform/form-render/container-item/detail-temp-item.vue +110 -0
- package/src/components/xform/form-render/container-item/h5-card-pane-item.vue +160 -140
- package/src/components/xform/form-render/container-item/list-h5-item.vue +1913 -1699
- package/src/components/xform/form-render/index.vue +153 -147
- package/src/components/xform/form-render/indexMixin.js +35 -3
- package/src/components/xform/lang/en-US.js +14 -0
- package/src/components/xform/lang/zh-CN.js +17 -0
- package/src/components/xform/mixins/defaultHandle.js +707 -707
- package/src/components/xform/styles/h5.scss +2238 -0
- package/src/components/xform/utils/textMaskUtil.js +182 -179
- package/src/components/xform/utils/treeTableUtil.js +1292 -1265
- package/src/components/xform/utils/util.js +56 -11
- package/src/directive/append-to-body/index.js +48 -0
- package/src/index.js +13 -4
- package/src/layout/components/Sidebar/default.vue +1655 -1655
- package/src/layout/components/extractedCode/viewDialog.vue +7 -7
- package/src/router/index.js +48 -27
- package/src/router/modules/customer.js +71 -14
- package/src/store/modules/permission.js +17 -18
- package/src/utils/assetUrl.js +19 -0
- package/src/utils/pdfUtil.js +429 -429
- package/src/utils/resolveViewComponent.js +142 -16
- package/src/utils/vab.js +1283 -1279
- package/src/views/bd/project/branch/bd_branch/edit.vue +145 -0
- package/src/views/bd/project/branch/bd_branch/list.vue +72 -0
- package/src/views/bd/project/branch/bd_branch/menuKindDialog.vue +106 -0
- package/src/views/bd/project/branch/bd_branch/mixins/edit.js +189 -0
- package/src/views/bd/project/branch/bd_branch/mixins/list.js +124 -0
- package/src/views/bd/project/branch/bd_branch/mixins/menuKindDialog.js +85 -0
- package/src/views/bd/project/branch/form_script/list.vue +31 -0
- package/src/views/bd/project/branch/form_template/list.vue +30 -0
- package/src/views/bd/project/branch/menu_kind/list.vue +31 -0
- package/src/views/bd/project/common/form_script/list.vue +16 -0
- package/src/views/bd/project/common/form_template/list.vue +15 -0
- package/src/views/bd/project/common/menu_kind/list.vue +15 -0
- package/src/views/bd/project/core/branchContext.js +100 -0
- package/src/views/bd/project/core/branchPage.js +78 -0
- package/src/views/bd/project/core/branchPageWrap.vue +225 -0
- package/src/views/bd/project/core/branchScope.js +44 -0
- package/src/views/bd/project/core/branchSearchPage.js +285 -0
- package/src/views/bd/project/core/branchSelect.vue +85 -0
- package/src/views/bd/project/core/branchTreeBar.vue +81 -0
- package/src/views/bd/project/core/httpBranchPatch.js +58 -0
- package/src/views/bd/project/datatable/menu_kind/list.vue +15 -0
- package/src/views/bd/project/datatable/table_model/list.vue +15 -0
- package/src/views/bd/setting/bd_company_env/dialog.vue +174 -174
- package/src/views/bd/setting/form_template/edit.vue +378 -356
- package/src/views/bd/setting/form_template/formDesignerDialog.vue +6 -0
- package/src/views/bd/setting/form_template/formTemplateType.js +43 -0
- package/src/views/bd/setting/form_template/list.vue +304 -303
- package/src/views/bd/setting/form_template/mixins/edit.js +344 -280
- package/src/views/bd/setting/form_template/mixins/list.js +748 -721
- package/src/views/bd/setting/table_model/edit.vue +1066 -1066
- package/src/views/bd/setting/table_model/mixins/edit.js +1455 -1455
- package/src/views/bd/setting/table_model/mixins/zdDialog.js +148 -148
- package/src/views/demo/bizTab/bill/billConfig.js +41 -0
- package/src/views/demo/bizTab/bill/detail.vue +436 -0
- package/src/views/demo/bizTab/bill/list.vue +288 -0
- package/src/views/demo/bizTab/bill/productDialog.vue +176 -0
- package/src/views/demo/bizTab/simple/billApi.js +123 -0
- package/src/views/demo/bizTab/simple/detail.vue +407 -0
- package/src/views/demo/bizTab/simple/list.vue +217 -0
- package/src/views/demo/bizTab/standalone/index.vue +121 -0
- package/src/views/demo/bizTab/wf/billConfig.js +44 -0
- package/src/views/demo/bizTab/wf/detail.vue +661 -0
- package/src/views/demo/bizTab/wf/list.vue +242 -0
- package/src/views/support/form-dialog-demo/demoPickerDialog.vue +72 -0
- package/src/views/support/form-dialog-demo/index.vue +537 -0
- package/src/views/user/file_view_ins/list.vue +970 -970
- package/src/views/user/form/vform/designer.vue +823 -821
- package/src/views/user/home/default.vue +1117 -1117
- package/src/views/user/home/default2.vue +1 -1
- package/src/views/user/home/index.vue +103 -101
- package/src/views/user/home/wjl/content.vue +1569 -0
- package/src/views/user/notify_message/dialog.vue +139 -137
- package/src/views/user/outLink/cc_form_view.vue +188 -0
- package/src/views/user/outLink/form_view.vue +202 -202
- package/src/views/user/outLink/index.vue +110 -110
- package/src/views/user/outLink/view.vue +3 -3
- package/src/views/user/role/edit.vue +632 -632
- package/src/views/user/role/list.vue +260 -260
- package/src/views/user/wf/iframe/index.vue +51 -51
- package/src/views/user/wf/iframe/index2.vue +64 -64
- package/src/views/user/wf/wf_manage/list.vue +1112 -1116
- package/src/views/user/wf/wf_manage/list2.vue +871 -875
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +134 -131
- package/src/views/user/wf/wf_obj_config/importItemDialog.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-menu-widget.vue +0 -106
- package/src/components/xform/form-designer/form-widget/field-widget/tableexportbuttonwidget.vue +0 -99
- package/src/components/xform/form-render/container-item/list-h5-item2.vue +0 -1340
- package/src/utils/wf.js +0 -766
|
@@ -1,1066 +1,1066 @@
|
|
|
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
|
-
<formVersionButton
|
|
11
|
-
v-if="!hData && szTaMb.id && !readonly"
|
|
12
|
-
objType="SzTaMb"
|
|
13
|
-
:objCode="szTaMb.taCode"
|
|
14
|
-
:sid="szTaMb.sid"
|
|
15
|
-
@reverCallback="$baseReload()"
|
|
16
|
-
></formVersionButton>
|
|
17
|
-
<reverButton
|
|
18
|
-
v-if="!!hData"
|
|
19
|
-
objType="SzTaMb"
|
|
20
|
-
:objCode="szTaMb.taCode"
|
|
21
|
-
:hData="hData"
|
|
22
|
-
@reverCallback="$emit('reverCallback')"
|
|
23
|
-
></reverButton>
|
|
24
|
-
<el-button
|
|
25
|
-
type="primary"
|
|
26
|
-
plain
|
|
27
|
-
class="button-sty"
|
|
28
|
-
icon="el-icon-set-up"
|
|
29
|
-
@click="openOtherAuthDialog"
|
|
30
|
-
v-if="
|
|
31
|
-
isDev && !!dataId && menuKindAuth.editAuth === 1 && !readonly && !otherFlag
|
|
32
|
-
"
|
|
33
|
-
>
|
|
34
|
-
{{ $t1("分派") }}
|
|
35
|
-
</el-button>
|
|
36
|
-
<el-button
|
|
37
|
-
type="primary"
|
|
38
|
-
plain
|
|
39
|
-
class="button-sty"
|
|
40
|
-
icon="el-icon-set-up"
|
|
41
|
-
@click="openDtDialog"
|
|
42
|
-
v-if="isDev && !dataId && menuKindAuth.editAuth === 1 && !readonly"
|
|
43
|
-
>
|
|
44
|
-
{{ $t1("引用数据库中数据表结构") }}
|
|
45
|
-
</el-button>
|
|
46
|
-
<el-button
|
|
47
|
-
type="primary"
|
|
48
|
-
plain
|
|
49
|
-
class="button-sty"
|
|
50
|
-
icon="el-icon-set-up"
|
|
51
|
-
@click="openTmDialog"
|
|
52
|
-
v-if="isDev && !dataId && menuKindAuth.editAuth === 1 && !readonly"
|
|
53
|
-
>
|
|
54
|
-
{{ $t1("引用数据表定义的结构") }}
|
|
55
|
-
</el-button>
|
|
56
|
-
|
|
57
|
-
<el-button
|
|
58
|
-
type="success"
|
|
59
|
-
class="button-sty"
|
|
60
|
-
icon="el-icon-check"
|
|
61
|
-
@click="createModifyTable()"
|
|
62
|
-
v-if="
|
|
63
|
-
!szTaMb.systems && szTaMb.id && menuKindAuth.editAuth === 1 && !readonly
|
|
64
|
-
"
|
|
65
|
-
>
|
|
66
|
-
{{ $t1("创建/更新数据表") }}
|
|
67
|
-
</el-button>
|
|
68
|
-
<el-button
|
|
69
|
-
type="primary"
|
|
70
|
-
plain
|
|
71
|
-
class="button-sty"
|
|
72
|
-
@click="$baseReload()"
|
|
73
|
-
icon="el-icon-refresh-right"
|
|
74
|
-
>
|
|
75
|
-
{{ $t1("重置") }}
|
|
76
|
-
</el-button>
|
|
77
|
-
<el-button
|
|
78
|
-
type="primary"
|
|
79
|
-
class="button-sty"
|
|
80
|
-
icon="el-icon-check"
|
|
81
|
-
@click="saveData"
|
|
82
|
-
v-if="isDev && !szTaMb.systems && menuKindAuth.editAuth === 1 && !readonly"
|
|
83
|
-
>
|
|
84
|
-
{{ $t1("保存") }}
|
|
85
|
-
</el-button>
|
|
86
|
-
</div>
|
|
87
|
-
</div>
|
|
88
|
-
<baseTabs>
|
|
89
|
-
<baseTabPane :label="$t1('基本信息')">
|
|
90
|
-
<template #default>
|
|
91
|
-
<table class="table-detail">
|
|
92
|
-
<tbody>
|
|
93
|
-
<tr>
|
|
94
|
-
<th>{{ $t1("数据库表名") }}</th>
|
|
95
|
-
<td colspan="3">
|
|
96
|
-
<el-form-item
|
|
97
|
-
prop="taBm"
|
|
98
|
-
:rules="[{ required: false, trigger: ['blur', 'change'] }]"
|
|
99
|
-
>
|
|
100
|
-
<fieldCompare
|
|
101
|
-
:isCompare="isCompare"
|
|
102
|
-
:oldVal="oldSzTaMb.taBm"
|
|
103
|
-
:newVal="szTaMb.taBm"
|
|
104
|
-
>
|
|
105
|
-
<el-input
|
|
106
|
-
type="text"
|
|
107
|
-
autocomplete="off"
|
|
108
|
-
v-model="szTaMb.taBm"
|
|
109
|
-
clearable
|
|
110
|
-
:disabled="!!dataId"
|
|
111
|
-
/>
|
|
112
|
-
</fieldCompare>
|
|
113
|
-
</el-form-item>
|
|
114
|
-
</td>
|
|
115
|
-
</tr>
|
|
116
|
-
<tr>
|
|
117
|
-
<th class="no"></th>
|
|
118
|
-
<td colspan="7">
|
|
119
|
-
<span class="fl tips">{{
|
|
120
|
-
$t1(
|
|
121
|
-
"注:数据库表名必须定义为:1、与实体名称一样,2、表单分类数据表前缀_实体名称,3、不填自动生成:表单分类数据表前缀_实体名称。"
|
|
122
|
-
)
|
|
123
|
-
}}</span>
|
|
124
|
-
</td>
|
|
125
|
-
</tr>
|
|
126
|
-
<tr>
|
|
127
|
-
<th>
|
|
128
|
-
<em class="f-red">*</em>
|
|
129
|
-
{{ $t1("实体名称") }}
|
|
130
|
-
</th>
|
|
131
|
-
<td colspan="3">
|
|
132
|
-
<el-form-item
|
|
133
|
-
prop="taEn"
|
|
134
|
-
:rules="[{ required: true, trigger: ['blur', 'change'] }]"
|
|
135
|
-
>
|
|
136
|
-
<fieldCompare
|
|
137
|
-
:isCompare="isCompare"
|
|
138
|
-
:oldVal="oldSzTaMb.taEn"
|
|
139
|
-
:newVal="szTaMb.taEn"
|
|
140
|
-
>
|
|
141
|
-
<el-input
|
|
142
|
-
type="text"
|
|
143
|
-
autocomplete="off"
|
|
144
|
-
v-model="szTaMb.taEn"
|
|
145
|
-
clearable
|
|
146
|
-
/>
|
|
147
|
-
</fieldCompare>
|
|
148
|
-
</el-form-item>
|
|
149
|
-
</td>
|
|
150
|
-
</tr>
|
|
151
|
-
<tr>
|
|
152
|
-
<th><em class="f-red">*</em>{{ $t1("表描述") }}</th>
|
|
153
|
-
<td colspan="5">
|
|
154
|
-
<el-form-item
|
|
155
|
-
prop="taCh"
|
|
156
|
-
:rules="[{ required: true, trigger: ['blur', 'change'] }]"
|
|
157
|
-
>
|
|
158
|
-
<fieldCompare
|
|
159
|
-
:isCompare="isCompare"
|
|
160
|
-
:oldVal="oldSzTaMb.taCh"
|
|
161
|
-
:newVal="szTaMb.taCh"
|
|
162
|
-
>
|
|
163
|
-
<el-input
|
|
164
|
-
type="text"
|
|
165
|
-
autocomplete="off"
|
|
166
|
-
v-model="szTaMb.taCh"
|
|
167
|
-
clearable
|
|
168
|
-
/>
|
|
169
|
-
</fieldCompare>
|
|
170
|
-
</el-form-item>
|
|
171
|
-
</td>
|
|
172
|
-
</tr>
|
|
173
|
-
<tr>
|
|
174
|
-
<th><em class="f-red">*</em>{{ $t1("是否明细") }}</th>
|
|
175
|
-
<td>
|
|
176
|
-
<el-form-item
|
|
177
|
-
prop="taType"
|
|
178
|
-
:rules="[{ required: true, trigger: ['blur', 'change'] }]"
|
|
179
|
-
>
|
|
180
|
-
<fieldCompare
|
|
181
|
-
:isCompare="isCompare"
|
|
182
|
-
:oldVal="oldSzTaMb.taType"
|
|
183
|
-
:newVal="szTaMb.taType"
|
|
184
|
-
>
|
|
185
|
-
<el-radio-group v-model="szTaMb.taType">
|
|
186
|
-
<el-radio :label="1">{{ $t1("是") }}</el-radio>
|
|
187
|
-
<el-radio :label="0">{{ $t1("否") }}</el-radio>
|
|
188
|
-
</el-radio-group>
|
|
189
|
-
</fieldCompare>
|
|
190
|
-
</el-form-item>
|
|
191
|
-
</td>
|
|
192
|
-
<th>
|
|
193
|
-
<em class="f-red" v-show="szTaMb.taType === 1">*</em>
|
|
194
|
-
{{ $t1("所属主实体") }}
|
|
195
|
-
</th>
|
|
196
|
-
<td colspan="3">
|
|
197
|
-
<el-form-item
|
|
198
|
-
prop="sszstEn"
|
|
199
|
-
:rules="[
|
|
200
|
-
{
|
|
201
|
-
required: szTaMb.taType === 1,
|
|
202
|
-
trigger: ['blur', 'change'],
|
|
203
|
-
},
|
|
204
|
-
]"
|
|
205
|
-
>
|
|
206
|
-
<fieldCompare
|
|
207
|
-
:isCompare="isCompare"
|
|
208
|
-
:oldVal="oldSzTaMb.sszstEn"
|
|
209
|
-
:newVal="szTaMb.sszstEn"
|
|
210
|
-
>
|
|
211
|
-
<el-input
|
|
212
|
-
class="search-input"
|
|
213
|
-
max="200"
|
|
214
|
-
v-model="szTaMb.sszstEn"
|
|
215
|
-
@clear="clearSszst"
|
|
216
|
-
:disabled="szTaMb.taType === 0"
|
|
217
|
-
v-el-readonly
|
|
218
|
-
clearable
|
|
219
|
-
>
|
|
220
|
-
<!-- element 的 suffix 插槽不受 disabled 影响,图标要自己按禁用条件收起来 -->
|
|
221
|
-
<i
|
|
222
|
-
v-if="szTaMb.taType !== 0"
|
|
223
|
-
slot="suffix"
|
|
224
|
-
class="el-input__icon el-icon-search"
|
|
225
|
-
@click="showSzTaMbDialog = true"
|
|
226
|
-
></i>
|
|
227
|
-
</el-input>
|
|
228
|
-
</fieldCompare>
|
|
229
|
-
</el-form-item>
|
|
230
|
-
</td>
|
|
231
|
-
</tr>
|
|
232
|
-
<tr>
|
|
233
|
-
<th><em class="f-red">*</em>{{ $t1("是否树结构") }}</th>
|
|
234
|
-
<td>
|
|
235
|
-
<el-form-item
|
|
236
|
-
prop="taRule"
|
|
237
|
-
:rules="[{ required: true, trigger: ['blur', 'change'] }]"
|
|
238
|
-
>
|
|
239
|
-
<fieldCompare
|
|
240
|
-
:isCompare="isCompare"
|
|
241
|
-
:oldVal="oldSzTaMb.taRule"
|
|
242
|
-
:newVal="szTaMb.taRule"
|
|
243
|
-
>
|
|
244
|
-
<el-radio-group v-model="szTaMb.taRule" @change="changeTaRule">
|
|
245
|
-
<el-radio :label="1">{{ $t1("是") }}</el-radio>
|
|
246
|
-
<el-radio :label="0">{{ $t1("否") }}</el-radio>
|
|
247
|
-
</el-radio-group>
|
|
248
|
-
</fieldCompare>
|
|
249
|
-
</el-form-item>
|
|
250
|
-
</td>
|
|
251
|
-
<th><em class="f-red">*</em>{{ $t1("数据范围") }}</th>
|
|
252
|
-
<td colspan="3">
|
|
253
|
-
<el-form-item
|
|
254
|
-
prop="dataRange"
|
|
255
|
-
:rules="[{ required: true, trigger: ['blur', 'change'] }]"
|
|
256
|
-
>
|
|
257
|
-
<fieldCompare
|
|
258
|
-
:isCompare="isCompare"
|
|
259
|
-
:oldVal="oldSzTaMb.dataRange"
|
|
260
|
-
:newVal="szTaMb.dataRange"
|
|
261
|
-
>
|
|
262
|
-
<el-radio-group v-model="szTaMb.dataRange">
|
|
263
|
-
<el-radio :label="1">{{ $t1("集团") }}</el-radio>
|
|
264
|
-
<el-radio :label="0">{{ $t1("当前组织") }}</el-radio>
|
|
265
|
-
</el-radio-group>
|
|
266
|
-
</fieldCompare>
|
|
267
|
-
</el-form-item>
|
|
268
|
-
</td>
|
|
269
|
-
</tr>
|
|
270
|
-
<tr>
|
|
271
|
-
<th>
|
|
272
|
-
<em class="f-red">*</em>
|
|
273
|
-
{{ $t1("表单分类") }}
|
|
274
|
-
</th>
|
|
275
|
-
<td colspan="5">
|
|
276
|
-
<el-form-item
|
|
277
|
-
prop="menuKindName"
|
|
278
|
-
:rules="[
|
|
279
|
-
{
|
|
280
|
-
required: true,
|
|
281
|
-
trigger: ['blur', 'change'],
|
|
282
|
-
},
|
|
283
|
-
]"
|
|
284
|
-
>
|
|
285
|
-
<fieldCompare
|
|
286
|
-
:isCompare="isCompare"
|
|
287
|
-
:oldVal="oldSzTaMb.menuKindName"
|
|
288
|
-
:newVal="szTaMb.menuKindName"
|
|
289
|
-
>
|
|
290
|
-
<el-input
|
|
291
|
-
class="search-input"
|
|
292
|
-
max="200"
|
|
293
|
-
v-model="szTaMb.menuKindName"
|
|
294
|
-
@clear="clearMenuKind"
|
|
295
|
-
v-el-readonly
|
|
296
|
-
clearable
|
|
297
|
-
:disabled="otherFlag"
|
|
298
|
-
>
|
|
299
|
-
<i
|
|
300
|
-
v-if="!otherFlag"
|
|
301
|
-
slot="suffix"
|
|
302
|
-
class="el-input__icon el-icon-search"
|
|
303
|
-
@click="showMenuKindDialog = true"
|
|
304
|
-
></i>
|
|
305
|
-
</el-input>
|
|
306
|
-
</fieldCompare>
|
|
307
|
-
</el-form-item>
|
|
308
|
-
</td>
|
|
309
|
-
</tr>
|
|
310
|
-
<tr>
|
|
311
|
-
<th>
|
|
312
|
-
{{ $t1("项目标签") }}
|
|
313
|
-
</th>
|
|
314
|
-
<td colspan="7">
|
|
315
|
-
<projectTagView v-model="szTaMb.szTaMbTagDTOs"></projectTagView>
|
|
316
|
-
</td>
|
|
317
|
-
</tr>
|
|
318
|
-
<tr>
|
|
319
|
-
<th>{{ $t1("是否启用") }}</th>
|
|
320
|
-
<td>
|
|
321
|
-
<el-form-item
|
|
322
|
-
prop="enabled"
|
|
323
|
-
:rules="[{ required: false, trigger: 'blur' }]"
|
|
324
|
-
>
|
|
325
|
-
<fieldCompare
|
|
326
|
-
:isCompare="isCompare"
|
|
327
|
-
:oldVal="oldSzTaMb.enabled"
|
|
328
|
-
:newVal="szTaMb.enabled"
|
|
329
|
-
>
|
|
330
|
-
<el-radio-group v-model="szTaMb.enabled">
|
|
331
|
-
<el-radio :label="true">{{ $t1("启用") }}</el-radio>
|
|
332
|
-
<el-radio :label="false">{{ $t1("禁用") }}</el-radio>
|
|
333
|
-
</el-radio-group>
|
|
334
|
-
</fieldCompare>
|
|
335
|
-
</el-form-item>
|
|
336
|
-
</td>
|
|
337
|
-
</tr>
|
|
338
|
-
<tr>
|
|
339
|
-
<th>
|
|
340
|
-
{{ $t1("服务名") }}
|
|
341
|
-
</th>
|
|
342
|
-
<td colspan="7">
|
|
343
|
-
<el-form-item>
|
|
344
|
-
<fieldCompare
|
|
345
|
-
:isCompare="isCompare"
|
|
346
|
-
:oldVal="oldSzTaMb.serviceName"
|
|
347
|
-
:newVal="szTaMb.serviceName"
|
|
348
|
-
>
|
|
349
|
-
{{ szTaMb.serviceName }}
|
|
350
|
-
</fieldCompare>
|
|
351
|
-
</el-form-item>
|
|
352
|
-
</td>
|
|
353
|
-
</tr>
|
|
354
|
-
<tr>
|
|
355
|
-
<th>
|
|
356
|
-
{{ $t1("版本号") }}
|
|
357
|
-
</th>
|
|
358
|
-
<td colspan="7">
|
|
359
|
-
{{ szTaMb.version }}
|
|
360
|
-
</td>
|
|
361
|
-
</tr>
|
|
362
|
-
<tr>
|
|
363
|
-
<th>
|
|
364
|
-
{{ $t1("唯一标识") }}
|
|
365
|
-
</th>
|
|
366
|
-
<td colspan="7">
|
|
367
|
-
{{ szTaMb.sid }}
|
|
368
|
-
</td>
|
|
369
|
-
</tr>
|
|
370
|
-
<tr>
|
|
371
|
-
<th>{{ $t1("创建人") }}</th>
|
|
372
|
-
<td>{{ szTaMb.createBy }}</td>
|
|
373
|
-
<th>{{ $t1("创建时间") }}</th>
|
|
374
|
-
<td>{{ szTaMb.createDate }}</td>
|
|
375
|
-
<th>{{ $t1("更新人") }}</th>
|
|
376
|
-
<td>{{ szTaMb.modifyBy }}</td>
|
|
377
|
-
<th>{{ $t1("更新时间") }}</th>
|
|
378
|
-
<td>{{ szTaMb.modifyDate }}</td>
|
|
379
|
-
</tr>
|
|
380
|
-
</tbody>
|
|
381
|
-
</table>
|
|
382
|
-
</template>
|
|
383
|
-
</baseTabPane>
|
|
384
|
-
<baseTabPane :label="$t1('数据表字段明细')">
|
|
385
|
-
<template #button>
|
|
386
|
-
<el-button class="button-sty" @click="addTaMbItems" icon="el-icon-plus"
|
|
387
|
-
>{{ $t1("新增") }}
|
|
388
|
-
</el-button>
|
|
389
|
-
<el-button
|
|
390
|
-
v-if="userFlag === 6"
|
|
391
|
-
type="primary"
|
|
392
|
-
class="button-sty"
|
|
393
|
-
icon="el-icon-upload2"
|
|
394
|
-
@click="excelExport"
|
|
395
|
-
>{{ $t1("导出") }}</el-button
|
|
396
|
-
>
|
|
397
|
-
</template>
|
|
398
|
-
<template #default>
|
|
399
|
-
<div>
|
|
400
|
-
<vxe-grid
|
|
401
|
-
ref="table-szTaZdMb"
|
|
402
|
-
:data="szTaMb.szTaZdMbDTOs"
|
|
403
|
-
v-bind="productOption"
|
|
404
|
-
@resizable-change="$vxeTableUtil.onColumnWitchChange"
|
|
405
|
-
@custom="$vxeTableUtil.customHandle"
|
|
406
|
-
>
|
|
407
|
-
<template #zdType="{ row, column }">
|
|
408
|
-
<el-form-item>
|
|
409
|
-
<fieldCompare
|
|
410
|
-
:isCompare="isCompare"
|
|
411
|
-
:oldVal="getHValue(row, column)"
|
|
412
|
-
:newVal="zdTypeMap[row[column.property]]"
|
|
413
|
-
>
|
|
414
|
-
<el-select
|
|
415
|
-
v-model="row.zdType"
|
|
416
|
-
clearable
|
|
417
|
-
:disabled="!!row.systems || !!row.relationZd"
|
|
418
|
-
@change="changeZdType(row)"
|
|
419
|
-
>
|
|
420
|
-
<el-option value="Boolean" :label="$t1('布尔')"></el-option>
|
|
421
|
-
<el-option value="Integer" :label="$t1('整数')"></el-option>
|
|
422
|
-
<el-option value="Long" :label="$t1('长整数')"></el-option>
|
|
423
|
-
<el-option value="Decimal" :label="$t1('精度小数')"></el-option>
|
|
424
|
-
<el-option value="Money" :label="$t1('金额')"></el-option>
|
|
425
|
-
<el-option value="Text" :label="$t1('文本')"></el-option>
|
|
426
|
-
<el-option value="TextArea" :label="$t1('长文本')"></el-option>
|
|
427
|
-
<el-option value="DateTime" :label="$t1('日期时间')"></el-option>
|
|
428
|
-
<el-option value="Reference" :label="$t1('关联表(文本)')"></el-option>
|
|
429
|
-
<el-option value="ReferenceLong" :label="$t1('关联表(长整型)')"></el-option>
|
|
430
|
-
</el-select>
|
|
431
|
-
</fieldCompare>
|
|
432
|
-
</el-form-item>
|
|
433
|
-
</template>
|
|
434
|
-
<template #zdLength="{ row, rowIndex, column }">
|
|
435
|
-
<el-form-item
|
|
436
|
-
:prop="'szTaZdMbDTOs.' + rowIndex + '.zdLength'"
|
|
437
|
-
:rules="[{ required: false, trigger: ['blur', 'change'] }]"
|
|
438
|
-
>
|
|
439
|
-
<fieldCompare
|
|
440
|
-
:isCompare="isCompare"
|
|
441
|
-
:oldVal="getHValue(row, column)"
|
|
442
|
-
:newVal="row[column.property]"
|
|
443
|
-
>
|
|
444
|
-
<el-input
|
|
445
|
-
v-model="row.zdLength"
|
|
446
|
-
clearable
|
|
447
|
-
:disabled="!!row.systems || !!row.relationZd"
|
|
448
|
-
/>
|
|
449
|
-
</fieldCompare>
|
|
450
|
-
</el-form-item>
|
|
451
|
-
</template>
|
|
452
|
-
<template #referenceZd="{ row, rowIndex, column, $table }">
|
|
453
|
-
<el-form-item>
|
|
454
|
-
<fieldCompare
|
|
455
|
-
:isCompare="isCompare"
|
|
456
|
-
:oldVal="getHValue(row, column)"
|
|
457
|
-
:newVal="row[column.property]"
|
|
458
|
-
>
|
|
459
|
-
<el-input
|
|
460
|
-
class="search-input"
|
|
461
|
-
v-model="row.referenceZd"
|
|
462
|
-
v-el-readonly
|
|
463
|
-
v-if="isReferenceZdType(row.zdType)"
|
|
464
|
-
:disabled="!row.zdEn"
|
|
465
|
-
>
|
|
466
|
-
<span slot="suffix" class="el-input__suffix-inner">
|
|
467
|
-
<i
|
|
468
|
-
v-if="row.referenceZd && !!row.zdEn"
|
|
469
|
-
class="el-input__icon el-icon-circle-close"
|
|
470
|
-
@click.stop="confirmClearReferenceZd(row)"
|
|
471
|
-
></i>
|
|
472
|
-
<i
|
|
473
|
-
v-if="!!row.zdEn"
|
|
474
|
-
class="el-input__icon el-icon-search"
|
|
475
|
-
@click="openReferenceZdDialog(row, rowIndex, $table)"
|
|
476
|
-
></i>
|
|
477
|
-
</span>
|
|
478
|
-
</el-input>
|
|
479
|
-
<template v-else>
|
|
480
|
-
{{ row.referenceZd }}
|
|
481
|
-
</template>
|
|
482
|
-
</fieldCompare>
|
|
483
|
-
</el-form-item>
|
|
484
|
-
</template>
|
|
485
|
-
<template #zdEn="{ row, rowIndex, column }">
|
|
486
|
-
<template v-if="!!row.systems || row.fromTable">
|
|
487
|
-
<el-form-item>
|
|
488
|
-
<fieldCompare
|
|
489
|
-
:isCompare="isCompare"
|
|
490
|
-
:oldVal="getHValue(row, column)"
|
|
491
|
-
:newVal="row[column.property]"
|
|
492
|
-
>
|
|
493
|
-
{{ row.zdEn }}
|
|
494
|
-
</fieldCompare>
|
|
495
|
-
</el-form-item>
|
|
496
|
-
</template>
|
|
497
|
-
<template v-else>
|
|
498
|
-
<el-form-item
|
|
499
|
-
:prop="'szTaZdMbDTOs.' + rowIndex + '.zdEn'"
|
|
500
|
-
:rules="[{ required: true, trigger: ['blur', 'change'] }]"
|
|
501
|
-
:style="!!row.relationZd ? 'padding-left:20px' : ''"
|
|
502
|
-
>
|
|
503
|
-
<fieldCompare
|
|
504
|
-
:isCompare="isCompare"
|
|
505
|
-
:oldVal="getHValue(row, column)"
|
|
506
|
-
:newVal="row[column.property]"
|
|
507
|
-
>
|
|
508
|
-
<el-input
|
|
509
|
-
v-model="row.zdEn"
|
|
510
|
-
@focus="cacheZdEn(row)"
|
|
511
|
-
@input="
|
|
512
|
-
(val) => {
|
|
513
|
-
changeZdEn(val, row);
|
|
514
|
-
}
|
|
515
|
-
"
|
|
516
|
-
/>
|
|
517
|
-
</fieldCompare>
|
|
518
|
-
</el-form-item>
|
|
519
|
-
</template>
|
|
520
|
-
</template>
|
|
521
|
-
<template #zdCh="{ row, rowIndex, column }">
|
|
522
|
-
<el-form-item
|
|
523
|
-
:prop="'szTaZdMbDTOs.' + rowIndex + '.zdCh'"
|
|
524
|
-
:rules="[{ required: true, trigger: ['blur', 'change'] }]"
|
|
525
|
-
>
|
|
526
|
-
<fieldCompare
|
|
527
|
-
:isCompare="isCompare"
|
|
528
|
-
:oldVal="getHValue(row, column)"
|
|
529
|
-
:newVal="row[column.property]"
|
|
530
|
-
>
|
|
531
|
-
<el-input v-model="row.zdCh" clearable :disabled="!!row.systems" />
|
|
532
|
-
</fieldCompare>
|
|
533
|
-
</el-form-item>
|
|
534
|
-
</template>
|
|
535
|
-
<template #zdTypeValues="{ row, rowIndex, column }">
|
|
536
|
-
<el-form-item
|
|
537
|
-
:prop="'szTaZdMbDTOs.' + rowIndex + '.zdTypeValues'"
|
|
538
|
-
:rules="[{ required: false, trigger: ['blur', 'change'] }]"
|
|
539
|
-
>
|
|
540
|
-
<fieldCompare
|
|
541
|
-
:isCompare="isCompare"
|
|
542
|
-
:oldVal="getHValue(row, column)"
|
|
543
|
-
:newVal="row[column.property]"
|
|
544
|
-
>
|
|
545
|
-
<el-input
|
|
546
|
-
v-model="row.zdTypeValues"
|
|
547
|
-
clearable
|
|
548
|
-
:disabled="!!row.systems || !!row.relationZd"
|
|
549
|
-
/>
|
|
550
|
-
</fieldCompare>
|
|
551
|
-
</el-form-item>
|
|
552
|
-
</template>
|
|
553
|
-
<template #required="{ row, rowIndex, column }">
|
|
554
|
-
<el-form-item>
|
|
555
|
-
<fieldCompare
|
|
556
|
-
:isCompare="isCompare"
|
|
557
|
-
:oldVal="getHValue(row, column)"
|
|
558
|
-
:newVal="row[column.property]"
|
|
559
|
-
>
|
|
560
|
-
<el-checkbox
|
|
561
|
-
v-model="row.required"
|
|
562
|
-
:disabled="!!row.systems || !!row.relationZd"
|
|
563
|
-
/>
|
|
564
|
-
</fieldCompare>
|
|
565
|
-
</el-form-item>
|
|
566
|
-
</template>
|
|
567
|
-
<template #enabled="{ row, rowIndex, column }">
|
|
568
|
-
<el-form-item>
|
|
569
|
-
<fieldCompare
|
|
570
|
-
:isCompare="isCompare"
|
|
571
|
-
:oldVal="getHValue(row, column)"
|
|
572
|
-
:newVal="row[column.property]"
|
|
573
|
-
>
|
|
574
|
-
<el-checkbox
|
|
575
|
-
v-model="row.enabled"
|
|
576
|
-
:disabled="!!row.systems || !!row.relationZd"
|
|
577
|
-
/>
|
|
578
|
-
</fieldCompare>
|
|
579
|
-
</el-form-item>
|
|
580
|
-
</template>
|
|
581
|
-
<template #generateCode="{ row, rowIndex, column }">
|
|
582
|
-
<el-form-item>
|
|
583
|
-
<fieldCompare
|
|
584
|
-
:isCompare="isCompare"
|
|
585
|
-
:oldVal="getHValue(row, column)"
|
|
586
|
-
:newVal="row[column.property]"
|
|
587
|
-
>
|
|
588
|
-
<el-checkbox
|
|
589
|
-
v-model="row.generateCode"
|
|
590
|
-
:disabled="!!row.systems || !!row.relationZd"
|
|
591
|
-
/>
|
|
592
|
-
</fieldCompare>
|
|
593
|
-
</el-form-item>
|
|
594
|
-
</template>
|
|
595
|
-
<template #atened="{ row, rowIndex, column }">
|
|
596
|
-
<el-form-item>
|
|
597
|
-
<fieldCompare
|
|
598
|
-
:isCompare="isCompare"
|
|
599
|
-
:oldVal="getHValue(row, column)"
|
|
600
|
-
:newVal="row[column.property]"
|
|
601
|
-
>
|
|
602
|
-
<el-checkbox
|
|
603
|
-
v-model="row.atened"
|
|
604
|
-
:disabled="!!row.systems || !!row.relationZd"
|
|
605
|
-
/>
|
|
606
|
-
</fieldCompare>
|
|
607
|
-
</el-form-item>
|
|
608
|
-
</template>
|
|
609
|
-
<template #updateIgnore="{ row, rowIndex, column }">
|
|
610
|
-
<el-form-item>
|
|
611
|
-
<fieldCompare
|
|
612
|
-
:isCompare="isCompare"
|
|
613
|
-
:oldVal="getHValue(row, column)"
|
|
614
|
-
:newVal="row[column.property]"
|
|
615
|
-
>
|
|
616
|
-
<el-checkbox
|
|
617
|
-
v-model="row.updateIgnore"
|
|
618
|
-
:disabled="!!row.systems || !!row.relationZd"
|
|
619
|
-
/>
|
|
620
|
-
</fieldCompare>
|
|
621
|
-
</el-form-item>
|
|
622
|
-
</template>
|
|
623
|
-
<template #codeType="{ row, rowIndex, column }">
|
|
624
|
-
<el-form-item
|
|
625
|
-
:prop="'szTaZdMbDTOs.' + rowIndex + '.codeType'"
|
|
626
|
-
:rules="[{ required: false, trigger: ['blur', 'change'] }]"
|
|
627
|
-
>
|
|
628
|
-
<fieldCompare
|
|
629
|
-
:isCompare="isCompare"
|
|
630
|
-
:oldVal="getHValue(row, column)"
|
|
631
|
-
:newVal="row[column.property]"
|
|
632
|
-
>
|
|
633
|
-
<el-input
|
|
634
|
-
v-model="row.codeType"
|
|
635
|
-
clearable
|
|
636
|
-
:disabled="!!row.systems || !!row.relationZd"
|
|
637
|
-
/>
|
|
638
|
-
</fieldCompare>
|
|
639
|
-
</el-form-item>
|
|
640
|
-
</template>
|
|
641
|
-
<template #orders="{ row, rowIndex, column }">
|
|
642
|
-
<el-form-item
|
|
643
|
-
:prop="'szTaZdMbDTOs.' + rowIndex + '.orders'"
|
|
644
|
-
:rules="[{ required: false, trigger: ['blur', 'change'] }]"
|
|
645
|
-
>
|
|
646
|
-
<fieldCompare
|
|
647
|
-
:isCompare="isCompare"
|
|
648
|
-
:oldVal="getHValue(row, column)"
|
|
649
|
-
:newVal="row[column.property]"
|
|
650
|
-
>
|
|
651
|
-
<base-input-number
|
|
652
|
-
v-model="row.orders"
|
|
653
|
-
clearable
|
|
654
|
-
:disabled="!!row.systems"
|
|
655
|
-
@change="changeOrders(row)"
|
|
656
|
-
/>
|
|
657
|
-
</fieldCompare>
|
|
658
|
-
</el-form-item>
|
|
659
|
-
</template>
|
|
660
|
-
<template #toTaBmZd="{ row, rowIndex, column, $table }">
|
|
661
|
-
<el-form-item
|
|
662
|
-
:prop="'szTaZdMbDTOs.' + rowIndex + '.toTaBmZd'"
|
|
663
|
-
:rules="[{ required: false, trigger: ['blur', 'change'] }]"
|
|
664
|
-
>
|
|
665
|
-
<fieldCompare
|
|
666
|
-
:isCompare="isCompare"
|
|
667
|
-
:oldVal="getHValue(row, column)"
|
|
668
|
-
:newVal="row[column.property]"
|
|
669
|
-
>
|
|
670
|
-
<el-input
|
|
671
|
-
class="search-input"
|
|
672
|
-
v-model="row.toTaBmZd"
|
|
673
|
-
clearable
|
|
674
|
-
v-el-readonly
|
|
675
|
-
:disabled="!!row.systems || !!row.relationZd"
|
|
676
|
-
>
|
|
677
|
-
<i
|
|
678
|
-
v-if="!row.systems && !row.relationZd"
|
|
679
|
-
slot="suffix"
|
|
680
|
-
class="el-input__icon el-icon-search"
|
|
681
|
-
@click="openToTaBmZdDialog(row, rowIndex, $table)"
|
|
682
|
-
></i>
|
|
683
|
-
</el-input>
|
|
684
|
-
</fieldCompare>
|
|
685
|
-
</el-form-item>
|
|
686
|
-
</template>
|
|
687
|
-
<template #treeFlag="{ row, column }">
|
|
688
|
-
<el-form-item>
|
|
689
|
-
<fieldCompare
|
|
690
|
-
:isCompare="isCompare"
|
|
691
|
-
:oldVal="getHValue(row, column)"
|
|
692
|
-
:newVal="treeFlagMap[row[column.property]]"
|
|
693
|
-
>
|
|
694
|
-
<el-select
|
|
695
|
-
v-model="row.treeFlag"
|
|
696
|
-
clearable
|
|
697
|
-
:disabled="
|
|
698
|
-
!!row.systems || !!row.relationZd || szTaMb.taRule !== 1
|
|
699
|
-
"
|
|
700
|
-
>
|
|
701
|
-
<el-option value="name" :label="$t1('名称')"></el-option>
|
|
702
|
-
<el-option value="wbs" :label="$t1('WBS码')"></el-option>
|
|
703
|
-
<el-option value="parent" :label="$t1('上级ID')"></el-option>
|
|
704
|
-
<el-option value="treePath" :label="$t1('树ID路径')"></el-option>
|
|
705
|
-
<el-option
|
|
706
|
-
value="treePathName"
|
|
707
|
-
:label="$t1('树名称路径')"
|
|
708
|
-
></el-option>
|
|
709
|
-
<el-option
|
|
710
|
-
value="hasChild"
|
|
711
|
-
:label="$t1('是否有下级')"
|
|
712
|
-
></el-option>
|
|
713
|
-
<el-option value="grade" :label="$t1('层级')"></el-option>
|
|
714
|
-
</el-select>
|
|
715
|
-
</fieldCompare>
|
|
716
|
-
</el-form-item>
|
|
717
|
-
</template>
|
|
718
|
-
</vxe-grid>
|
|
719
|
-
</div>
|
|
720
|
-
<table class="table-detail">
|
|
721
|
-
<tbody>
|
|
722
|
-
<tr>
|
|
723
|
-
<th>
|
|
724
|
-
{{ $t1("表编码") }}
|
|
725
|
-
</th>
|
|
726
|
-
<td colspan="7">
|
|
727
|
-
{{ szTaMb.taCode }}
|
|
728
|
-
</td>
|
|
729
|
-
</tr>
|
|
730
|
-
</tbody>
|
|
731
|
-
</table>
|
|
732
|
-
</template>
|
|
733
|
-
</baseTabPane>
|
|
734
|
-
<baseTabPane :label="$t1('操作日志')">
|
|
735
|
-
<template #default>
|
|
736
|
-
<formOplogTable :parent-target="_self" ref="oplogTable"></formOplogTable>
|
|
737
|
-
</template>
|
|
738
|
-
</baseTabPane>
|
|
739
|
-
</baseTabs>
|
|
740
|
-
</el-form>
|
|
741
|
-
|
|
742
|
-
<szTaMbDialog
|
|
743
|
-
v-if="showSzTaMbDialog"
|
|
744
|
-
:visiable.sync="showSzTaMbDialog"
|
|
745
|
-
@confirm="confirmInsertSzTaMb"
|
|
746
|
-
:multi="false"
|
|
747
|
-
/>
|
|
748
|
-
<MenuKindDialog
|
|
749
|
-
v-if="showMenuKindDialog"
|
|
750
|
-
:visiable.sync="showMenuKindDialog"
|
|
751
|
-
@confirm="confirmInsertMenuKind"
|
|
752
|
-
:multi="false"
|
|
753
|
-
/>
|
|
754
|
-
|
|
755
|
-
<el-dialog
|
|
756
|
-
:title="$t1('关联表维护')"
|
|
757
|
-
v-if="showReferenceZdDialog"
|
|
758
|
-
:visible.sync="showReferenceZdDialog"
|
|
759
|
-
:modal-append-to-body="false"
|
|
760
|
-
:close-on-click-modal="false"
|
|
761
|
-
:modal="false"
|
|
762
|
-
custom-class="dialog-style wf-dialog"
|
|
763
|
-
v-el-drag-dialog
|
|
764
|
-
v-el-dialog-center
|
|
765
|
-
>
|
|
766
|
-
<el-form>
|
|
767
|
-
<div id="containt">
|
|
768
|
-
<table class="table-detail">
|
|
769
|
-
<tbody>
|
|
770
|
-
<tr>
|
|
771
|
-
<th>
|
|
772
|
-
<span class="t">
|
|
773
|
-
{{ $t1("关联表") }}
|
|
774
|
-
</span>
|
|
775
|
-
</th>
|
|
776
|
-
<td>
|
|
777
|
-
<el-form-item label="">
|
|
778
|
-
<el-input
|
|
779
|
-
class="search-input"
|
|
780
|
-
max="200"
|
|
781
|
-
v-model="referenceEntity"
|
|
782
|
-
@clear="clearReferenceEntity"
|
|
783
|
-
v-el-readonly
|
|
784
|
-
clearable
|
|
785
|
-
>
|
|
786
|
-
<i
|
|
787
|
-
slot="suffix"
|
|
788
|
-
class="el-input__icon el-icon-search"
|
|
789
|
-
@click="showEntityDialog = true"
|
|
790
|
-
></i>
|
|
791
|
-
</el-input>
|
|
792
|
-
</el-form-item>
|
|
793
|
-
</td>
|
|
794
|
-
</tr>
|
|
795
|
-
<tr>
|
|
796
|
-
<th>
|
|
797
|
-
<span class="t">
|
|
798
|
-
{{ $t1("关联字段") }}
|
|
799
|
-
</span>
|
|
800
|
-
</th>
|
|
801
|
-
<td>
|
|
802
|
-
<el-form-item label="">
|
|
803
|
-
<el-input
|
|
804
|
-
class="search-input"
|
|
805
|
-
max="200"
|
|
806
|
-
v-model="referenceKey"
|
|
807
|
-
@clear="referenceKey = null"
|
|
808
|
-
v-el-readonly
|
|
809
|
-
clearable
|
|
810
|
-
>
|
|
811
|
-
<i
|
|
812
|
-
slot="suffix"
|
|
813
|
-
class="el-input__icon el-icon-search"
|
|
814
|
-
@click="openEntityFieldDialog1"
|
|
815
|
-
></i>
|
|
816
|
-
</el-input>
|
|
817
|
-
</el-form-item>
|
|
818
|
-
</td>
|
|
819
|
-
</tr>
|
|
820
|
-
<tr>
|
|
821
|
-
<th>
|
|
822
|
-
<span class="t">
|
|
823
|
-
{{ $t1("显示字段") }}
|
|
824
|
-
</span>
|
|
825
|
-
</th>
|
|
826
|
-
<td>
|
|
827
|
-
<el-form-item label="">
|
|
828
|
-
<el-input
|
|
829
|
-
class="search-input"
|
|
830
|
-
max="200"
|
|
831
|
-
:value="referenceShowFields.join(',')"
|
|
832
|
-
@clear="referenceShowFields = []"
|
|
833
|
-
v-el-readonly
|
|
834
|
-
clearable
|
|
835
|
-
>
|
|
836
|
-
<i
|
|
837
|
-
slot="suffix"
|
|
838
|
-
class="el-input__icon el-icon-search"
|
|
839
|
-
@click="openEntityFieldDialog2"
|
|
840
|
-
></i>
|
|
841
|
-
</el-input>
|
|
842
|
-
</el-form-item>
|
|
843
|
-
</td>
|
|
844
|
-
</tr>
|
|
845
|
-
</tbody>
|
|
846
|
-
</table>
|
|
847
|
-
</div>
|
|
848
|
-
</el-form>
|
|
849
|
-
<span slot="footer" class="dialog-footer">
|
|
850
|
-
<el-button
|
|
851
|
-
type="primary"
|
|
852
|
-
plain
|
|
853
|
-
class="button-sty"
|
|
854
|
-
@click="showReferenceZdDialog = false"
|
|
855
|
-
>
|
|
856
|
-
<i class="el-icon-close el-icon"></i>
|
|
857
|
-
{{ $t1("取 消") }}
|
|
858
|
-
</el-button>
|
|
859
|
-
<el-button type="primary" @click="confirmReferenceZdDialog" class="button-sty">
|
|
860
|
-
<i class="el-icon-check el-icon"></i>
|
|
861
|
-
{{ $t1("确 定") }}
|
|
862
|
-
</el-button>
|
|
863
|
-
</span>
|
|
864
|
-
</el-dialog>
|
|
865
|
-
|
|
866
|
-
<szTaMbDialog
|
|
867
|
-
v-if="showEntityDialog"
|
|
868
|
-
:visiable.sync="showEntityDialog"
|
|
869
|
-
@confirm="confirmEntityDialog"
|
|
870
|
-
:multi="false"
|
|
871
|
-
/>
|
|
872
|
-
|
|
873
|
-
<zdDialog
|
|
874
|
-
v-if="showEntityFieldDialog1"
|
|
875
|
-
:visiable.sync="showEntityFieldDialog1"
|
|
876
|
-
@confirm="confirmEntityFieldDialog1"
|
|
877
|
-
:taBm="referenceEntity"
|
|
878
|
-
:rows="referenceKeyRows"
|
|
879
|
-
:multi="false"
|
|
880
|
-
/>
|
|
881
|
-
<zdDialog
|
|
882
|
-
v-if="showEntityFieldDialog2"
|
|
883
|
-
:visiable.sync="showEntityFieldDialog2"
|
|
884
|
-
@confirm="confirmEntityFieldDialog2"
|
|
885
|
-
:taBm="referenceEntity"
|
|
886
|
-
:rows="referenceShowRows"
|
|
887
|
-
:multi="true"
|
|
888
|
-
/>
|
|
889
|
-
<preformDialog
|
|
890
|
-
v-if="showPreformDialog"
|
|
891
|
-
:visiable.sync="showPreformDialog"
|
|
892
|
-
@confirm="confirmPreformDialog"
|
|
893
|
-
></preformDialog>
|
|
894
|
-
|
|
895
|
-
<szTaMbDialog
|
|
896
|
-
v-if="showTmDialog"
|
|
897
|
-
:visiable.sync="showTmDialog"
|
|
898
|
-
@confirm="confirmTmDialog"
|
|
899
|
-
:multi="false"
|
|
900
|
-
/>
|
|
901
|
-
|
|
902
|
-
<el-dialog
|
|
903
|
-
:title="$t1('引用数据库中数据表结构')"
|
|
904
|
-
:append-to-body="true"
|
|
905
|
-
:modal-append-to-body="true"
|
|
906
|
-
:close-on-click-modal="false"
|
|
907
|
-
v-if="showDtDialog"
|
|
908
|
-
:visible.sync="showDtDialog"
|
|
909
|
-
:modal="false"
|
|
910
|
-
custom-class="dialog-style list-dialog dialog-checkbox pd_8"
|
|
911
|
-
width="350px"
|
|
912
|
-
v-el-drag-dialog
|
|
913
|
-
>
|
|
914
|
-
<div class="cont">
|
|
915
|
-
<el-form
|
|
916
|
-
ref="editCategoryForm"
|
|
917
|
-
label-width="102px"
|
|
918
|
-
class="adSearchForm"
|
|
919
|
-
style="height: auto; width: auto"
|
|
920
|
-
>
|
|
921
|
-
<el-form-item :label="$t1('数据表')">
|
|
922
|
-
<el-input v-model="dbTable" clearable class="all-width" />
|
|
923
|
-
</el-form-item>
|
|
924
|
-
</el-form>
|
|
925
|
-
</div>
|
|
926
|
-
<span slot="footer" class="dialog-footer">
|
|
927
|
-
<el-button type="primary" plain class="button-sty" @click="showDtDialog = false">
|
|
928
|
-
<i class="el-icon-close el-icon"></i>
|
|
929
|
-
{{ $t2("取 消", "system.button.cancel2") }}
|
|
930
|
-
</el-button>
|
|
931
|
-
<el-button type="primary" @click="confirmDtDialog" class="button-sty">
|
|
932
|
-
<i class="el-icon-check el-icon"></i>
|
|
933
|
-
{{ $t1("确定") }}
|
|
934
|
-
</el-button>
|
|
935
|
-
</span>
|
|
936
|
-
</el-dialog>
|
|
937
|
-
|
|
938
|
-
<otherAuthDialog
|
|
939
|
-
v-if="showOtherAuthDialog"
|
|
940
|
-
:visiable.sync="showOtherAuthDialog"
|
|
941
|
-
:sid="sid"
|
|
942
|
-
@confirm="confirmOtherAuthDialog"
|
|
943
|
-
></otherAuthDialog>
|
|
944
|
-
|
|
945
|
-
<!--begin-->
|
|
946
|
-
<el-dialog
|
|
947
|
-
:title="$t1('数据值对应表字段')"
|
|
948
|
-
v-if="showToTaBmZdDialog"
|
|
949
|
-
:visible.sync="showToTaBmZdDialog"
|
|
950
|
-
:modal-append-to-body="false"
|
|
951
|
-
:close-on-click-modal="false"
|
|
952
|
-
:modal="false"
|
|
953
|
-
custom-class="dialog-style wf-dialog"
|
|
954
|
-
v-el-drag-dialog
|
|
955
|
-
v-el-dialog-center
|
|
956
|
-
>
|
|
957
|
-
<el-form>
|
|
958
|
-
<div id="containt">
|
|
959
|
-
<table class="table-detail">
|
|
960
|
-
<tbody>
|
|
961
|
-
<tr>
|
|
962
|
-
<th>
|
|
963
|
-
<span class="t">
|
|
964
|
-
{{ $t1("对应表") }}
|
|
965
|
-
</span>
|
|
966
|
-
</th>
|
|
967
|
-
<td>
|
|
968
|
-
<el-form-item label="">
|
|
969
|
-
<el-input
|
|
970
|
-
class="search-input"
|
|
971
|
-
max="200"
|
|
972
|
-
v-model="toTaBmZdEntity"
|
|
973
|
-
@clear="toTaBmZdField = null"
|
|
974
|
-
v-el-readonly
|
|
975
|
-
clearable
|
|
976
|
-
>
|
|
977
|
-
<i
|
|
978
|
-
slot="suffix"
|
|
979
|
-
class="el-input__icon el-icon-search"
|
|
980
|
-
@click="showEntityDialog3 = true"
|
|
981
|
-
></i>
|
|
982
|
-
</el-input>
|
|
983
|
-
</el-form-item>
|
|
984
|
-
</td>
|
|
985
|
-
</tr>
|
|
986
|
-
<tr>
|
|
987
|
-
<th>
|
|
988
|
-
<span class="t">
|
|
989
|
-
{{ $t1("对应表字段") }}
|
|
990
|
-
</span>
|
|
991
|
-
</th>
|
|
992
|
-
<td>
|
|
993
|
-
<el-form-item label="">
|
|
994
|
-
<el-input
|
|
995
|
-
class="search-input"
|
|
996
|
-
max="200"
|
|
997
|
-
v-model="toTaBmZdField"
|
|
998
|
-
@clear="toTaBmZdField = null"
|
|
999
|
-
v-el-readonly
|
|
1000
|
-
clearable
|
|
1001
|
-
>
|
|
1002
|
-
<i
|
|
1003
|
-
slot="suffix"
|
|
1004
|
-
class="el-input__icon el-icon-search"
|
|
1005
|
-
@click="openEntityFieldDialog3"
|
|
1006
|
-
></i>
|
|
1007
|
-
</el-input>
|
|
1008
|
-
</el-form-item>
|
|
1009
|
-
</td>
|
|
1010
|
-
</tr>
|
|
1011
|
-
</tbody>
|
|
1012
|
-
</table>
|
|
1013
|
-
</div>
|
|
1014
|
-
</el-form>
|
|
1015
|
-
<span slot="footer" class="dialog-footer">
|
|
1016
|
-
<el-button
|
|
1017
|
-
type="primary"
|
|
1018
|
-
plain
|
|
1019
|
-
class="button-sty"
|
|
1020
|
-
@click="showToTaBmZdDialog = false"
|
|
1021
|
-
>
|
|
1022
|
-
<i class="el-icon-close el-icon"></i>
|
|
1023
|
-
{{ $t1("取 消") }}
|
|
1024
|
-
</el-button>
|
|
1025
|
-
<el-button type="primary" @click="confirmToTaBmZdDialog" class="button-sty">
|
|
1026
|
-
<i class="el-icon-check el-icon"></i>
|
|
1027
|
-
{{ $t1("确 定") }}
|
|
1028
|
-
</el-button>
|
|
1029
|
-
</span>
|
|
1030
|
-
</el-dialog>
|
|
1031
|
-
|
|
1032
|
-
<szTaMbDialog
|
|
1033
|
-
v-if="showEntityDialog3"
|
|
1034
|
-
:visiable.sync="showEntityDialog3"
|
|
1035
|
-
@confirm="confirmEntityDialog3"
|
|
1036
|
-
:multi="false"
|
|
1037
|
-
/>
|
|
1038
|
-
|
|
1039
|
-
<zdDialog
|
|
1040
|
-
v-if="showEntityFieldDialog3"
|
|
1041
|
-
:visiable.sync="showEntityFieldDialog3"
|
|
1042
|
-
@confirm="confirmEntityFieldDialog3"
|
|
1043
|
-
:taBm="toTaBmZdEntity"
|
|
1044
|
-
:rows="toTaBmZdFieldRows"
|
|
1045
|
-
:multi="false"
|
|
1046
|
-
/>
|
|
1047
|
-
<!--end-->
|
|
1048
|
-
</div>
|
|
1049
|
-
</template>
|
|
1050
|
-
|
|
1051
|
-
<script>
|
|
1052
|
-
import mixin from "./mixins/edit";
|
|
1053
|
-
import formVersionButton from "@base/views/bd/setting/formVersion/button.vue";
|
|
1054
|
-
import reverButton from "@base/views/bd/setting/formVersion/reverButton.vue";
|
|
1055
|
-
import fieldCompare from "@base/views/bd/setting/formVersion/fieldCompare.vue";
|
|
1056
|
-
export default {
|
|
1057
|
-
name: "szTaMbEdit",
|
|
1058
|
-
mixins: [mixin],
|
|
1059
|
-
components: {
|
|
1060
|
-
formVersionButton,
|
|
1061
|
-
reverButton,
|
|
1062
|
-
fieldCompare,
|
|
1063
|
-
},
|
|
1064
|
-
methods: {},
|
|
1065
|
-
};
|
|
1066
|
-
</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
|
+
<formVersionButton
|
|
11
|
+
v-if="!hData && szTaMb.id && !readonly"
|
|
12
|
+
objType="SzTaMb"
|
|
13
|
+
:objCode="szTaMb.taCode"
|
|
14
|
+
:sid="szTaMb.sid"
|
|
15
|
+
@reverCallback="$baseReload()"
|
|
16
|
+
></formVersionButton>
|
|
17
|
+
<reverButton
|
|
18
|
+
v-if="!!hData"
|
|
19
|
+
objType="SzTaMb"
|
|
20
|
+
:objCode="szTaMb.taCode"
|
|
21
|
+
:hData="hData"
|
|
22
|
+
@reverCallback="$emit('reverCallback')"
|
|
23
|
+
></reverButton>
|
|
24
|
+
<el-button
|
|
25
|
+
type="primary"
|
|
26
|
+
plain
|
|
27
|
+
class="button-sty"
|
|
28
|
+
icon="el-icon-set-up"
|
|
29
|
+
@click="openOtherAuthDialog"
|
|
30
|
+
v-if="
|
|
31
|
+
isDev && !!dataId && menuKindAuth.editAuth === 1 && !readonly && !otherFlag
|
|
32
|
+
"
|
|
33
|
+
>
|
|
34
|
+
{{ $t1("分派") }}
|
|
35
|
+
</el-button>
|
|
36
|
+
<el-button
|
|
37
|
+
type="primary"
|
|
38
|
+
plain
|
|
39
|
+
class="button-sty"
|
|
40
|
+
icon="el-icon-set-up"
|
|
41
|
+
@click="openDtDialog"
|
|
42
|
+
v-if="isDev && !dataId && menuKindAuth.editAuth === 1 && !readonly"
|
|
43
|
+
>
|
|
44
|
+
{{ $t1("引用数据库中数据表结构") }}
|
|
45
|
+
</el-button>
|
|
46
|
+
<el-button
|
|
47
|
+
type="primary"
|
|
48
|
+
plain
|
|
49
|
+
class="button-sty"
|
|
50
|
+
icon="el-icon-set-up"
|
|
51
|
+
@click="openTmDialog"
|
|
52
|
+
v-if="isDev && !dataId && menuKindAuth.editAuth === 1 && !readonly"
|
|
53
|
+
>
|
|
54
|
+
{{ $t1("引用数据表定义的结构") }}
|
|
55
|
+
</el-button>
|
|
56
|
+
|
|
57
|
+
<el-button
|
|
58
|
+
type="success"
|
|
59
|
+
class="button-sty"
|
|
60
|
+
icon="el-icon-check"
|
|
61
|
+
@click="createModifyTable()"
|
|
62
|
+
v-if="
|
|
63
|
+
!szTaMb.systems && szTaMb.id && menuKindAuth.editAuth === 1 && !readonly
|
|
64
|
+
"
|
|
65
|
+
>
|
|
66
|
+
{{ $t1("创建/更新数据表") }}
|
|
67
|
+
</el-button>
|
|
68
|
+
<el-button
|
|
69
|
+
type="primary"
|
|
70
|
+
plain
|
|
71
|
+
class="button-sty"
|
|
72
|
+
@click="$baseReload()"
|
|
73
|
+
icon="el-icon-refresh-right"
|
|
74
|
+
>
|
|
75
|
+
{{ $t1("重置") }}
|
|
76
|
+
</el-button>
|
|
77
|
+
<el-button
|
|
78
|
+
type="primary"
|
|
79
|
+
class="button-sty"
|
|
80
|
+
icon="el-icon-check"
|
|
81
|
+
@click="saveData"
|
|
82
|
+
v-if="isDev && !szTaMb.systems && menuKindAuth.editAuth === 1 && !readonly"
|
|
83
|
+
>
|
|
84
|
+
{{ $t1("保存") }}
|
|
85
|
+
</el-button>
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
<baseTabs>
|
|
89
|
+
<baseTabPane :label="$t1('基本信息')">
|
|
90
|
+
<template #default>
|
|
91
|
+
<table class="table-detail">
|
|
92
|
+
<tbody>
|
|
93
|
+
<tr>
|
|
94
|
+
<th>{{ $t1("数据库表名") }}</th>
|
|
95
|
+
<td colspan="3">
|
|
96
|
+
<el-form-item
|
|
97
|
+
prop="taBm"
|
|
98
|
+
:rules="[{ required: false, trigger: ['blur', 'change'] }]"
|
|
99
|
+
>
|
|
100
|
+
<fieldCompare
|
|
101
|
+
:isCompare="isCompare"
|
|
102
|
+
:oldVal="oldSzTaMb.taBm"
|
|
103
|
+
:newVal="szTaMb.taBm"
|
|
104
|
+
>
|
|
105
|
+
<el-input
|
|
106
|
+
type="text"
|
|
107
|
+
autocomplete="off"
|
|
108
|
+
v-model="szTaMb.taBm"
|
|
109
|
+
clearable
|
|
110
|
+
:disabled="!!dataId"
|
|
111
|
+
/>
|
|
112
|
+
</fieldCompare>
|
|
113
|
+
</el-form-item>
|
|
114
|
+
</td>
|
|
115
|
+
</tr>
|
|
116
|
+
<tr>
|
|
117
|
+
<th class="no"></th>
|
|
118
|
+
<td colspan="7">
|
|
119
|
+
<span class="fl tips">{{
|
|
120
|
+
$t1(
|
|
121
|
+
"注:数据库表名必须定义为:1、与实体名称一样,2、表单分类数据表前缀_实体名称,3、不填自动生成:表单分类数据表前缀_实体名称。"
|
|
122
|
+
)
|
|
123
|
+
}}</span>
|
|
124
|
+
</td>
|
|
125
|
+
</tr>
|
|
126
|
+
<tr>
|
|
127
|
+
<th>
|
|
128
|
+
<em class="f-red">*</em>
|
|
129
|
+
{{ $t1("实体名称") }}
|
|
130
|
+
</th>
|
|
131
|
+
<td colspan="3">
|
|
132
|
+
<el-form-item
|
|
133
|
+
prop="taEn"
|
|
134
|
+
:rules="[{ required: true, trigger: ['blur', 'change'] }]"
|
|
135
|
+
>
|
|
136
|
+
<fieldCompare
|
|
137
|
+
:isCompare="isCompare"
|
|
138
|
+
:oldVal="oldSzTaMb.taEn"
|
|
139
|
+
:newVal="szTaMb.taEn"
|
|
140
|
+
>
|
|
141
|
+
<el-input
|
|
142
|
+
type="text"
|
|
143
|
+
autocomplete="off"
|
|
144
|
+
v-model="szTaMb.taEn"
|
|
145
|
+
clearable
|
|
146
|
+
/>
|
|
147
|
+
</fieldCompare>
|
|
148
|
+
</el-form-item>
|
|
149
|
+
</td>
|
|
150
|
+
</tr>
|
|
151
|
+
<tr>
|
|
152
|
+
<th><em class="f-red">*</em>{{ $t1("表描述") }}</th>
|
|
153
|
+
<td colspan="5">
|
|
154
|
+
<el-form-item
|
|
155
|
+
prop="taCh"
|
|
156
|
+
:rules="[{ required: true, trigger: ['blur', 'change'] }]"
|
|
157
|
+
>
|
|
158
|
+
<fieldCompare
|
|
159
|
+
:isCompare="isCompare"
|
|
160
|
+
:oldVal="oldSzTaMb.taCh"
|
|
161
|
+
:newVal="szTaMb.taCh"
|
|
162
|
+
>
|
|
163
|
+
<el-input
|
|
164
|
+
type="text"
|
|
165
|
+
autocomplete="off"
|
|
166
|
+
v-model="szTaMb.taCh"
|
|
167
|
+
clearable
|
|
168
|
+
/>
|
|
169
|
+
</fieldCompare>
|
|
170
|
+
</el-form-item>
|
|
171
|
+
</td>
|
|
172
|
+
</tr>
|
|
173
|
+
<tr>
|
|
174
|
+
<th><em class="f-red">*</em>{{ $t1("是否明细") }}</th>
|
|
175
|
+
<td>
|
|
176
|
+
<el-form-item
|
|
177
|
+
prop="taType"
|
|
178
|
+
:rules="[{ required: true, trigger: ['blur', 'change'] }]"
|
|
179
|
+
>
|
|
180
|
+
<fieldCompare
|
|
181
|
+
:isCompare="isCompare"
|
|
182
|
+
:oldVal="oldSzTaMb.taType"
|
|
183
|
+
:newVal="szTaMb.taType"
|
|
184
|
+
>
|
|
185
|
+
<el-radio-group v-model="szTaMb.taType">
|
|
186
|
+
<el-radio :label="1">{{ $t1("是") }}</el-radio>
|
|
187
|
+
<el-radio :label="0">{{ $t1("否") }}</el-radio>
|
|
188
|
+
</el-radio-group>
|
|
189
|
+
</fieldCompare>
|
|
190
|
+
</el-form-item>
|
|
191
|
+
</td>
|
|
192
|
+
<th>
|
|
193
|
+
<em class="f-red" v-show="szTaMb.taType === 1">*</em>
|
|
194
|
+
{{ $t1("所属主实体") }}
|
|
195
|
+
</th>
|
|
196
|
+
<td colspan="3">
|
|
197
|
+
<el-form-item
|
|
198
|
+
prop="sszstEn"
|
|
199
|
+
:rules="[
|
|
200
|
+
{
|
|
201
|
+
required: szTaMb.taType === 1,
|
|
202
|
+
trigger: ['blur', 'change'],
|
|
203
|
+
},
|
|
204
|
+
]"
|
|
205
|
+
>
|
|
206
|
+
<fieldCompare
|
|
207
|
+
:isCompare="isCompare"
|
|
208
|
+
:oldVal="oldSzTaMb.sszstEn"
|
|
209
|
+
:newVal="szTaMb.sszstEn"
|
|
210
|
+
>
|
|
211
|
+
<el-input
|
|
212
|
+
class="search-input"
|
|
213
|
+
max="200"
|
|
214
|
+
v-model="szTaMb.sszstEn"
|
|
215
|
+
@clear="clearSszst"
|
|
216
|
+
:disabled="szTaMb.taType === 0"
|
|
217
|
+
v-el-readonly
|
|
218
|
+
clearable
|
|
219
|
+
>
|
|
220
|
+
<!-- element 的 suffix 插槽不受 disabled 影响,图标要自己按禁用条件收起来 -->
|
|
221
|
+
<i
|
|
222
|
+
v-if="szTaMb.taType !== 0"
|
|
223
|
+
slot="suffix"
|
|
224
|
+
class="el-input__icon el-icon-search"
|
|
225
|
+
@click="showSzTaMbDialog = true"
|
|
226
|
+
></i>
|
|
227
|
+
</el-input>
|
|
228
|
+
</fieldCompare>
|
|
229
|
+
</el-form-item>
|
|
230
|
+
</td>
|
|
231
|
+
</tr>
|
|
232
|
+
<tr>
|
|
233
|
+
<th><em class="f-red">*</em>{{ $t1("是否树结构") }}</th>
|
|
234
|
+
<td>
|
|
235
|
+
<el-form-item
|
|
236
|
+
prop="taRule"
|
|
237
|
+
:rules="[{ required: true, trigger: ['blur', 'change'] }]"
|
|
238
|
+
>
|
|
239
|
+
<fieldCompare
|
|
240
|
+
:isCompare="isCompare"
|
|
241
|
+
:oldVal="oldSzTaMb.taRule"
|
|
242
|
+
:newVal="szTaMb.taRule"
|
|
243
|
+
>
|
|
244
|
+
<el-radio-group v-model="szTaMb.taRule" @change="changeTaRule">
|
|
245
|
+
<el-radio :label="1">{{ $t1("是") }}</el-radio>
|
|
246
|
+
<el-radio :label="0">{{ $t1("否") }}</el-radio>
|
|
247
|
+
</el-radio-group>
|
|
248
|
+
</fieldCompare>
|
|
249
|
+
</el-form-item>
|
|
250
|
+
</td>
|
|
251
|
+
<th><em class="f-red">*</em>{{ $t1("数据范围") }}</th>
|
|
252
|
+
<td colspan="3">
|
|
253
|
+
<el-form-item
|
|
254
|
+
prop="dataRange"
|
|
255
|
+
:rules="[{ required: true, trigger: ['blur', 'change'] }]"
|
|
256
|
+
>
|
|
257
|
+
<fieldCompare
|
|
258
|
+
:isCompare="isCompare"
|
|
259
|
+
:oldVal="oldSzTaMb.dataRange"
|
|
260
|
+
:newVal="szTaMb.dataRange"
|
|
261
|
+
>
|
|
262
|
+
<el-radio-group v-model="szTaMb.dataRange">
|
|
263
|
+
<el-radio :label="1">{{ $t1("集团") }}</el-radio>
|
|
264
|
+
<el-radio :label="0">{{ $t1("当前组织") }}</el-radio>
|
|
265
|
+
</el-radio-group>
|
|
266
|
+
</fieldCompare>
|
|
267
|
+
</el-form-item>
|
|
268
|
+
</td>
|
|
269
|
+
</tr>
|
|
270
|
+
<tr>
|
|
271
|
+
<th>
|
|
272
|
+
<em class="f-red">*</em>
|
|
273
|
+
{{ $t1("表单分类") }}
|
|
274
|
+
</th>
|
|
275
|
+
<td colspan="5">
|
|
276
|
+
<el-form-item
|
|
277
|
+
prop="menuKindName"
|
|
278
|
+
:rules="[
|
|
279
|
+
{
|
|
280
|
+
required: true,
|
|
281
|
+
trigger: ['blur', 'change'],
|
|
282
|
+
},
|
|
283
|
+
]"
|
|
284
|
+
>
|
|
285
|
+
<fieldCompare
|
|
286
|
+
:isCompare="isCompare"
|
|
287
|
+
:oldVal="oldSzTaMb.menuKindName"
|
|
288
|
+
:newVal="szTaMb.menuKindName"
|
|
289
|
+
>
|
|
290
|
+
<el-input
|
|
291
|
+
class="search-input"
|
|
292
|
+
max="200"
|
|
293
|
+
v-model="szTaMb.menuKindName"
|
|
294
|
+
@clear="clearMenuKind"
|
|
295
|
+
v-el-readonly
|
|
296
|
+
clearable
|
|
297
|
+
:disabled="otherFlag"
|
|
298
|
+
>
|
|
299
|
+
<i
|
|
300
|
+
v-if="!otherFlag"
|
|
301
|
+
slot="suffix"
|
|
302
|
+
class="el-input__icon el-icon-search"
|
|
303
|
+
@click="showMenuKindDialog = true"
|
|
304
|
+
></i>
|
|
305
|
+
</el-input>
|
|
306
|
+
</fieldCompare>
|
|
307
|
+
</el-form-item>
|
|
308
|
+
</td>
|
|
309
|
+
</tr>
|
|
310
|
+
<tr>
|
|
311
|
+
<th>
|
|
312
|
+
{{ $t1("项目标签") }}
|
|
313
|
+
</th>
|
|
314
|
+
<td colspan="7">
|
|
315
|
+
<projectTagView v-model="szTaMb.szTaMbTagDTOs"></projectTagView>
|
|
316
|
+
</td>
|
|
317
|
+
</tr>
|
|
318
|
+
<tr>
|
|
319
|
+
<th>{{ $t1("是否启用") }}</th>
|
|
320
|
+
<td>
|
|
321
|
+
<el-form-item
|
|
322
|
+
prop="enabled"
|
|
323
|
+
:rules="[{ required: false, trigger: 'blur' }]"
|
|
324
|
+
>
|
|
325
|
+
<fieldCompare
|
|
326
|
+
:isCompare="isCompare"
|
|
327
|
+
:oldVal="oldSzTaMb.enabled"
|
|
328
|
+
:newVal="szTaMb.enabled"
|
|
329
|
+
>
|
|
330
|
+
<el-radio-group v-model="szTaMb.enabled">
|
|
331
|
+
<el-radio :label="true">{{ $t1("启用") }}</el-radio>
|
|
332
|
+
<el-radio :label="false">{{ $t1("禁用") }}</el-radio>
|
|
333
|
+
</el-radio-group>
|
|
334
|
+
</fieldCompare>
|
|
335
|
+
</el-form-item>
|
|
336
|
+
</td>
|
|
337
|
+
</tr>
|
|
338
|
+
<tr>
|
|
339
|
+
<th>
|
|
340
|
+
{{ $t1("服务名") }}
|
|
341
|
+
</th>
|
|
342
|
+
<td colspan="7">
|
|
343
|
+
<el-form-item>
|
|
344
|
+
<fieldCompare
|
|
345
|
+
:isCompare="isCompare"
|
|
346
|
+
:oldVal="oldSzTaMb.serviceName"
|
|
347
|
+
:newVal="szTaMb.serviceName"
|
|
348
|
+
>
|
|
349
|
+
{{ szTaMb.serviceName }}
|
|
350
|
+
</fieldCompare>
|
|
351
|
+
</el-form-item>
|
|
352
|
+
</td>
|
|
353
|
+
</tr>
|
|
354
|
+
<tr>
|
|
355
|
+
<th>
|
|
356
|
+
{{ $t1("版本号") }}
|
|
357
|
+
</th>
|
|
358
|
+
<td colspan="7">
|
|
359
|
+
{{ szTaMb.version }}
|
|
360
|
+
</td>
|
|
361
|
+
</tr>
|
|
362
|
+
<tr>
|
|
363
|
+
<th>
|
|
364
|
+
{{ $t1("唯一标识") }}
|
|
365
|
+
</th>
|
|
366
|
+
<td colspan="7">
|
|
367
|
+
{{ szTaMb.sid }}
|
|
368
|
+
</td>
|
|
369
|
+
</tr>
|
|
370
|
+
<tr>
|
|
371
|
+
<th>{{ $t1("创建人") }}</th>
|
|
372
|
+
<td>{{ szTaMb.createBy }}</td>
|
|
373
|
+
<th>{{ $t1("创建时间") }}</th>
|
|
374
|
+
<td>{{ szTaMb.createDate }}</td>
|
|
375
|
+
<th>{{ $t1("更新人") }}</th>
|
|
376
|
+
<td>{{ szTaMb.modifyBy }}</td>
|
|
377
|
+
<th>{{ $t1("更新时间") }}</th>
|
|
378
|
+
<td>{{ szTaMb.modifyDate }}</td>
|
|
379
|
+
</tr>
|
|
380
|
+
</tbody>
|
|
381
|
+
</table>
|
|
382
|
+
</template>
|
|
383
|
+
</baseTabPane>
|
|
384
|
+
<baseTabPane :label="$t1('数据表字段明细')">
|
|
385
|
+
<template #button>
|
|
386
|
+
<el-button class="button-sty" @click="addTaMbItems" icon="el-icon-plus"
|
|
387
|
+
>{{ $t1("新增") }}
|
|
388
|
+
</el-button>
|
|
389
|
+
<el-button
|
|
390
|
+
v-if="userFlag === 6"
|
|
391
|
+
type="primary"
|
|
392
|
+
class="button-sty"
|
|
393
|
+
icon="el-icon-upload2"
|
|
394
|
+
@click="excelExport"
|
|
395
|
+
>{{ $t1("导出") }}</el-button
|
|
396
|
+
>
|
|
397
|
+
</template>
|
|
398
|
+
<template #default>
|
|
399
|
+
<div>
|
|
400
|
+
<vxe-grid
|
|
401
|
+
ref="table-szTaZdMb"
|
|
402
|
+
:data="szTaMb.szTaZdMbDTOs"
|
|
403
|
+
v-bind="productOption"
|
|
404
|
+
@resizable-change="$vxeTableUtil.onColumnWitchChange"
|
|
405
|
+
@custom="$vxeTableUtil.customHandle"
|
|
406
|
+
>
|
|
407
|
+
<template #zdType="{ row, column }">
|
|
408
|
+
<el-form-item>
|
|
409
|
+
<fieldCompare
|
|
410
|
+
:isCompare="isCompare"
|
|
411
|
+
:oldVal="getHValue(row, column)"
|
|
412
|
+
:newVal="zdTypeMap[row[column.property]]"
|
|
413
|
+
>
|
|
414
|
+
<el-select
|
|
415
|
+
v-model="row.zdType"
|
|
416
|
+
clearable
|
|
417
|
+
:disabled="!!row.systems || !!row.relationZd"
|
|
418
|
+
@change="changeZdType(row)"
|
|
419
|
+
>
|
|
420
|
+
<el-option value="Boolean" :label="$t1('布尔')"></el-option>
|
|
421
|
+
<el-option value="Integer" :label="$t1('整数')"></el-option>
|
|
422
|
+
<el-option value="Long" :label="$t1('长整数')"></el-option>
|
|
423
|
+
<el-option value="Decimal" :label="$t1('精度小数')"></el-option>
|
|
424
|
+
<el-option value="Money" :label="$t1('金额')"></el-option>
|
|
425
|
+
<el-option value="Text" :label="$t1('文本')"></el-option>
|
|
426
|
+
<el-option value="TextArea" :label="$t1('长文本')"></el-option>
|
|
427
|
+
<el-option value="DateTime" :label="$t1('日期时间')"></el-option>
|
|
428
|
+
<el-option value="Reference" :label="$t1('关联表(文本)')"></el-option>
|
|
429
|
+
<el-option value="ReferenceLong" :label="$t1('关联表(长整型)')"></el-option>
|
|
430
|
+
</el-select>
|
|
431
|
+
</fieldCompare>
|
|
432
|
+
</el-form-item>
|
|
433
|
+
</template>
|
|
434
|
+
<template #zdLength="{ row, rowIndex, column }">
|
|
435
|
+
<el-form-item
|
|
436
|
+
:prop="'szTaZdMbDTOs.' + rowIndex + '.zdLength'"
|
|
437
|
+
:rules="[{ required: false, trigger: ['blur', 'change'] }]"
|
|
438
|
+
>
|
|
439
|
+
<fieldCompare
|
|
440
|
+
:isCompare="isCompare"
|
|
441
|
+
:oldVal="getHValue(row, column)"
|
|
442
|
+
:newVal="row[column.property]"
|
|
443
|
+
>
|
|
444
|
+
<el-input
|
|
445
|
+
v-model="row.zdLength"
|
|
446
|
+
clearable
|
|
447
|
+
:disabled="!!row.systems || !!row.relationZd"
|
|
448
|
+
/>
|
|
449
|
+
</fieldCompare>
|
|
450
|
+
</el-form-item>
|
|
451
|
+
</template>
|
|
452
|
+
<template #referenceZd="{ row, rowIndex, column, $table }">
|
|
453
|
+
<el-form-item>
|
|
454
|
+
<fieldCompare
|
|
455
|
+
:isCompare="isCompare"
|
|
456
|
+
:oldVal="getHValue(row, column)"
|
|
457
|
+
:newVal="row[column.property]"
|
|
458
|
+
>
|
|
459
|
+
<el-input
|
|
460
|
+
class="search-input"
|
|
461
|
+
v-model="row.referenceZd"
|
|
462
|
+
v-el-readonly
|
|
463
|
+
v-if="isReferenceZdType(row.zdType)"
|
|
464
|
+
:disabled="!row.zdEn"
|
|
465
|
+
>
|
|
466
|
+
<span slot="suffix" class="el-input__suffix-inner">
|
|
467
|
+
<i
|
|
468
|
+
v-if="row.referenceZd && !!row.zdEn"
|
|
469
|
+
class="el-input__icon el-icon-circle-close"
|
|
470
|
+
@click.stop="confirmClearReferenceZd(row)"
|
|
471
|
+
></i>
|
|
472
|
+
<i
|
|
473
|
+
v-if="!!row.zdEn"
|
|
474
|
+
class="el-input__icon el-icon-search"
|
|
475
|
+
@click="openReferenceZdDialog(row, rowIndex, $table)"
|
|
476
|
+
></i>
|
|
477
|
+
</span>
|
|
478
|
+
</el-input>
|
|
479
|
+
<template v-else>
|
|
480
|
+
{{ row.referenceZd }}
|
|
481
|
+
</template>
|
|
482
|
+
</fieldCompare>
|
|
483
|
+
</el-form-item>
|
|
484
|
+
</template>
|
|
485
|
+
<template #zdEn="{ row, rowIndex, column }">
|
|
486
|
+
<template v-if="!!row.systems || row.fromTable">
|
|
487
|
+
<el-form-item>
|
|
488
|
+
<fieldCompare
|
|
489
|
+
:isCompare="isCompare"
|
|
490
|
+
:oldVal="getHValue(row, column)"
|
|
491
|
+
:newVal="row[column.property]"
|
|
492
|
+
>
|
|
493
|
+
{{ row.zdEn }}
|
|
494
|
+
</fieldCompare>
|
|
495
|
+
</el-form-item>
|
|
496
|
+
</template>
|
|
497
|
+
<template v-else>
|
|
498
|
+
<el-form-item
|
|
499
|
+
:prop="'szTaZdMbDTOs.' + rowIndex + '.zdEn'"
|
|
500
|
+
:rules="[{ required: true, trigger: ['blur', 'change'] }]"
|
|
501
|
+
:style="!!row.relationZd ? 'padding-left:20px' : ''"
|
|
502
|
+
>
|
|
503
|
+
<fieldCompare
|
|
504
|
+
:isCompare="isCompare"
|
|
505
|
+
:oldVal="getHValue(row, column)"
|
|
506
|
+
:newVal="row[column.property]"
|
|
507
|
+
>
|
|
508
|
+
<el-input
|
|
509
|
+
v-model="row.zdEn"
|
|
510
|
+
@focus="cacheZdEn(row)"
|
|
511
|
+
@input="
|
|
512
|
+
(val) => {
|
|
513
|
+
changeZdEn(val, row);
|
|
514
|
+
}
|
|
515
|
+
"
|
|
516
|
+
/>
|
|
517
|
+
</fieldCompare>
|
|
518
|
+
</el-form-item>
|
|
519
|
+
</template>
|
|
520
|
+
</template>
|
|
521
|
+
<template #zdCh="{ row, rowIndex, column }">
|
|
522
|
+
<el-form-item
|
|
523
|
+
:prop="'szTaZdMbDTOs.' + rowIndex + '.zdCh'"
|
|
524
|
+
:rules="[{ required: true, trigger: ['blur', 'change'] }]"
|
|
525
|
+
>
|
|
526
|
+
<fieldCompare
|
|
527
|
+
:isCompare="isCompare"
|
|
528
|
+
:oldVal="getHValue(row, column)"
|
|
529
|
+
:newVal="row[column.property]"
|
|
530
|
+
>
|
|
531
|
+
<el-input v-model="row.zdCh" clearable :disabled="!!row.systems" />
|
|
532
|
+
</fieldCompare>
|
|
533
|
+
</el-form-item>
|
|
534
|
+
</template>
|
|
535
|
+
<template #zdTypeValues="{ row, rowIndex, column }">
|
|
536
|
+
<el-form-item
|
|
537
|
+
:prop="'szTaZdMbDTOs.' + rowIndex + '.zdTypeValues'"
|
|
538
|
+
:rules="[{ required: false, trigger: ['blur', 'change'] }]"
|
|
539
|
+
>
|
|
540
|
+
<fieldCompare
|
|
541
|
+
:isCompare="isCompare"
|
|
542
|
+
:oldVal="getHValue(row, column)"
|
|
543
|
+
:newVal="row[column.property]"
|
|
544
|
+
>
|
|
545
|
+
<el-input
|
|
546
|
+
v-model="row.zdTypeValues"
|
|
547
|
+
clearable
|
|
548
|
+
:disabled="!!row.systems || !!row.relationZd"
|
|
549
|
+
/>
|
|
550
|
+
</fieldCompare>
|
|
551
|
+
</el-form-item>
|
|
552
|
+
</template>
|
|
553
|
+
<template #required="{ row, rowIndex, column }">
|
|
554
|
+
<el-form-item>
|
|
555
|
+
<fieldCompare
|
|
556
|
+
:isCompare="isCompare"
|
|
557
|
+
:oldVal="getHValue(row, column)"
|
|
558
|
+
:newVal="row[column.property]"
|
|
559
|
+
>
|
|
560
|
+
<el-checkbox
|
|
561
|
+
v-model="row.required"
|
|
562
|
+
:disabled="!!row.systems || !!row.relationZd"
|
|
563
|
+
/>
|
|
564
|
+
</fieldCompare>
|
|
565
|
+
</el-form-item>
|
|
566
|
+
</template>
|
|
567
|
+
<template #enabled="{ row, rowIndex, column }">
|
|
568
|
+
<el-form-item>
|
|
569
|
+
<fieldCompare
|
|
570
|
+
:isCompare="isCompare"
|
|
571
|
+
:oldVal="getHValue(row, column)"
|
|
572
|
+
:newVal="row[column.property]"
|
|
573
|
+
>
|
|
574
|
+
<el-checkbox
|
|
575
|
+
v-model="row.enabled"
|
|
576
|
+
:disabled="!!row.systems || !!row.relationZd"
|
|
577
|
+
/>
|
|
578
|
+
</fieldCompare>
|
|
579
|
+
</el-form-item>
|
|
580
|
+
</template>
|
|
581
|
+
<template #generateCode="{ row, rowIndex, column }">
|
|
582
|
+
<el-form-item>
|
|
583
|
+
<fieldCompare
|
|
584
|
+
:isCompare="isCompare"
|
|
585
|
+
:oldVal="getHValue(row, column)"
|
|
586
|
+
:newVal="row[column.property]"
|
|
587
|
+
>
|
|
588
|
+
<el-checkbox
|
|
589
|
+
v-model="row.generateCode"
|
|
590
|
+
:disabled="!!row.systems || !!row.relationZd"
|
|
591
|
+
/>
|
|
592
|
+
</fieldCompare>
|
|
593
|
+
</el-form-item>
|
|
594
|
+
</template>
|
|
595
|
+
<template #atened="{ row, rowIndex, column }">
|
|
596
|
+
<el-form-item>
|
|
597
|
+
<fieldCompare
|
|
598
|
+
:isCompare="isCompare"
|
|
599
|
+
:oldVal="getHValue(row, column)"
|
|
600
|
+
:newVal="row[column.property]"
|
|
601
|
+
>
|
|
602
|
+
<el-checkbox
|
|
603
|
+
v-model="row.atened"
|
|
604
|
+
:disabled="!!row.systems || !!row.relationZd"
|
|
605
|
+
/>
|
|
606
|
+
</fieldCompare>
|
|
607
|
+
</el-form-item>
|
|
608
|
+
</template>
|
|
609
|
+
<template #updateIgnore="{ row, rowIndex, column }">
|
|
610
|
+
<el-form-item>
|
|
611
|
+
<fieldCompare
|
|
612
|
+
:isCompare="isCompare"
|
|
613
|
+
:oldVal="getHValue(row, column)"
|
|
614
|
+
:newVal="row[column.property]"
|
|
615
|
+
>
|
|
616
|
+
<el-checkbox
|
|
617
|
+
v-model="row.updateIgnore"
|
|
618
|
+
:disabled="!!row.systems || !!row.relationZd"
|
|
619
|
+
/>
|
|
620
|
+
</fieldCompare>
|
|
621
|
+
</el-form-item>
|
|
622
|
+
</template>
|
|
623
|
+
<template #codeType="{ row, rowIndex, column }">
|
|
624
|
+
<el-form-item
|
|
625
|
+
:prop="'szTaZdMbDTOs.' + rowIndex + '.codeType'"
|
|
626
|
+
:rules="[{ required: false, trigger: ['blur', 'change'] }]"
|
|
627
|
+
>
|
|
628
|
+
<fieldCompare
|
|
629
|
+
:isCompare="isCompare"
|
|
630
|
+
:oldVal="getHValue(row, column)"
|
|
631
|
+
:newVal="row[column.property]"
|
|
632
|
+
>
|
|
633
|
+
<el-input
|
|
634
|
+
v-model="row.codeType"
|
|
635
|
+
clearable
|
|
636
|
+
:disabled="!!row.systems || !!row.relationZd"
|
|
637
|
+
/>
|
|
638
|
+
</fieldCompare>
|
|
639
|
+
</el-form-item>
|
|
640
|
+
</template>
|
|
641
|
+
<template #orders="{ row, rowIndex, column }">
|
|
642
|
+
<el-form-item
|
|
643
|
+
:prop="'szTaZdMbDTOs.' + rowIndex + '.orders'"
|
|
644
|
+
:rules="[{ required: false, trigger: ['blur', 'change'] }]"
|
|
645
|
+
>
|
|
646
|
+
<fieldCompare
|
|
647
|
+
:isCompare="isCompare"
|
|
648
|
+
:oldVal="getHValue(row, column)"
|
|
649
|
+
:newVal="row[column.property]"
|
|
650
|
+
>
|
|
651
|
+
<base-input-number
|
|
652
|
+
v-model="row.orders"
|
|
653
|
+
clearable
|
|
654
|
+
:disabled="!!row.systems"
|
|
655
|
+
@change="changeOrders(row)"
|
|
656
|
+
/>
|
|
657
|
+
</fieldCompare>
|
|
658
|
+
</el-form-item>
|
|
659
|
+
</template>
|
|
660
|
+
<template #toTaBmZd="{ row, rowIndex, column, $table }">
|
|
661
|
+
<el-form-item
|
|
662
|
+
:prop="'szTaZdMbDTOs.' + rowIndex + '.toTaBmZd'"
|
|
663
|
+
:rules="[{ required: false, trigger: ['blur', 'change'] }]"
|
|
664
|
+
>
|
|
665
|
+
<fieldCompare
|
|
666
|
+
:isCompare="isCompare"
|
|
667
|
+
:oldVal="getHValue(row, column)"
|
|
668
|
+
:newVal="row[column.property]"
|
|
669
|
+
>
|
|
670
|
+
<el-input
|
|
671
|
+
class="search-input"
|
|
672
|
+
v-model="row.toTaBmZd"
|
|
673
|
+
clearable
|
|
674
|
+
v-el-readonly
|
|
675
|
+
:disabled="!!row.systems || !!row.relationZd"
|
|
676
|
+
>
|
|
677
|
+
<i
|
|
678
|
+
v-if="!row.systems && !row.relationZd"
|
|
679
|
+
slot="suffix"
|
|
680
|
+
class="el-input__icon el-icon-search"
|
|
681
|
+
@click="openToTaBmZdDialog(row, rowIndex, $table)"
|
|
682
|
+
></i>
|
|
683
|
+
</el-input>
|
|
684
|
+
</fieldCompare>
|
|
685
|
+
</el-form-item>
|
|
686
|
+
</template>
|
|
687
|
+
<template #treeFlag="{ row, column }">
|
|
688
|
+
<el-form-item>
|
|
689
|
+
<fieldCompare
|
|
690
|
+
:isCompare="isCompare"
|
|
691
|
+
:oldVal="getHValue(row, column)"
|
|
692
|
+
:newVal="treeFlagMap[row[column.property]]"
|
|
693
|
+
>
|
|
694
|
+
<el-select
|
|
695
|
+
v-model="row.treeFlag"
|
|
696
|
+
clearable
|
|
697
|
+
:disabled="
|
|
698
|
+
!!row.systems || !!row.relationZd || szTaMb.taRule !== 1
|
|
699
|
+
"
|
|
700
|
+
>
|
|
701
|
+
<el-option value="name" :label="$t1('名称')"></el-option>
|
|
702
|
+
<el-option value="wbs" :label="$t1('WBS码')"></el-option>
|
|
703
|
+
<el-option value="parent" :label="$t1('上级ID')"></el-option>
|
|
704
|
+
<el-option value="treePath" :label="$t1('树ID路径')"></el-option>
|
|
705
|
+
<el-option
|
|
706
|
+
value="treePathName"
|
|
707
|
+
:label="$t1('树名称路径')"
|
|
708
|
+
></el-option>
|
|
709
|
+
<el-option
|
|
710
|
+
value="hasChild"
|
|
711
|
+
:label="$t1('是否有下级')"
|
|
712
|
+
></el-option>
|
|
713
|
+
<el-option value="grade" :label="$t1('层级')"></el-option>
|
|
714
|
+
</el-select>
|
|
715
|
+
</fieldCompare>
|
|
716
|
+
</el-form-item>
|
|
717
|
+
</template>
|
|
718
|
+
</vxe-grid>
|
|
719
|
+
</div>
|
|
720
|
+
<table class="table-detail">
|
|
721
|
+
<tbody>
|
|
722
|
+
<tr>
|
|
723
|
+
<th>
|
|
724
|
+
{{ $t1("表编码") }}
|
|
725
|
+
</th>
|
|
726
|
+
<td colspan="7">
|
|
727
|
+
{{ szTaMb.taCode }}
|
|
728
|
+
</td>
|
|
729
|
+
</tr>
|
|
730
|
+
</tbody>
|
|
731
|
+
</table>
|
|
732
|
+
</template>
|
|
733
|
+
</baseTabPane>
|
|
734
|
+
<baseTabPane :label="$t1('操作日志')">
|
|
735
|
+
<template #default>
|
|
736
|
+
<formOplogTable :parent-target="_self" ref="oplogTable"></formOplogTable>
|
|
737
|
+
</template>
|
|
738
|
+
</baseTabPane>
|
|
739
|
+
</baseTabs>
|
|
740
|
+
</el-form>
|
|
741
|
+
|
|
742
|
+
<szTaMbDialog
|
|
743
|
+
v-if="showSzTaMbDialog"
|
|
744
|
+
:visiable.sync="showSzTaMbDialog"
|
|
745
|
+
@confirm="confirmInsertSzTaMb"
|
|
746
|
+
:multi="false"
|
|
747
|
+
/>
|
|
748
|
+
<MenuKindDialog
|
|
749
|
+
v-if="showMenuKindDialog"
|
|
750
|
+
:visiable.sync="showMenuKindDialog"
|
|
751
|
+
@confirm="confirmInsertMenuKind"
|
|
752
|
+
:multi="false"
|
|
753
|
+
/>
|
|
754
|
+
|
|
755
|
+
<el-dialog
|
|
756
|
+
:title="$t1('关联表维护')"
|
|
757
|
+
v-if="showReferenceZdDialog"
|
|
758
|
+
:visible.sync="showReferenceZdDialog"
|
|
759
|
+
:modal-append-to-body="false"
|
|
760
|
+
:close-on-click-modal="false"
|
|
761
|
+
:modal="false"
|
|
762
|
+
custom-class="dialog-style wf-dialog"
|
|
763
|
+
v-el-drag-dialog
|
|
764
|
+
v-el-dialog-center
|
|
765
|
+
>
|
|
766
|
+
<el-form>
|
|
767
|
+
<div id="containt">
|
|
768
|
+
<table class="table-detail">
|
|
769
|
+
<tbody>
|
|
770
|
+
<tr>
|
|
771
|
+
<th>
|
|
772
|
+
<span class="t">
|
|
773
|
+
{{ $t1("关联表") }}
|
|
774
|
+
</span>
|
|
775
|
+
</th>
|
|
776
|
+
<td>
|
|
777
|
+
<el-form-item label="">
|
|
778
|
+
<el-input
|
|
779
|
+
class="search-input"
|
|
780
|
+
max="200"
|
|
781
|
+
v-model="referenceEntity"
|
|
782
|
+
@clear="clearReferenceEntity"
|
|
783
|
+
v-el-readonly
|
|
784
|
+
clearable
|
|
785
|
+
>
|
|
786
|
+
<i
|
|
787
|
+
slot="suffix"
|
|
788
|
+
class="el-input__icon el-icon-search"
|
|
789
|
+
@click="showEntityDialog = true"
|
|
790
|
+
></i>
|
|
791
|
+
</el-input>
|
|
792
|
+
</el-form-item>
|
|
793
|
+
</td>
|
|
794
|
+
</tr>
|
|
795
|
+
<tr>
|
|
796
|
+
<th>
|
|
797
|
+
<span class="t">
|
|
798
|
+
{{ $t1("关联字段") }}
|
|
799
|
+
</span>
|
|
800
|
+
</th>
|
|
801
|
+
<td>
|
|
802
|
+
<el-form-item label="">
|
|
803
|
+
<el-input
|
|
804
|
+
class="search-input"
|
|
805
|
+
max="200"
|
|
806
|
+
v-model="referenceKey"
|
|
807
|
+
@clear="referenceKey = null"
|
|
808
|
+
v-el-readonly
|
|
809
|
+
clearable
|
|
810
|
+
>
|
|
811
|
+
<i
|
|
812
|
+
slot="suffix"
|
|
813
|
+
class="el-input__icon el-icon-search"
|
|
814
|
+
@click="openEntityFieldDialog1"
|
|
815
|
+
></i>
|
|
816
|
+
</el-input>
|
|
817
|
+
</el-form-item>
|
|
818
|
+
</td>
|
|
819
|
+
</tr>
|
|
820
|
+
<tr>
|
|
821
|
+
<th>
|
|
822
|
+
<span class="t">
|
|
823
|
+
{{ $t1("显示字段") }}
|
|
824
|
+
</span>
|
|
825
|
+
</th>
|
|
826
|
+
<td>
|
|
827
|
+
<el-form-item label="">
|
|
828
|
+
<el-input
|
|
829
|
+
class="search-input"
|
|
830
|
+
max="200"
|
|
831
|
+
:value="referenceShowFields.join(',')"
|
|
832
|
+
@clear="referenceShowFields = []"
|
|
833
|
+
v-el-readonly
|
|
834
|
+
clearable
|
|
835
|
+
>
|
|
836
|
+
<i
|
|
837
|
+
slot="suffix"
|
|
838
|
+
class="el-input__icon el-icon-search"
|
|
839
|
+
@click="openEntityFieldDialog2"
|
|
840
|
+
></i>
|
|
841
|
+
</el-input>
|
|
842
|
+
</el-form-item>
|
|
843
|
+
</td>
|
|
844
|
+
</tr>
|
|
845
|
+
</tbody>
|
|
846
|
+
</table>
|
|
847
|
+
</div>
|
|
848
|
+
</el-form>
|
|
849
|
+
<span slot="footer" class="dialog-footer">
|
|
850
|
+
<el-button
|
|
851
|
+
type="primary"
|
|
852
|
+
plain
|
|
853
|
+
class="button-sty"
|
|
854
|
+
@click="showReferenceZdDialog = false"
|
|
855
|
+
>
|
|
856
|
+
<i class="el-icon-close el-icon"></i>
|
|
857
|
+
{{ $t1("取 消") }}
|
|
858
|
+
</el-button>
|
|
859
|
+
<el-button type="primary" @click="confirmReferenceZdDialog" class="button-sty">
|
|
860
|
+
<i class="el-icon-check el-icon"></i>
|
|
861
|
+
{{ $t1("确 定") }}
|
|
862
|
+
</el-button>
|
|
863
|
+
</span>
|
|
864
|
+
</el-dialog>
|
|
865
|
+
|
|
866
|
+
<szTaMbDialog
|
|
867
|
+
v-if="showEntityDialog"
|
|
868
|
+
:visiable.sync="showEntityDialog"
|
|
869
|
+
@confirm="confirmEntityDialog"
|
|
870
|
+
:multi="false"
|
|
871
|
+
/>
|
|
872
|
+
|
|
873
|
+
<zdDialog
|
|
874
|
+
v-if="showEntityFieldDialog1"
|
|
875
|
+
:visiable.sync="showEntityFieldDialog1"
|
|
876
|
+
@confirm="confirmEntityFieldDialog1"
|
|
877
|
+
:taBm="referenceEntity"
|
|
878
|
+
:rows="referenceKeyRows"
|
|
879
|
+
:multi="false"
|
|
880
|
+
/>
|
|
881
|
+
<zdDialog
|
|
882
|
+
v-if="showEntityFieldDialog2"
|
|
883
|
+
:visiable.sync="showEntityFieldDialog2"
|
|
884
|
+
@confirm="confirmEntityFieldDialog2"
|
|
885
|
+
:taBm="referenceEntity"
|
|
886
|
+
:rows="referenceShowRows"
|
|
887
|
+
:multi="true"
|
|
888
|
+
/>
|
|
889
|
+
<preformDialog
|
|
890
|
+
v-if="showPreformDialog"
|
|
891
|
+
:visiable.sync="showPreformDialog"
|
|
892
|
+
@confirm="confirmPreformDialog"
|
|
893
|
+
></preformDialog>
|
|
894
|
+
|
|
895
|
+
<szTaMbDialog
|
|
896
|
+
v-if="showTmDialog"
|
|
897
|
+
:visiable.sync="showTmDialog"
|
|
898
|
+
@confirm="confirmTmDialog"
|
|
899
|
+
:multi="false"
|
|
900
|
+
/>
|
|
901
|
+
|
|
902
|
+
<el-dialog
|
|
903
|
+
:title="$t1('引用数据库中数据表结构')"
|
|
904
|
+
:append-to-body="true"
|
|
905
|
+
:modal-append-to-body="true"
|
|
906
|
+
:close-on-click-modal="false"
|
|
907
|
+
v-if="showDtDialog"
|
|
908
|
+
:visible.sync="showDtDialog"
|
|
909
|
+
:modal="false"
|
|
910
|
+
custom-class="dialog-style list-dialog dialog-checkbox pd_8"
|
|
911
|
+
width="350px"
|
|
912
|
+
v-el-drag-dialog
|
|
913
|
+
>
|
|
914
|
+
<div class="cont">
|
|
915
|
+
<el-form
|
|
916
|
+
ref="editCategoryForm"
|
|
917
|
+
label-width="102px"
|
|
918
|
+
class="adSearchForm"
|
|
919
|
+
style="height: auto; width: auto"
|
|
920
|
+
>
|
|
921
|
+
<el-form-item :label="$t1('数据表')">
|
|
922
|
+
<el-input v-model="dbTable" clearable class="all-width" />
|
|
923
|
+
</el-form-item>
|
|
924
|
+
</el-form>
|
|
925
|
+
</div>
|
|
926
|
+
<span slot="footer" class="dialog-footer">
|
|
927
|
+
<el-button type="primary" plain class="button-sty" @click="showDtDialog = false">
|
|
928
|
+
<i class="el-icon-close el-icon"></i>
|
|
929
|
+
{{ $t2("取 消", "system.button.cancel2") }}
|
|
930
|
+
</el-button>
|
|
931
|
+
<el-button type="primary" @click="confirmDtDialog" class="button-sty">
|
|
932
|
+
<i class="el-icon-check el-icon"></i>
|
|
933
|
+
{{ $t1("确定") }}
|
|
934
|
+
</el-button>
|
|
935
|
+
</span>
|
|
936
|
+
</el-dialog>
|
|
937
|
+
|
|
938
|
+
<otherAuthDialog
|
|
939
|
+
v-if="showOtherAuthDialog"
|
|
940
|
+
:visiable.sync="showOtherAuthDialog"
|
|
941
|
+
:sid="sid"
|
|
942
|
+
@confirm="confirmOtherAuthDialog"
|
|
943
|
+
></otherAuthDialog>
|
|
944
|
+
|
|
945
|
+
<!--begin-->
|
|
946
|
+
<el-dialog
|
|
947
|
+
:title="$t1('数据值对应表字段')"
|
|
948
|
+
v-if="showToTaBmZdDialog"
|
|
949
|
+
:visible.sync="showToTaBmZdDialog"
|
|
950
|
+
:modal-append-to-body="false"
|
|
951
|
+
:close-on-click-modal="false"
|
|
952
|
+
:modal="false"
|
|
953
|
+
custom-class="dialog-style wf-dialog"
|
|
954
|
+
v-el-drag-dialog
|
|
955
|
+
v-el-dialog-center
|
|
956
|
+
>
|
|
957
|
+
<el-form>
|
|
958
|
+
<div id="containt">
|
|
959
|
+
<table class="table-detail">
|
|
960
|
+
<tbody>
|
|
961
|
+
<tr>
|
|
962
|
+
<th>
|
|
963
|
+
<span class="t">
|
|
964
|
+
{{ $t1("对应表") }}
|
|
965
|
+
</span>
|
|
966
|
+
</th>
|
|
967
|
+
<td>
|
|
968
|
+
<el-form-item label="">
|
|
969
|
+
<el-input
|
|
970
|
+
class="search-input"
|
|
971
|
+
max="200"
|
|
972
|
+
v-model="toTaBmZdEntity"
|
|
973
|
+
@clear="toTaBmZdField = null"
|
|
974
|
+
v-el-readonly
|
|
975
|
+
clearable
|
|
976
|
+
>
|
|
977
|
+
<i
|
|
978
|
+
slot="suffix"
|
|
979
|
+
class="el-input__icon el-icon-search"
|
|
980
|
+
@click="showEntityDialog3 = true"
|
|
981
|
+
></i>
|
|
982
|
+
</el-input>
|
|
983
|
+
</el-form-item>
|
|
984
|
+
</td>
|
|
985
|
+
</tr>
|
|
986
|
+
<tr>
|
|
987
|
+
<th>
|
|
988
|
+
<span class="t">
|
|
989
|
+
{{ $t1("对应表字段") }}
|
|
990
|
+
</span>
|
|
991
|
+
</th>
|
|
992
|
+
<td>
|
|
993
|
+
<el-form-item label="">
|
|
994
|
+
<el-input
|
|
995
|
+
class="search-input"
|
|
996
|
+
max="200"
|
|
997
|
+
v-model="toTaBmZdField"
|
|
998
|
+
@clear="toTaBmZdField = null"
|
|
999
|
+
v-el-readonly
|
|
1000
|
+
clearable
|
|
1001
|
+
>
|
|
1002
|
+
<i
|
|
1003
|
+
slot="suffix"
|
|
1004
|
+
class="el-input__icon el-icon-search"
|
|
1005
|
+
@click="openEntityFieldDialog3"
|
|
1006
|
+
></i>
|
|
1007
|
+
</el-input>
|
|
1008
|
+
</el-form-item>
|
|
1009
|
+
</td>
|
|
1010
|
+
</tr>
|
|
1011
|
+
</tbody>
|
|
1012
|
+
</table>
|
|
1013
|
+
</div>
|
|
1014
|
+
</el-form>
|
|
1015
|
+
<span slot="footer" class="dialog-footer">
|
|
1016
|
+
<el-button
|
|
1017
|
+
type="primary"
|
|
1018
|
+
plain
|
|
1019
|
+
class="button-sty"
|
|
1020
|
+
@click="showToTaBmZdDialog = false"
|
|
1021
|
+
>
|
|
1022
|
+
<i class="el-icon-close el-icon"></i>
|
|
1023
|
+
{{ $t1("取 消") }}
|
|
1024
|
+
</el-button>
|
|
1025
|
+
<el-button type="primary" @click="confirmToTaBmZdDialog" class="button-sty">
|
|
1026
|
+
<i class="el-icon-check el-icon"></i>
|
|
1027
|
+
{{ $t1("确 定") }}
|
|
1028
|
+
</el-button>
|
|
1029
|
+
</span>
|
|
1030
|
+
</el-dialog>
|
|
1031
|
+
|
|
1032
|
+
<szTaMbDialog
|
|
1033
|
+
v-if="showEntityDialog3"
|
|
1034
|
+
:visiable.sync="showEntityDialog3"
|
|
1035
|
+
@confirm="confirmEntityDialog3"
|
|
1036
|
+
:multi="false"
|
|
1037
|
+
/>
|
|
1038
|
+
|
|
1039
|
+
<zdDialog
|
|
1040
|
+
v-if="showEntityFieldDialog3"
|
|
1041
|
+
:visiable.sync="showEntityFieldDialog3"
|
|
1042
|
+
@confirm="confirmEntityFieldDialog3"
|
|
1043
|
+
:taBm="toTaBmZdEntity"
|
|
1044
|
+
:rows="toTaBmZdFieldRows"
|
|
1045
|
+
:multi="false"
|
|
1046
|
+
/>
|
|
1047
|
+
<!--end-->
|
|
1048
|
+
</div>
|
|
1049
|
+
</template>
|
|
1050
|
+
|
|
1051
|
+
<script>
|
|
1052
|
+
import mixin from "./mixins/edit";
|
|
1053
|
+
import formVersionButton from "@base/views/bd/setting/formVersion/button.vue";
|
|
1054
|
+
import reverButton from "@base/views/bd/setting/formVersion/reverButton.vue";
|
|
1055
|
+
import fieldCompare from "@base/views/bd/setting/formVersion/fieldCompare.vue";
|
|
1056
|
+
export default {
|
|
1057
|
+
name: "szTaMbEdit",
|
|
1058
|
+
mixins: [mixin],
|
|
1059
|
+
components: {
|
|
1060
|
+
formVersionButton,
|
|
1061
|
+
reverButton,
|
|
1062
|
+
fieldCompare,
|
|
1063
|
+
},
|
|
1064
|
+
methods: {},
|
|
1065
|
+
};
|
|
1066
|
+
</script>
|