doway-coms 1.2.8 → 1.3.0
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
CHANGED
|
@@ -21,14 +21,9 @@
|
|
|
21
21
|
padding: 0;
|
|
22
22
|
"
|
|
23
23
|
:src="
|
|
24
|
-
`${internalServiceUrl}/GetAttachFile/${internalRow.attach.id}?accessToken=${
|
|
24
|
+
`${internalServiceUrl}/GetAttachFile/${internalRow.attach.id}?accessToken=${store.getters.token}`
|
|
25
25
|
"
|
|
26
26
|
/>
|
|
27
|
-
<!-- <i
|
|
28
|
-
class="el-icon-error attach-delete"
|
|
29
|
-
v-if="edit === true"
|
|
30
|
-
@click="removeAttach(internalRow.attach)"
|
|
31
|
-
></i> -->
|
|
32
27
|
<a-icon
|
|
33
28
|
class="attach-delete"
|
|
34
29
|
type="close-circle"
|
|
@@ -37,17 +32,9 @@
|
|
|
37
32
|
/>
|
|
38
33
|
<a-icon
|
|
39
34
|
class="attach-download"
|
|
40
|
-
type="
|
|
35
|
+
type="download"
|
|
41
36
|
@click="downloadAttach(internalRow.attach)"
|
|
42
37
|
/>
|
|
43
|
-
<!-- <i
|
|
44
|
-
class="el-icon-download attach-download"
|
|
45
|
-
@click="downloadAttach(internalRow.attach)"
|
|
46
|
-
></i> -->
|
|
47
|
-
<!-- <i
|
|
48
|
-
class="el-icon-view attach-view"
|
|
49
|
-
@click="viewAttach(internalRow.attach)"
|
|
50
|
-
></i> -->
|
|
51
38
|
<a-icon
|
|
52
39
|
class="attach-view"
|
|
53
40
|
type="zoom-in"
|
|
@@ -66,19 +53,22 @@
|
|
|
66
53
|
class="o_image"
|
|
67
54
|
:data-mimetype="internalRow.attach.contentType"
|
|
68
55
|
/>
|
|
69
|
-
<
|
|
70
|
-
class="
|
|
56
|
+
<a-icon
|
|
57
|
+
class=" attach-delete"
|
|
58
|
+
type="close-circle"
|
|
71
59
|
v-if="edit === true"
|
|
72
60
|
@click="removeAttach(internalRow.attach)"
|
|
73
|
-
|
|
74
|
-
<
|
|
75
|
-
class="
|
|
61
|
+
/>
|
|
62
|
+
<a-icon
|
|
63
|
+
class="attach-download"
|
|
64
|
+
type="download"
|
|
76
65
|
@click="downloadAttach(internalRow.attach)"
|
|
77
|
-
|
|
78
|
-
<
|
|
79
|
-
class="
|
|
66
|
+
/>
|
|
67
|
+
<a-icon
|
|
68
|
+
class="attach-view"
|
|
69
|
+
type="zoom-in"
|
|
80
70
|
@click="viewAttach(internalRow.attach)"
|
|
81
|
-
|
|
71
|
+
/>
|
|
82
72
|
<VxeCheckbox
|
|
83
73
|
class="attach-circle"
|
|
84
74
|
v-model="internalRow.isDefault"
|
|
@@ -113,11 +103,12 @@
|
|
|
113
103
|
style="border: 1px solid #d9d9d9; border-radius: 6px"
|
|
114
104
|
:style="{ width: width, height: height, lineHeight: height }"
|
|
115
105
|
>
|
|
116
|
-
<
|
|
117
|
-
|
|
106
|
+
<a-icon
|
|
107
|
+
type="plus"
|
|
108
|
+
class="avatar-uploader-icon"
|
|
118
109
|
style="text-align: center"
|
|
119
110
|
:style="{ width: width, height: height, lineHeight: height }"
|
|
120
|
-
|
|
111
|
+
/>
|
|
121
112
|
</div>
|
|
122
113
|
</a-upload>
|
|
123
114
|
<div v-if="edit !== true && showEmptyText && internalRows.length === 0">
|
|
@@ -131,6 +122,7 @@
|
|
|
131
122
|
resize
|
|
132
123
|
destroy-on-close
|
|
133
124
|
:fullscreen="isFullscreen || dialogViewType == 'application/pdf'"
|
|
125
|
+
:z-index="999"
|
|
134
126
|
>
|
|
135
127
|
<!-- 添加普通图片全屏属性控制 -->
|
|
136
128
|
<template #title>
|
|
@@ -141,14 +133,12 @@
|
|
|
141
133
|
<!-- 全屏 -->
|
|
142
134
|
<i
|
|
143
135
|
v-if="!isFullscreen"
|
|
144
|
-
class="el-icon-full-screen"
|
|
145
136
|
style="font-size: 19px; margin-right: 10px"
|
|
146
137
|
@click="screenClick"
|
|
147
138
|
></i>
|
|
148
139
|
<!-- 取消全屏 -->
|
|
149
140
|
<i
|
|
150
141
|
v-else
|
|
151
|
-
class="el-icon-connection"
|
|
152
142
|
style="font-size: 19px; margin-right: 10px"
|
|
153
143
|
@click="narrowClick"
|
|
154
144
|
></i>
|
|
@@ -373,7 +363,7 @@ export default {
|
|
|
373
363
|
let tempValue = addRow
|
|
374
364
|
tempField = this.cols[i].field
|
|
375
365
|
if (this.cols[i].isAuto) {
|
|
376
|
-
tempValue[tempField] =
|
|
366
|
+
tempValue[tempField] = store.getters.newId() + ''
|
|
377
367
|
continue
|
|
378
368
|
}
|
|
379
369
|
if (
|
|
@@ -436,18 +426,18 @@ export default {
|
|
|
436
426
|
this.$emit('remove', attachFile.id)
|
|
437
427
|
},
|
|
438
428
|
downloadAttach(attachFile) {
|
|
439
|
-
window.open(this.internalServiceUrl + '/DownAttachFile/' + attachFile.id)
|
|
429
|
+
window.open(this.internalServiceUrl + '/DownAttachFile/' + attachFile.id+`?accessToken=${this.$store.getters.token}`)
|
|
440
430
|
},
|
|
441
431
|
/**
|
|
442
432
|
* 查看附件
|
|
443
433
|
*/
|
|
444
434
|
viewAttach(attachFile) {
|
|
445
435
|
if (attachFile.contentType === 'application/pdf') {
|
|
446
|
-
this.dialogImageUrl = `${this.internalServiceUrl}/GetAttachFile/${attachFile.id}?accessToken=${
|
|
436
|
+
this.dialogImageUrl = `${this.internalServiceUrl}/GetAttachFile/${attachFile.id}?accessToken=${store.getters.token}`
|
|
447
437
|
this.dialogViewType = attachFile.contentType
|
|
448
438
|
this.dialogVisible = true
|
|
449
439
|
} else if (attachFile.content === 'image') {
|
|
450
|
-
this.dialogImageUrl = `${this.internalServiceUrl}/GetAttachFile/${attachFile.id}?accessToken=${
|
|
440
|
+
this.dialogImageUrl = `${this.internalServiceUrl}/GetAttachFile/${attachFile.id}?accessToken=${store.getters.token}`
|
|
451
441
|
this.dialogViewType = attachFile.contentType
|
|
452
442
|
this.dialogVisible = true
|
|
453
443
|
}
|
|
@@ -587,14 +577,4 @@ export default {
|
|
|
587
577
|
.el-upload-list__item is-success {
|
|
588
578
|
float: left;
|
|
589
579
|
}
|
|
590
|
-
|
|
591
|
-
.el-icon-connection:hover {
|
|
592
|
-
color: white;
|
|
593
|
-
cursor: pointer;
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
.el-icon-full-screen:hover {
|
|
597
|
-
color: white;
|
|
598
|
-
cursor: pointer;
|
|
599
|
-
}
|
|
600
580
|
</style>
|