cloud-web-corejs 1.0.54-dev.22 → 1.0.54-dev.221
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -3
- package/src/components/Qrcode/fileParse.vue +0 -1
- package/src/components/VabUpload/index.vue +2 -1
- package/src/components/VabUpload/mixins.js +1 -1
- package/src/components/VabUpload/view.vue +22 -6
- package/src/components/advancedSearchDialog/mixins.js +1 -1
- package/src/components/baseAttachment/index.vue +22 -13
- package/src/components/baseAttachment/mixins.js +1 -1
- package/src/components/excelExport/exportFieldDialog.vue +16 -6
- package/src/components/excelExport/index.js +2 -1
- package/src/components/excelExport/index.vue +8 -6
- package/src/components/excelExport/mixins.js +3 -2
- package/src/components/excelImport/mixins.js +1 -1
- package/src/components/fileLibrary/fileObjAuthDialog.vue +1 -1
- package/src/components/fileLibrary/fileObjAuthEditDialog.vue +7 -1
- package/src/components/fileLibrary/fileObjNotifyEdit.vue +90 -68
- package/src/components/fileLibrary/filterDialog.vue +383 -0
- package/src/components/fileLibrary/index.vue +23 -24
- package/src/components/fileLibrary/mixins/categoryMoveDialogMixins.js +1 -1
- package/src/components/fileLibrary/mixins/fileCategoryDialogMixins.js +1 -1
- package/src/components/fileLibrary/mixins/fileHistoryDialogMixins.js +2 -2
- package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +337 -207
- package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +33 -26
- package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +5 -5
- package/src/components/fileLibrary/mixins/indexMixins.js +77 -27
- package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +63 -3
- package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +1 -1
- package/src/components/fileLibrary/propertiesDialog.vue +18 -0
- package/src/components/fileLibrary/shareDialog.vue +1 -1
- package/src/components/jsonImport/index.js +1 -1
- package/src/components/jsonImport/mixins.js +1 -1
- package/src/components/onlineTalk/index.vue +327 -5
- package/src/components/onlineTalk/mixins.js +1 -1
- package/src/components/table/CellSlot.vue +1 -0
- package/src/components/table/index.js +12 -10
- package/src/components/table/tableForm.vue +99 -63
- package/src/components/table/tableFormMixin.js +1 -1
- package/src/components/table/util/index.js +328 -0
- package/src/components/table/vxeFilter/mixin.js +1 -1
- package/src/components/vb-tabs/x-tabs.vue +3 -2
- package/src/components/wf/content.vue +2 -0
- package/src/components/wf/setCandidateDialog.vue +1 -0
- package/src/components/wf/wf.js +3 -1
- package/src/components/wf/wfStartDialog.vue +1 -1
- package/src/components/wf/wfUtil.js +1 -1
- package/src/components/xform/form-designer/designer.js +1 -1
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +2 -1
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +16 -4
- package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +5 -1
- package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +37 -6
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +3 -1
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +26 -7
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +34 -5
- package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +14 -6
- package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +1 -0
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-item-widget.vue +77 -0
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-menu-widget.vue +106 -0
- package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +21 -16
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +200 -6
- package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +6 -8
- package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +81 -0
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +49 -8
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +61 -88
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +13 -0
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/vabsearch-mixin.js +176 -0
- package/src/components/xform/form-designer/form-widget/field-widget/multiSearch-widget.vue +53 -0
- package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +70 -3
- package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +13 -5
- package/src/components/xform/form-designer/form-widget/field-widget/search_button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +13 -3
- package/src/components/xform/form-designer/form-widget/field-widget/singerSearch-widget.vue +53 -0
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +3 -2
- package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +6 -1
- package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +46 -34
- package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/vabSearch-widget.vue +2 -170
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +88 -8
- package/src/components/xform/form-designer/indexMixin.js +1 -1
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +312 -56
- package/src/components/xform/form-designer/setting-panel/index.vue +4 -0
- package/src/components/xform/form-designer/setting-panel/indexMixin.js +1 -1
- package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +8 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/autoValueEnabled-editor.vue +38 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/censusClass-editor.vue +6 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/commonAttributeEnabled-editor.vue +41 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +126 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +1077 -1042
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/onCheckboxChange-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +1043 -496
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-offset-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-pull-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-push-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +0 -8
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin.js +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onAfterConfirmFile-editor.vue +32 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +48 -5
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultTime-editor.vue +27 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-item-editor.vue +21 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-menu-editor.vue +59 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +185 -69
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +188 -86
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +84 -39
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +26 -10
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +86 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-defaultValue-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +47 -28
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +26 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchName-editor.vue +13 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +30 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +46 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/formula-editor.vue +721 -466
- package/src/components/xform/form-designer/setting-panel/property-editor/limit-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/multiple-editor.vue +19 -14
- package/src/components/xform/form-designer/setting-panel/property-editor/multipleLimit-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/placeholder-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/precision-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +318 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue +22 -18
- package/src/components/xform/form-designer/setting-panel/property-editor/showRuleFlag-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +216 -17
- package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +216 -29
- package/src/components/xform/form-designer/setting-panel/property-editor/widgetShowRuleFlag-editor.vue +220 -0
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +11 -0
- package/src/components/xform/form-designer/toolbar-panel/index.vue +12 -11
- package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +1 -1
- package/src/components/xform/form-designer/widget-panel/index.vue +21 -1
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +3 -2
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +747 -355
- package/src/components/xform/form-render/container-item/containerItemMixin.js +1 -1
- package/src/components/xform/form-render/container-item/data-table-item.vue +45 -15
- package/src/components/xform/form-render/container-item/data-table-mixin.js +2361 -18
- package/src/components/xform/form-render/container-item/data-table-mixin2.js +2169 -0
- package/src/components/xform/form-render/container-item/detail-pane-item.vue +15 -2
- package/src/components/xform/form-render/container-item/grid-col-item.vue +10 -3
- package/src/components/xform/form-render/container-item/grid-item.vue +1 -1
- package/src/components/xform/form-render/container-item/list-h5-item.vue +1 -9
- package/src/components/xform/form-render/container-item/list-h5-item2.vue +1 -8
- package/src/components/xform/form-render/container-item/tab-item.vue +11 -6
- package/src/components/xform/form-render/container-item/table-cell-item.vue +38 -32
- package/src/components/xform/form-render/container-item/table-item.vue +4 -2
- package/src/components/xform/form-render/indexMixin.js +2429 -3
- package/src/components/xform/lang/zh-CN.js +14 -3
- package/src/components/xform/mixins/defaultHandle.js +1 -1
- package/src/components/xform/mixins/scriptHttp.js +182 -1
- package/src/components/xform/utils/emitter.js +4 -4
- package/src/components/xform/utils/format.js +21 -30
- package/src/components/xform/utils/formula-util.js +669 -0
- package/src/components/xform/utils/util.js +1 -1
- package/src/layout/components/AppMain.vue +5 -1
- package/src/layout/components/Sidebar/default.vue +50 -6
- package/src/layout/components/TagsView/index.vue +0 -1
- package/src/layout/components/extractedCode/createDialog.vue +92 -0
- package/src/layout/components/extractedCode/queryDialog.vue +96 -0
- package/src/layout/components/extractedCode/viewDialog.vue +192 -0
- package/src/layout/components/watermark/index.vue +83 -0
- package/src/mixins/selectDialog/index.js +1 -1
- package/src/mixins/tableTree/index.js +1 -1
- package/src/router/modules/customer.js +15 -0
- package/src/store/config/index.js +760 -1
- package/src/store/modules/permission.js +1 -1
- package/src/store/modules/settings.js +1 -1
- package/src/store/modules/user.js +1 -1
- package/src/utils/index.js +4 -2
- package/src/utils/pddLog.js +103 -0
- package/src/utils/request.js +28 -28
- package/src/utils/vab.js +19 -27
- package/src/views/bd/setting/bd_attach_setting/edit.vue +5 -5
- package/src/views/bd/setting/bd_attach_setting/list.vue +28 -55
- package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +4 -5
- package/src/views/bd/setting/bd_attach_setting/mixins/list.js +239 -1
- package/src/views/bd/setting/form_import_log/edit.vue +127 -0
- package/src/views/bd/setting/form_import_log/list.vue +205 -0
- package/src/views/bd/setting/form_script/edit1.vue +14 -3
- package/src/views/bd/setting/form_script/form_list.vue +1 -1
- package/src/views/bd/setting/form_script/mixins/edit.js +3 -1
- package/src/views/bd/setting/form_script/mixins/edit1.js +1 -1
- package/src/views/bd/setting/form_script/mixins/form_list.js +1 -1
- package/src/views/bd/setting/form_script/mixins/list.js +212 -1
- package/src/views/bd/setting/form_script/mixins/list1.js +381 -14
- package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +105 -0
- package/src/views/bd/setting/form_template/edit.vue +9 -1
- package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +2 -2
- package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +4 -0
- package/src/views/bd/setting/form_template/mixins/edit.js +1 -1
- package/src/views/bd/setting/form_template/mixins/list.js +645 -22
- package/src/views/bd/setting/form_template/mixins/wf_list.js +12 -0
- package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +254 -0
- package/src/views/bd/setting/form_template/wf_list.vue +127 -0
- package/src/views/bd/setting/menu_kind/list.vue +4 -0
- package/src/views/bd/setting/menu_kind/mixins/list.js +201 -1
- package/src/views/bd/setting/table_model/edit.vue +834 -426
- package/src/views/bd/setting/table_model/mixins/dialog.js +1 -1
- package/src/views/bd/setting/table_model/mixins/edit.js +12 -13
- package/src/views/bd/setting/table_model/mixins/list.js +399 -14
- package/src/views/user/area/dialog.vue +21 -9
- package/src/views/user/bill_setting/edit.vue +1 -1
- package/src/views/user/bill_setting/list.vue +1 -1
- package/src/views/user/common_attribute/itemEdit.vue +2 -2
- package/src/views/user/common_attribute/list.vue +1 -1
- package/src/views/user/common_script/edit.vue +1 -1
- package/src/views/user/common_script/list.vue +1 -1
- package/src/views/user/company_info/dialog.vue +164 -154
- package/src/views/user/company_info/edit.vue +1 -1
- package/src/views/user/extend_datasource/dialog.vue +1 -0
- package/src/views/user/extend_datasource/edit.vue +3 -0
- package/src/views/user/extend_datasource/list.vue +2 -1
- package/src/views/user/file_type/edit.vue +30 -1
- package/src/views/user/file_type/list.vue +28 -0
- package/src/views/user/form/vform/designer.vue +775 -749
- package/src/views/user/form/view/list.vue +27 -9
- package/src/views/user/groups/edit.vue +2 -0
- package/src/views/user/groups/list.vue +1 -0
- package/src/views/user/home/default.vue +1022 -979
- package/src/views/user/home/dev.vue +29 -0
- package/src/views/user/home/index.vue +16 -6
- package/src/views/user/login/default.vue +36 -5
- package/src/views/user/login/indexMixin.js +117 -3
- package/src/views/user/notify_message/dialog.vue +1 -1
- package/src/views/user/notify_template/edit.vue +188 -187
- package/src/views/user/notify_template/edit2.vue +176 -0
- package/src/views/user/notify_template/list.vue +4 -1
- package/src/views/user/notify_template/list2.vue +190 -0
- package/src/views/user/outLink/form_view.vue +39 -12
- package/src/views/user/outLink/index.vue +17 -0
- package/src/views/user/outLink/view.vue +39 -13
- package/src/views/user/position/list.vue +4 -4
- package/src/views/user/project_tag/list.vue +9 -4
- package/src/views/user/push_setting/list.vue +2 -2
- package/src/views/user/request_setting/edit.vue +252 -0
- package/src/views/user/request_setting/list.vue +249 -0
- package/src/views/user/role/dialog.vue +1 -1
- package/src/views/user/role/list.vue +4 -4
- package/src/views/user/sale_org/dialog.vue +1 -1
- package/src/views/user/sale_org/list.vue +4 -1
- package/src/views/user/user/dialog.vue +1 -1
- package/src/views/user/user/edit.vue +39 -19
- package/src/views/user/user/form_edit.vue +63 -2
- package/src/views/user/user/form_info.vue +210 -0
- package/src/views/user/user/form_list.vue +1 -0
- package/src/views/user/user/list.vue +4 -11
- package/src/views/user/wf/wf_manage/list.vue +1 -1
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +1 -1
- package/src/views/user/wf/wf_obj_config/importItemDialog.vue +109 -0
- package/src/views/user/wf/wf_obj_config/list.vue +94 -8
- package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +2 -2
@@ -1,7 +1,7 @@
|
|
1
|
-
import userDialog from "
|
2
|
-
import positionDialog from "
|
3
|
-
import saleOrgDialog from "
|
4
|
-
import roleDialog from "
|
1
|
+
import userDialog from "@base/views/user/user/dialog";
|
2
|
+
import positionDialog from "@base/views/user/position/dialog";
|
3
|
+
import saleOrgDialog from "@base/views/user/sale_org/dialog";
|
4
|
+
import roleDialog from "@base/views/user/role/dialog";
|
5
5
|
|
6
6
|
let modules = {};
|
7
7
|
modules = {
|
@@ -9,17 +9,20 @@ modules = {
|
|
9
9
|
_dataId: [String, Number],
|
10
10
|
fileObjId: Number,
|
11
11
|
treeNodeArr: Array,
|
12
|
-
currentRow: Object
|
12
|
+
currentRow: Object,
|
13
13
|
},
|
14
14
|
components: {
|
15
|
-
userDialog,
|
15
|
+
userDialog,
|
16
|
+
positionDialog,
|
17
|
+
saleOrgDialog,
|
18
|
+
roleDialog,
|
16
19
|
},
|
17
|
-
inject: [
|
20
|
+
inject: ["current_prefix", "getFileStoreArea"],
|
18
21
|
data() {
|
19
22
|
return {
|
20
23
|
isEdit: false,
|
21
|
-
tabIndex:
|
22
|
-
dataId:
|
24
|
+
tabIndex: "first",
|
25
|
+
dataId: "",
|
23
26
|
showDialog: true,
|
24
27
|
fileObjAuth: {
|
25
28
|
saleOrgName: null,
|
@@ -37,37 +40,41 @@ modules = {
|
|
37
40
|
deleteAuth: 1,
|
38
41
|
deleteDirAuth: 1,
|
39
42
|
historyAuth: 1,
|
40
|
-
shareAuth: 1
|
43
|
+
shareAuth: 1,
|
44
|
+
downWatermarkAuth: 0,
|
45
|
+
authAuth: 1,
|
41
46
|
},
|
42
47
|
showUserDialog: false,
|
43
48
|
showPositionDialog: false,
|
44
49
|
showSaleOrgDialog: false,
|
45
|
-
showRoleDialog: false
|
50
|
+
showRoleDialog: false,
|
46
51
|
};
|
47
52
|
},
|
48
53
|
created() {
|
49
54
|
if (this.currentRow) {
|
50
|
-
this.fileObjAuth = this.$baseLodash.cloneDeep(this.currentRow)
|
55
|
+
this.fileObjAuth = this.$baseLodash.cloneDeep(this.currentRow);
|
51
56
|
}
|
52
|
-
;
|
53
57
|
},
|
54
58
|
computed: {
|
55
59
|
title() {
|
56
|
-
let prevTitle = this.currentRow
|
57
|
-
|
60
|
+
let prevTitle = this.currentRow
|
61
|
+
? this.$t2("查看", "system.button.check")
|
62
|
+
: this.$t2("新增", "system.button.add");
|
63
|
+
let title =
|
64
|
+
prevTitle + this.$t2("文件权限", "components.fileLibrary.fileAuth");
|
58
65
|
return title;
|
59
|
-
}
|
60
|
-
|
61
|
-
|
62
|
-
|
66
|
+
},
|
67
|
+
fileStoreArea() {
|
68
|
+
return this.getFileStoreArea();
|
69
|
+
},
|
63
70
|
},
|
71
|
+
mounted() {},
|
64
72
|
methods: {
|
65
|
-
|
66
73
|
saveData() {
|
67
|
-
this.$refs.editForm.$baseValidate(valid => {
|
74
|
+
this.$refs.editForm.$baseValidate((valid) => {
|
68
75
|
if (valid) {
|
69
|
-
|
70
|
-
|
76
|
+
this.$emit("confirm", this.fileObjAuth);
|
77
|
+
this.handleClose();
|
71
78
|
}
|
72
79
|
});
|
73
80
|
},
|
@@ -101,8 +108,8 @@ modules = {
|
|
101
108
|
},
|
102
109
|
handleClose() {
|
103
110
|
this.showDialog = false;
|
104
|
-
this.$emit("update:visiable", false)
|
105
|
-
}
|
106
|
-
}
|
111
|
+
this.$emit("update:visiable", false);
|
112
|
+
},
|
113
|
+
},
|
107
114
|
};
|
108
115
|
export default modules;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import userDialog from "
|
2
|
-
import positionDialog from "
|
3
|
-
import saleOrgDialog from "
|
4
|
-
import roleDialog from "
|
1
|
+
import userDialog from "@base/views/user/user/dialog";
|
2
|
+
import positionDialog from "@base/views/user/position/dialog";
|
3
|
+
import saleOrgDialog from "@base/views/user/sale_org/dialog";
|
4
|
+
import roleDialog from "@base/views/user/role/dialog";
|
5
5
|
|
6
6
|
let modules = {};
|
7
7
|
modules = {
|
@@ -13,7 +13,7 @@ modules = {
|
|
13
13
|
components: {
|
14
14
|
userDialog, positionDialog, saleOrgDialog, roleDialog
|
15
15
|
},
|
16
|
-
inject: ['current_prefix'],
|
16
|
+
inject: ['current_prefix', 'getFileStoreArea'],
|
17
17
|
data() {
|
18
18
|
return {
|
19
19
|
isEdit: false,
|
@@ -1,13 +1,15 @@
|
|
1
|
-
import {treeScollx} from "
|
2
|
-
import ElImageViewer from "
|
3
|
-
import propertiesDialog from "
|
4
|
-
import categoryMoveDialog from "
|
5
|
-
import fileHistoryDialog from "
|
6
|
-
import shareDialog from "
|
7
|
-
import recycleBinDialog from "
|
8
|
-
import videoDialog from "
|
9
|
-
import userDialog from "
|
1
|
+
import {treeScollx} from "@base/utils/global.js";
|
2
|
+
import ElImageViewer from "@base/components/VabUpload/image-viewer";
|
3
|
+
import propertiesDialog from "@base/components/fileLibrary/propertiesDialog";
|
4
|
+
import categoryMoveDialog from "@base/components/fileLibrary/categoryMoveDialog";
|
5
|
+
import fileHistoryDialog from "@base/components/fileLibrary/fileHistoryDialog";
|
6
|
+
import shareDialog from "@base/components/fileLibrary/shareDialog";
|
7
|
+
import recycleBinDialog from "@base/components/fileLibrary/recycleBinDialog";
|
8
|
+
import videoDialog from "@base/components/video/dialog";
|
9
|
+
import userDialog from "@base/views/user/user/dialog";
|
10
10
|
import {encode} from "js-base64";
|
11
|
+
import fileObjAuthDialog from "@base/components/fileLibrary/fileObjAuthDialog";
|
12
|
+
import filterDialog from "@base/components/fileLibrary/filterDialog.vue";
|
11
13
|
|
12
14
|
let modules;
|
13
15
|
modules = {
|
@@ -25,6 +27,8 @@ modules = {
|
|
25
27
|
recycleBinDialog,
|
26
28
|
videoDialog,
|
27
29
|
userDialog,
|
30
|
+
fileObjAuthDialog,
|
31
|
+
filterDialog
|
28
32
|
},
|
29
33
|
provide() {
|
30
34
|
return {
|
@@ -44,6 +48,9 @@ modules = {
|
|
44
48
|
getObjectForeignId: () => {
|
45
49
|
return this.objectForeignId;
|
46
50
|
},
|
51
|
+
getFileStoreArea: () => {
|
52
|
+
return this.fileStoreArea;
|
53
|
+
}
|
47
54
|
};
|
48
55
|
},
|
49
56
|
async created() {
|
@@ -73,6 +80,7 @@ modules = {
|
|
73
80
|
billDialogContent: null,
|
74
81
|
checkBillDatas: [],
|
75
82
|
title: "",
|
83
|
+
fileStoreArea: {},
|
76
84
|
folderStatus: false,
|
77
85
|
filterText: "",
|
78
86
|
defaultProps: {
|
@@ -150,6 +158,10 @@ modules = {
|
|
150
158
|
end_y: 0,
|
151
159
|
scrollTop1: 0,
|
152
160
|
scrollTop2: 0,
|
161
|
+
showFileObjAuthDialog: false,
|
162
|
+
fileObjAuth: {},
|
163
|
+
popAnnexFilter: false,
|
164
|
+
showFilterDialog: false
|
153
165
|
};
|
154
166
|
},
|
155
167
|
computed: {
|
@@ -258,6 +270,34 @@ modules = {
|
|
258
270
|
}
|
259
271
|
},
|
260
272
|
methods: {
|
273
|
+
openFileDirs(row) {
|
274
|
+
let keys = row.treePath.split(',').filter(item => !!item);
|
275
|
+
let size = keys.length
|
276
|
+
let tree = this.$refs.tree
|
277
|
+
|
278
|
+
let parent = null;
|
279
|
+
let loopDo = (index) => {
|
280
|
+
if (size <= index) return
|
281
|
+
let key = keys[index]
|
282
|
+
let node = tree.getNode(key + "");
|
283
|
+
let data = node.data;
|
284
|
+
if (size == index + 1) {
|
285
|
+
tree.setCurrentKey(data);
|
286
|
+
this.handleNodeClick(data, node, this);
|
287
|
+
return
|
288
|
+
}
|
289
|
+
|
290
|
+
if (!data.leaf) {
|
291
|
+
node.expand(() => {
|
292
|
+
loopDo(index + 1)
|
293
|
+
})
|
294
|
+
}
|
295
|
+
}
|
296
|
+
this.getTopNode().expand(() => {
|
297
|
+
loopDo(0)
|
298
|
+
})
|
299
|
+
|
300
|
+
},
|
261
301
|
getTopNode() {
|
262
302
|
return this.$refs.tree.root.childNodes[0];
|
263
303
|
},
|
@@ -1004,36 +1044,44 @@ modules = {
|
|
1004
1044
|
rows.forEach((value) => {
|
1005
1045
|
value.leaf = !value.hasChild;
|
1006
1046
|
});
|
1047
|
+
let items = [];
|
1007
1048
|
if (node.level === 0) {
|
1049
|
+
let item = {
|
1050
|
+
parent: null,
|
1051
|
+
fileName: this.title,
|
1052
|
+
leaf: rows.length == 0,
|
1053
|
+
allFileBtn: true,
|
1054
|
+
id: 0,
|
1055
|
+
children: rows,
|
1056
|
+
};
|
1057
|
+
items.push(item);
|
1008
1058
|
setTimeout(() => {
|
1009
1059
|
this.$refs.tree.setCurrentKey(node.childNodes[0].data);
|
1010
1060
|
this.handleNodeData(node.childNodes[0]);
|
1011
1061
|
node.childNodes[0].expand();
|
1062
|
+
if (this.option.treeExpandAll) {
|
1063
|
+
//默认全部展开树分类
|
1064
|
+
node.childNodes[0].childNodes.forEach(item => {
|
1065
|
+
if (!item.data.leaf) item.expand();
|
1066
|
+
})
|
1067
|
+
}
|
1012
1068
|
}, 200);
|
1013
1069
|
this.$nextTick(() => {
|
1014
1070
|
callback && callback();
|
1015
1071
|
});
|
1016
1072
|
this.searchEvent();
|
1017
1073
|
} else {
|
1074
|
+
items = rows;
|
1018
1075
|
this.$nextTick(() => {
|
1076
|
+
if (this.option.treeExpandAll) {
|
1077
|
+
//默认全部展开树分类
|
1078
|
+
node.childNodes.forEach(item => {
|
1079
|
+
if (!item.data.leaf) item.expand();
|
1080
|
+
})
|
1081
|
+
}
|
1019
1082
|
callback && callback();
|
1020
1083
|
});
|
1021
1084
|
}
|
1022
|
-
let items = [];
|
1023
|
-
if (node.level === 0) {
|
1024
|
-
let item = {
|
1025
|
-
parent: null,
|
1026
|
-
fileName: this.title,
|
1027
|
-
leaf: rows.length == 0,
|
1028
|
-
allFileBtn: true,
|
1029
|
-
id: 0,
|
1030
|
-
children: rows,
|
1031
|
-
};
|
1032
|
-
items.push(item);
|
1033
|
-
} else {
|
1034
|
-
items = rows;
|
1035
|
-
}
|
1036
|
-
|
1037
1085
|
resolve(items);
|
1038
1086
|
},
|
1039
1087
|
});
|
@@ -1403,6 +1451,7 @@ modules = {
|
|
1403
1451
|
success: (res) => {
|
1404
1452
|
let fileStoreArea = res.objx;
|
1405
1453
|
if (fileStoreArea) {
|
1454
|
+
this.fileStoreArea = fileStoreArea;
|
1406
1455
|
this.title = fileStoreArea.storeAreaName;
|
1407
1456
|
this.$nextTick(() => {
|
1408
1457
|
treeScollx({target: this, type: "default"});
|
@@ -1749,12 +1798,13 @@ modules = {
|
|
1749
1798
|
}
|
1750
1799
|
},
|
1751
1800
|
downloadSingerFile(attachment) {
|
1801
|
+
|
1752
1802
|
let fileObjAuth = this.fileObjAuth;
|
1753
1803
|
if (attachment.dirs || !fileObjAuth.downloadAuth) return
|
1754
1804
|
let url = attachment.domain + attachment.url;
|
1755
|
-
|
1756
|
-
|
1757
|
-
url += '?_w=' + encode(loginAccount)
|
1805
|
+
if (this.fileStoreArea.toDownWatermark && fileObjAuth.downWatermarkAuth) {
|
1806
|
+
let loginAccount = this.$store.getters.loginAccount;
|
1807
|
+
url += '?_w=' + encodeURIComponent(encode(loginAccount))
|
1758
1808
|
}
|
1759
1809
|
this.$commonFileUtil.downloadFile(url, attachment.fileName)
|
1760
1810
|
}
|
@@ -8,7 +8,8 @@ modules = {
|
|
8
8
|
},
|
9
9
|
treeNodeArr: {
|
10
10
|
type: Array
|
11
|
-
}
|
11
|
+
},
|
12
|
+
option:Object
|
12
13
|
},
|
13
14
|
inject: ['current_prefix', 'getTitle'],
|
14
15
|
components: {},
|
@@ -18,10 +19,14 @@ modules = {
|
|
18
19
|
falseValue: false,
|
19
20
|
vxeOption: {},
|
20
21
|
showContent: true,
|
21
|
-
attachmentDTO: {
|
22
|
+
attachmentDTO: {
|
23
|
+
fileAttachAttributeDTOs:[]
|
24
|
+
},
|
25
|
+
fileAttachObjDTOs:[],
|
22
26
|
// current_prefix: '',
|
23
27
|
filePrefix: '',
|
24
|
-
fileName: ''
|
28
|
+
fileName: '',
|
29
|
+
vxeOption2:{}
|
25
30
|
};
|
26
31
|
},
|
27
32
|
watch: {
|
@@ -47,6 +52,7 @@ modules = {
|
|
47
52
|
mounted() {
|
48
53
|
this.getData();
|
49
54
|
this.initTableM1();
|
55
|
+
this.initTableM2();
|
50
56
|
},
|
51
57
|
methods: {
|
52
58
|
initFilePrefix() {
|
@@ -91,6 +97,7 @@ modules = {
|
|
91
97
|
},
|
92
98
|
reloadContent() {
|
93
99
|
this.getAttributes();
|
100
|
+
this.getObjs();
|
94
101
|
},
|
95
102
|
getData() {
|
96
103
|
this.$http({
|
@@ -104,6 +111,7 @@ modules = {
|
|
104
111
|
success: res => {
|
105
112
|
this.attachmentDTO = res.objx || {};
|
106
113
|
this.getAttributes();
|
114
|
+
this.getObjs();
|
107
115
|
}
|
108
116
|
});
|
109
117
|
},
|
@@ -121,6 +129,21 @@ modules = {
|
|
121
129
|
}
|
122
130
|
});
|
123
131
|
},
|
132
|
+
getObjs() {
|
133
|
+
this.$http({
|
134
|
+
url: this.current_prefix + '/file_attach/obj/list',
|
135
|
+
method: 'post',
|
136
|
+
data: {
|
137
|
+
stringOne: this.attachmentDTO.fileSn
|
138
|
+
},
|
139
|
+
isLoading: true,
|
140
|
+
// modalStrictly: true,
|
141
|
+
success: res => {
|
142
|
+
// this.$set(this.attachmentDTO, 'fileAttachObjDTOs', res.objx || []);
|
143
|
+
this.fileAttachObjDTOs = res.objx || []
|
144
|
+
}
|
145
|
+
});
|
146
|
+
},
|
124
147
|
initTableM1() {
|
125
148
|
//明细
|
126
149
|
var that = this;
|
@@ -187,6 +210,43 @@ modules = {
|
|
187
210
|
temp = temp.toFixed(2);
|
188
211
|
return temp + 'GB';
|
189
212
|
}
|
213
|
+
},
|
214
|
+
initTableM2() {
|
215
|
+
//明细
|
216
|
+
var that = this;
|
217
|
+
const tableRef = 'table-m2';
|
218
|
+
const tableOption = {
|
219
|
+
vue: this,
|
220
|
+
tableRef: tableRef,
|
221
|
+
tableName: 'user_fileLibrary_propertiesDialog_list-m2',
|
222
|
+
columns: [
|
223
|
+
{
|
224
|
+
type: 'checkbox',
|
225
|
+
fixed: 'left',
|
226
|
+
width: 48,
|
227
|
+
resizable: false
|
228
|
+
},
|
229
|
+
{
|
230
|
+
title: this.$t1('关联对象编码'),
|
231
|
+
field: 'objSn',
|
232
|
+
width: 200
|
233
|
+
},
|
234
|
+
{
|
235
|
+
title: this.$t1('关联对象名称'),
|
236
|
+
field: 'objName',
|
237
|
+
width: 200
|
238
|
+
},
|
239
|
+
{
|
240
|
+
width: 50,
|
241
|
+
fixed: 'right',
|
242
|
+
title: '',
|
243
|
+
sortable: false
|
244
|
+
}
|
245
|
+
]
|
246
|
+
};
|
247
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
248
|
+
this.vxeOption2 = opts;
|
249
|
+
});
|
190
250
|
}
|
191
251
|
}
|
192
252
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import ElImageViewer from '
|
1
|
+
import ElImageViewer from '@base/components/VabUpload/image-viewer';
|
2
2
|
import recycleBinPropertiesDialog from "../recycleBinPropertiesDialog";
|
3
3
|
import categoryMoveDialog from '../categoryMoveDialog'
|
4
4
|
|
@@ -58,6 +58,10 @@
|
|
58
58
|
<th>{{ $t2('所属对象描述', 'components.fileLibrary.note') }}</th>
|
59
59
|
<td colspan="3">{{ attachmentDTO.note }}</td>
|
60
60
|
</tr>
|
61
|
+
<tr>
|
62
|
+
<th>{{ $t1('文件类型名') }}</th>
|
63
|
+
<td colspan="3"><b>{{ attachmentDTO.fileTypeName }}</b></td>
|
64
|
+
</tr>
|
61
65
|
<tr>
|
62
66
|
<th>{{ $t2('文件大小', 'components.fileLibrary.fileSize') }}</th>
|
63
67
|
<td>{{ formatFileSize(attachmentDTO.fileSize) }}</td>
|
@@ -129,6 +133,20 @@
|
|
129
133
|
</vxe-grid>
|
130
134
|
</template>
|
131
135
|
</baseTabPane>
|
136
|
+
<baseTabPane :label="$t1('文件关联对象')">
|
137
|
+
<template #button></template>
|
138
|
+
<template #default>
|
139
|
+
<vxe-grid
|
140
|
+
ref="table-m2"
|
141
|
+
class="vxe-tableNo"
|
142
|
+
height="224px"
|
143
|
+
:data="fileAttachObjDTOs"
|
144
|
+
v-bind="vxeOption2"
|
145
|
+
@resizable-change="$vxeTableUtil.onColumnWitchChange"
|
146
|
+
@custom="$vxeTableUtil.customHandle"
|
147
|
+
></vxe-grid>
|
148
|
+
</template>
|
149
|
+
</baseTabPane>
|
132
150
|
</baseTabs>
|
133
151
|
</el-form>
|
134
152
|
</div>
|