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
|
@@ -13,16 +13,16 @@
|
|
|
13
13
|
v-el-dialog-center
|
|
14
14
|
>
|
|
15
15
|
<div class="cont">
|
|
16
|
-
<div id="containt" style="height:550px">
|
|
17
|
-
<div class="search-criteria fl" style="width:220px;height:100
|
|
16
|
+
<div id="containt" style="height: 550px">
|
|
17
|
+
<div class="search-criteria fl" style="width: 220px; height: 100%">
|
|
18
18
|
<div class="tit"><i class="iconfont icon-shaixuan"></i><b>搜索条件</b></div>
|
|
19
19
|
|
|
20
20
|
<el-form label-position="top">
|
|
21
|
-
<div style="height:468px;padding-top: 10px;overflow:auto">
|
|
21
|
+
<div style="height: 468px; padding-top: 10px; overflow: auto">
|
|
22
22
|
<el-form-item label="文件名">
|
|
23
|
-
<el-input v-model="formData.fileName" size="small" clearable/>
|
|
23
|
+
<el-input v-model="formData.fileName" size="small" clearable />
|
|
24
24
|
</el-form-item>
|
|
25
|
-
<!-- <el-form-item label="所属对象描述">
|
|
25
|
+
<!-- <el-form-item label="所属对象描述">
|
|
26
26
|
<base-input-batch v-model="formData.note"/>
|
|
27
27
|
</el-form-item>-->
|
|
28
28
|
<el-form-item label="创建时间">
|
|
@@ -48,30 +48,49 @@
|
|
|
48
48
|
</el-form-item>
|
|
49
49
|
<el-form-item label="文件类型">
|
|
50
50
|
<el-select v-model="fileTypeSn" @change="getAttributeList">
|
|
51
|
-
<el-option
|
|
52
|
-
|
|
51
|
+
<el-option
|
|
52
|
+
v-for="(item, index) in fileTypes"
|
|
53
|
+
:key="index"
|
|
54
|
+
:label="item.fileTypeName"
|
|
55
|
+
:value="item.fileTypeSn"
|
|
56
|
+
></el-option>
|
|
53
57
|
</el-select>
|
|
54
58
|
</el-form-item>
|
|
55
|
-
<el-form-item
|
|
59
|
+
<el-form-item
|
|
60
|
+
v-for="(item, index) in fileAttributes"
|
|
61
|
+
:key="index"
|
|
62
|
+
:label="item.attributeName"
|
|
63
|
+
>
|
|
56
64
|
<el-input v-model="item.formValue" clearable></el-input>
|
|
57
65
|
</el-form-item>
|
|
58
66
|
</div>
|
|
59
67
|
<el-form-item class="btns">
|
|
60
|
-
<el-button
|
|
68
|
+
<el-button
|
|
69
|
+
icon="el-icon-brush"
|
|
70
|
+
class="button-sty"
|
|
71
|
+
@click="resetEvent"
|
|
72
|
+
type="primary"
|
|
73
|
+
plain
|
|
74
|
+
>重置
|
|
61
75
|
</el-button>
|
|
62
|
-
<el-button
|
|
76
|
+
<el-button
|
|
77
|
+
type="warning"
|
|
78
|
+
icon="el-icon-search"
|
|
79
|
+
class="button-sty"
|
|
80
|
+
@click="searchEvent"
|
|
81
|
+
>搜索
|
|
63
82
|
</el-button>
|
|
64
83
|
</el-form-item>
|
|
65
84
|
</el-form>
|
|
66
85
|
</div>
|
|
67
|
-
<label id="labBtn" class="labBtn1" style="cursor:unset;height: 100
|
|
86
|
+
<label id="labBtn" class="labBtn1" style="cursor: unset; height: 100%">
|
|
68
87
|
<!-- <div class="icon">
|
|
69
88
|
<i class="el-icon-more"></i>
|
|
70
89
|
<i class="el-icon-more"></i>
|
|
71
90
|
</div>-->
|
|
72
91
|
</label>
|
|
73
|
-
<div class="main-right fr" style="width:calc(100% - 220px);padding-left: 6px
|
|
74
|
-
<div style="height:100%">
|
|
92
|
+
<div class="main-right fr" style="width: calc(100% - 220px); padding-left: 6px">
|
|
93
|
+
<div style="height: 100%">
|
|
75
94
|
<vxe-grid
|
|
76
95
|
ref="table-m1"
|
|
77
96
|
v-bind="vxeOption"
|
|
@@ -82,11 +101,17 @@
|
|
|
82
101
|
<div class="clearfix screen-btns">
|
|
83
102
|
<div class="fl screen-breadcrumb">
|
|
84
103
|
<el-breadcrumb separator-class="el-icon-arrow-right ">
|
|
85
|
-
<el-breadcrumb-item
|
|
86
|
-
|
|
104
|
+
<el-breadcrumb-item
|
|
105
|
+
><i class="iconfont icon-dingwei-mianxing"></i
|
|
106
|
+
><span class="f-blue" @click="checkTreeNode()">搜索范围</span>
|
|
87
107
|
</el-breadcrumb-item>
|
|
88
|
-
<el-breadcrumb-item
|
|
89
|
-
|
|
108
|
+
<el-breadcrumb-item
|
|
109
|
+
v-for="(treeNode, index) in treeNodeArr"
|
|
110
|
+
:key="index"
|
|
111
|
+
>
|
|
112
|
+
<span class="f-blue" @click="checkTreeNode(treeNode)">{{
|
|
113
|
+
treeNode.label
|
|
114
|
+
}}</span>
|
|
90
115
|
</el-breadcrumb-item>
|
|
91
116
|
</el-breadcrumb>
|
|
92
117
|
</div>
|
|
@@ -100,15 +125,21 @@
|
|
|
100
125
|
</div>
|
|
101
126
|
</div>
|
|
102
127
|
</template>
|
|
103
|
-
<template #fileName="{row}">
|
|
128
|
+
<template #fileName="{ row }">
|
|
104
129
|
<div>
|
|
105
|
-
<el-tooltip
|
|
106
|
-
|
|
130
|
+
<el-tooltip
|
|
131
|
+
:enterable="false"
|
|
132
|
+
effect="dark"
|
|
133
|
+
:content="$t2('预览', 'components.fileLibrary.preview')"
|
|
134
|
+
placement="top"
|
|
135
|
+
>
|
|
107
136
|
<a class="a-link img" @click="$baseFilePreview(row)">
|
|
108
|
-
<el-image :src="getShowUrl(row,'thumbnail')"></el-image>
|
|
137
|
+
<el-image :src="getShowUrl(row, 'thumbnail')"></el-image>
|
|
109
138
|
</a>
|
|
110
139
|
</el-tooltip>
|
|
111
|
-
<a class="a-link underLine" @click="$baseFilePreview(row)">{{
|
|
140
|
+
<a class="a-link underLine" @click="$baseFilePreview(row)">{{
|
|
141
|
+
row.fileName
|
|
142
|
+
}}</a>
|
|
112
143
|
</div>
|
|
113
144
|
</template>
|
|
114
145
|
</vxe-grid>
|
|
@@ -120,23 +151,22 @@
|
|
|
120
151
|
</template>
|
|
121
152
|
|
|
122
153
|
<script>
|
|
123
|
-
import {selectDialogMixins} from
|
|
154
|
+
import { selectDialogMixins } from "@base/mixins/selectDialog/index.js";
|
|
124
155
|
|
|
125
|
-
import {treeScollx, treeScolly} from
|
|
126
|
-
import {encode} from "js-base64";
|
|
156
|
+
import { treeScollx, treeScolly } from "@base/utils/global.js";
|
|
157
|
+
import { encode } from "js-base64";
|
|
127
158
|
|
|
128
159
|
export default {
|
|
129
|
-
name:
|
|
130
|
-
props: [
|
|
160
|
+
name: "productDialog",
|
|
161
|
+
props: ["visiable", "multi", "rows", "treeNodeArr", "currentFileCategory"],
|
|
131
162
|
mixins: [selectDialogMixins],
|
|
132
|
-
inject: [
|
|
163
|
+
inject: ["current_prefix", "storeAreaCode", "getObjectForeignId", "getIsPrivate"],
|
|
133
164
|
created() {
|
|
134
|
-
this.initSetting({treeScolly: false});
|
|
165
|
+
this.initSetting({ treeScolly: false });
|
|
135
166
|
/*setTimeout(() => {
|
|
136
167
|
treeScollx({target: this, type: 'default', dragBtn: '.labBtn1'});
|
|
137
168
|
treeScolly({target: this, type: 'selectDialog', dragBtn: '.labBtn2'});
|
|
138
169
|
}, 200);*/
|
|
139
|
-
|
|
140
170
|
},
|
|
141
171
|
mounted() {
|
|
142
172
|
this.getFileTypeList();
|
|
@@ -155,7 +185,7 @@ export default {
|
|
|
155
185
|
fileTypes: [],
|
|
156
186
|
fileAttributes: [],
|
|
157
187
|
fileTypeSn: null,
|
|
158
|
-
fileAttachAttributeCDTos: []
|
|
188
|
+
fileAttachAttributeCDTos: [],
|
|
159
189
|
};
|
|
160
190
|
},
|
|
161
191
|
methods: {
|
|
@@ -164,8 +194,8 @@ export default {
|
|
|
164
194
|
|
|
165
195
|
let tableOption = {
|
|
166
196
|
vue: that,
|
|
167
|
-
tableRef:
|
|
168
|
-
tableName:
|
|
197
|
+
tableRef: "table-m1",
|
|
198
|
+
tableName: "fileLigraryFilterDialog-m1",
|
|
169
199
|
path: this.current_prefix + "/file_obj/listAuthAttachPage",
|
|
170
200
|
param: () => {
|
|
171
201
|
/* let parents = this.currentFileCategory &&
|
|
@@ -174,11 +204,14 @@ export default {
|
|
|
174
204
|
? [this.currentFileCategory.id]
|
|
175
205
|
: [];*/
|
|
176
206
|
let fileAttachAttributeCDTOs = [];
|
|
177
|
-
this.fileAttributes.map(item => {
|
|
207
|
+
this.fileAttributes.map((item) => {
|
|
178
208
|
if (item.formValue !== "" && item.formValue !== null) {
|
|
179
|
-
fileAttachAttributeCDTOs.push({
|
|
209
|
+
fileAttachAttributeCDTOs.push({
|
|
210
|
+
attributeSn: item.attributeSn,
|
|
211
|
+
attributeValue: item.formValue,
|
|
212
|
+
});
|
|
180
213
|
}
|
|
181
|
-
})
|
|
214
|
+
});
|
|
182
215
|
|
|
183
216
|
let objectForeignId = this.getObjectForeignId();
|
|
184
217
|
let isPrivate = this.getIsPrivate();
|
|
@@ -193,26 +226,26 @@ export default {
|
|
|
193
226
|
},
|
|
194
227
|
config: {
|
|
195
228
|
proxyConfig: {
|
|
196
|
-
autoLoad: false
|
|
197
|
-
}
|
|
229
|
+
autoLoad: false,
|
|
230
|
+
},
|
|
198
231
|
},
|
|
199
232
|
columns: [
|
|
200
|
-
{type:
|
|
233
|
+
{ type: "checkbox", width: 48, resizable: false, fixed: "left" },
|
|
201
234
|
{
|
|
202
|
-
title: this.$t2(
|
|
235
|
+
title: this.$t2("文件名称", "components.fileLibrary.fileName"),
|
|
203
236
|
field: "fileName",
|
|
204
237
|
width: 250,
|
|
205
238
|
fixed: "left",
|
|
206
239
|
slots: {
|
|
207
|
-
default:
|
|
240
|
+
default: "fileName",
|
|
208
241
|
},
|
|
209
242
|
},
|
|
210
243
|
{
|
|
211
|
-
title: this.$t2(
|
|
244
|
+
title: this.$t2("文件大小", "components.fileLibrary.fileSize"),
|
|
212
245
|
field: "fileSize",
|
|
213
246
|
width: 150,
|
|
214
247
|
slots: {
|
|
215
|
-
default: ({row, $rowIndex}) => {
|
|
248
|
+
default: ({ row, $rowIndex }) => {
|
|
216
249
|
if (!row.dirs) {
|
|
217
250
|
return this.formatFileSize(row.fileSize);
|
|
218
251
|
}
|
|
@@ -220,50 +253,62 @@ export default {
|
|
|
220
253
|
},
|
|
221
254
|
},
|
|
222
255
|
{
|
|
223
|
-
title: this.$t2(
|
|
256
|
+
title: this.$t2("版本号", "components.fileLibrary.fileRev"),
|
|
224
257
|
field: "rev",
|
|
225
258
|
width: 150,
|
|
226
259
|
slots: {
|
|
227
|
-
default: ({row, $rowIndex}) => {
|
|
260
|
+
default: ({ row, $rowIndex }) => {
|
|
228
261
|
if (!row.dirs) {
|
|
229
262
|
return row.rev;
|
|
230
263
|
}
|
|
231
|
-
}
|
|
232
|
-
}
|
|
264
|
+
},
|
|
265
|
+
},
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
title: this.$t2("分辨率", "components.fileLibrary.widthHeight"),
|
|
269
|
+
field: "widthHeight",
|
|
270
|
+
width: 150,
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
title: this.$t2("所属对象描述", "components.fileLibrary.note"),
|
|
274
|
+
field: "note",
|
|
275
|
+
width: 250,
|
|
233
276
|
},
|
|
234
|
-
{title: this.$t2('分辨率', 'components.fileLibrary.widthHeight'), field: "widthHeight", width: 150},
|
|
235
|
-
{title: this.$t2('所属对象描述', 'components.fileLibrary.note'), field: "note", width: 250},
|
|
236
277
|
{
|
|
237
|
-
title:
|
|
238
|
-
field:
|
|
278
|
+
title: "状态",
|
|
279
|
+
field: "status",
|
|
239
280
|
width: 150,
|
|
240
281
|
slots: {
|
|
241
|
-
default: ({row, $rowIndex}) => {
|
|
282
|
+
default: ({ row, $rowIndex }) => {
|
|
242
283
|
if (!row.dirs) {
|
|
243
|
-
return row.status == 1 ?
|
|
284
|
+
return row.status == 1 ? "已归档" : "未归档";
|
|
244
285
|
}
|
|
245
|
-
}
|
|
246
|
-
}
|
|
286
|
+
},
|
|
287
|
+
},
|
|
247
288
|
},
|
|
248
289
|
{
|
|
249
|
-
title: this.$t2(
|
|
290
|
+
title: this.$t2("文件编码", "components.fileLibrary.fileSn"),
|
|
250
291
|
field: "fileSn",
|
|
251
|
-
width: 150
|
|
292
|
+
width: 150,
|
|
252
293
|
},
|
|
253
294
|
// ...customColumns,
|
|
254
|
-
{
|
|
295
|
+
{
|
|
296
|
+
title: this.$t2("创建人", "components.fileLibrary.createBy"),
|
|
297
|
+
field: "_createBy",
|
|
298
|
+
width: 150,
|
|
299
|
+
},
|
|
255
300
|
{
|
|
256
301
|
field: "createDate",
|
|
257
|
-
title: this.$t2(
|
|
302
|
+
title: this.$t2("创建时间", "components.fileLibrary.createDate"),
|
|
258
303
|
width: 150,
|
|
259
304
|
},
|
|
260
305
|
{
|
|
261
306
|
width: 47,
|
|
262
|
-
fixed:
|
|
263
|
-
title:
|
|
307
|
+
fixed: "right",
|
|
308
|
+
title: "",
|
|
264
309
|
sortable: false,
|
|
265
310
|
slots: {
|
|
266
|
-
default: ({row, rowIndex}) => {
|
|
311
|
+
default: ({ row, rowIndex }) => {
|
|
267
312
|
return [
|
|
268
313
|
<div>
|
|
269
314
|
<a
|
|
@@ -273,31 +318,35 @@ export default {
|
|
|
273
318
|
this.openFileDirs(row);
|
|
274
319
|
}}
|
|
275
320
|
>
|
|
276
|
-
<el-tooltip
|
|
277
|
-
|
|
278
|
-
|
|
321
|
+
<el-tooltip
|
|
322
|
+
enterable={false}
|
|
323
|
+
effect="dark"
|
|
324
|
+
content={this.$t1("在文件夹中显示")}
|
|
325
|
+
placement="top"
|
|
326
|
+
popper-class="tooltip-skin"
|
|
327
|
+
>
|
|
328
|
+
<i class="el-icon-view" />
|
|
279
329
|
</el-tooltip>
|
|
280
330
|
</a>
|
|
281
|
-
</div
|
|
331
|
+
</div>,
|
|
282
332
|
];
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
}
|
|
333
|
+
},
|
|
334
|
+
},
|
|
335
|
+
},
|
|
286
336
|
],
|
|
287
337
|
};
|
|
288
|
-
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
|
338
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then((opts) => {
|
|
289
339
|
that.vxeOption = opts;
|
|
290
340
|
});
|
|
291
341
|
},
|
|
292
342
|
openFileDirs(row) {
|
|
293
343
|
this.dialogClose();
|
|
294
|
-
this.$emit("openFileDirs", row)
|
|
344
|
+
this.$emit("openFileDirs", row);
|
|
295
345
|
},
|
|
296
346
|
getShowUrl(attachment, field) {
|
|
297
347
|
if (!field) field = "medium";
|
|
298
348
|
return this.$commonFileUtil.getShowUrl(
|
|
299
|
-
attachment.domain +
|
|
300
|
-
(attachment[field] ? attachment[field] : attachment.url)
|
|
349
|
+
attachment.domain + (attachment[field] ? attachment[field] : attachment.url)
|
|
301
350
|
);
|
|
302
351
|
},
|
|
303
352
|
formatFileSize(fileSize) {
|
|
@@ -319,12 +368,12 @@ export default {
|
|
|
319
368
|
}
|
|
320
369
|
},
|
|
321
370
|
searchEvent() {
|
|
322
|
-
this.$refs[
|
|
371
|
+
this.$refs["table-m1"].commitProxy("reload");
|
|
323
372
|
},
|
|
324
373
|
resetEvent() {
|
|
325
374
|
this.formData = {};
|
|
326
375
|
this.clearFileAttributeFormValue();
|
|
327
|
-
this.$refs[
|
|
376
|
+
this.$refs["table-m1"].commitProxy("reload");
|
|
328
377
|
},
|
|
329
378
|
clearFileAttributeFormValue() {
|
|
330
379
|
this.fileTypeSn = null;
|
|
@@ -335,7 +384,7 @@ export default {
|
|
|
335
384
|
url: this.current_prefix + `/file_type/listPage`,
|
|
336
385
|
method: `post`,
|
|
337
386
|
data: {
|
|
338
|
-
enabled: true
|
|
387
|
+
enabled: true,
|
|
339
388
|
},
|
|
340
389
|
// isLoading: true,
|
|
341
390
|
// modalStrictly: true,
|
|
@@ -349,22 +398,20 @@ export default {
|
|
|
349
398
|
url: this.current_prefix + `/file_type/listAttribute`,
|
|
350
399
|
method: `post`,
|
|
351
400
|
data: {
|
|
352
|
-
stringOne: this.fileTypeSn
|
|
401
|
+
stringOne: this.fileTypeSn,
|
|
353
402
|
},
|
|
354
403
|
// isLoading: true,
|
|
355
404
|
// modalStrictly: true,
|
|
356
405
|
success: (res) => {
|
|
357
406
|
let rows = res.objx || [];
|
|
358
|
-
rows.forEach(row => {
|
|
407
|
+
rows.forEach((row) => {
|
|
359
408
|
row.formValue = null;
|
|
360
|
-
})
|
|
409
|
+
});
|
|
361
410
|
this.fileAttributes = rows;
|
|
362
411
|
},
|
|
363
412
|
});
|
|
364
413
|
},
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
}
|
|
414
|
+
},
|
|
368
415
|
};
|
|
369
416
|
</script>
|
|
370
417
|
<style scoped lang="scss">
|
|
@@ -372,7 +419,7 @@ export default {
|
|
|
372
419
|
height: 100%;
|
|
373
420
|
|
|
374
421
|
.main-right {
|
|
375
|
-
height: 100
|
|
422
|
+
height: 100%;
|
|
376
423
|
}
|
|
377
424
|
}
|
|
378
425
|
|
|
@@ -386,7 +386,7 @@ modules = {
|
|
|
386
386
|
},
|
|
387
387
|
{
|
|
388
388
|
title: this.$t2("创建人", "system.label.createBy"),
|
|
389
|
-
field: "
|
|
389
|
+
field: "_createBy",
|
|
390
390
|
width: 150,
|
|
391
391
|
},
|
|
392
392
|
{
|
|
@@ -396,7 +396,7 @@ modules = {
|
|
|
396
396
|
},
|
|
397
397
|
{
|
|
398
398
|
title: this.$t2("更新人", "system.label.modifyBy"),
|
|
399
|
-
field: "
|
|
399
|
+
field: "_modifyBy",
|
|
400
400
|
width: 150,
|
|
401
401
|
},
|
|
402
402
|
{
|
|
@@ -539,7 +539,7 @@ modules = {
|
|
|
539
539
|
};
|
|
540
540
|
|
|
541
541
|
let parent = this.currentCategoryId;
|
|
542
|
-
this.$
|
|
542
|
+
this.$commonHttp({
|
|
543
543
|
method: "post",
|
|
544
544
|
url: this.current_prefix + "/file_obj/listPage",
|
|
545
545
|
data: {
|
|
@@ -899,7 +899,7 @@ modules = {
|
|
|
899
899
|
...customColumns,
|
|
900
900
|
{
|
|
901
901
|
title: this.$t2("创建人", "components.fileLibrary.createBy"),
|
|
902
|
-
field: "
|
|
902
|
+
field: "_createBy",
|
|
903
903
|
width: 150,
|
|
904
904
|
},
|
|
905
905
|
{
|
|
@@ -253,7 +253,7 @@ modules = {
|
|
|
253
253
|
current: 1,
|
|
254
254
|
size: this.pageSize
|
|
255
255
|
};
|
|
256
|
-
this.$
|
|
256
|
+
this.$commonHttp({
|
|
257
257
|
method: 'post',
|
|
258
258
|
url: this.current_prefix + '/file_recovery/listPage',
|
|
259
259
|
data: {
|
|
@@ -367,7 +367,7 @@ modules = {
|
|
|
367
367
|
field: "fileSn",
|
|
368
368
|
width: 150
|
|
369
369
|
},
|
|
370
|
-
{title: this.$t2('删除人', 'components.fileLibrary.deleteBy'), field: '
|
|
370
|
+
{title: this.$t2('删除人', 'components.fileLibrary.deleteBy'), field: '_createBy', width: 150},
|
|
371
371
|
{
|
|
372
372
|
field: 'createDate',
|
|
373
373
|
title: this.$t2('删除时间', 'components.fileLibrary.deleteDate'),
|