|
@@ -23,7 +23,7 @@
|
|
|
<el-form-item label="门票名称:" prop="name">
|
|
|
<el-input style="width: 350px;" v-model="form.name" placeholder="请输入门票名称" maxlength="50" show-word-limit />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="详情图片:" prop="showlmg">
|
|
|
+ <el-form-item label="详情图片:" prop="showImg">
|
|
|
|
|
|
<div
|
|
|
style="width: 120px;"
|
|
@@ -46,7 +46,7 @@
|
|
|
:disabled="actionUrlLoading"
|
|
|
:on-error="handleAvatarError"
|
|
|
>
|
|
|
- <img v-if="form.showlmg" style="width: 100px;height: 100px;" :src="form.showlmg" class="avatar">
|
|
|
+ <img v-if="form.showImg" style="width: 100px;height: 100px;" :src="form.showImg" class="avatar">
|
|
|
<i v-else class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
</el-upload>
|
|
|
</div>
|
|
@@ -117,7 +117,7 @@ export default {
|
|
|
},
|
|
|
rules: {
|
|
|
name: [{ required: true, message: "请输入门票名称", trigger: ["change","blur"] }],
|
|
|
- showlmg: [{ required: true, message: "请上传图片", trigger: ["change","blur"] }],
|
|
|
+ showImg: [{ required: true, message: "请上传图片", trigger: ["change","blur"] }],
|
|
|
performSnapshot: [{ required: true, message: "请输产品介绍", trigger: ["change","blur"] }],
|
|
|
performNotice: [{ required: true, message: "请输购票须知", trigger: ["change","blur"] }],
|
|
|
},
|
|
@@ -246,9 +246,9 @@ export default {
|
|
|
console.log("res, file",res, file)
|
|
|
this.actionUrlLoading = false
|
|
|
if(res.code != 200) {
|
|
|
- this.$set(this.form,'showlmg',null)
|
|
|
+ this.$set(this.form,'showImg',null)
|
|
|
}else {
|
|
|
- this.$set(this.form,'showlmg',res.data.url)
|
|
|
+ this.$set(this.form,'showImg',res.data.url)
|
|
|
}
|
|
|
|
|
|
},
|