zydx-plus 1.19.85 → 1.19.86
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
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
<p v-if="editorShow">附件列表:</p>
|
|
25
25
|
<div class="enclosure-list" v-for="(item,index) in uploadAttData">
|
|
26
26
|
<div class="enclosure-item">
|
|
27
|
-
<span>{{ index + 1 }}. {{ (
|
|
27
|
+
<span>{{ index + 1 }}. {{ (item.name)? item.name : item.fileName }}</span>
|
|
28
28
|
</div>
|
|
29
29
|
<div class="enclosure-item en-but">
|
|
30
|
-
<button class="but" v-if="
|
|
30
|
+
<button class="but" v-if="!item.name" @click="see(index)">查看</button>
|
|
31
31
|
<button class="but" v-if="!item.name" @click="download(index)">下载</button>
|
|
32
32
|
<button class="but" v-if="delShow" @click="del(index)">删除</button>
|
|
33
33
|
</div>
|
|
@@ -102,17 +102,13 @@ export default {
|
|
|
102
102
|
type: Boolean,
|
|
103
103
|
default: true
|
|
104
104
|
},
|
|
105
|
-
seeShow: {
|
|
106
|
-
type: Boolean,
|
|
107
|
-
default: true
|
|
108
|
-
},
|
|
109
105
|
titleShow: {
|
|
110
106
|
type: Boolean,
|
|
111
107
|
default: true
|
|
112
108
|
},
|
|
113
109
|
uploadType: {
|
|
114
110
|
type: Boolean,
|
|
115
|
-
default:
|
|
111
|
+
default: true
|
|
116
112
|
},
|
|
117
113
|
info: {
|
|
118
114
|
type: String,
|
|
@@ -123,7 +119,7 @@ export default {
|
|
|
123
119
|
default: true
|
|
124
120
|
}
|
|
125
121
|
},
|
|
126
|
-
emits: ['see','complete','update:data'],
|
|
122
|
+
emits: ['see','del','complete','update:data'],
|
|
127
123
|
watch:{
|
|
128
124
|
data(e) {
|
|
129
125
|
this.editor.commands.setContent(json2html({node: "root",child: (e.html === undefined)? [] : e.html}))
|
|
@@ -151,6 +147,9 @@ export default {
|
|
|
151
147
|
},
|
|
152
148
|
methods: {
|
|
153
149
|
del(index) {
|
|
150
|
+
if(this.uploadAttData[index].name === undefined) {
|
|
151
|
+
this.$emit('del', this.uploadAttData[index])
|
|
152
|
+
}
|
|
154
153
|
this.uploadAttData.splice(index, 1)
|
|
155
154
|
},
|
|
156
155
|
see(index) {
|