Commit a1d16ba5 by 前端

优化界面

1 parent 7cce9705
......@@ -11,7 +11,7 @@
<!-- 上传 开始 -->
<el-upload class="el_upload" v-if="showUpload()" :action="uploadUrl" list-type="picture-card" :accept="acceptFile" :show-file-list="false" :on-change="onChange" :http-request="uploadRequest">
<i class="el-icon-plus"></i>
<i class="el-icon-upload2"></i>
</el-upload>
<!-- 上传 end -->
......
......@@ -72,6 +72,7 @@ export default {
readStatus: "",
acceptFile: ".jpg,.png",
previewList: [],
idx:0
};
},
watch: {
......@@ -83,6 +84,7 @@ export default {
// }
// console.log('666666666')
},
immediate: true,
},
status: {
handler: function (n, o) {
......@@ -90,6 +92,12 @@ export default {
},
immediate: true,
},
nameIndex:{
handler:function(n){
this.idx = n
},
immediate:true
}
},
mounted() {},
methods: {
......@@ -154,10 +162,10 @@ export default {
if (response.returnCode == 0) {
_this.imgList.push({
path: response.data,
name: `照片${_this.nameIndex + 1}`,
name: `照片${_this.idx + 1}`,
});
_this.previewList.push(res.data);
_this.nameIndex += 1;
_this.idx += 1;
console.log(_this.imgList);
//
//this.$emit("change", response.data);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!