zydx-plus 1.35.559 → 1.35.561
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
|
@@ -83,9 +83,9 @@
|
|
|
83
83
|
<editor-content ref="editing-cont" :editor="editor" class="editing-cont" @click.stop="editorContentClick"
|
|
84
84
|
@paste.native.capture.prevent="preventPaste"></editor-content>
|
|
85
85
|
<div class="menu">
|
|
86
|
-
<button v-if="readOnly" class="but" @click="enlSee"
|
|
87
|
-
<button v-if="readOnly" class="but" @click="enlDownload"
|
|
88
|
-
<button v-if="!readOnly" class="but" @click="enlDel"
|
|
86
|
+
<button v-if="readOnly" class="but" @click="enlSee">查看附件</button>
|
|
87
|
+
<button v-if="readOnly" class="but" @click="enlDownload">下载附件</button>
|
|
88
|
+
<button v-if="!readOnly" class="but" @click="enlDel">删除附件</button>
|
|
89
89
|
</div>
|
|
90
90
|
</div>
|
|
91
91
|
</div>
|
|
@@ -95,9 +95,9 @@
|
|
|
95
95
|
</div>
|
|
96
96
|
|
|
97
97
|
<div v-if="menus&&readOnly" :style="menusStyle" class="menus">
|
|
98
|
-
<button v-if="readOnly" class="but" @click="enlSee"
|
|
99
|
-
<button v-if="readOnly" class="but" @click="enlDownload"
|
|
100
|
-
<button v-if="!readOnly" class="but" @click="enlDel"
|
|
98
|
+
<button v-if="readOnly" class="but" @click="enlSee">查看附件</button>
|
|
99
|
+
<button v-if="readOnly" class="but" @click="enlDownload">下载附件</button>
|
|
100
|
+
<button v-if="!readOnly" class="but" @click="enlDel">删除附件</button>
|
|
101
101
|
</div>
|
|
102
102
|
|
|
103
103
|
<div v-if="menuOne&&readOnly" ref="bubbleMenuReadOnly" :style="menusStyle" class="menu-one">
|
|
@@ -104,10 +104,10 @@
|
|
|
104
104
|
</div>
|
|
105
105
|
<div class="enclosure-item en-but">
|
|
106
106
|
<div style="display: inline-block; height: 21px;">
|
|
107
|
-
<button class="buts but-f" v-if="!item.name" @click="see(index)"
|
|
108
|
-
<button class="buts but-f" v-if="!item.name&&downloadShow" @click="download(index)"
|
|
107
|
+
<button class="buts but-f" v-if="!item.name" @click="see(index)">{{downName[0] || '查看附件'}}</button>
|
|
108
|
+
<button class="buts but-f" v-if="!item.name&&downloadShow" @click="download(index)">{{downName[1] || '下载附件'}}</button>
|
|
109
109
|
<button class="buts but-f" v-if="delShow" @click="del(index)">
|
|
110
|
-
<span v-if="item.active"
|
|
110
|
+
<span v-if="item.active">{{downName[2] || '删除附件'}}</span>
|
|
111
111
|
<svg v-else xmlns="http://www.w3.org/2000/svg"
|
|
112
112
|
width="14"
|
|
113
113
|
height="14"
|
|
@@ -347,9 +347,13 @@ export default {
|
|
|
347
347
|
updateStatus: {
|
|
348
348
|
type: Boolean,
|
|
349
349
|
default: false
|
|
350
|
+
},
|
|
351
|
+
downName: {
|
|
352
|
+
type: Array,
|
|
353
|
+
default: []
|
|
350
354
|
}
|
|
351
355
|
},
|
|
352
|
-
emits: ['see', 'del', 'complete', 'update:data', 'enclosureSuccess', 'download', 'updateData'],
|
|
356
|
+
emits: ['see', 'del', 'complete', 'update:data', 'enclosureSuccess', 'download', 'updateData', 'syncDel'],
|
|
353
357
|
watch: {
|
|
354
358
|
// 强制监听data变化
|
|
355
359
|
data: {
|
|
@@ -720,6 +724,7 @@ export default {
|
|
|
720
724
|
}
|
|
721
725
|
})
|
|
722
726
|
} else {
|
|
727
|
+
this.$emit('syncDel', {syncDel: true, index: index, data: that.uploadAttData[index] }) // 为了同步当前组件和父组件附件的数据(新加的syncDel,使用原来的del怕有问题)
|
|
723
728
|
that.uploadAttData.splice(index, 1)
|
|
724
729
|
}
|
|
725
730
|
},
|