doway-coms 1.4.38 → 1.4.40

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": "doway-coms",
3
- "version": "1.4.38",
3
+ "version": "1.4.40",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -13,10 +13,8 @@
13
13
  <div class="attach" v-if="internalRow.attach.content === 'image'">
14
14
  <img
15
15
  @click="attachFileClick(internalRow.attach)"
16
- :style="{ height: height, lineHeight: height }"
16
+ :style="{ height: height, lineHeight: height, width: width }"
17
17
  style="
18
- min-width: 100px;
19
- width: 100%;
20
18
  border: 1px solid #ccc;
21
19
  border-radius: 6px;
22
20
  overflow: hidden;
@@ -41,18 +39,11 @@
41
39
  type="eye"
42
40
  @click="viewAttach(internalRow.attach)"
43
41
  />
44
- <!-- <VxeCheckbox
45
- class="attach-circle"
46
- v-model="internalRow.isDefault"
47
- @change="circleAttach(internalRow.attach, internalRow)"
48
- :disabled="formState == 'view'"
49
- ></VxeCheckbox> -->
50
42
  </div>
51
43
  <div class="attach" v-else>
52
44
  <img
53
45
  @click="attachFileClick(internalRow.attach)"
54
- class="o_image"
55
- style="width: 100%"
46
+ :style="{ height: height, lineHeight: height, width: width }"
56
47
  :data-mimetype="internalRow.attach.contentType"
57
48
  />
58
49
  <a-icon
@@ -71,12 +62,6 @@
71
62
  type="eye"
72
63
  @click="viewAttach(internalRow.attach)"
73
64
  />
74
- <!-- <VxeCheckbox
75
- class="attach-circle"
76
- v-model="internalRow.isDefault"
77
- @change="circleAttach(internalRow.attach, internalRow)"
78
- :disabled="formState == 'view'"
79
- ></VxeCheckbox> -->
80
65
  </div>
81
66
  <div
82
67
  :style="{ width: width }"
@@ -125,28 +110,11 @@
125
110
  :height="550"
126
111
  :width="800"
127
112
  destroy-on-close
128
- :fullscreen="isFullscreen || dialogViewType == 'application/pdf'"
113
+ :fullscreen="dialogViewType == 'application/pdf'"
129
114
  :z-index="999"
130
115
  >
131
- <!-- 添加普通图片全屏属性控制 -->
132
116
  <template #title>
133
- <div
134
- v-if="dialogViewType !== 'application/pdf'"
135
- style="text-align: right; margin-right: 15px; padding-top: 5px"
136
- >
137
- <!-- 全屏 -->
138
- <i
139
- v-if="!isFullscreen"
140
- style="font-size: 19px; margin-right: 10px"
141
- @click="screenClick"
142
- ></i>
143
- <!-- 取消全屏 -->
144
- <i
145
- v-else
146
- style="font-size: 19px; margin-right: 10px"
147
- @click="narrowClick"
148
- ></i>
149
- </div>
117
+ <span>{{ currentFileTitle }}</span>
150
118
  </template>
151
119
  <!-- pdf -->
152
120
  <embed
@@ -199,7 +167,7 @@ export default {
199
167
  uploadHeaders: {
200
168
  Authorization: null,
201
169
  },
202
- isFullscreen: false,
170
+ currentFileTitle: ''
203
171
  };
204
172
  },
205
173
  props: {
@@ -457,20 +425,11 @@ export default {
457
425
  this.dialogViewType = attachFile.contentType;
458
426
  this.dialogVisible = true;
459
427
  }
428
+ this.currentFileTitle = attachFile.name
460
429
  },
461
430
  closePdf() {
462
431
  this.isShowPdf = false;
463
432
  },
464
- // 放大
465
- screenClick() {
466
- this.isFullscreen = true;
467
- },
468
- // 局部展示
469
- narrowClick() {
470
- this.isFullscreen = false;
471
- },
472
- // 单选改变事件
473
- // change
474
433
  },
475
434
  };
476
435
  </script>
@@ -68,6 +68,8 @@ export default {
68
68
  companyids.value = companyId
69
69
  formExport.target = 'printFrame'
70
70
  formExport.appendChild(companyids)
71
+ } else {
72
+ companyId = null
71
73
  }
72
74
  formExport.appendChild(inputValue)
73
75
  document.body.appendChild(formExport)