cloud-web-corejs 1.0.137 → 1.0.139
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 +1 -1
- package/src/components/baseAttachment/mixins.js +1 -1
- package/src/components/fileLibrary/filterDialog.vue +130 -83
- package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +2 -2
- package/src/components/fileLibrary/mixins/indexMixins.js +2 -2
- package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +1 -1
- package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +2 -2
- package/src/components/fileLibrary/propertiesDialog.vue +99 -78
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-dialog
|
|
3
|
-
:title="$t2('文件详情','components.fileLibrary.fileDetail')"
|
|
3
|
+
:title="$t2('文件详情', 'components.fileLibrary.fileDetail')"
|
|
4
4
|
:append-to-body="true"
|
|
5
5
|
:modal-append-to-body="falseValue"
|
|
6
6
|
:close-on-click-modal="falseValue"
|
|
@@ -18,85 +18,97 @@
|
|
|
18
18
|
<el-form ref="editForm" :model="attachmentDTO">
|
|
19
19
|
<div class="d-header clearfix">
|
|
20
20
|
<div class="fl">
|
|
21
|
-
<i class="el-icon-info"/>
|
|
22
|
-
{{ $t2(
|
|
21
|
+
<i class="el-icon-info" />
|
|
22
|
+
{{ $t2("文件详情", "components.fileLibrary.fileDetail") }}
|
|
23
23
|
</div>
|
|
24
24
|
<div class="fr">
|
|
25
|
-
<el-button
|
|
26
|
-
|
|
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") }}
|
|
27
32
|
</el-button>
|
|
28
33
|
</div>
|
|
29
34
|
</div>
|
|
30
35
|
<baseTabs>
|
|
31
|
-
<baseTabPane :label="$t2('基本信息','system.label.baseInfo')">
|
|
36
|
+
<baseTabPane :label="$t2('基本信息', 'system.label.baseInfo')">
|
|
32
37
|
<template #default>
|
|
33
38
|
<table class="table-detail">
|
|
34
39
|
<tbody>
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
pathName
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
<
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
<
|
|
52
|
-
<
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
<
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
<
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
<
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
<
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
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>
|
|
78
86
|
<th>状态</th>
|
|
79
87
|
<td>{{ attachmentDTO.status == 1 ? '归档' : '未归档' }}</td>
|
|
80
88
|
</tr>-->
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
<tr>
|
|
90
|
+
<th>{{ $t2("文件编码", "components.fileLibrary.fileSn") }}</th>
|
|
91
|
+
<td colspan="3">{{ attachmentDTO.fileSn }}</td>
|
|
92
|
+
</tr>
|
|
93
|
+
<tr>
|
|
94
|
+
<th>{{ $t2("创建人", "system.label.createBy") }}</th>
|
|
95
|
+
<td>{{ attachmentDTO._createBy }}</td>
|
|
96
|
+
<th>{{ $t2("创建时间", "system.label.createDate") }}</th>
|
|
97
|
+
<td>{{ attachmentDTO.createDate }}</td>
|
|
98
|
+
</tr>
|
|
91
99
|
</tbody>
|
|
92
100
|
</table>
|
|
93
101
|
</template>
|
|
94
102
|
</baseTabPane>
|
|
95
|
-
<baseTabPane :label="$t2('文件属性','components.fileLibrary.fileAttribute')">
|
|
103
|
+
<baseTabPane :label="$t2('文件属性', 'components.fileLibrary.fileAttribute')">
|
|
96
104
|
<template #button>
|
|
97
|
-
<el-button
|
|
98
|
-
|
|
99
|
-
|
|
105
|
+
<el-button
|
|
106
|
+
class="button-sty"
|
|
107
|
+
@click="addItem"
|
|
108
|
+
icon="el-icon-plus"
|
|
109
|
+
v-if="isEdit && attachmentDTO.status != 1"
|
|
110
|
+
>
|
|
111
|
+
{{ $t2("新增文件属性", "components.fileLibrary.addFileAttribute") }}
|
|
100
112
|
</el-button>
|
|
101
113
|
</template>
|
|
102
114
|
<template #default>
|
|
@@ -109,24 +121,33 @@
|
|
|
109
121
|
@resizable-change="$vxeTableUtil.onColumnWitchChange"
|
|
110
122
|
@custom="$vxeTableUtil.customHandle"
|
|
111
123
|
>
|
|
112
|
-
<template #attributeName="{row,rowIndex}">
|
|
113
|
-
<el-form-item
|
|
114
|
-
|
|
115
|
-
|
|
124
|
+
<template #attributeName="{ row, rowIndex }">
|
|
125
|
+
<el-form-item
|
|
126
|
+
:prop="'fileAttachAttributeDTOs.' + rowIndex + '.attributeName'"
|
|
127
|
+
:rules="[{ required: true, trigger: 'blur' }]"
|
|
128
|
+
>
|
|
129
|
+
<el-input v-model="row.attributeName" clearable v-if="isEdit" />
|
|
116
130
|
<template v-else>{{ row.attributeName }}</template>
|
|
117
131
|
</el-form-item>
|
|
118
132
|
</template>
|
|
119
|
-
<template #attributeValue="{row}">
|
|
120
|
-
<el-input v-model="row.attributeValue" clearable v-if="isEdit"/>
|
|
133
|
+
<template #attributeValue="{ row }">
|
|
134
|
+
<el-input v-model="row.attributeValue" clearable v-if="isEdit" />
|
|
121
135
|
<template v-else>{{ row.attributeValue }}</template>
|
|
122
136
|
</template>
|
|
123
|
-
<template #operate="{row,rowIndex}">
|
|
124
|
-
<a
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
137
|
+
<template #operate="{ row, rowIndex }">
|
|
138
|
+
<a
|
|
139
|
+
class="a-link"
|
|
140
|
+
@click="attachmentDTO.fileAttachAttributeDTOs.splice(rowIndex, 1)"
|
|
141
|
+
v-if="isEdit"
|
|
142
|
+
>
|
|
143
|
+
<el-tooltip
|
|
144
|
+
:enterable="false"
|
|
145
|
+
effect="dark"
|
|
146
|
+
:content="$t2('删除', 'components.fileLibrary.delete')"
|
|
147
|
+
placement="top"
|
|
148
|
+
popper-class="tooltip-skin"
|
|
149
|
+
>
|
|
150
|
+
<i class="el-icon-delete" />
|
|
130
151
|
</el-tooltip>
|
|
131
152
|
</a>
|
|
132
153
|
</template>
|
|
@@ -155,9 +176,9 @@
|
|
|
155
176
|
</template>
|
|
156
177
|
|
|
157
178
|
<script>
|
|
158
|
-
import mixins from
|
|
179
|
+
import mixins from "./mixins/propertiesDialogMixins";
|
|
159
180
|
|
|
160
181
|
export default {
|
|
161
|
-
mixins: [mixins]
|
|
182
|
+
mixins: [mixins],
|
|
162
183
|
};
|
|
163
184
|
</script>
|