修改
This commit is contained in:
parent
c539c2a3e4
commit
474b3a6c33
@ -114,7 +114,10 @@
|
||||
></el-button>
|
||||
</el-col>-->
|
||||
<el-col :lg="{ span: 2, offset: 20 }" :md="2">
|
||||
<el-button type="primary" size="small" @click="uploadImg()">提 交</el-button>
|
||||
<el-button :loading="!uploadbtn" type="primary" size="small" @click="uploadImg()">
|
||||
<span v-if="uploadbtn">提 交</span>
|
||||
<span v-else>提 交 中...</span>
|
||||
</el-button>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-dialog>
|
||||
@ -138,6 +141,7 @@ export default {
|
||||
props: ["img", "type", "item", "tovideo"],
|
||||
data() {
|
||||
return {
|
||||
uploadbtn: true, //上传中不允许点击
|
||||
imageUrl: "",
|
||||
types: "",
|
||||
// 是否显示弹出层
|
||||
@ -272,12 +276,13 @@ export default {
|
||||
formData.append("type", this.types);
|
||||
if (this.types == "itemDirectoryUrl") {
|
||||
this.$modal.msgSuccess("上传视频中,请耐心等待");
|
||||
this.uploadbtn = false;
|
||||
uploadVideoUrl(formData).then(response => {
|
||||
this.video.VideoPath = baseurl + response.imgUrl;
|
||||
this.$emit("imgUrl", response.imgUrl);
|
||||
this.items.itemDirectoryUrl = response.imgUrl;
|
||||
this.$emit("item", JSON.stringify(this.items));
|
||||
console.log(this.video, this.options);
|
||||
this.uploadbtn = true;
|
||||
this.openimg = false;
|
||||
});
|
||||
} else if (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user