cloud-web-corejs 1.0.258 → 1.0.260
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 +32 -25
- package/src/components/VabUpload/fileLibraryDialog.vue +296 -0
- package/src/components/VabUpload/index.js +22 -2
- package/src/components/VabUpload/index.vue +242 -231
- package/src/components/VabUpload/mixins/fileLibraryDialog.js +1112 -0
- package/src/components/VabUpload/mixins.js +1971 -1829
- package/src/components/VabUpload/privateProfileDialog.vue +2 -2
- package/src/components/baseArea/index.vue +1628 -0
- package/src/components/baseInputExport/mixins.js +48 -31
- package/src/components/baseInputNumber/index.vue +9 -9
- package/src/components/baseTabs/index.vue +16 -8
- package/src/components/code-editor/async.js +29 -0
- package/src/components/code-editor/index.vue +93 -4
- package/src/components/errorMsg/index.js +10 -9
- package/src/components/errorMsg/mixins.js +25 -23
- package/src/components/excelExport/exportFieldDialog.vue +40 -18
- package/src/components/excelExport/index.js +62 -3
- package/src/components/excelExport/index.vue +2 -1
- package/src/components/excelExport/mixins.js +496 -340
- package/src/components/excelImport/index.js +69 -7
- package/src/components/excelImport/mixins.js +841 -9
- package/src/components/fileLibrary/categoryMoveDialog.vue +109 -109
- package/src/components/fileLibrary/fileHistoryDialog.vue +1 -1
- package/src/components/fileLibrary/fileObjAuthDialog.vue +297 -298
- package/src/components/fileLibrary/fileObjAuthEdit.vue +1 -1
- package/src/components/fileLibrary/filterDialog.vue +1 -1
- package/src/components/fileLibrary/index.vue +1109 -1110
- package/src/components/fileLibrary/mixins/indexMixins.js +10 -0
- package/src/components/fileLibrary/propertiesDialog.vue +190 -190
- package/src/components/fileLibrary/recycleBinDialog.vue +237 -236
- package/src/components/formOplog/mixins.js +85 -80
- package/src/components/hiprint/view/design/index.vue +7 -2
- package/src/components/jsonImport/exportUtil.js +106 -0
- package/src/components/jsonImport/index.js +75 -50
- package/src/components/jsonImport/mixins.js +350 -348
- package/src/components/langImport/mixins.js +502 -500
- package/src/components/micro-view-host/contract.js +66 -0
- package/src/components/micro-view-host/index.vue +148 -0
- package/src/components/mobile/file/index.vue +10 -0
- package/src/components/mobile/wf/mixins/wfModifyDialogMixin.js +51 -47
- package/src/components/obsUpload/index.vue +234 -231
- package/src/components/obsUpload/mixins.js +1542 -1476
- package/src/components/onlineTalk/talkUserDialog.vue +1 -1
- package/src/components/table/CellSlot.vue +12 -10
- package/src/components/table/config.js +74 -1
- package/src/components/table/index.js +1209 -1
- package/src/components/table/tableForm.vue +4 -2
- package/src/components/table/tableFormMixin.js +285 -1
- package/src/components/table/util/index.js +38 -40
- package/src/components/table/vxeFilter/index.js +153 -2
- package/src/components/table/vxeFilter/mixin.js +305 -3
- package/src/components/tempStorage/tempStorageDialog.vue +1 -1
- package/src/components/vb-tabs/x-tabs.vue +10 -5
- package/src/components/wf/addTaskUserdialog.vue +1 -1
- package/src/components/wf/mixins/setCandidateDialog.js +217 -217
- package/src/components/wf/mixins/setCandidateDialog2.js +252 -252
- package/src/components/wf/wf.js +2224 -2203
- package/src/components/wf/wfUtil.js +2 -1
- package/src/components/xform/docs/2026-08 /345/210/227/350/241/250/345/257/274/345/207/272/350/204/261/346/225/217/345/210/227/345/211/224/351/231/244/350/220/275/345/234/260/346/226/207/346/241/243.md" +173 -0
- package/src/components/xform/form-designer/designer.js +1 -0
- package/src/components/xform/form-designer/form-widget/container-widget/containerMixin.js +110 -1
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +282 -1
- package/src/components/xform/form-designer/form-widget/field-widget/area-select-widget.vue +272 -0
- package/src/components/xform/form-designer/form-widget/field-widget/autocomplete-widget.vue +119 -0
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +14 -0
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +18 -73
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/autocomplete-mixin.js +451 -0
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/date-limit-mixin.js +157 -0
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/utc-transform-mixin.js +75 -0
- package/src/components/xform/form-designer/form-widget/field-widget/save_submit_wf_button-widget.vue +112 -0
- package/src/components/xform/form-designer/form-widget/field-widget/script-input-widget.vue +149 -0
- package/src/components/xform/form-designer/form-widget/indexMixin.js +179 -1
- package/src/components/xform/form-designer/indexMixin.js +823 -1
- package/src/components/xform/form-designer/refMixinDesign.js +27 -1
- package/src/components/xform/form-designer/setting-panel/action-button-config-dialog.vue +241 -0
- package/src/components/xform/form-designer/setting-panel/form-dynamicField-setting.vue +601 -0
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +6 -0
- package/src/components/xform/form-designer/setting-panel/index.vue +314 -309
- package/src/components/xform/form-designer/setting-panel/indexMixin.js +324 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +8 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +8 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/container-table/table-dynamicField-editor.vue +344 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/dropdownFlag-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-area-select/areaDataType-editor.vue +25 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-area-select/areaMinLevel-editor.vue +50 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-area-select/areaName-editor.vue +20 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-autocomplete/autocomplete-vabSearchName-editor.vue +199 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-baseAttachment/baseAttachment-fileTypes-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-cascader/showAllLevels-editor.vue +21 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-dateLimit-editor.vue +157 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-script-input/script-input-editor.vue +55 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/vabUpload-fileTypes-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/fileTypesEditorMixin.js +116 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/fileTypesSelect.vue +176 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/utcTransformEnabled-editor.vue +19 -0
- package/src/components/xform/form-designer/setting-panel/widgetPropertyDialogMixin.js +186 -0
- package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +566 -1
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +290 -1
- package/src/components/xform/form-render/compareDelList.vue +83 -0
- package/src/components/xform/form-render/compareView.vue +76 -0
- package/src/components/xform/form-render/container-item/containerItemMixin.js +378 -1
- package/src/components/xform/form-render/container-item/data-table-mixin.js +35 -0
- package/src/components/xform/form-render/container-item/detail-item.vue +41 -0
- package/src/components/xform/form-render/container-item/dynamicFieldEngine.js +285 -0
- package/src/components/xform/form-render/container-item/dynamicFieldMixin.js +416 -0
- package/src/components/xform/form-render/container-item/list-h5-item.vue +12 -0
- package/src/components/xform/form-render/dynamicDialogRender.js +195 -1
- package/src/components/xform/form-render/dynamicDrawerRender.js +229 -0
- package/src/components/xform/form-render/formDynamicFieldMixin.js +131 -0
- package/src/components/xform/form-render/refMixin.js +29 -1
- package/src/components/xform/mixins/scriptHttp.js +172 -1
- package/src/components/xform/utils/dynamicSchemaUtil.js +361 -0
- package/src/components/xform/utils/tableCellValidateUtil.js +148 -0
- package/src/components/xform/utils/textMaskUtil.js +179 -0
- package/src/components/xform/utils/treeTableUtil.js +1265 -0
- package/src/components/xform/utils/util.js +1 -0
- package/src/components/xform/utils/validators.js +133 -1
- package/src/directive/LimitNumber/index.js +143 -124
- package/src/microRouter/index.js +447 -0
- package/src/mixins/tableTree/index.js +77 -14
- package/src/permission.js +132 -107
- package/src/public-path.js +38 -0
- package/src/router/index.js +3 -3
- package/src/store/modules/micro.js +57 -0
- package/src/store/modules/permission.js +535 -371
- package/src/store/modules/tagsView.js +38 -21
- package/src/store/modules/user.js +409 -370
- package/src/utils/aes.js +9 -3
- package/src/utils/auth.js +1 -1
- package/src/utils/componentDialog.js +162 -40
- package/src/utils/global.js +35 -34
- package/src/utils/index.js +579 -579
- package/src/utils/keepAlive.js +8 -4
- package/src/utils/lazyPlugin.js +66 -0
- package/src/utils/menuAdapter.js +277 -0
- package/src/utils/repeatOpen.js +48 -0
- package/src/utils/request.js +417 -395
- package/src/utils/resolveViewComponent.js +203 -0
- package/src/utils/vab.js +14 -3
- package/src/utils/validate.js +104 -106
- package/src/views/bd/setting/bd_attach_setting/dialog.vue +1 -1
- package/src/views/bd/setting/bd_attach_setting/list.vue +1 -1
- package/src/views/bd/setting/bd_company_env/dialog.vue +1 -1
- package/src/views/bd/setting/bd_company_env/list.vue +1 -1
- package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +488 -489
- package/src/views/bd/setting/form_import_log/list.vue +1 -1
- package/src/views/bd/setting/form_script/dialog.vue +1 -1
- package/src/views/bd/setting/form_script/form_list.vue +174 -166
- package/src/views/bd/setting/form_script/list.vue +1 -1
- package/src/views/bd/setting/form_script/list1.vue +1 -1
- package/src/views/bd/setting/form_script/mixins/form_list.js +330 -322
- package/src/views/bd/setting/form_template/dialog.vue +1 -1
- package/src/views/bd/setting/form_template/formDesignerDialog.vue +172 -171
- package/src/views/bd/setting/form_template/ftHistoryDialog.vue +1 -1
- package/src/views/bd/setting/form_template/itemList.vue +1 -1
- package/src/views/bd/setting/form_template/list.vue +3 -3
- package/src/views/bd/setting/form_template/mixins/edit.js +3 -3
- package/src/views/bd/setting/form_template/mixins/list.js +3 -3
- package/src/views/bd/setting/form_template/mixins/list2.js +3 -3
- package/src/views/bd/setting/form_template/mixins/wf_list.js +3 -3
- package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +253 -254
- package/src/views/bd/setting/form_template/wf_list.vue +3 -3
- package/src/views/bd/setting/logic_param/edit.vue +20 -20
- package/src/views/bd/setting/logic_param/list.vue +1 -1
- package/src/views/bd/setting/menu_kind/dialog.vue +1 -1
- package/src/views/bd/setting/menu_kind/list.vue +1 -1
- package/src/views/bd/setting/push_data/list.vue +1 -1
- package/src/views/bd/setting/push_data_h/list.vue +1 -1
- package/src/views/bd/setting/request_async_setting/list.vue +1 -1
- package/src/views/bd/setting/request_setting/list.vue +1 -1
- package/src/views/bd/setting/table_model/dialog.vue +1 -1
- package/src/views/bd/setting/table_model/list.vue +1 -1
- package/src/views/bd/setting/table_model/zdDialog.vue +1 -1
- package/src/views/user/access_log/list.vue +1 -1
- package/src/views/user/access_log/list2.vue +1 -1
- package/src/views/user/api_request/list.vue +1 -1
- package/src/views/user/area/dialog.vue +1 -1
- package/src/views/user/area/list.vue +1 -1
- package/src/views/user/bill_setting/list.vue +1 -1
- package/src/views/user/bill_setting/userDialog.vue +1 -1
- package/src/views/user/code_rules/list.vue +1 -1
- package/src/views/user/commMenu/index.vue +2 -2
- package/src/views/user/common_attribute/list.vue +2 -2
- package/src/views/user/common_script/list.vue +1 -1
- package/src/views/user/company_info/dialog.vue +1 -1
- package/src/views/user/country/dialog.vue +1 -1
- package/src/views/user/country/list.vue +1 -1
- package/src/views/user/data_type_setting/dialog.vue +1 -1
- package/src/views/user/extend_datasource/dialog.vue +4 -1
- package/src/views/user/extend_datasource/edit.vue +2 -1
- package/src/views/user/extend_datasource/list.vue +4 -1
- package/src/views/user/fieldTranslation/list.vue +1 -1
- package/src/views/user/field_values_invisible/list.vue +1 -1
- package/src/views/user/file_type/list.vue +1 -1
- package/src/views/user/file_view_area/list.vue +1 -1
- package/src/views/user/file_view_ins/list.vue +22 -1
- package/src/views/user/form/view/list.vue +64 -1
- package/src/views/user/groups/dialog.vue +1 -1
- package/src/views/user/groups/list.vue +1 -1
- package/src/views/user/home/default.vue +2 -2
- package/src/views/user/home/default2.vue +1158 -1148
- package/src/views/user/home/index.vue +3 -10
- package/src/views/user/lang_tag/dialog.vue +1 -1
- package/src/views/user/lang_tag/list.vue +1 -1
- package/src/views/user/language_setting/list.vue +1 -1
- package/src/views/user/login/default.vue +0 -8
- package/src/views/user/login/indexMixin.js +547 -556
- package/src/views/user/menu/list.vue +25 -2
- package/src/views/user/menuFallback/index.vue +123 -0
- package/src/views/user/mobile_menu/list.vue +1 -1
- package/src/views/user/notify_message/dialog.vue +22 -1
- package/src/views/user/notify_message/list.vue +1 -1
- package/src/views/user/notify_template/list.vue +1 -1
- package/src/views/user/notify_template/list2.vue +1 -1
- package/src/views/user/oplog/list.vue +1 -1
- package/src/views/user/outLink/form_view.vue +5 -14
- package/src/views/user/outLink/index.vue +6 -1
- package/src/views/user/outLink/view.vue +5 -13
- package/src/views/user/position/dialog.vue +1 -1
- package/src/views/user/position/list.vue +1 -1
- package/src/views/user/project_tag/dialog.vue +1 -1
- package/src/views/user/project_tag/list.vue +1 -1
- package/src/views/user/push_setting/list.vue +1 -1
- package/src/views/user/request_setting/list.vue +1 -1
- package/src/views/user/role/dialog.vue +1 -1
- package/src/views/user/role/list.vue +1 -1
- package/src/views/user/sale_org/dialog.vue +1 -1
- package/src/views/user/sale_org/list.vue +1 -1
- package/src/views/user/system_notice/list.vue +1 -1
- package/src/views/user/system_parameter/list.vue +1 -1
- package/src/views/user/user/dialog.vue +1 -1
- package/src/views/user/user/edit.vue +306 -159
- package/src/views/user/user/form_dialog.vue +1 -1
- package/src/views/user/user/form_list.vue +1 -1
- package/src/views/user/user/list.vue +2 -2
- package/src/views/user/user_log_classify/list.vue +1 -1
- package/src/views/user/wf/iframe/index.vue +6 -1
- package/src/views/user/wf/iframe/index2.vue +6 -1
- package/src/views/user/wf/wfReport/index.vue +12 -6
- package/src/views/user/wf/wf_auto_submit_data/list.vue +2 -2
- package/src/views/user/wf/wf_manage/list.vue +97 -24
- package/src/views/user/wf/wf_manage/list2.vue +875 -0
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +23 -1
- package/src/views/user/wf/wf_obj_config/dialog.vue +1 -1
- package/src/views/user/wf/wf_obj_config/list.vue +1 -1
- package/src/views/user/wf/wf_obj_config/list_form.vue +1 -1
- package/src/views/user/wf/wf_transfer_setting/list.vue +1 -1
- package/src/views/user/workbench_menu/list.vue +1 -1
|
@@ -900,6 +900,16 @@ modules = {
|
|
|
900
900
|
width: 150,
|
|
901
901
|
},
|
|
902
902
|
...customColumns,
|
|
903
|
+
{
|
|
904
|
+
title: this.$t1("作者"),
|
|
905
|
+
field: "fileAuthor",
|
|
906
|
+
width: 150,
|
|
907
|
+
},
|
|
908
|
+
{
|
|
909
|
+
title: this.$t1("修订人"),
|
|
910
|
+
field: "fileReviser",
|
|
911
|
+
width: 150,
|
|
912
|
+
},
|
|
903
913
|
{
|
|
904
914
|
title: this.$t2("创建人", "components.fileLibrary.createBy"),
|
|
905
915
|
field: "_createBy",
|
|
@@ -1,190 +1,190 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-dialog
|
|
3
|
-
:title="$t2('文件详情', 'components.fileLibrary.fileDetail')"
|
|
4
|
-
:append-to-body="true"
|
|
5
|
-
:modal-append-to-body="falseValue"
|
|
6
|
-
:close-on-click-modal="falseValue"
|
|
7
|
-
:visible.sync="showDialog"
|
|
8
|
-
:modal="falseValue"
|
|
9
|
-
custom-class="dialog-style list-dialog"
|
|
10
|
-
width="700px"
|
|
11
|
-
height="500px"
|
|
12
|
-
@close="dialogClose"
|
|
13
|
-
v-el-drag-dialog
|
|
14
|
-
v-el-dialog-center
|
|
15
|
-
>
|
|
16
|
-
<div id="containt">
|
|
17
|
-
<div class="detail-wrap">
|
|
18
|
-
<el-form ref="editForm" :model="attachmentDTO">
|
|
19
|
-
<div class="d-header clearfix">
|
|
20
|
-
<div class="fl">
|
|
21
|
-
<i class="el-icon-info" />
|
|
22
|
-
{{ $t2("文件详情", "components.fileLibrary.fileDetail") }}
|
|
23
|
-
</div>
|
|
24
|
-
<div class="fr">
|
|
25
|
-
<el-button
|
|
26
|
-
type="primary"
|
|
27
|
-
class="button-sty"
|
|
28
|
-
icon="el-icon-check"
|
|
29
|
-
@click="saveData"
|
|
30
|
-
v-if="isEdit && attachmentDTO.status != 1"
|
|
31
|
-
>{{ $t2("保存", "system.button.save") }}
|
|
32
|
-
</el-button>
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
<baseTabs>
|
|
36
|
-
<baseTabPane :label="$t2('基本信息', 'system.label.baseInfo')">
|
|
37
|
-
<template #default>
|
|
38
|
-
<table class="table-detail">
|
|
39
|
-
<tbody>
|
|
40
|
-
<tr>
|
|
41
|
-
<th>{{ $t2("文件路径", "components.fileLibrary.filePath") }}</th>
|
|
42
|
-
<td colspan="3">
|
|
43
|
-
<el-breadcrumb separator-class="el-icon-arrow-right">
|
|
44
|
-
<el-breadcrumb-item
|
|
45
|
-
v-for="(pathName, index) in pathNameArr"
|
|
46
|
-
:key="index"
|
|
47
|
-
>{{ pathName }}
|
|
48
|
-
</el-breadcrumb-item>
|
|
49
|
-
</el-breadcrumb>
|
|
50
|
-
</td>
|
|
51
|
-
</tr>
|
|
52
|
-
<tr>
|
|
53
|
-
<th>
|
|
54
|
-
{{ $t2("文件名称", "components.fileLibrary.fileName") }}
|
|
55
|
-
</th>
|
|
56
|
-
<td colspan="3">
|
|
57
|
-
<el-input v-model="fileName" clearable v-if="isEdit">
|
|
58
|
-
<template slot="append">{{ filePrefix }}</template>
|
|
59
|
-
</el-input>
|
|
60
|
-
<template v-else>{{ attachmentDTO.fileName }}</template>
|
|
61
|
-
</td>
|
|
62
|
-
</tr>
|
|
63
|
-
<tr>
|
|
64
|
-
<th>{{ $t2("所属对象描述", "components.fileLibrary.note") }}</th>
|
|
65
|
-
<td colspan="3">{{ attachmentDTO.note }}</td>
|
|
66
|
-
</tr>
|
|
67
|
-
<tr>
|
|
68
|
-
<th>{{ $t1("文件类型名") }}</th>
|
|
69
|
-
<td colspan="3">
|
|
70
|
-
<b>{{ attachmentDTO.fileTypeName }}</b>
|
|
71
|
-
</td>
|
|
72
|
-
</tr>
|
|
73
|
-
<tr>
|
|
74
|
-
<th>{{ $t2("文件大小", "components.fileLibrary.fileSize") }}</th>
|
|
75
|
-
<td>{{ formatFileSize(attachmentDTO.fileSize) }}</td>
|
|
76
|
-
<th>{{ $t2("版本号", "components.fileLibrary.fileRev") }}</th>
|
|
77
|
-
<td>{{ attachmentDTO.rev }}</td>
|
|
78
|
-
</tr>
|
|
79
|
-
<tr>
|
|
80
|
-
<th>{{ $t2("分辨率", "components.fileLibrary.widthHeight") }}</th>
|
|
81
|
-
<td>{{ attachmentDTO.widthHeight }}</td>
|
|
82
|
-
<th>{{ $t2("是否归档", "components.fileLibrary.status") }}</th>
|
|
83
|
-
<td>{{ attachmentDTO.status == 1 ? "已归档" : "未归档" }}</td>
|
|
84
|
-
</tr>
|
|
85
|
-
<!-- <tr>
|
|
86
|
-
<th>状态</th>
|
|
87
|
-
<td>{{ attachmentDTO.status == 1 ? '归档' : '未归档' }}</td>
|
|
88
|
-
</tr>-->
|
|
89
|
-
<tr>
|
|
90
|
-
<th>{{ $t2("文件编码", "components.fileLibrary.fileSn") }}</th>
|
|
91
|
-
<td colspan="3">{{ attachmentDTO.fileSn }}</td>
|
|
92
|
-
</tr>
|
|
93
|
-
<tr>
|
|
94
|
-
<th>{{ $t1("作者") }}</th>
|
|
95
|
-
<td>{{ attachmentDTO.fileAuthor }}</td>
|
|
96
|
-
<th>{{ $t1("修订人") }}</th>
|
|
97
|
-
<td>{{ attachmentDTO.fileReviser }}</td>
|
|
98
|
-
</tr>
|
|
99
|
-
<tr>
|
|
100
|
-
<th>{{ $t2("创建人", "system.label.createBy") }}</th>
|
|
101
|
-
<td>{{ attachmentDTO._createBy }}</td>
|
|
102
|
-
<th>{{ $t2("创建时间", "system.label.createDate") }}</th>
|
|
103
|
-
<td>{{ attachmentDTO.createDate }}</td>
|
|
104
|
-
</tr>
|
|
105
|
-
</tbody>
|
|
106
|
-
</table>
|
|
107
|
-
</template>
|
|
108
|
-
</baseTabPane>
|
|
109
|
-
<baseTabPane :label="$t2('文件属性', 'components.fileLibrary.fileAttribute')">
|
|
110
|
-
<template #button>
|
|
111
|
-
<el-button
|
|
112
|
-
class="button-sty"
|
|
113
|
-
@click="addItem"
|
|
114
|
-
icon="el-icon-plus"
|
|
115
|
-
v-if="isEdit && attachmentDTO.status != 1"
|
|
116
|
-
>
|
|
117
|
-
{{ $t2("新增文件属性", "components.fileLibrary.addFileAttribute") }}
|
|
118
|
-
</el-button>
|
|
119
|
-
</template>
|
|
120
|
-
<template #default>
|
|
121
|
-
<vxe-grid
|
|
122
|
-
ref="table-m1"
|
|
123
|
-
class="vxe-tableNo"
|
|
124
|
-
height="224px"
|
|
125
|
-
:data="attachmentDTO.fileAttachAttributeDTOs"
|
|
126
|
-
v-bind="vxeOption"
|
|
127
|
-
@resizable-change="$vxeTableUtil.onColumnWitchChange"
|
|
128
|
-
@custom="$vxeTableUtil.customHandle"
|
|
129
|
-
>
|
|
130
|
-
<template #attributeName="{ row, rowIndex }">
|
|
131
|
-
<el-form-item
|
|
132
|
-
:prop="'fileAttachAttributeDTOs.' + rowIndex + '.attributeName'"
|
|
133
|
-
:rules="[{ required: true, trigger: 'blur' }]"
|
|
134
|
-
>
|
|
135
|
-
<el-input v-model="row.attributeName" clearable v-if="isEdit" />
|
|
136
|
-
<template v-else>{{ row.attributeName }}</template>
|
|
137
|
-
</el-form-item>
|
|
138
|
-
</template>
|
|
139
|
-
<template #attributeValue="{ row }">
|
|
140
|
-
<el-input v-model="row.attributeValue" clearable v-if="isEdit" />
|
|
141
|
-
<template v-else>{{ row.attributeValue }}</template>
|
|
142
|
-
</template>
|
|
143
|
-
<template #operate="{ row, rowIndex }">
|
|
144
|
-
<a
|
|
145
|
-
class="a-link"
|
|
146
|
-
@click="attachmentDTO.fileAttachAttributeDTOs.splice(rowIndex, 1)"
|
|
147
|
-
v-if="isEdit"
|
|
148
|
-
>
|
|
149
|
-
<el-tooltip
|
|
150
|
-
:enterable="false"
|
|
151
|
-
effect="dark"
|
|
152
|
-
:content="$t2('删除', 'components.fileLibrary.delete')"
|
|
153
|
-
placement="top"
|
|
154
|
-
popper-class="tooltip-skin"
|
|
155
|
-
>
|
|
156
|
-
<i class="el-icon-delete" />
|
|
157
|
-
</el-tooltip>
|
|
158
|
-
</a>
|
|
159
|
-
</template>
|
|
160
|
-
</vxe-grid>
|
|
161
|
-
</template>
|
|
162
|
-
</baseTabPane>
|
|
163
|
-
<baseTabPane :label="$t1('文件关联对象')">
|
|
164
|
-
<template #button></template>
|
|
165
|
-
<template #default>
|
|
166
|
-
<vxe-grid
|
|
167
|
-
ref="table-m2"
|
|
168
|
-
class="vxe-tableNo"
|
|
169
|
-
height="224px"
|
|
170
|
-
:data="fileAttachObjDTOs"
|
|
171
|
-
v-bind="vxeOption2"
|
|
172
|
-
@resizable-change="$vxeTableUtil.onColumnWitchChange"
|
|
173
|
-
@custom="$vxeTableUtil.customHandle"
|
|
174
|
-
></vxe-grid>
|
|
175
|
-
</template>
|
|
176
|
-
</baseTabPane>
|
|
177
|
-
</baseTabs>
|
|
178
|
-
</el-form>
|
|
179
|
-
</div>
|
|
180
|
-
</div>
|
|
181
|
-
</el-dialog>
|
|
182
|
-
</template>
|
|
183
|
-
|
|
184
|
-
<script>
|
|
185
|
-
import mixins from "./mixins/propertiesDialogMixins";
|
|
186
|
-
|
|
187
|
-
export default {
|
|
188
|
-
mixins: [mixins],
|
|
189
|
-
};
|
|
190
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<el-dialog
|
|
3
|
+
:title="$t2('文件详情', 'components.fileLibrary.fileDetail')"
|
|
4
|
+
:append-to-body="true"
|
|
5
|
+
:modal-append-to-body="falseValue"
|
|
6
|
+
:close-on-click-modal="falseValue"
|
|
7
|
+
:visible.sync="showDialog"
|
|
8
|
+
:modal="falseValue"
|
|
9
|
+
custom-class="dialog-style list-dialog"
|
|
10
|
+
width="700px"
|
|
11
|
+
height="500px"
|
|
12
|
+
@close="dialogClose"
|
|
13
|
+
v-el-drag-dialog
|
|
14
|
+
v-el-dialog-center
|
|
15
|
+
>
|
|
16
|
+
<div id="containt">
|
|
17
|
+
<div class="detail-wrap" style="height:80vh">
|
|
18
|
+
<el-form ref="editForm" :model="attachmentDTO">
|
|
19
|
+
<div class="d-header clearfix">
|
|
20
|
+
<div class="fl">
|
|
21
|
+
<i class="el-icon-info" />
|
|
22
|
+
{{ $t2("文件详情", "components.fileLibrary.fileDetail") }}
|
|
23
|
+
</div>
|
|
24
|
+
<div class="fr">
|
|
25
|
+
<el-button
|
|
26
|
+
type="primary"
|
|
27
|
+
class="button-sty"
|
|
28
|
+
icon="el-icon-check"
|
|
29
|
+
@click="saveData"
|
|
30
|
+
v-if="isEdit && attachmentDTO.status != 1"
|
|
31
|
+
>{{ $t2("保存", "system.button.save") }}
|
|
32
|
+
</el-button>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
<baseTabs>
|
|
36
|
+
<baseTabPane :label="$t2('基本信息', 'system.label.baseInfo')">
|
|
37
|
+
<template #default>
|
|
38
|
+
<table class="table-detail">
|
|
39
|
+
<tbody>
|
|
40
|
+
<tr>
|
|
41
|
+
<th>{{ $t2("文件路径", "components.fileLibrary.filePath") }}</th>
|
|
42
|
+
<td colspan="3">
|
|
43
|
+
<el-breadcrumb separator-class="el-icon-arrow-right">
|
|
44
|
+
<el-breadcrumb-item
|
|
45
|
+
v-for="(pathName, index) in pathNameArr"
|
|
46
|
+
:key="index"
|
|
47
|
+
>{{ pathName }}
|
|
48
|
+
</el-breadcrumb-item>
|
|
49
|
+
</el-breadcrumb>
|
|
50
|
+
</td>
|
|
51
|
+
</tr>
|
|
52
|
+
<tr>
|
|
53
|
+
<th>
|
|
54
|
+
{{ $t2("文件名称", "components.fileLibrary.fileName") }}
|
|
55
|
+
</th>
|
|
56
|
+
<td colspan="3">
|
|
57
|
+
<el-input v-model="fileName" clearable v-if="isEdit">
|
|
58
|
+
<template slot="append">{{ filePrefix }}</template>
|
|
59
|
+
</el-input>
|
|
60
|
+
<template v-else>{{ attachmentDTO.fileName }}</template>
|
|
61
|
+
</td>
|
|
62
|
+
</tr>
|
|
63
|
+
<tr>
|
|
64
|
+
<th>{{ $t2("所属对象描述", "components.fileLibrary.note") }}</th>
|
|
65
|
+
<td colspan="3">{{ attachmentDTO.note }}</td>
|
|
66
|
+
</tr>
|
|
67
|
+
<tr>
|
|
68
|
+
<th>{{ $t1("文件类型名") }}</th>
|
|
69
|
+
<td colspan="3">
|
|
70
|
+
<b>{{ attachmentDTO.fileTypeName }}</b>
|
|
71
|
+
</td>
|
|
72
|
+
</tr>
|
|
73
|
+
<tr>
|
|
74
|
+
<th>{{ $t2("文件大小", "components.fileLibrary.fileSize") }}</th>
|
|
75
|
+
<td>{{ formatFileSize(attachmentDTO.fileSize) }}</td>
|
|
76
|
+
<th>{{ $t2("版本号", "components.fileLibrary.fileRev") }}</th>
|
|
77
|
+
<td>{{ attachmentDTO.rev }}</td>
|
|
78
|
+
</tr>
|
|
79
|
+
<tr>
|
|
80
|
+
<th>{{ $t2("分辨率", "components.fileLibrary.widthHeight") }}</th>
|
|
81
|
+
<td>{{ attachmentDTO.widthHeight }}</td>
|
|
82
|
+
<th>{{ $t2("是否归档", "components.fileLibrary.status") }}</th>
|
|
83
|
+
<td>{{ attachmentDTO.status == 1 ? "已归档" : "未归档" }}</td>
|
|
84
|
+
</tr>
|
|
85
|
+
<!-- <tr>
|
|
86
|
+
<th>状态</th>
|
|
87
|
+
<td>{{ attachmentDTO.status == 1 ? '归档' : '未归档' }}</td>
|
|
88
|
+
</tr>-->
|
|
89
|
+
<tr>
|
|
90
|
+
<th>{{ $t2("文件编码", "components.fileLibrary.fileSn") }}</th>
|
|
91
|
+
<td colspan="3">{{ attachmentDTO.fileSn }}</td>
|
|
92
|
+
</tr>
|
|
93
|
+
<tr>
|
|
94
|
+
<th>{{ $t1("作者") }}</th>
|
|
95
|
+
<td>{{ attachmentDTO.fileAuthor }}</td>
|
|
96
|
+
<th>{{ $t1("修订人") }}</th>
|
|
97
|
+
<td>{{ attachmentDTO.fileReviser }}</td>
|
|
98
|
+
</tr>
|
|
99
|
+
<tr>
|
|
100
|
+
<th>{{ $t2("创建人", "system.label.createBy") }}</th>
|
|
101
|
+
<td>{{ attachmentDTO._createBy }}</td>
|
|
102
|
+
<th>{{ $t2("创建时间", "system.label.createDate") }}</th>
|
|
103
|
+
<td>{{ attachmentDTO.createDate }}</td>
|
|
104
|
+
</tr>
|
|
105
|
+
</tbody>
|
|
106
|
+
</table>
|
|
107
|
+
</template>
|
|
108
|
+
</baseTabPane>
|
|
109
|
+
<baseTabPane :label="$t2('文件属性', 'components.fileLibrary.fileAttribute')">
|
|
110
|
+
<template #button>
|
|
111
|
+
<el-button
|
|
112
|
+
class="button-sty"
|
|
113
|
+
@click="addItem"
|
|
114
|
+
icon="el-icon-plus"
|
|
115
|
+
v-if="isEdit && attachmentDTO.status != 1"
|
|
116
|
+
>
|
|
117
|
+
{{ $t2("新增文件属性", "components.fileLibrary.addFileAttribute") }}
|
|
118
|
+
</el-button>
|
|
119
|
+
</template>
|
|
120
|
+
<template #default>
|
|
121
|
+
<vxe-grid
|
|
122
|
+
ref="table-m1"
|
|
123
|
+
class="vxe-tableNo"
|
|
124
|
+
height="224px"
|
|
125
|
+
:data="attachmentDTO.fileAttachAttributeDTOs"
|
|
126
|
+
v-bind="vxeOption"
|
|
127
|
+
@resizable-change="$vxeTableUtil.onColumnWitchChange"
|
|
128
|
+
@custom="$vxeTableUtil.customHandle"
|
|
129
|
+
>
|
|
130
|
+
<template #attributeName="{ row, rowIndex }">
|
|
131
|
+
<el-form-item
|
|
132
|
+
:prop="'fileAttachAttributeDTOs.' + rowIndex + '.attributeName'"
|
|
133
|
+
:rules="[{ required: true, trigger: 'blur' }]"
|
|
134
|
+
>
|
|
135
|
+
<el-input v-model="row.attributeName" clearable v-if="isEdit" />
|
|
136
|
+
<template v-else>{{ row.attributeName }}</template>
|
|
137
|
+
</el-form-item>
|
|
138
|
+
</template>
|
|
139
|
+
<template #attributeValue="{ row }">
|
|
140
|
+
<el-input v-model="row.attributeValue" clearable v-if="isEdit" />
|
|
141
|
+
<template v-else>{{ row.attributeValue }}</template>
|
|
142
|
+
</template>
|
|
143
|
+
<template #operate="{ row, rowIndex }">
|
|
144
|
+
<a
|
|
145
|
+
class="a-link"
|
|
146
|
+
@click="attachmentDTO.fileAttachAttributeDTOs.splice(rowIndex, 1)"
|
|
147
|
+
v-if="isEdit"
|
|
148
|
+
>
|
|
149
|
+
<el-tooltip
|
|
150
|
+
:enterable="false"
|
|
151
|
+
effect="dark"
|
|
152
|
+
:content="$t2('删除', 'components.fileLibrary.delete')"
|
|
153
|
+
placement="top"
|
|
154
|
+
popper-class="tooltip-skin"
|
|
155
|
+
>
|
|
156
|
+
<i class="el-icon-delete" />
|
|
157
|
+
</el-tooltip>
|
|
158
|
+
</a>
|
|
159
|
+
</template>
|
|
160
|
+
</vxe-grid>
|
|
161
|
+
</template>
|
|
162
|
+
</baseTabPane>
|
|
163
|
+
<baseTabPane :label="$t1('文件关联对象')">
|
|
164
|
+
<template #button></template>
|
|
165
|
+
<template #default>
|
|
166
|
+
<vxe-grid
|
|
167
|
+
ref="table-m2"
|
|
168
|
+
class="vxe-tableNo"
|
|
169
|
+
height="224px"
|
|
170
|
+
:data="fileAttachObjDTOs"
|
|
171
|
+
v-bind="vxeOption2"
|
|
172
|
+
@resizable-change="$vxeTableUtil.onColumnWitchChange"
|
|
173
|
+
@custom="$vxeTableUtil.customHandle"
|
|
174
|
+
></vxe-grid>
|
|
175
|
+
</template>
|
|
176
|
+
</baseTabPane>
|
|
177
|
+
</baseTabs>
|
|
178
|
+
</el-form>
|
|
179
|
+
</div>
|
|
180
|
+
</div>
|
|
181
|
+
</el-dialog>
|
|
182
|
+
</template>
|
|
183
|
+
|
|
184
|
+
<script>
|
|
185
|
+
import mixins from "./mixins/propertiesDialogMixins";
|
|
186
|
+
|
|
187
|
+
export default {
|
|
188
|
+
mixins: [mixins],
|
|
189
|
+
};
|
|
190
|
+
</script>
|