cloud-web-corejs-haier 1.0.43 → 1.0.44
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 +8 -6
- package/src/api/user.js +54 -46
- package/src/components/baseAlert/index.vue +57 -53
- package/src/components/baseInputExport/index.vue +3 -3
- package/src/components/baseTabs/mixins.js +12 -1
- package/src/components/errorMsg/index.vue +78 -78
- package/src/components/excelExport/button.vue +54 -45
- package/src/components/excelExport/exportFieldDialog.vue +3 -3
- package/src/components/excelExport/index.js +1 -43
- package/src/components/excelExport/index.vue +62 -34
- package/src/components/excelExport/mixins.js +74 -87
- package/src/components/excelImport/index.js +1 -62
- package/src/components/excelImport/mixins.js +1 -774
- package/src/components/fileLibrary/index.vue +113 -33
- package/src/components/fileLibrary/propertiesDialog.vue +6 -0
- package/src/components/hiprint/view/design/index.vue +139 -47
- package/src/components/hiprint/view/design/preview.vue +75 -52
- package/src/components/hiprint/view/json-view.vue +31 -31
- package/src/components/luckysheet/dialog.vue +159 -0
- package/src/components/luckysheet/export.js +595 -0
- package/src/components/luckysheet/fileUtils.js +147 -0
- package/src/components/luckysheet/index.js +69 -0
- package/src/components/luckysheet/templateJson.js +12078 -0
- package/src/components/luckysheet/view.vue +210 -0
- package/src/components/onlineTalk/index.vue +328 -6
- package/src/components/onlineTalk/talkUserDialog.vue +280 -0
- package/src/components/wf/addTaskUserdialog.vue +5 -5
- package/src/components/wf/content.vue +1244 -1169
- package/src/components/wf/mixins/setCandidateDialog.js +228 -2
- package/src/components/wf/mixins/setCandidateDialog2.js +115 -100
- package/src/components/wf/mixins/wfTaskUserRangeDialog.js +67 -1
- package/src/components/wf/setCandidateDialog.vue +5 -7
- package/src/components/wf/setCandidateDialog2.vue +14 -10
- package/src/components/wf/wf.js +527 -411
- package/src/components/wf/wfTaskUserRangeDialog.vue +1 -1
- package/src/components/wf/wfUtil.js +129 -91
- package/src/components/xform/form-designer/designer.js +1994 -9
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +10 -0
- package/src/components/xform/form-designer/form-widget/container-widget/detail-pane-widget.vue +3 -2
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +5 -1
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin - /345/211/257/346/234/254.js" +1639 -0
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1756 -2
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +1 -0
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-item-widget.vue +10 -1
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-widget.vue +170 -0
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1630 -1
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +153 -40
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +65 -46
- package/src/components/xform/form-designer/form-widget/field-widget/vue-page-widget.vue +231 -0
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +7 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/edit-tree-button-group-config-dialog.vue +281 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +659 -221
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/dropdownFlag-editor.vue +133 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +14 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vue-page/vue-page-editor.vue +48 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconClass-editor.vue +18 -17
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +26 -26
- package/src/components/xform/form-designer/setting-panel/property-editor/labelTooltip-editor.vue +67 -13
- package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +2 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/showViewButton-editor.vue +29 -0
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +8 -6
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +1 -0
- package/src/components/xform/form-render/container-item/data-table-mixin.js +20 -17
- package/src/components/xform/form-render/container-item/detail-item.vue +72 -48
- package/src/components/xform/form-render/container-item/sub-form-item.vue +10 -2
- package/src/components/xform/form-render/container-item/table2-item.vue +40 -10
- package/src/components/xform/form-render/indexMixin.js +3705 -1
- package/src/components/xform/icon-picker/icons.json +284 -0
- package/src/components/xform/icon-picker/index.vue +145 -0
- package/src/components/xform/lang/zh-CN.js +2 -1
- package/src/components/xform/mixins/defaultHandle.js +366 -2
- package/src/components/xform/utils/formula-util.js +3 -0
- package/src/components/xform/utils/sfc-generator.js +2 -2
- package/src/components/xform/utils/smart-vue-i18n/index.js +2 -1
- package/src/components/xform/utils/tableColumnHelper.js +54 -10
- package/src/components/xform/utils/util.js +1547 -1
- package/src/index.js +190 -211
- package/src/lang/locale/en/login.js +26 -19
- package/src/lang/locale/zh/login.js +25 -19
- package/src/layout/components/Sidebar/default.vue +252 -71
- package/src/layout/components/Sidebar/index.vue +6 -1
- package/src/layout/components/TagsView/index.vue +6 -0
- package/src/layout/components/langTool.vue +32 -29
- package/src/layout/defaultLayout.vue +16 -8
- package/src/layout/index.vue +5 -3
- package/src/permission.js +135 -1
- package/src/router/index.js +1 -4
- package/src/store/config/index.js +667 -1
- package/src/store/getters.js +2 -1
- package/src/store/modules/permission.js +332 -1
- package/src/store/modules/settings.js +26 -1
- package/src/store/modules/tagsView.js +190 -1
- package/src/store/modules/user.js +358 -1
- package/src/utils/aes.js +15 -1
- package/src/utils/auth.js +27 -1
- package/src/utils/componentDialog.js +217 -0
- package/src/utils/request.js +368 -1
- package/src/utils/vab.js +1256 -7
- package/src/views/bd/setting/bd_company_env/dialog.vue +174 -174
- package/src/views/bd/setting/bd_company_env/edit.vue +193 -193
- package/src/views/bd/setting/formVersion/button.vue +55 -0
- package/src/views/bd/setting/formVersion/compareBasicSection.vue +125 -0
- package/src/views/bd/setting/formVersion/compareCodeSection.vue +539 -0
- package/src/views/bd/setting/formVersion/compareContMixin.scss +65 -0
- package/src/views/bd/setting/formVersion/compareContent.vue +63 -0
- package/src/views/bd/setting/formVersion/compareDialog.vue +88 -0
- package/src/views/bd/setting/formVersion/compareMixin.js +93 -0
- package/src/views/bd/setting/formVersion/fieldCompare.vue +54 -0
- package/src/views/bd/setting/formVersion/formScriptCompareView.vue +94 -0
- package/src/views/bd/setting/formVersion/formTemplateCompareView.vue +74 -0
- package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +491 -0
- package/src/views/bd/setting/formVersion/link.vue +58 -0
- package/src/views/bd/setting/formVersion/preformDialog.vue +87 -0
- package/src/views/bd/setting/formVersion/reverButton.vue +82 -0
- package/src/views/bd/setting/formVersion/tableDetailDiff.js +99 -0
- package/src/views/bd/setting/formVersion/tableModelCompareView.vue +514 -0
- package/src/views/bd/setting/formVersion/textDiff.js +102 -0
- package/src/views/bd/setting/form_import_log/edit.vue +6 -3
- package/src/views/bd/setting/form_import_log/list.vue +5 -0
- package/src/views/bd/setting/form_script/edit.vue +196 -83
- package/src/views/bd/setting/form_script/edit1.vue +410 -220
- package/src/views/bd/setting/form_script/form_list.vue +19 -0
- package/src/views/bd/setting/form_script/list.vue +95 -21
- package/src/views/bd/setting/form_script/list1.vue +24 -0
- package/src/views/bd/setting/form_script/mixins/dialog.js +2 -2
- package/src/views/bd/setting/form_script/mixins/edit.js +265 -207
- package/src/views/bd/setting/form_script/mixins/edit1.js +259 -201
- package/src/views/bd/setting/form_script/mixins/form_list.js +322 -296
- package/src/views/bd/setting/form_script/mixins/list.js +163 -95
- package/src/views/bd/setting/form_script/mixins/list1.js +244 -155
- package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +1 -1
- package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +1 -1
- package/src/views/bd/setting/form_template/edit.vue +355 -205
- package/src/views/bd/setting/form_template/formDesignerDialog.vue +171 -0
- package/src/views/bd/setting/form_template/list.vue +49 -74
- package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +3 -3
- package/src/views/bd/setting/form_template/mixins/edit.js +51 -8
- package/src/views/bd/setting/form_template/mixins/itemList.js +1 -1
- package/src/views/bd/setting/form_template/mixins/list.js +114 -82
- package/src/views/bd/setting/form_template/mixins/list2.js +3 -3
- package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +1 -1
- package/src/views/bd/setting/form_template/mixins/wf_list.js +3 -7
- package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +254 -254
- package/src/views/bd/setting/form_template/wf_list.vue +161 -127
- package/src/views/bd/setting/request_async_setting/edit.vue +320 -320
- package/src/views/bd/setting/request_setting/edit.vue +300 -300
- package/src/views/bd/setting/request_setting/list.vue +15 -25
- package/src/views/bd/setting/table_model/edit.vue +702 -498
- package/src/views/bd/setting/table_model/list.vue +28 -0
- package/src/views/bd/setting/table_model/mixins/dialog.js +1 -1
- package/src/views/bd/setting/table_model/mixins/edit copy.js +903 -0
- package/src/views/bd/setting/table_model/mixins/edit.js +228 -121
- package/src/views/bd/setting/table_model/mixins/list.js +55 -20
- package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +1 -1
- package/src/views/bd/setting/table_model/mixins/zdDialog.js +50 -46
- package/src/views/bd/setting/utils/index.js +15 -0
- package/src/views/user/api_request/list.vue +203 -203
- package/src/views/user/bill_setting/list.vue +345 -345
- package/src/views/user/code_rules/list.vue +204 -204
- package/src/views/user/common_attribute/list.vue +378 -378
- package/src/views/user/common_script/list.vue +341 -341
- package/src/views/user/company_info/dialog.vue +80 -49
- package/src/views/user/country/list.vue +197 -197
- package/src/views/user/extend_datasource/dialog.vue +0 -3
- package/src/views/user/extend_datasource/edit.vue +1 -2
- package/src/views/user/extend_datasource/list.vue +221 -224
- package/src/views/user/fieldTranslation/editDialog.vue +1 -1
- package/src/views/user/fieldTranslation/list.vue +473 -473
- package/src/views/user/field_values_invisible/list.vue +207 -207
- package/src/views/user/file_type/list.vue +271 -271
- package/src/views/user/file_view_area/list.vue +331 -331
- package/src/views/user/form/vform/designer.vue +303 -287
- package/src/views/user/form/vform/formFieldMapping.js +2 -3
- package/src/views/user/form/view/edit.vue +19 -1
- package/src/views/user/form/view/list.vue +59 -17
- package/src/views/user/groups/list.vue +158 -158
- package/src/views/user/home/default.vue +274 -182
- package/src/views/user/home/default2.vue +1148 -0
- package/src/views/user/home/index.vue +2 -1
- package/src/views/user/lang_tag/list.vue +170 -170
- package/src/views/user/language_setting/list.vue +208 -208
- package/src/views/user/ledger_library/list.vue +12 -10
- package/src/views/user/login/default.vue +1 -1
- package/src/views/user/login/indexMixin.js +204 -169
- package/src/views/user/menu/list.vue +575 -575
- package/src/views/user/notify_message/dialog.vue +7 -1
- package/src/views/user/notify_template/list.vue +192 -192
- package/src/views/user/notify_template/list2.vue +190 -190
- package/src/views/user/position/list.vue +188 -188
- package/src/views/user/project_tag/list.vue +175 -175
- package/src/views/user/push_setting/list.vue +236 -236
- package/src/views/user/request_setting/list.vue +248 -248
- package/src/views/user/role/list.vue +182 -182
- package/src/views/user/system_notice/infoDialog.vue +61 -2
- package/src/views/user/system_notice/list.vue +203 -203
- package/src/views/user/system_parameter/list.vue +141 -141
- package/src/views/user/user/edit.vue +45 -0
- package/src/views/user/user/form_list.vue +245 -245
- package/src/views/user/user/info.vue +253 -140
- package/src/views/user/user_log_classify/list.vue +197 -197
- package/src/views/user/wf/iframe/index.vue +46 -46
- package/src/views/user/wf/wfReport/index.vue +1 -1
- package/src/views/user/wf/wf_auto_submit_data/list.vue +659 -659
- package/src/views/user/wf/wf_diy_attribute/edit.vue +1 -1
- package/src/views/user/wf/wf_manage/list.vue +795 -795
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +106 -106
- package/src/views/user/wf/wf_obj_config/dialog.vue +2 -2
- package/src/views/user/wf/wf_obj_config/edit.vue +1 -1
- package/src/views/user/wf/wf_obj_config/edit_form.vue +2 -2
- package/src/views/user/wf/wf_obj_config/itemEdit.vue +1 -1
- package/src/views/user/wf/wf_obj_config/itemEdit_form.vue +1 -1
- package/src/views/user/wf/wf_obj_config/itemOperateDialog.vue +4 -4
- package/src/views/user/wf/wf_obj_config/list.vue +28 -28
- package/src/views/user/wf/wf_obj_config/list_form.vue +5 -5
- package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +292 -292
- package/src/views/user/wf/wf_param/edit.vue +1 -1
- package/src/views/user/wf/wf_transfer_setting/edit.vue +1 -1
- package/src/views/user/wf/wf_transfer_setting/list.vue +321 -319
- package/src/views/user/wf/wf_work_calendar/components/calendar.vue +369 -367
- package/src/views/user/wf/wf_work_calendar/components/calendar2.vue +401 -399
- package/src/views/user/wf/wf_work_calendar/configDialog.vue +6 -6
- package/src/views/user/wf/wf_work_calendar/date.js +84 -83
- package/src/views/user/wf/wf_work_calendar/list.vue +6 -6
- package/src/views/user/workbench_menu/list.vue +555 -0
|
@@ -7,7 +7,10 @@ import MenuKindDialog from "@base/views/bd/setting/menu_kind/dialog.vue";
|
|
|
7
7
|
import projectTagDialog from "@base/views/user/project_tag/dialog.vue";
|
|
8
8
|
import {treeScollx} from "@base/utils/global";
|
|
9
9
|
import {getBdFlag} from "@base/api/user";
|
|
10
|
-
import {
|
|
10
|
+
import {getJsxEditLink, getJsxStatus} from "@base/views/bd/setting/utils";
|
|
11
|
+
import { mapGetters } from "vuex";
|
|
12
|
+
import formVersionButton from "@base/views/bd/setting/formVersion/link.vue";
|
|
13
|
+
import settingConfig from "@/settings";
|
|
11
14
|
|
|
12
15
|
let modules = {};
|
|
13
16
|
modules = {
|
|
@@ -18,7 +21,8 @@ modules = {
|
|
|
18
21
|
tableForm,
|
|
19
22
|
editView,
|
|
20
23
|
MenuKindDialog,
|
|
21
|
-
projectTagDialog
|
|
24
|
+
projectTagDialog,
|
|
25
|
+
formVersionButton
|
|
22
26
|
},
|
|
23
27
|
created() {
|
|
24
28
|
},
|
|
@@ -95,8 +99,18 @@ modules = {
|
|
|
95
99
|
return this.currentFormType?.name || null
|
|
96
100
|
},
|
|
97
101
|
otherFlag() {
|
|
98
|
-
return this.currentFormType?.menuKindCode
|
|
99
|
-
}
|
|
102
|
+
return this.currentFormType?.menuKindCode === "other"
|
|
103
|
+
},
|
|
104
|
+
...mapGetters([
|
|
105
|
+
"userFlag",
|
|
106
|
+
]),
|
|
107
|
+
exportArchiveEnabled() {
|
|
108
|
+
return settingConfig.exportArchiveEnabled === true;
|
|
109
|
+
},
|
|
110
|
+
operationColumnWidth() {
|
|
111
|
+
const btnWidth = 47;
|
|
112
|
+
return this.exportArchiveEnabled ? btnWidth * 2 : btnWidth;
|
|
113
|
+
},
|
|
100
114
|
},
|
|
101
115
|
methods: {
|
|
102
116
|
searchEvent() {
|
|
@@ -108,7 +122,7 @@ modules = {
|
|
|
108
122
|
this.$refs['table-m1'].commitProxy('reload');
|
|
109
123
|
},
|
|
110
124
|
openEditDialog(row) {
|
|
111
|
-
/*this.dataId = !id || typeof id
|
|
125
|
+
/*this.dataId = !id || typeof id === 'object' ? 0 : id;
|
|
112
126
|
this.activeName = 'first';
|
|
113
127
|
this.$openEditView('showEdit');*/
|
|
114
128
|
|
|
@@ -151,7 +165,22 @@ modules = {
|
|
|
151
165
|
},
|
|
152
166
|
columns: [
|
|
153
167
|
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
|
154
|
-
{
|
|
168
|
+
{
|
|
169
|
+
title: this.$t1('实体名称'),
|
|
170
|
+
field: 'taEn',
|
|
171
|
+
width: 150,
|
|
172
|
+
fixed: 'left',
|
|
173
|
+
slots: {
|
|
174
|
+
default: ({row}) => {
|
|
175
|
+
return getJsxEditLink({
|
|
176
|
+
content: row.taEn,
|
|
177
|
+
onclick: () => {
|
|
178
|
+
this.openEditDialog(row);
|
|
179
|
+
},
|
|
180
|
+
});
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
},
|
|
155
184
|
{
|
|
156
185
|
title: this.$t1('项目标签'), field: 'tag', width: 250, slots: {default: "tag"}, params: {
|
|
157
186
|
exportVal: ({row}) => {
|
|
@@ -167,7 +196,7 @@ modules = {
|
|
|
167
196
|
title: this.$t1('表类型'), field: 'taType', width: 150,
|
|
168
197
|
slots: {
|
|
169
198
|
default: ({row}) => {
|
|
170
|
-
return row.taType
|
|
199
|
+
return row.taType === 0 ? this.$t1('主表') : this.$t1('明细表')
|
|
171
200
|
}
|
|
172
201
|
}
|
|
173
202
|
},
|
|
@@ -175,7 +204,7 @@ modules = {
|
|
|
175
204
|
title: this.$t1('是否树结构'), field: 'taRule', width: 150,
|
|
176
205
|
slots: {
|
|
177
206
|
default: ({row}) => {
|
|
178
|
-
return row.taRule
|
|
207
|
+
return row.taRule === 1 ? this.$t1('是') : this.$t1('否')
|
|
179
208
|
}
|
|
180
209
|
}
|
|
181
210
|
},
|
|
@@ -183,7 +212,7 @@ modules = {
|
|
|
183
212
|
title: this.$t1('数据范围'), field: 'dataRange', width: 150,
|
|
184
213
|
slots: {
|
|
185
214
|
default: ({row}) => {
|
|
186
|
-
return row.dataRange
|
|
215
|
+
return row.dataRange === 1 ? this.$t1('集团') : this.$t1('当前组织')
|
|
187
216
|
}
|
|
188
217
|
}
|
|
189
218
|
},
|
|
@@ -204,7 +233,9 @@ modules = {
|
|
|
204
233
|
},
|
|
205
234
|
{title: this.$t1('表编码'), field: 'taCode', width: 150},
|
|
206
235
|
{field: 'serviceName', title: this.$t1('服务名'), width: 150},
|
|
236
|
+
{field: 'version', title: this.$t1('版本号'), width: 150},
|
|
207
237
|
{title: this.$t1('唯一标识'), field: 'sid', width: 280},
|
|
238
|
+
// {field: 'sszstEn', title: this.$t1('所属主实体'), width: 150},
|
|
208
239
|
{
|
|
209
240
|
field: 'createBy',
|
|
210
241
|
title: this.$t1('创建人'),
|
|
@@ -226,20 +257,12 @@ modules = {
|
|
|
226
257
|
width: 150
|
|
227
258
|
},
|
|
228
259
|
{
|
|
229
|
-
width:
|
|
260
|
+
width: this.operationColumnWidth,
|
|
230
261
|
fixed: 'right',
|
|
231
262
|
title: '',
|
|
232
263
|
sortable: false,
|
|
233
264
|
slots: {
|
|
234
|
-
default:
|
|
235
|
-
return getJsxBtn({
|
|
236
|
-
iconName: "el-icon-edit",
|
|
237
|
-
content: this.$t1('查看'),
|
|
238
|
-
onclick: () => {
|
|
239
|
-
this.openEditDialog(row);
|
|
240
|
-
}
|
|
241
|
-
});
|
|
242
|
-
}
|
|
265
|
+
default: "operation"
|
|
243
266
|
}
|
|
244
267
|
}
|
|
245
268
|
],
|
|
@@ -269,6 +292,7 @@ modules = {
|
|
|
269
292
|
{title: this.$t1('项目标签'), field: "tag", type: "input", common: true, slot: "tag"},
|
|
270
293
|
{title: this.$t1('创建人'), field: "createBy", type: "input", common: false},
|
|
271
294
|
{title: this.$t1('更新人'), field: "modifyBy", type: "input", common: false},
|
|
295
|
+
{title: this.$t1('操作日志'), field: "logContent", type: "input", common: false},
|
|
272
296
|
{
|
|
273
297
|
title: this.$t1('创建时间'),
|
|
274
298
|
field: "startCreateDate",
|
|
@@ -428,10 +452,21 @@ modules = {
|
|
|
428
452
|
selectTypeAuth: this.currentFormType.selectTypeAuth
|
|
429
453
|
})
|
|
430
454
|
},
|
|
455
|
+
jsonExportArchive(row) {
|
|
456
|
+
this.$jsonExport({
|
|
457
|
+
title: "数据表",
|
|
458
|
+
data: [row.id],
|
|
459
|
+
url: USER_PREFIX + "/form_develop/exportSzTaMb",
|
|
460
|
+
plaintext: 1,
|
|
461
|
+
abcEnabled: true,
|
|
462
|
+
editAuth: this.currentFormType.editAuth,
|
|
463
|
+
selectTypeAuth: this.currentFormType.selectTypeAuth,
|
|
464
|
+
});
|
|
465
|
+
},
|
|
431
466
|
getBdEnv() {
|
|
432
467
|
getBdFlag({
|
|
433
468
|
success: res => {
|
|
434
|
-
this.isDev = res.objx
|
|
469
|
+
this.isDev = res.objx === 1
|
|
435
470
|
}
|
|
436
471
|
});
|
|
437
472
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {selectDialogMixins} from "@base/mixins/selectDialog";
|
|
1
|
+
import { selectDialogMixins } from "@base/mixins/selectDialog";
|
|
2
2
|
|
|
3
3
|
let modules = {};
|
|
4
4
|
modules = {
|
|
5
|
-
name:
|
|
6
|
-
props: [
|
|
5
|
+
name: "zdDialog",
|
|
6
|
+
props: ["visiable", "multi", "rows", "param", "taBm"],
|
|
7
7
|
mixins: [selectDialogMixins],
|
|
8
8
|
components: {},
|
|
9
9
|
created() {
|
|
@@ -20,7 +20,7 @@ modules = {
|
|
|
20
20
|
formData: {},
|
|
21
21
|
vxeOption: {},
|
|
22
22
|
showSaleOrgDialog: false,
|
|
23
|
-
fieldKey: "taZdMc"
|
|
23
|
+
fieldKey: "taZdMc",
|
|
24
24
|
};
|
|
25
25
|
},
|
|
26
26
|
methods: {
|
|
@@ -28,85 +28,89 @@ modules = {
|
|
|
28
28
|
let that = this;
|
|
29
29
|
|
|
30
30
|
let zdTypeMap = {
|
|
31
|
-
Boolean: this.$t1(
|
|
32
|
-
Integer: this.$t1(
|
|
33
|
-
Long: this.$t1(
|
|
34
|
-
Decimal: this.$t1(
|
|
35
|
-
Money: this.$t1(
|
|
36
|
-
Text: this.$t1(
|
|
37
|
-
TextArea: this.$t1(
|
|
38
|
-
DateTime: this.$t1(
|
|
39
|
-
Reference: this.$t1(
|
|
40
|
-
|
|
31
|
+
Boolean: this.$t1("布尔"),
|
|
32
|
+
Integer: this.$t1("整数"),
|
|
33
|
+
Long: this.$t1("长整数"),
|
|
34
|
+
Decimal: this.$t1("精度小数"),
|
|
35
|
+
Money: this.$t1("金额"),
|
|
36
|
+
Text: this.$t1("文本"),
|
|
37
|
+
TextArea: this.$t1("长文本"),
|
|
38
|
+
DateTime: this.$t1("日期时间"),
|
|
39
|
+
Reference: this.$t1("关联表(文本)"),
|
|
40
|
+
ReferenceLong: this.$t1("关联表(长整型)"),
|
|
41
|
+
};
|
|
41
42
|
|
|
42
43
|
let tableOption = {
|
|
43
44
|
vue: that,
|
|
44
|
-
tableRef:
|
|
45
|
-
tableName:
|
|
46
|
-
path: USER_PREFIX +
|
|
45
|
+
tableRef: "table-m1",
|
|
46
|
+
tableName: "bd_table_model_field_dialog-m1",
|
|
47
|
+
path: USER_PREFIX + "/szTaMb/getSzTaZdMbsByTaBm",
|
|
47
48
|
param: () => {
|
|
48
49
|
return {
|
|
49
50
|
taBm: this.taBm,
|
|
50
51
|
enabled: true,
|
|
51
52
|
searchDb: true,
|
|
52
53
|
...this.formData,
|
|
53
|
-
...this.param
|
|
54
|
+
...this.param,
|
|
54
55
|
};
|
|
55
56
|
},
|
|
56
57
|
columns: [
|
|
57
|
-
{type:
|
|
58
|
+
{ type: "checkbox", width: 48, resizable: false, fixed: "left" },
|
|
58
59
|
{
|
|
59
|
-
title: this.$t1(
|
|
60
|
-
field:
|
|
61
|
-
width: 150
|
|
60
|
+
title: this.$t1("实体字段名称"),
|
|
61
|
+
field: "zdEn",
|
|
62
|
+
width: 150,
|
|
62
63
|
},
|
|
63
64
|
{
|
|
64
|
-
title: this.$t1(
|
|
65
|
-
field:
|
|
66
|
-
width: 150
|
|
65
|
+
title: this.$t1("数据库表字段名"),
|
|
66
|
+
field: "taZdMc",
|
|
67
|
+
width: 150,
|
|
67
68
|
},
|
|
68
69
|
{
|
|
69
|
-
title: this.$t1(
|
|
70
|
-
field:
|
|
71
|
-
width: 150
|
|
70
|
+
title: this.$t1("字段描述"),
|
|
71
|
+
field: "zdCh",
|
|
72
|
+
width: 150,
|
|
72
73
|
},
|
|
73
74
|
{
|
|
74
|
-
title: this.$t1(
|
|
75
|
-
|
|
75
|
+
title: this.$t1("字段类型"),
|
|
76
|
+
field: "zdType",
|
|
77
|
+
width: 150,
|
|
78
|
+
slots: {
|
|
79
|
+
default: ({ row, rowIndex, $table }) => {
|
|
76
80
|
return zdTypeMap[row.zdType];
|
|
77
|
-
}
|
|
78
|
-
}
|
|
81
|
+
},
|
|
82
|
+
},
|
|
79
83
|
},
|
|
80
84
|
{
|
|
81
|
-
title: this.$t1(
|
|
82
|
-
field:
|
|
83
|
-
width: 150
|
|
85
|
+
title: this.$t1("关联字段"),
|
|
86
|
+
field: "referenceZd",
|
|
87
|
+
width: 150,
|
|
84
88
|
},
|
|
85
89
|
{
|
|
86
90
|
width: 47,
|
|
87
|
-
fixed:
|
|
88
|
-
title:
|
|
89
|
-
sortable: false
|
|
90
|
-
}
|
|
91
|
+
fixed: "right",
|
|
92
|
+
title: "",
|
|
93
|
+
sortable: false,
|
|
94
|
+
},
|
|
91
95
|
],
|
|
92
96
|
config: {
|
|
93
97
|
checkboxConfig: {
|
|
94
98
|
checkStrictly: true,
|
|
95
99
|
showHeader: this.selectMulti,
|
|
96
|
-
trigger:
|
|
100
|
+
trigger: "row",
|
|
97
101
|
},
|
|
98
102
|
proxyConfig: {
|
|
99
103
|
props: {
|
|
100
104
|
result: "objx", // 配置响应结果列表字段
|
|
101
105
|
total: "objx.length", // 配置响应结果总页数字段
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
},
|
|
105
109
|
};
|
|
106
|
-
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
|
110
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
|
|
107
111
|
that.vxeOption = opts;
|
|
108
112
|
});
|
|
109
113
|
},
|
|
110
|
-
}
|
|
114
|
+
},
|
|
111
115
|
};
|
|
112
|
-
export default modules
|
|
116
|
+
export default modules;
|
|
@@ -48,6 +48,21 @@ export function getJsxLink({content, onclick}) {
|
|
|
48
48
|
}, content)]
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
export function getJsxEditLink({content, onclick}) {
|
|
52
|
+
let h = window.$vueRoot.$createElement;
|
|
53
|
+
return [h("a", {
|
|
54
|
+
staticClass: "a-link",
|
|
55
|
+
on: {
|
|
56
|
+
click: (event) => {
|
|
57
|
+
onclick && onclick(event);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}, [
|
|
61
|
+
h("i", {staticClass: "el-icon-edit"}),
|
|
62
|
+
h("span", {}, content)
|
|
63
|
+
])]
|
|
64
|
+
}
|
|
65
|
+
|
|
51
66
|
export function getJsxBtnList(list) {
|
|
52
67
|
let arr = [];
|
|
53
68
|
list.forEach(item => {
|