askbot-dragon 1.0.24 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "askbot-dragon",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -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;*/
@@ -3,9 +3,18 @@
3
3
  <div v-if="fileType == 'VIDEO'" style="width: 100%;height: calc(100% - 70px)">
4
4
  <video :src="url" controls width="100%;" height="98%"></video>
5
5
  </div>
6
- <template v-else>
7
- <iframe class="preview_iframe" :src="previewUrl" style="border:none;"></iframe>
6
+ <template v-else-if="url.includes('https://www') || url.includes('http://www')">
7
+ <iframe class="preview_iframe"
8
+ :src="url"
9
+ width="100%"
10
+ height="100%"
11
+ scrolling="100%"
12
+ frameborder="no"
13
+ border="0"></iframe>
8
14
  </template>
15
+ <template v-else>
16
+ <iframe class="preview_iframe" :src="previewUrl" style="border:none;"></iframe>
17
+ </template>
9
18
  <div class="footer">
10
19
  <section class="close_btn" @click="close">
11
20
  关闭
@@ -43,7 +52,7 @@ export default {
43
52
  },
44
53
  fileType() {
45
54
  const fileType = this.url.substring(this.url.lastIndexOf('.'));
46
- if (fileType === '.mp4' || fileType === '.MP4') {
55
+ if (fileType === '.mp4' || fileType === '.MP4' || fileType === '.MOV' || fileType === '.mov') {
47
56
  return 'VIDEO'
48
57
  } else {
49
58
  return 'OTHER'