cloud-web-corejs-haier 1.0.43 → 1.0.45
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/content2.vue +604 -604
- package/src/components/wf/mixins/setCandidateDialog.js +228 -2
- package/src/components/wf/mixins/setCandidateDialog2.js +116 -101
- 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 +2325 -2209
- 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
|
@@ -5,28 +5,39 @@ import tableForm from "@base/components/table/tableForm.vue";
|
|
|
5
5
|
import projectTagDialog from "@base/views/user/project_tag/dialog.vue";
|
|
6
6
|
import MenuKindDialog from "@base/views/bd/setting/menu_kind/dialog.vue";
|
|
7
7
|
import editView from "@base/views/bd/setting/form_script/edit1.vue";
|
|
8
|
-
import {treeScollx} from "@base/utils/global";
|
|
9
|
-
import {getBdFlag} from "@base/api/user";
|
|
10
|
-
import {
|
|
8
|
+
import { treeScollx } from "@base/utils/global";
|
|
9
|
+
import { getBdFlag } from "@base/api/user";
|
|
10
|
+
import {
|
|
11
|
+
getJsxEditLink,
|
|
12
|
+
getJsxStatus,
|
|
13
|
+
} from "@base/views/bd/setting/utils/index";
|
|
14
|
+
import formVersionButton from "@base/views/bd/setting/formVersion/link.vue";
|
|
15
|
+
import settingConfig from "@/settings";
|
|
11
16
|
|
|
12
17
|
let modules = {};
|
|
13
18
|
modules = {
|
|
14
|
-
name:
|
|
19
|
+
name: "form_script:list1",
|
|
15
20
|
components: {
|
|
16
21
|
projectTagView,
|
|
17
|
-
projectTagAddButton,
|
|
22
|
+
projectTagAddButton,
|
|
23
|
+
projectTagDeleteButton,
|
|
24
|
+
tableForm,
|
|
25
|
+
projectTagDialog,
|
|
26
|
+
MenuKindDialog,
|
|
27
|
+
editView,
|
|
28
|
+
formVersionButton,
|
|
18
29
|
},
|
|
19
30
|
data() {
|
|
20
31
|
return {
|
|
21
|
-
activeName:
|
|
32
|
+
activeName: "second",
|
|
22
33
|
dataId: 0,
|
|
23
34
|
showEdit: false,
|
|
24
35
|
vxeOption: {},
|
|
25
36
|
formData: {},
|
|
26
37
|
defaultProps: {
|
|
27
|
-
label:
|
|
38
|
+
label: "name", //这里是树结构中需显示的数据(即接口返回的需展示在页面上的参数)
|
|
28
39
|
children: [],
|
|
29
|
-
isLeaf:
|
|
40
|
+
isLeaf: "leaf",
|
|
30
41
|
},
|
|
31
42
|
currentFormType: {},
|
|
32
43
|
addProjectTagOption: {
|
|
@@ -35,17 +46,17 @@ modules = {
|
|
|
35
46
|
return this.$refs["table-m1"].getCheckboxRecords(true);
|
|
36
47
|
},
|
|
37
48
|
reqData: (tagDatas, tableDatas) => {
|
|
38
|
-
let sids = tableDatas.map(item => item.sid);
|
|
39
|
-
let tagCodes = tagDatas.map(item => item.tagCode);
|
|
49
|
+
let sids = tableDatas.map((item) => item.sid);
|
|
50
|
+
let tagCodes = tagDatas.map((item) => item.tagCode);
|
|
40
51
|
let reqData = {
|
|
41
52
|
tagCodes,
|
|
42
|
-
sids
|
|
53
|
+
sids,
|
|
43
54
|
};
|
|
44
55
|
return reqData;
|
|
45
56
|
},
|
|
46
57
|
callback: () => {
|
|
47
|
-
this.searchEvent()
|
|
48
|
-
}
|
|
58
|
+
this.searchEvent();
|
|
59
|
+
},
|
|
49
60
|
},
|
|
50
61
|
deleteProjectTagOption: {
|
|
51
62
|
url: USER_PREFIX + `/formScript/deleteTag`,
|
|
@@ -53,61 +64,67 @@ modules = {
|
|
|
53
64
|
return this.$refs["table-m1"].getCheckboxRecords(true);
|
|
54
65
|
},
|
|
55
66
|
reqData: (tagDatas, tableDatas) => {
|
|
56
|
-
let sids = tableDatas.map(item => item.sid);
|
|
57
|
-
let tagCodes = tagDatas.map(item => item.tagCode);
|
|
67
|
+
let sids = tableDatas.map((item) => item.sid);
|
|
68
|
+
let tagCodes = tagDatas.map((item) => item.tagCode);
|
|
58
69
|
let reqData = {
|
|
59
70
|
tagCodes,
|
|
60
|
-
sids
|
|
71
|
+
sids,
|
|
61
72
|
};
|
|
62
73
|
return reqData;
|
|
63
74
|
},
|
|
64
75
|
callback: () => {
|
|
65
|
-
this.searchEvent()
|
|
66
|
-
}
|
|
76
|
+
this.searchEvent();
|
|
77
|
+
},
|
|
67
78
|
},
|
|
68
79
|
showProjectTagDialog3: false,
|
|
69
80
|
checkTags: [],
|
|
70
81
|
isDev: true,
|
|
71
82
|
menuKindAuth: {},
|
|
72
|
-
showTree: false
|
|
83
|
+
showTree: false,
|
|
73
84
|
};
|
|
74
85
|
},
|
|
75
86
|
computed: {
|
|
76
87
|
currentMenuKindId() {
|
|
77
|
-
return this.currentFormType?.id || null
|
|
88
|
+
return this.currentFormType?.id || null;
|
|
78
89
|
},
|
|
79
90
|
currentMenuKindName() {
|
|
80
|
-
return this.currentFormType?.name || null
|
|
91
|
+
return this.currentFormType?.name || null;
|
|
81
92
|
},
|
|
82
93
|
otherFlag() {
|
|
83
|
-
return this.currentFormType?.menuKindCode
|
|
84
|
-
}
|
|
85
|
-
|
|
94
|
+
return this.currentFormType?.menuKindCode === "other";
|
|
95
|
+
},
|
|
96
|
+
exportArchiveEnabled() {
|
|
97
|
+
return settingConfig.exportArchiveEnabled === true;
|
|
98
|
+
},
|
|
99
|
+
operationColumnWidth() {
|
|
100
|
+
const btnWidth = 47;
|
|
101
|
+
return this.exportArchiveEnabled ? btnWidth * 2 : btnWidth;
|
|
102
|
+
},
|
|
86
103
|
},
|
|
87
104
|
mounted() {
|
|
88
|
-
treeScollx({target: this, type:
|
|
105
|
+
treeScollx({ target: this, type: "default" });
|
|
89
106
|
this.getBdEnv();
|
|
90
107
|
this.initTableList();
|
|
91
108
|
},
|
|
92
109
|
methods: {
|
|
93
110
|
searchEvent() {
|
|
94
|
-
this.$refs[
|
|
111
|
+
this.$refs["table-m1"].commitProxy("reload");
|
|
95
112
|
},
|
|
96
113
|
resetEvent() {
|
|
97
114
|
this.formData = {};
|
|
98
115
|
this.checkTags = [];
|
|
99
|
-
this.$refs[
|
|
116
|
+
this.$refs["table-m1"].commitProxy("reload");
|
|
100
117
|
},
|
|
101
118
|
openEditDialog(row) {
|
|
102
|
-
/*this.dataId = !id || typeof id
|
|
119
|
+
/*this.dataId = !id || typeof id === 'object' ? 0 : id;
|
|
103
120
|
this.activeName = 'first';
|
|
104
121
|
this.$openEditView('showEdit');*/
|
|
105
122
|
|
|
106
123
|
let dataId = row?.id || 0;
|
|
107
124
|
if (!dataId) {
|
|
108
125
|
this.dataId = dataId;
|
|
109
|
-
this.activeName =
|
|
110
|
-
this.$openEditView(
|
|
126
|
+
this.activeName = "first";
|
|
127
|
+
this.$openEditView("showEdit");
|
|
111
128
|
} else {
|
|
112
129
|
this.$refs.xTabs.openEditTab(row);
|
|
113
130
|
}
|
|
@@ -115,27 +132,30 @@ modules = {
|
|
|
115
132
|
getSearchParam() {
|
|
116
133
|
let tagCodes = null;
|
|
117
134
|
if (this.checkTags.length) {
|
|
118
|
-
tagCodes = this.checkTags.map(item => item.tagCode);
|
|
135
|
+
tagCodes = this.checkTags.map((item) => item.tagCode);
|
|
119
136
|
}
|
|
120
|
-
let currentFormType = this.currentFormType || {}
|
|
121
|
-
let menuKindCode =
|
|
137
|
+
let currentFormType = this.currentFormType || {};
|
|
138
|
+
let menuKindCode =
|
|
139
|
+
currentFormType.menuKindCode && !this.otherFlag
|
|
140
|
+
? currentFormType.menuKindCode
|
|
141
|
+
: null;
|
|
122
142
|
return {
|
|
123
143
|
...this.formData,
|
|
124
144
|
tagCodes,
|
|
125
145
|
menuKindCode,
|
|
126
|
-
scriptType: 1
|
|
146
|
+
scriptType: 1,
|
|
127
147
|
};
|
|
128
148
|
},
|
|
129
149
|
initTableList() {
|
|
130
150
|
let that = this;
|
|
131
151
|
let tableOption = {
|
|
132
152
|
vue: this,
|
|
133
|
-
tableRef:
|
|
134
|
-
tableName:
|
|
153
|
+
tableRef: "table-m1",
|
|
154
|
+
tableName: "bd_form_script_list1-m1",
|
|
135
155
|
path: () => {
|
|
136
|
-
let url = USER_PREFIX +
|
|
156
|
+
let url = USER_PREFIX + "/formScript/listPage";
|
|
137
157
|
if (this.otherFlag) {
|
|
138
|
-
url = USER_PREFIX +
|
|
158
|
+
url = USER_PREFIX + "/formScript/listOtherPage";
|
|
139
159
|
}
|
|
140
160
|
return url;
|
|
141
161
|
},
|
|
@@ -143,59 +163,75 @@ modules = {
|
|
|
143
163
|
return this.getSearchParam();
|
|
144
164
|
},
|
|
145
165
|
columns: [
|
|
146
|
-
{type:
|
|
166
|
+
{ type: "checkbox", width: 48, resizable: false, fixed: "left" },
|
|
147
167
|
{
|
|
148
|
-
title: this.$t1(
|
|
149
|
-
field:
|
|
168
|
+
title: this.$t1("脚本名称"),
|
|
169
|
+
field: "scriptName",
|
|
150
170
|
width: 180,
|
|
151
|
-
fixed:
|
|
171
|
+
fixed: "left",
|
|
172
|
+
slots: {
|
|
173
|
+
default: ({ row }) => {
|
|
174
|
+
return getJsxEditLink({
|
|
175
|
+
content: row.scriptName,
|
|
176
|
+
onclick: () => {
|
|
177
|
+
this.openEditDialog(row);
|
|
178
|
+
},
|
|
179
|
+
});
|
|
180
|
+
},
|
|
181
|
+
},
|
|
152
182
|
},
|
|
153
183
|
{
|
|
154
|
-
title: this.$t1(
|
|
155
|
-
|
|
184
|
+
title: this.$t1("项目标签"),
|
|
185
|
+
field: "tag",
|
|
186
|
+
width: 250,
|
|
187
|
+
slots: { default: "tag" },
|
|
188
|
+
params: {
|
|
189
|
+
exportVal: ({ row }) => {
|
|
156
190
|
if (row.formScriptTagDTOs) {
|
|
157
|
-
return row.formScriptTagDTOs
|
|
191
|
+
return row.formScriptTagDTOs
|
|
192
|
+
.map((item) => item.tagName)
|
|
193
|
+
.join(",");
|
|
158
194
|
}
|
|
159
|
-
}
|
|
160
|
-
}
|
|
195
|
+
},
|
|
196
|
+
},
|
|
161
197
|
},
|
|
162
198
|
{
|
|
163
|
-
title: this.$t1(
|
|
164
|
-
field:
|
|
165
|
-
width: 180
|
|
199
|
+
title: this.$t1("脚本编码"),
|
|
200
|
+
field: "scriptCode",
|
|
201
|
+
width: 180,
|
|
166
202
|
},
|
|
167
|
-
{title: this.$t1(
|
|
203
|
+
{ title: this.$t1("表单分类"), field: "menuKindName", width: 150 },
|
|
168
204
|
{
|
|
169
|
-
title: this.$t1(
|
|
170
|
-
field:
|
|
171
|
-
width: 150
|
|
205
|
+
title: this.$t1("表单模板编码"),
|
|
206
|
+
field: "formCode",
|
|
207
|
+
width: 150,
|
|
172
208
|
},
|
|
173
209
|
{
|
|
174
|
-
title: this.$t1(
|
|
175
|
-
field:
|
|
210
|
+
title: this.$t1("Url路径"),
|
|
211
|
+
field: "url",
|
|
176
212
|
width: 200,
|
|
177
213
|
slots: {
|
|
178
|
-
default: ({row}) => {
|
|
214
|
+
default: ({ row }) => {
|
|
179
215
|
return `/${row.formCode}/${row.scriptCode}`;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
216
|
+
},
|
|
217
|
+
},
|
|
182
218
|
},
|
|
183
219
|
{
|
|
184
|
-
title: this.$t1(
|
|
185
|
-
field:
|
|
186
|
-
width: 250
|
|
220
|
+
title: this.$t1("脚本说明"),
|
|
221
|
+
field: "scriptRemark",
|
|
222
|
+
width: 250,
|
|
187
223
|
},
|
|
188
224
|
{
|
|
189
|
-
title: this.$t1(
|
|
190
|
-
field:
|
|
191
|
-
width: 250
|
|
225
|
+
title: this.$t1("自定义URL"),
|
|
226
|
+
field: "uri",
|
|
227
|
+
width: 250,
|
|
192
228
|
},
|
|
193
229
|
{
|
|
194
230
|
title: this.$t1("是否启用"),
|
|
195
231
|
field: "enabled",
|
|
196
232
|
width: 150,
|
|
197
233
|
slots: {
|
|
198
|
-
default: ({row}) => {
|
|
234
|
+
default: ({ row }) => {
|
|
199
235
|
if (row.enabled) {
|
|
200
236
|
return getJsxStatus(null, this.$t1("启用"));
|
|
201
237
|
} else {
|
|
@@ -205,143 +241,185 @@ modules = {
|
|
|
205
241
|
},
|
|
206
242
|
},
|
|
207
243
|
{
|
|
208
|
-
field:
|
|
209
|
-
title: this.$t1(
|
|
244
|
+
field: "transactions",
|
|
245
|
+
title: this.$t1("开启事务"),
|
|
210
246
|
width: 150,
|
|
211
247
|
slots: {
|
|
212
|
-
default: ({row}) => {
|
|
213
|
-
if (row.transactions
|
|
214
|
-
return getJsxStatus(null, this.$t1(
|
|
248
|
+
default: ({ row }) => {
|
|
249
|
+
if (row.transactions === 1) {
|
|
250
|
+
return getJsxStatus(null, this.$t1("是"));
|
|
215
251
|
} else {
|
|
216
|
-
return getJsxStatus(
|
|
252
|
+
return getJsxStatus("s-3", this.$t1("否"));
|
|
217
253
|
}
|
|
218
|
-
}
|
|
219
|
-
}
|
|
254
|
+
},
|
|
255
|
+
},
|
|
220
256
|
},
|
|
221
|
-
{field:
|
|
257
|
+
{ field: "serviceName", title: this.$t1("服务名"), width: 150 },
|
|
258
|
+
{ field: "version", title: this.$t1("版本号"), width: 150 },
|
|
222
259
|
{
|
|
223
|
-
field:
|
|
224
|
-
title: this.$t1(
|
|
225
|
-
width: 280
|
|
260
|
+
field: "sid",
|
|
261
|
+
title: this.$t1("唯一标识"),
|
|
262
|
+
width: 280,
|
|
226
263
|
},
|
|
227
264
|
{
|
|
228
|
-
field:
|
|
229
|
-
title: this.$t1(
|
|
230
|
-
width: 150
|
|
265
|
+
field: "createBy",
|
|
266
|
+
title: this.$t1("创建人"),
|
|
267
|
+
width: 150,
|
|
231
268
|
},
|
|
232
269
|
{
|
|
233
|
-
field:
|
|
234
|
-
title: this.$t1(
|
|
235
|
-
width: 150
|
|
270
|
+
field: "createDate",
|
|
271
|
+
title: this.$t1("创建时间"),
|
|
272
|
+
width: 150,
|
|
236
273
|
},
|
|
237
274
|
{
|
|
238
|
-
field:
|
|
239
|
-
title: this.$t1(
|
|
240
|
-
width: 150
|
|
275
|
+
field: "modifyBy",
|
|
276
|
+
title: this.$t1("更新人"),
|
|
277
|
+
width: 150,
|
|
241
278
|
},
|
|
242
279
|
{
|
|
243
|
-
field:
|
|
244
|
-
title: this.$t1(
|
|
245
|
-
width: 150
|
|
280
|
+
field: "modifyDate",
|
|
281
|
+
title: this.$t1("更新时间"),
|
|
282
|
+
width: 150,
|
|
246
283
|
},
|
|
247
284
|
{
|
|
248
|
-
width:
|
|
249
|
-
fixed:
|
|
250
|
-
title:
|
|
285
|
+
width: this.operationColumnWidth,
|
|
286
|
+
fixed: "right",
|
|
287
|
+
title: "",
|
|
251
288
|
sortable: false,
|
|
252
289
|
slots: {
|
|
253
|
-
default:
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
content: this.$t1('查看'),
|
|
257
|
-
onclick: () => {
|
|
258
|
-
this.openEditDialog(row);
|
|
259
|
-
}
|
|
260
|
-
});
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
}
|
|
290
|
+
default: "operation",
|
|
291
|
+
},
|
|
292
|
+
},
|
|
264
293
|
],
|
|
265
294
|
searchColumns: [
|
|
266
295
|
{
|
|
267
|
-
title: this.$t1(
|
|
296
|
+
title: this.$t1("表单分类"),
|
|
268
297
|
field: "menuKindName",
|
|
269
298
|
type: "input",
|
|
270
299
|
common: true,
|
|
271
300
|
disabled: true,
|
|
272
301
|
defaultValueEnabled: false,
|
|
273
|
-
slot: "menuKindName"
|
|
302
|
+
slot: "menuKindName",
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
title: this.$t1("脚本名称"),
|
|
306
|
+
field: "scriptName",
|
|
307
|
+
type: "input",
|
|
308
|
+
common: true,
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
title: this.$t1("脚本编码"),
|
|
312
|
+
field: "scriptCode",
|
|
313
|
+
type: "input",
|
|
314
|
+
common: true,
|
|
274
315
|
},
|
|
275
|
-
{title: this.$t1('脚本名称'), field: "scriptName", type: "input", common: true},
|
|
276
|
-
{title: this.$t1('脚本编码'), field: "scriptCode", type: "input", common: true},
|
|
277
316
|
{
|
|
278
317
|
title: this.$t1("是否启用"),
|
|
279
318
|
field: "enabled",
|
|
280
319
|
type: "select",
|
|
281
320
|
common: true,
|
|
282
321
|
itemOption: [
|
|
283
|
-
{label: this.$t1("启用"), value: true},
|
|
284
|
-
{label: this.$t1("禁用"), value: false},
|
|
322
|
+
{ label: this.$t1("启用"), value: true },
|
|
323
|
+
{ label: this.$t1("禁用"), value: false },
|
|
285
324
|
],
|
|
286
325
|
},
|
|
287
|
-
{title: this.$t1('脚本说明'), field: "scriptRemark", type: "input", common: true},
|
|
288
|
-
{title: this.$t1('脚本'), field: "script", type: "input", common: true},
|
|
289
|
-
{title: this.$t1('表单模板编码'), field: "formCode", type: "input", common: true},
|
|
290
|
-
{title: this.$t1('项目标签'), field: "tag", type: "input", common: true, slot: "tag"},
|
|
291
|
-
{title: this.$t1('创建人'), field: "createBy", type: "input", common: false},
|
|
292
|
-
{title: this.$t1('更新人'), field: "modifyBy", type: "input", common: false},
|
|
293
326
|
{
|
|
294
|
-
title: this.$t1(
|
|
327
|
+
title: this.$t1("脚本说明"),
|
|
328
|
+
field: "scriptRemark",
|
|
329
|
+
type: "input",
|
|
330
|
+
common: true,
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
title: this.$t1("脚本"),
|
|
334
|
+
field: "script",
|
|
335
|
+
type: "input",
|
|
336
|
+
common: true,
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
title: this.$t1("表单模板编码"),
|
|
340
|
+
field: "formCode",
|
|
341
|
+
type: "input",
|
|
342
|
+
common: true,
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
title: this.$t1("项目标签"),
|
|
346
|
+
field: "tag",
|
|
347
|
+
type: "input",
|
|
348
|
+
common: true,
|
|
349
|
+
slot: "tag",
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
title: this.$t1("创建人"),
|
|
353
|
+
field: "createBy",
|
|
354
|
+
type: "input",
|
|
355
|
+
common: false,
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
title: this.$t1("更新人"),
|
|
359
|
+
field: "modifyBy",
|
|
360
|
+
type: "input",
|
|
361
|
+
common: false,
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
title: this.$t1("操作日志"),
|
|
365
|
+
field: "logContent",
|
|
366
|
+
type: "input",
|
|
367
|
+
common: false,
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
title: this.$t1("创建时间"),
|
|
295
371
|
field: "startCreateDate",
|
|
296
372
|
field2: "endCreateDate",
|
|
297
373
|
type: "dateRange",
|
|
298
374
|
common: false,
|
|
299
375
|
widgetType: "datetime",
|
|
300
|
-
valueFormat: "yyyy-MM-dd HH:mm:ss"
|
|
376
|
+
valueFormat: "yyyy-MM-dd HH:mm:ss",
|
|
301
377
|
},
|
|
302
378
|
{
|
|
303
|
-
title: this.$t1(
|
|
379
|
+
title: this.$t1("更新时间"),
|
|
304
380
|
field: "startModifyDate",
|
|
305
381
|
field2: "endModifyDate",
|
|
306
382
|
type: "dateRange",
|
|
307
383
|
common: false,
|
|
308
384
|
widgetType: "datetime",
|
|
309
|
-
valueFormat: "yyyy-MM-dd HH:mm:ss"
|
|
310
|
-
}
|
|
385
|
+
valueFormat: "yyyy-MM-dd HH:mm:ss",
|
|
386
|
+
},
|
|
311
387
|
],
|
|
312
388
|
config: {
|
|
313
389
|
proxyConfig: {
|
|
314
|
-
autoLoad: false
|
|
315
|
-
}
|
|
390
|
+
autoLoad: false,
|
|
391
|
+
},
|
|
316
392
|
},
|
|
317
393
|
};
|
|
318
|
-
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
|
394
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
|
|
319
395
|
this.vxeOption = opts;
|
|
320
396
|
this.showTree = true;
|
|
321
397
|
});
|
|
322
398
|
},
|
|
323
399
|
handleNodeClick(data, node, v) {
|
|
324
|
-
this.handleNodeData(node)
|
|
400
|
+
this.handleNodeData(node);
|
|
325
401
|
this.$forceUpdate();
|
|
326
402
|
this.searchEvent();
|
|
327
403
|
},
|
|
328
404
|
// 异步树叶子节点懒加载逻辑
|
|
329
405
|
loadNode(node, resolve) {
|
|
330
|
-
let id = node && node.data && node.data.id ? node.data.id ||
|
|
331
|
-
let param = {enabled: true};
|
|
332
|
-
let url = !id
|
|
406
|
+
let id = node && node.data && node.data.id ? node.data.id || "" : 0;
|
|
407
|
+
let param = { enabled: true };
|
|
408
|
+
let url = !id
|
|
409
|
+
? USER_PREFIX + "/menuKind/getAllList"
|
|
410
|
+
: USER_PREFIX + "/menuKind/getChildren";
|
|
333
411
|
this.$http({
|
|
334
412
|
aes: true,
|
|
335
413
|
url: url,
|
|
336
|
-
method:
|
|
414
|
+
method: "post",
|
|
337
415
|
data: {
|
|
338
416
|
parent: id,
|
|
339
417
|
enabled: true,
|
|
340
|
-
dataType: 3
|
|
418
|
+
dataType: 3,
|
|
341
419
|
},
|
|
342
|
-
success: res => {
|
|
420
|
+
success: (res) => {
|
|
343
421
|
let rows = res.objx || [];
|
|
344
|
-
rows.forEach(value => {
|
|
422
|
+
rows.forEach((value) => {
|
|
345
423
|
value.leaf = !value.hasChild;
|
|
346
424
|
});
|
|
347
425
|
if (node.level === 0) {
|
|
@@ -349,8 +427,8 @@ modules = {
|
|
|
349
427
|
id: "other",
|
|
350
428
|
menuKindCode: "other",
|
|
351
429
|
name: "其他分类",
|
|
352
|
-
leaf: true
|
|
353
|
-
})
|
|
430
|
+
leaf: true,
|
|
431
|
+
});
|
|
354
432
|
if (rows.length > 0) {
|
|
355
433
|
this.$nextTick(() => {
|
|
356
434
|
let firstNode = node.childNodes[0];
|
|
@@ -358,12 +436,12 @@ modules = {
|
|
|
358
436
|
firstNode.expand();
|
|
359
437
|
}
|
|
360
438
|
this.$refs.tree.setCurrentKey(firstNode.data);
|
|
361
|
-
this.handleNodeClick(firstNode.data, firstNode, this)
|
|
439
|
+
this.handleNodeClick(firstNode.data, firstNode, this);
|
|
362
440
|
});
|
|
363
441
|
}
|
|
364
442
|
}
|
|
365
443
|
resolve(rows);
|
|
366
|
-
}
|
|
444
|
+
},
|
|
367
445
|
});
|
|
368
446
|
},
|
|
369
447
|
handleNodeData(node) {
|
|
@@ -377,47 +455,58 @@ modules = {
|
|
|
377
455
|
this.checkTags = rows;
|
|
378
456
|
},
|
|
379
457
|
getTabNames() {
|
|
380
|
-
return this.checkTags.map(item => item.tagName).join(",");
|
|
458
|
+
return this.checkTags.map((item) => item.tagName).join(",");
|
|
381
459
|
},
|
|
382
460
|
jsonImport() {
|
|
383
461
|
this.$jsonImport({
|
|
384
|
-
saveUrl: USER_PREFIX +
|
|
462
|
+
saveUrl: USER_PREFIX + "/form_develop/importFormScript",
|
|
385
463
|
showResult: true,
|
|
386
464
|
resultColumns: [
|
|
387
465
|
{
|
|
388
|
-
title: this.$t1(
|
|
389
|
-
field:
|
|
466
|
+
title: this.$t1("脚本名称"),
|
|
467
|
+
field: "scriptName",
|
|
390
468
|
width: 180,
|
|
391
|
-
fixed:
|
|
469
|
+
fixed: "left",
|
|
392
470
|
},
|
|
393
471
|
{
|
|
394
|
-
title: this.$t1(
|
|
395
|
-
field:
|
|
396
|
-
width: 180
|
|
397
|
-
}
|
|
472
|
+
title: this.$t1("脚本编码"),
|
|
473
|
+
field: "scriptCode",
|
|
474
|
+
width: 180,
|
|
475
|
+
},
|
|
398
476
|
],
|
|
399
477
|
callback: () => {
|
|
400
478
|
this.searchEvent();
|
|
401
|
-
}
|
|
479
|
+
},
|
|
402
480
|
});
|
|
403
481
|
},
|
|
404
482
|
jsonExport() {
|
|
405
483
|
this.$jsonExport({
|
|
406
|
-
title:"逻辑脚本",
|
|
484
|
+
title: "逻辑脚本",
|
|
407
485
|
targetRef: "table-m1",
|
|
408
486
|
url: USER_PREFIX + "/form_develop/exportFormScript",
|
|
409
487
|
abcEnabled: true,
|
|
410
488
|
editAuth: this.currentFormType.editAuth,
|
|
411
|
-
selectTypeAuth: this.currentFormType.selectTypeAuth
|
|
412
|
-
})
|
|
489
|
+
selectTypeAuth: this.currentFormType.selectTypeAuth,
|
|
490
|
+
});
|
|
491
|
+
},
|
|
492
|
+
jsonExportArchive(row) {
|
|
493
|
+
this.$jsonExport({
|
|
494
|
+
title: "逻辑脚本",
|
|
495
|
+
data: [row.id],
|
|
496
|
+
url: USER_PREFIX + "/form_develop/exportFormScript",
|
|
497
|
+
plaintext: 1,
|
|
498
|
+
abcEnabled: true,
|
|
499
|
+
editAuth: this.currentFormType.editAuth,
|
|
500
|
+
selectTypeAuth: this.currentFormType.selectTypeAuth,
|
|
501
|
+
});
|
|
413
502
|
},
|
|
414
503
|
getBdEnv() {
|
|
415
504
|
getBdFlag({
|
|
416
|
-
success: res => {
|
|
417
|
-
this.isDev = res.objx
|
|
418
|
-
}
|
|
505
|
+
success: (res) => {
|
|
506
|
+
this.isDev = res.objx === 1;
|
|
507
|
+
},
|
|
419
508
|
});
|
|
420
|
-
}
|
|
421
|
-
}
|
|
509
|
+
},
|
|
510
|
+
},
|
|
422
511
|
};
|
|
423
|
-
export default modules
|
|
512
|
+
export default modules;
|