askbot-dragon 1.0.25 → 1.0.26
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
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<div class="attch-item-left" @click="lookAttach(item.url)">
|
|
9
9
|
<i v-if="item.url == ''" class="el-icon-loading" style="color:#366AFF;margin: 5px;"></i>
|
|
10
10
|
<img src="../assets/image/video.png"
|
|
11
|
-
v-else-if="setSrc(item.name) == 'video'"
|
|
11
|
+
v-else-if="setSrc(item.name) == 'video'"/>
|
|
12
12
|
<img src="../assets/image/image.png"
|
|
13
13
|
v-else-if="setSrc(item.name) == 'image'" />
|
|
14
14
|
<img src="../assets/image/txt.png"
|
|
@@ -77,7 +77,7 @@ export default {
|
|
|
77
77
|
setSrc (fileName) {
|
|
78
78
|
let file = ""
|
|
79
79
|
const fileType = fileName.substring(fileName.lastIndexOf('.'));
|
|
80
|
-
if (fileType === '.mp4' || fileType === '.MP4') {
|
|
80
|
+
if (fileType === '.mp4' || fileType === '.MP4' || fileType === '.mov' || fileType === '.MOV') {
|
|
81
81
|
file = 'video'
|
|
82
82
|
}
|
|
83
83
|
else if (fileType === '.jpg' || fileType === '.png' || fileType === '.JPG' || fileType === '.PNG') {
|
|
@@ -203,7 +203,7 @@
|
|
|
203
203
|
></el-cascader>-->
|
|
204
204
|
</template>
|
|
205
205
|
<template v-else-if="item.formField.type==='FILE' || item.formField.type === 'IMAGE' || item.formField.type === 'ATTACHMENT' || item.formField.type === 'VIDEO'">
|
|
206
|
-
<div @click="checkUpload(item.fieldId,item.formField.extInfo)" @mouseover="checkUpload(item.fieldId,item.formField.extInfo)" style="display:flex;flex-direction: column">
|
|
206
|
+
<div @click="checkUpload(item.fieldId,item.formField.extInfo)" @mouseover="checkUpload(item.fieldId,item.formField.extInfo)" class="form-field-file" style="display:flex;flex-direction: column">
|
|
207
207
|
<el-upload
|
|
208
208
|
|
|
209
209
|
ref="upload"
|
|
@@ -3001,6 +3001,13 @@ export default {
|
|
|
3001
3001
|
font-size: 1em;
|
|
3002
3002
|
padding-bottom: 8px;
|
|
3003
3003
|
}
|
|
3004
|
+
.form-field-file{
|
|
3005
|
+
#attachment-upload{
|
|
3006
|
+
/deep/.image-list{
|
|
3007
|
+
padding: 0;
|
|
3008
|
+
}
|
|
3009
|
+
}
|
|
3010
|
+
}
|
|
3004
3011
|
}
|
|
3005
3012
|
.pcFormClass{
|
|
3006
3013
|
width: 400px;
|
|
@@ -3139,6 +3146,11 @@ export default {
|
|
|
3139
3146
|
color: #A9B3C6;
|
|
3140
3147
|
/* color: #000000;*/
|
|
3141
3148
|
}
|
|
3149
|
+
#attachment-upload{
|
|
3150
|
+
/deep/.image-list{
|
|
3151
|
+
padding: 0;
|
|
3152
|
+
}
|
|
3153
|
+
}
|
|
3142
3154
|
}
|
|
3143
3155
|
.workorder_description{
|
|
3144
3156
|
/* padding: 8px 16px;*/
|
|
@@ -52,7 +52,7 @@ export default {
|
|
|
52
52
|
},
|
|
53
53
|
fileType() {
|
|
54
54
|
const fileType = this.url.substring(this.url.lastIndexOf('.'));
|
|
55
|
-
if (fileType === '.mp4' || fileType === '.MP4') {
|
|
55
|
+
if (fileType === '.mp4' || fileType === '.MP4' || fileType === '.MOV' || fileType === '.mov') {
|
|
56
56
|
return 'VIDEO'
|
|
57
57
|
} else {
|
|
58
58
|
return 'OTHER'
|