cloud-web-corejs-haier 1.0.42 → 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 +9 -7
- 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
|
@@ -9,16 +9,17 @@ import scriptDescriptionDialog from "@base/components/scriptDescription/dialog.v
|
|
|
9
9
|
import ftHistoryDialog from "@base/views/bd/setting/form_template/ftHistoryDialog.vue";
|
|
10
10
|
import itemList from "@base/views/bd/setting/form_template/itemList.vue";
|
|
11
11
|
import formTypeEditDialog from "@base/views/user/form/form_type/editDialog.vue";
|
|
12
|
-
import formScriptList from "@base/views/bd/setting/form_script/form_list.vue";
|
|
13
12
|
import projectTagDialog from "@base/views/user/project_tag/dialog.vue";
|
|
14
|
-
import {treeScollx} from "@base/utils/global";
|
|
13
|
+
import { treeScollx } from "@base/utils/global";
|
|
15
14
|
import indexUtil from "@base/utils";
|
|
16
|
-
import {getBdFlag} from "@base/api/user";
|
|
17
|
-
import designer from "@base/views/user/form/vform/designer.vue";
|
|
15
|
+
import { getBdFlag } from "@base/api/user";
|
|
18
16
|
import {
|
|
19
17
|
getJsxBtnList,
|
|
18
|
+
getJsxEditLink,
|
|
20
19
|
getJsxStatus,
|
|
21
20
|
} from "@base/views/bd/setting/utils/index";
|
|
21
|
+
import formVersionButton from "@base/views/bd/setting/formVersion/link.vue";
|
|
22
|
+
import settingConfig from "@/settings";
|
|
22
23
|
|
|
23
24
|
let modules = {};
|
|
24
25
|
modules = {
|
|
@@ -35,9 +36,10 @@ modules = {
|
|
|
35
36
|
ftHistoryDialog,
|
|
36
37
|
itemList,
|
|
37
38
|
formTypeEditDialog,
|
|
38
|
-
formScriptList,
|
|
39
39
|
projectTagDialog,
|
|
40
|
-
|
|
40
|
+
formDesignerDialog: () =>
|
|
41
|
+
import("@base/views/bd/setting/form_template/formDesignerDialog.vue"),
|
|
42
|
+
formVersionButton,
|
|
41
43
|
},
|
|
42
44
|
data() {
|
|
43
45
|
return {
|
|
@@ -139,7 +141,7 @@ modules = {
|
|
|
139
141
|
isDev: true,
|
|
140
142
|
menuKindAuth: {},
|
|
141
143
|
showTree: false,
|
|
142
|
-
designerReadonly: false
|
|
144
|
+
designerReadonly: false,
|
|
143
145
|
};
|
|
144
146
|
},
|
|
145
147
|
computed: {
|
|
@@ -150,18 +152,25 @@ modules = {
|
|
|
150
152
|
return this.currentFormType?.name || null;
|
|
151
153
|
},
|
|
152
154
|
otherFlag() {
|
|
153
|
-
return this.currentFormType?.menuKindCode
|
|
154
|
-
}
|
|
155
|
+
return this.currentFormType?.menuKindCode === "other";
|
|
156
|
+
},
|
|
157
|
+
exportArchiveEnabled() {
|
|
158
|
+
return settingConfig.exportArchiveEnabled === true;
|
|
159
|
+
},
|
|
160
|
+
operationColumnWidth() {
|
|
161
|
+
const btnWidth = 47;
|
|
162
|
+
return this.exportArchiveEnabled ? btnWidth * 3 : btnWidth * 2;
|
|
163
|
+
},
|
|
155
164
|
},
|
|
156
165
|
watch: {
|
|
157
166
|
formDesTabs(val) {
|
|
158
|
-
if (this.showFormScriptList
|
|
167
|
+
if (this.showFormScriptList === false && val === "second") {
|
|
159
168
|
this.showFormScriptList = true;
|
|
160
169
|
}
|
|
161
170
|
},
|
|
162
171
|
},
|
|
163
172
|
mounted() {
|
|
164
|
-
treeScollx({target: this, type: "default"});
|
|
173
|
+
treeScollx({ target: this, type: "default" });
|
|
165
174
|
this.getBdEnv();
|
|
166
175
|
this.initTableList();
|
|
167
176
|
this.initWfWinParam();
|
|
@@ -177,7 +186,7 @@ modules = {
|
|
|
177
186
|
},
|
|
178
187
|
openEditDialog(row) {
|
|
179
188
|
let formCode = row?.formCode || null;
|
|
180
|
-
/*this.dataId = !id || typeof id
|
|
189
|
+
/*this.dataId = !id || typeof id === 'object' ? 0 : id;
|
|
181
190
|
this.activeName = 'first';
|
|
182
191
|
this.showItemEdit = false;
|
|
183
192
|
this.$openEditView('showEdit');*/
|
|
@@ -195,7 +204,7 @@ modules = {
|
|
|
195
204
|
} else {
|
|
196
205
|
this.getOtherMenuKindAuth(row, (editAuth) => {
|
|
197
206
|
this.openDesingerDialog(row, null, !editAuth);
|
|
198
|
-
})
|
|
207
|
+
});
|
|
199
208
|
}
|
|
200
209
|
},
|
|
201
210
|
getOtherMenuKindAuth(row, callback) {
|
|
@@ -204,11 +213,11 @@ modules = {
|
|
|
204
213
|
aes: true,
|
|
205
214
|
url: USER_PREFIX + "/form_template_auth/getAuth",
|
|
206
215
|
method: `post`,
|
|
207
|
-
data: {stringOne: row.sid},
|
|
216
|
+
data: { stringOne: row.sid },
|
|
208
217
|
isLoading: true,
|
|
209
218
|
success: (res) => {
|
|
210
219
|
let menuKindAuth = res.objx || {};
|
|
211
|
-
callback(!!menuKindAuth.editAuth)
|
|
220
|
+
callback(!!menuKindAuth.editAuth);
|
|
212
221
|
},
|
|
213
222
|
});
|
|
214
223
|
}
|
|
@@ -219,11 +228,11 @@ modules = {
|
|
|
219
228
|
this.currentFormTemplate = row;
|
|
220
229
|
this.isFullscreen = false;
|
|
221
230
|
|
|
222
|
-
this.designerReadonly = readonly
|
|
231
|
+
this.designerReadonly = readonly;
|
|
223
232
|
this.showDesingerDialog = true;
|
|
224
233
|
this.designerSaveCallback = callback ?? null;
|
|
225
234
|
},
|
|
226
|
-
openDesingerDialogByChild({row, readonly, callback}) {
|
|
235
|
+
openDesingerDialogByChild({ row, readonly, callback }) {
|
|
227
236
|
this.openDesingerDialog(row, callback, readonly);
|
|
228
237
|
},
|
|
229
238
|
reflushTemplateList() {
|
|
@@ -259,8 +268,11 @@ modules = {
|
|
|
259
268
|
if (this.checkTags.length) {
|
|
260
269
|
tagCodes = this.checkTags.map((item) => item.tagCode);
|
|
261
270
|
}
|
|
262
|
-
let currentFormType = this.currentFormType || {}
|
|
263
|
-
let menuKindCode =
|
|
271
|
+
let currentFormType = this.currentFormType || {};
|
|
272
|
+
let menuKindCode =
|
|
273
|
+
currentFormType.menuKindCode && !this.otherFlag
|
|
274
|
+
? currentFormType.menuKindCode
|
|
275
|
+
: null;
|
|
264
276
|
return {
|
|
265
277
|
...this.formData,
|
|
266
278
|
tagCodes,
|
|
@@ -275,9 +287,9 @@ modules = {
|
|
|
275
287
|
tableRef: "table-m1",
|
|
276
288
|
tableName: "bd_form_template_list-m1",
|
|
277
289
|
path: () => {
|
|
278
|
-
let url = USER_PREFIX +
|
|
290
|
+
let url = USER_PREFIX + "/formTemplate/listPage";
|
|
279
291
|
if (this.otherFlag) {
|
|
280
|
-
url = USER_PREFIX +
|
|
292
|
+
url = USER_PREFIX + "/formTemplate/listOtherPage";
|
|
281
293
|
}
|
|
282
294
|
return url;
|
|
283
295
|
},
|
|
@@ -285,20 +297,30 @@ modules = {
|
|
|
285
297
|
return this.getSearchParam();
|
|
286
298
|
},
|
|
287
299
|
columns: [
|
|
288
|
-
{type: "checkbox", width: 48, resizable: false, fixed: "left"},
|
|
300
|
+
{ type: "checkbox", width: 48, resizable: false, fixed: "left" },
|
|
289
301
|
{
|
|
290
302
|
title: this.$t1("模板名称"),
|
|
291
303
|
field: "formName",
|
|
292
304
|
width: 150,
|
|
293
305
|
fixed: "left",
|
|
306
|
+
slots: {
|
|
307
|
+
default: ({ row }) => {
|
|
308
|
+
return getJsxEditLink({
|
|
309
|
+
content: row.formName,
|
|
310
|
+
onclick: () => {
|
|
311
|
+
this.openEditDialog(row);
|
|
312
|
+
},
|
|
313
|
+
});
|
|
314
|
+
},
|
|
315
|
+
},
|
|
294
316
|
},
|
|
295
317
|
{
|
|
296
318
|
title: this.$t1("项目标签"),
|
|
297
319
|
field: "tag",
|
|
298
320
|
width: 250,
|
|
299
|
-
slots: {default: "tag"},
|
|
321
|
+
slots: { default: "tag" },
|
|
300
322
|
params: {
|
|
301
|
-
exportVal: ({row}) => {
|
|
323
|
+
exportVal: ({ row }) => {
|
|
302
324
|
if (row.formTemplateTagDTOs) {
|
|
303
325
|
return row.formTemplateTagDTOs
|
|
304
326
|
.map((item) => item.tagName)
|
|
@@ -312,11 +334,6 @@ modules = {
|
|
|
312
334
|
field: "formCode",
|
|
313
335
|
width: 150,
|
|
314
336
|
},
|
|
315
|
-
{
|
|
316
|
-
title: this.$t1("模板版本"),
|
|
317
|
-
field: "formVersion",
|
|
318
|
-
width: 150,
|
|
319
|
-
},
|
|
320
337
|
{
|
|
321
338
|
title: this.$t1("表单分类"),
|
|
322
339
|
field: "menuKindName",
|
|
@@ -327,7 +344,7 @@ modules = {
|
|
|
327
344
|
field: "enabled",
|
|
328
345
|
width: 150,
|
|
329
346
|
slots: {
|
|
330
|
-
default: ({row}) => {
|
|
347
|
+
default: ({ row }) => {
|
|
331
348
|
if (row.enabled) {
|
|
332
349
|
return getJsxStatus(null, this.$t1("启用"));
|
|
333
350
|
} else {
|
|
@@ -341,7 +358,7 @@ modules = {
|
|
|
341
358
|
field: "hasWf",
|
|
342
359
|
width: 150,
|
|
343
360
|
slots: {
|
|
344
|
-
default: ({row}) => {
|
|
361
|
+
default: ({ row }) => {
|
|
345
362
|
if (row.hasWf) {
|
|
346
363
|
return getJsxStatus(null, this.$t1("是"));
|
|
347
364
|
} else {
|
|
@@ -365,52 +382,40 @@ modules = {
|
|
|
365
382
|
field: "remark",
|
|
366
383
|
width: 150,
|
|
367
384
|
},
|
|
368
|
-
{field: "serviceName", title: this.$t1("服务名"), width: 150},
|
|
369
|
-
{title: this.$t1("唯一标识"), field: "sid", width: 280},
|
|
385
|
+
{ field: "serviceName", title: this.$t1("服务名"), width: 150 },
|
|
370
386
|
{
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
width: 150
|
|
387
|
+
title: this.$t1("版本号"),
|
|
388
|
+
field: "version",
|
|
389
|
+
width: 150,
|
|
374
390
|
},
|
|
391
|
+
{ title: this.$t1("唯一标识"), field: "sid", width: 280 },
|
|
375
392
|
{
|
|
376
|
-
field:
|
|
377
|
-
title: this.$t1(
|
|
378
|
-
width: 150
|
|
393
|
+
field: "createBy",
|
|
394
|
+
title: this.$t1("创建人"),
|
|
395
|
+
width: 150,
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
field: "createDate",
|
|
399
|
+
title: this.$t1("创建时间"),
|
|
400
|
+
width: 150,
|
|
379
401
|
},
|
|
380
402
|
{
|
|
381
|
-
field:
|
|
382
|
-
title: this.$t1(
|
|
383
|
-
width: 150
|
|
403
|
+
field: "modifyBy",
|
|
404
|
+
title: this.$t1("更新人"),
|
|
405
|
+
width: 150,
|
|
384
406
|
},
|
|
385
407
|
{
|
|
386
|
-
field:
|
|
387
|
-
title: this.$t1(
|
|
388
|
-
width: 150
|
|
408
|
+
field: "modifyDate",
|
|
409
|
+
title: this.$t1("更新时间"),
|
|
410
|
+
width: 150,
|
|
389
411
|
},
|
|
390
412
|
{
|
|
391
|
-
width:
|
|
413
|
+
width: this.operationColumnWidth,
|
|
392
414
|
fixed: "right",
|
|
393
415
|
title: "",
|
|
394
416
|
sortable: false,
|
|
395
417
|
slots: {
|
|
396
|
-
default:
|
|
397
|
-
return getJsxBtnList([
|
|
398
|
-
{
|
|
399
|
-
iconName: "el-icon-edit",
|
|
400
|
-
content: this.$t1("查看"),
|
|
401
|
-
onclick: () => {
|
|
402
|
-
this.openEditDialog(row);
|
|
403
|
-
},
|
|
404
|
-
},
|
|
405
|
-
{
|
|
406
|
-
iconName: "iconfont icon-liuchengguanli-shejiqi_liucheng",
|
|
407
|
-
content: this.$t1("表单设计"),
|
|
408
|
-
onclick: () => {
|
|
409
|
-
this.openDesingerDialogByAuth(row);
|
|
410
|
-
},
|
|
411
|
-
},
|
|
412
|
-
]);
|
|
413
|
-
},
|
|
418
|
+
default: "operation",
|
|
414
419
|
},
|
|
415
420
|
},
|
|
416
421
|
],
|
|
@@ -442,8 +447,8 @@ modules = {
|
|
|
442
447
|
type: "select",
|
|
443
448
|
common: true,
|
|
444
449
|
itemOption: [
|
|
445
|
-
{label: this.$t1("启用"), value: true},
|
|
446
|
-
{label: this.$t1("禁用"), value: false},
|
|
450
|
+
{ label: this.$t1("启用"), value: true },
|
|
451
|
+
{ label: this.$t1("禁用"), value: false },
|
|
447
452
|
],
|
|
448
453
|
},
|
|
449
454
|
{
|
|
@@ -459,26 +464,42 @@ modules = {
|
|
|
459
464
|
type: "input",
|
|
460
465
|
common: false,
|
|
461
466
|
},
|
|
462
|
-
{title: this.$t1('创建人'), field: "createBy", type: "input", common: false},
|
|
463
|
-
{title: this.$t1('更新人'), field: "modifyBy", type: "input", common: false},
|
|
464
467
|
{
|
|
465
|
-
title: this.$t1(
|
|
468
|
+
title: this.$t1("创建人"),
|
|
469
|
+
field: "createBy",
|
|
470
|
+
type: "input",
|
|
471
|
+
common: false,
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
title: this.$t1("更新人"),
|
|
475
|
+
field: "modifyBy",
|
|
476
|
+
type: "input",
|
|
477
|
+
common: false,
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
title: this.$t1("操作日志"),
|
|
481
|
+
field: "logContent",
|
|
482
|
+
type: "input",
|
|
483
|
+
common: false,
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
title: this.$t1("创建时间"),
|
|
466
487
|
field: "startCreateDate",
|
|
467
488
|
field2: "endCreateDate",
|
|
468
489
|
type: "dateRange",
|
|
469
490
|
common: false,
|
|
470
491
|
widgetType: "datetime",
|
|
471
|
-
valueFormat: "yyyy-MM-dd HH:mm:ss"
|
|
492
|
+
valueFormat: "yyyy-MM-dd HH:mm:ss",
|
|
472
493
|
},
|
|
473
494
|
{
|
|
474
|
-
title: this.$t1(
|
|
495
|
+
title: this.$t1("更新时间"),
|
|
475
496
|
field: "startModifyDate",
|
|
476
497
|
field2: "endModifyDate",
|
|
477
498
|
type: "dateRange",
|
|
478
499
|
common: false,
|
|
479
500
|
widgetType: "datetime",
|
|
480
|
-
valueFormat: "yyyy-MM-dd HH:mm:ss"
|
|
481
|
-
}
|
|
501
|
+
valueFormat: "yyyy-MM-dd HH:mm:ss",
|
|
502
|
+
},
|
|
482
503
|
],
|
|
483
504
|
config: {
|
|
484
505
|
proxyConfig: {
|
|
@@ -579,7 +600,7 @@ modules = {
|
|
|
579
600
|
// 异步树叶子节点懒加载逻辑
|
|
580
601
|
loadNode(node, resolve) {
|
|
581
602
|
let id = node && node.data && node.data.id ? node.data.id || "" : 0;
|
|
582
|
-
let param = {enabled: true};
|
|
603
|
+
let param = { enabled: true };
|
|
583
604
|
let url = !id
|
|
584
605
|
? USER_PREFIX + "/menuKind/getAllList"
|
|
585
606
|
: USER_PREFIX + "/menuKind/getChildren";
|
|
@@ -590,7 +611,7 @@ modules = {
|
|
|
590
611
|
data: {
|
|
591
612
|
parent: id,
|
|
592
613
|
enabled: true,
|
|
593
|
-
dataType: 2
|
|
614
|
+
dataType: 2,
|
|
594
615
|
},
|
|
595
616
|
success: (res) => {
|
|
596
617
|
let rows = res.objx || [];
|
|
@@ -602,8 +623,8 @@ modules = {
|
|
|
602
623
|
id: "other",
|
|
603
624
|
menuKindCode: "other",
|
|
604
625
|
name: "其他分类",
|
|
605
|
-
leaf: true
|
|
606
|
-
})
|
|
626
|
+
leaf: true,
|
|
627
|
+
});
|
|
607
628
|
if (rows.length > 0) {
|
|
608
629
|
this.$nextTick(() => {
|
|
609
630
|
let firstNode = node.childNodes[0];
|
|
@@ -641,15 +662,15 @@ modules = {
|
|
|
641
662
|
saveUrl: USER_PREFIX + "/form_develop/importFormTemplate",
|
|
642
663
|
showResult: true,
|
|
643
664
|
resultColumns: [
|
|
644
|
-
{title: this.$t1("模板名称"), field: "formName", width: 200},
|
|
645
|
-
{title: this.$t1("模板编码"), field: "formCode", width: 200},
|
|
665
|
+
{ title: this.$t1("模板名称"), field: "formName", width: 200 },
|
|
666
|
+
{ title: this.$t1("模板编码"), field: "formCode", width: 200 },
|
|
646
667
|
{
|
|
647
668
|
title: this.$t1("结果信息"),
|
|
648
669
|
field: "impReturnMsg",
|
|
649
670
|
width: 300,
|
|
650
671
|
showOverflow: false,
|
|
651
672
|
slots: {
|
|
652
|
-
default: ({row}, h) => {
|
|
673
|
+
default: ({ row }, h) => {
|
|
653
674
|
let impReturnMsg = row.impReturnMsg;
|
|
654
675
|
let items = impReturnMsg
|
|
655
676
|
.split(";")
|
|
@@ -659,7 +680,7 @@ modules = {
|
|
|
659
680
|
});
|
|
660
681
|
return h("div", {}, items);
|
|
661
682
|
},
|
|
662
|
-
}
|
|
683
|
+
},
|
|
663
684
|
},
|
|
664
685
|
],
|
|
665
686
|
callback: () => {
|
|
@@ -677,10 +698,21 @@ modules = {
|
|
|
677
698
|
selectTypeAuth: this.currentFormType.selectTypeAuth,
|
|
678
699
|
});
|
|
679
700
|
},
|
|
701
|
+
jsonExportArchive(row) {
|
|
702
|
+
this.$jsonExport({
|
|
703
|
+
title: "表单模板",
|
|
704
|
+
data: [row.id],
|
|
705
|
+
url: USER_PREFIX + "/form_develop/exportFormTemplate",
|
|
706
|
+
plaintext: 1,
|
|
707
|
+
abcEnabled: true,
|
|
708
|
+
editAuth: this.currentFormType.editAuth,
|
|
709
|
+
selectTypeAuth: this.currentFormType.selectTypeAuth,
|
|
710
|
+
});
|
|
711
|
+
},
|
|
680
712
|
getBdEnv() {
|
|
681
713
|
getBdFlag({
|
|
682
714
|
success: (res) => {
|
|
683
|
-
this.isDev = res.objx
|
|
715
|
+
this.isDev = res.objx === 1;
|
|
684
716
|
},
|
|
685
717
|
});
|
|
686
718
|
},
|
|
@@ -133,7 +133,7 @@ modules = {
|
|
|
133
133
|
},
|
|
134
134
|
watch: {
|
|
135
135
|
formDesTabs(val) {
|
|
136
|
-
if (this.showFormScriptList
|
|
136
|
+
if (this.showFormScriptList === false && val === 'second') {
|
|
137
137
|
this.showFormScriptList = true;
|
|
138
138
|
}
|
|
139
139
|
}
|
|
@@ -154,7 +154,7 @@ modules = {
|
|
|
154
154
|
},
|
|
155
155
|
openEditDialog(row) {
|
|
156
156
|
let formCode = row?.formCode || null;
|
|
157
|
-
/*this.dataId = !id || typeof id
|
|
157
|
+
/*this.dataId = !id || typeof id === 'object' ? 0 : id;
|
|
158
158
|
this.activeName = 'first';
|
|
159
159
|
this.showItemEdit = false;
|
|
160
160
|
this.$openEditView('showEdit');*/
|
|
@@ -395,7 +395,7 @@ modules = {
|
|
|
395
395
|
getBdEnv() {
|
|
396
396
|
getBdFlag({
|
|
397
397
|
success: res => {
|
|
398
|
-
this.isDev = res.objx
|
|
398
|
+
this.isDev = res.objx === 1
|
|
399
399
|
}
|
|
400
400
|
});
|
|
401
401
|
},
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import tableForm from "@base/components/table/tableForm.vue";
|
|
2
2
|
import editView from "@base/views/bd/setting/form_template/edit.vue";
|
|
3
3
|
import itemList from "@base/views/bd/setting/form_template/itemList.vue";
|
|
4
|
-
import formScriptList from "@base/views/bd/setting/form_script/form_list.vue";
|
|
5
4
|
import indexUtil from "@base/utils";
|
|
6
5
|
import {getBdFlag} from "@base/api/user";
|
|
7
|
-
import designer from "@base/views/user/form/vform/designer.vue";
|
|
8
6
|
import {getJsxBtnList, getJsxStatus} from "@base/views/bd/setting/utils/index";
|
|
9
7
|
|
|
10
8
|
let modules = {};
|
|
@@ -14,8 +12,6 @@ modules = {
|
|
|
14
12
|
tableForm,
|
|
15
13
|
editView,
|
|
16
14
|
itemList,
|
|
17
|
-
formScriptList,
|
|
18
|
-
designer
|
|
19
15
|
},
|
|
20
16
|
data() {
|
|
21
17
|
return {
|
|
@@ -140,7 +136,7 @@ modules = {
|
|
|
140
136
|
},
|
|
141
137
|
watch: {
|
|
142
138
|
formDesTabs(val) {
|
|
143
|
-
if (this.showFormScriptList
|
|
139
|
+
if (this.showFormScriptList === false && val === 'second') {
|
|
144
140
|
this.showFormScriptList = true;
|
|
145
141
|
}
|
|
146
142
|
}
|
|
@@ -161,7 +157,7 @@ modules = {
|
|
|
161
157
|
},
|
|
162
158
|
openEditDialog(row) {
|
|
163
159
|
let formCode = row?.formCode || null;
|
|
164
|
-
/*this.dataId = !id || typeof id
|
|
160
|
+
/*this.dataId = !id || typeof id === 'object' ? 0 : id;
|
|
165
161
|
this.activeName = 'first';
|
|
166
162
|
this.showItemEdit = false;
|
|
167
163
|
this.$openEditView('showEdit');*/
|
|
@@ -398,7 +394,7 @@ modules = {
|
|
|
398
394
|
getBdEnv() {
|
|
399
395
|
getBdFlag({
|
|
400
396
|
success: res => {
|
|
401
|
-
this.isDev = res.objx
|
|
397
|
+
this.isDev = res.objx === 1
|
|
402
398
|
}
|
|
403
399
|
});
|
|
404
400
|
},
|