cloud-web-corejs 1.0.54-dev.12 → 1.0.54-dev.120
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 -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 +2 -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 +1 -2
- package/src/components/excelImport/index.vue +2 -1
- package/src/components/excelImport/mixins.js +1 -1
- package/src/components/fileLibrary/fileObjAuthDialog.vue +1 -1
- package/src/components/fileLibrary/fileObjAuthEditDialog.vue +1 -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 +15 -10
- package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +8 -5
- package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +5 -5
- package/src/components/fileLibrary/mixins/indexMixins.js +76 -26
- 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/mixins.js +1 -1
- package/src/components/onlineTalk/index.vue +327 -5
- package/src/components/onlineTalk/mixins.js +1 -1
- package/src/components/table/index.js +2 -1
- package/src/components/tempStorage/tempStorageDialog.vue +2 -2
- package/src/components/wf/wf.js +1763 -1
- package/src/components/wf/wfStartDialog.vue +1 -1
- package/src/components/wf/wfUtil.js +279 -1
- package/src/components/xform/form-designer/designer.js +1514 -1
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +1 -0
- package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +1 -0
- package/src/components/xform/form-designer/form-widget/dialog/formFieldDialog.vue +2 -2
- package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +35 -5
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +3 -1
- package/src/components/xform/form-designer/form-widget/dialog/preformDialog.vue +2 -2
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +11 -5
- package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +6 -2
- package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +10 -5
- 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/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 +1026 -1
- 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/project-tag-widget.vue +67 -3
- package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +9 -4
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +8 -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/vabUpload-widget.vue +80 -0
- package/src/components/xform/form-designer/indexMixin.js +773 -1
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +59 -36
- package/src/components/xform/form-designer/setting-panel/indexMixin.js +1 -1
- 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/data-table-editor.vue +9 -0
- 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 +100 -3
- 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 +20 -1
- 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-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 +3 -0
- 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/formScriptEnabled-editor.vue +39 -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/project-tag-editor.vue +177 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue +2 -1
- 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 +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +242 -27
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +4 -0
- package/src/components/xform/form-designer/toolbar-panel/index.vue +4 -3
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +145 -147
- package/src/components/xform/form-render/container-item/data-table-item.vue +5 -4
- package/src/components/xform/form-render/container-item/data-table-mixin.js +1926 -1
- package/src/components/xform/form-render/indexMixin.js +1792 -1
- package/src/components/xform/mixins/defaultHandle.js +120 -1
- package/src/components/xform/mixins/scriptHttp.js +82 -1
- package/src/components/xform/utils/emitter.js +4 -4
- package/src/components/xform/utils/util.js +1631 -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/mixins/selectDialog/index.js +1 -1
- package/src/router/modules/customer.js +15 -0
- package/src/store/config/index.js +664 -1
- package/src/store/modules/permission.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 +1 -1
- package/src/views/bd/setting/form_import_log/edit.vue +120 -0
- package/src/views/bd/setting/form_import_log/list.vue +195 -0
- package/src/views/bd/setting/form_script/edit1.vue +1 -1
- package/src/views/bd/setting/form_script/mixins/edit.js +167 -1
- package/src/views/bd/setting/form_script/mixins/edit1.js +165 -1
- package/src/views/bd/setting/form_script/mixins/list.js +176 -1
- package/src/views/bd/setting/form_script/mixins/list1.js +345 -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/list.vue +4 -2
- package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +4 -0
- package/src/views/bd/setting/form_template/mixins/edit.js +170 -1
- package/src/views/bd/setting/form_template/mixins/list.js +522 -1
- 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/mixins/list.js +176 -1
- package/src/views/bd/setting/table_model/edit.vue +71 -13
- package/src/views/bd/setting/table_model/list.vue +4 -2
- package/src/views/bd/setting/table_model/mixins/edit.js +890 -2
- package/src/views/bd/setting/table_model/mixins/list.js +345 -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 +19 -9
- 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 +5 -1
- 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 +15 -11
- 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 +4 -2
- package/src/views/user/login/index2.vue +131 -0
- package/src/views/user/notify_message/dialog.vue +1 -1
- 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/push_setting/list.vue +2 -2
- package/src/views/user/user/edit.vue +9 -9
- package/src/views/user/user/form_edit.vue +117 -49
- 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 +3 -3
- 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/list.vue +19 -3
- package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +292 -0
@@ -108,6 +108,9 @@
|
|
108
108
|
v-if="isEdit && (fileObjAuth.deleteAuth || fileObjAuth.deleteDirAuth)">
|
109
109
|
{{ $t2('删除', 'components.fileLibrary.delete') }}
|
110
110
|
</el-button>
|
111
|
+
<el-button icon="iconfont icon-shaixuan" class="button-sty" @click="showFilterDialog = true">
|
112
|
+
{{ $t1('高级筛选') }}
|
113
|
+
</el-button>
|
111
114
|
|
112
115
|
<template v-for="(fileButton,customToobarButtonIndex) in customToobarButtons">
|
113
116
|
<template
|
@@ -483,7 +486,7 @@
|
|
483
486
|
</el-breadcrumb>
|
484
487
|
</el-form-item>
|
485
488
|
<el-form-item :label="$t2('文件夹编码','components.fileLibrary.fileCategorySn')">
|
486
|
-
<span>{{editCategory.fileSn}}</span>
|
489
|
+
<span>{{ editCategory.fileSn }}</span>
|
487
490
|
</el-form-item>
|
488
491
|
<el-form-item :label="$t2('文件夹名称','components.fileLibrary.fileCategoryName')">
|
489
492
|
<el-input v-model="editCategory.fileName" clearable class="all-width"/>
|
@@ -504,7 +507,7 @@
|
|
504
507
|
</div>
|
505
508
|
<propertiesDialog v-if="showPropertiesDialog" :visiable.sync="showPropertiesDialog"
|
506
509
|
:editAttachment.sync="editAttachment" :isEdit="isEdit"
|
507
|
-
:treeNodeArr.sync="treeNodeArr"></propertiesDialog>
|
510
|
+
:treeNodeArr.sync="treeNodeArr" :option="option"></propertiesDialog>
|
508
511
|
<el-image-viewer v-if="showViewer" :on-close="() => {showViewer = false;}" :initial-index.sync="chooseIndex"
|
509
512
|
:url-list="imageDTOs"/>
|
510
513
|
<categoryMoveDialog :checkRows.sync="checkRows" v-if="showCategoryMoveDialog"
|
@@ -522,16 +525,16 @@
|
|
522
525
|
:formData.sync="advancedFormData" @confirm="searchEvent">
|
523
526
|
<template #form>
|
524
527
|
<vxe-form :model="advancedFormData" title-width="102px" :inline="true" class="adSearchForm">
|
525
|
-
<vxe-form-item title="属性名称:">
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
528
|
+
<!-- <vxe-form-item title="属性名称:">
|
529
|
+
<template v-slot>
|
530
|
+
<el-input v-model="advancedFormData.attributeName" clearable/>
|
531
|
+
</template>
|
532
|
+
</vxe-form-item>
|
533
|
+
<vxe-form-item title="属性值:">
|
534
|
+
<template v-slot>
|
535
|
+
<el-input v-model="advancedFormData.attributeValue" clearable/>
|
536
|
+
</template>
|
537
|
+
</vxe-form-item>-->
|
535
538
|
<!-- <vxe-form-item title="状态:">
|
536
539
|
<template v-slot>
|
537
540
|
<el-select v-model="advancedFormData.status" clearable>
|
@@ -581,25 +584,18 @@
|
|
581
584
|
<videoDialog v-if="showVideoDialog" :visiable.sync="showVideoDialog" :option="videoOption"></videoDialog>
|
582
585
|
<fileObjAuthDialog v-if="showFileObjAuthDialog" :visiable.sync="showFileObjAuthDialog"
|
583
586
|
:fileObjId="currentFileCategory ? currentFileCategory.id:0" :treeNodeArr="treeNodeArr"/>
|
587
|
+
|
588
|
+
<filterDialog v-if="showFilterDialog" :visiable.sync="showFilterDialog" queryType="pcp" :treeNodeArr="treeNodeArr"
|
589
|
+
:currentFileCategory="currentFileCategory" @openFileDirs="openFileDirs"></filterDialog>
|
584
590
|
</div>
|
585
591
|
</template>
|
586
592
|
|
587
593
|
<script>
|
588
594
|
|
589
595
|
import mixins from './mixins/indexMixins';
|
590
|
-
import fileObjAuthDialog from "../../components/fileLibrary/fileObjAuthDialog";
|
591
|
-
|
592
596
|
export default {
|
593
597
|
name: 'ledgerLibrary',
|
594
|
-
mixins: [mixins]
|
595
|
-
components: {fileObjAuthDialog},
|
596
|
-
data() {
|
597
|
-
return {
|
598
|
-
showFileObjAuthDialog: false,
|
599
|
-
fileObjAuth: {},
|
600
|
-
popAnnexFilter: false
|
601
|
-
}
|
602
|
-
}
|
598
|
+
mixins: [mixins]
|
603
599
|
}
|
604
600
|
</script>
|
605
601
|
<style lang="scss" scoped>
|
@@ -683,5 +679,8 @@ export default {
|
|
683
679
|
height: calc(100vh - 215px);
|
684
680
|
}
|
685
681
|
}
|
686
|
-
|
682
|
+
|
683
|
+
#labBtn {
|
684
|
+
height: calc(100vh - 34px)
|
685
|
+
}
|
687
686
|
</style>
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import {selectDialogMixins} from '
|
2
|
-
import ElImageViewer from '
|
1
|
+
import {selectDialogMixins} from '@base/mixins/selectDialog/index.js';
|
2
|
+
import ElImageViewer from '@base/components/VabUpload/image-viewer';
|
3
3
|
|
4
4
|
let modules;
|
5
5
|
modules = {
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import editView from "
|
2
|
-
import userDialog from "
|
3
|
-
import positionDialog from "
|
4
|
-
import saleOrgDialog from "
|
5
|
-
import roleDialog from "
|
6
|
-
import fileObjAuthEditDialog from "
|
7
|
-
import fileObjNotifyEdit from "
|
1
|
+
import editView from "../fileObjAuthEdit";
|
2
|
+
import userDialog from "@base/views/user/user/dialog";
|
3
|
+
import positionDialog from "@base/views/user/position/dialog";
|
4
|
+
import saleOrgDialog from "@base/views/user/sale_org/dialog";
|
5
|
+
import roleDialog from "@base/views/user/role/dialog";
|
6
|
+
import fileObjAuthEditDialog from "../fileObjAuthEditDialog.vue";
|
7
|
+
import fileObjNotifyEdit from "../fileObjNotifyEdit.vue";
|
8
8
|
|
9
9
|
|
10
10
|
let modules = {};
|
@@ -17,7 +17,7 @@ modules = {
|
|
17
17
|
components: {
|
18
18
|
editView, userDialog, positionDialog, saleOrgDialog, roleDialog, fileObjAuthEditDialog, fileObjNotifyEdit
|
19
19
|
},
|
20
|
-
inject: ['current_prefix'],
|
20
|
+
inject: ['current_prefix', 'getFileStoreArea'],
|
21
21
|
mounted() {
|
22
22
|
this.initTableList();
|
23
23
|
},
|
@@ -56,6 +56,11 @@ modules = {
|
|
56
56
|
showFileObjNotifyEdit: true
|
57
57
|
};
|
58
58
|
},
|
59
|
+
computed: {
|
60
|
+
fileStoreArea() {
|
61
|
+
return this.getFileStoreArea();
|
62
|
+
}
|
63
|
+
},
|
59
64
|
methods: {
|
60
65
|
searchEvent() {
|
61
66
|
this.$refs['table-m1'].commitProxy('reload');
|
@@ -285,7 +290,7 @@ modules = {
|
|
285
290
|
}
|
286
291
|
}
|
287
292
|
},
|
288
|
-
{
|
293
|
+
...(this.fileStoreArea.toDownWatermark ? [{
|
289
294
|
title: this.$t1('下载打水印 '),
|
290
295
|
field: 'downWatermarkAuth',
|
291
296
|
width: 150,
|
@@ -297,7 +302,7 @@ modules = {
|
|
297
302
|
];
|
298
303
|
}
|
299
304
|
}
|
300
|
-
},
|
305
|
+
}] : []),
|
301
306
|
{title: this.$t2('创建人', 'system.label.createBy'), field: 'createBy', width: 150},
|
302
307
|
{title: this.$t2('创建时间', 'system.label.createDate'), field: 'createDate', width: 150},
|
303
308
|
{title: this.$t2('更新人', 'system.label.modifyBy'), field: 'modifyBy', width: 150},
|
@@ -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 = {
|
@@ -14,7 +14,7 @@ modules = {
|
|
14
14
|
components: {
|
15
15
|
userDialog, positionDialog, saleOrgDialog, roleDialog
|
16
16
|
},
|
17
|
-
inject: ['current_prefix'],
|
17
|
+
inject: ['current_prefix', 'getFileStoreArea'],
|
18
18
|
data() {
|
19
19
|
return {
|
20
20
|
isEdit: false,
|
@@ -56,6 +56,9 @@ modules = {
|
|
56
56
|
let prevTitle = this.currentRow ? this.$t2('查看', 'system.button.check') : this.$t2('新增', 'system.button.add')
|
57
57
|
let title = prevTitle + this.$t2('文件权限', 'components.fileLibrary.fileAuth')
|
58
58
|
return title;
|
59
|
+
},
|
60
|
+
fileStoreArea(){
|
61
|
+
return this.getFileStoreArea();
|
59
62
|
}
|
60
63
|
},
|
61
64
|
mounted() {
|
@@ -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,11 +1798,12 @@ 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
|
-
|
1805
|
+
if (this.fileStoreArea.toDownWatermark && fileObjAuth.downWatermarkAuth) {
|
1806
|
+
let loginAccount = this.$store.getters.loginAccount;
|
1757
1807
|
url += '?_w=' + encode(loginAccount)
|
1758
1808
|
}
|
1759
1809
|
this.$commonFileUtil.downloadFile(url, attachment.fileName)
|
@@ -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>
|