|
@@ -121,11 +121,13 @@
|
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
|
<template v-if="adForm.style == 0">
|
|
<template v-if="adForm.style == 0">
|
|
|
<div>
|
|
<div>
|
|
|
- <el-input
|
|
|
|
|
- v-model="adForm.url"
|
|
|
|
|
- placeholder="请填写链接,留空点图片不跳转"
|
|
|
|
|
- size="small"
|
|
|
|
|
- ></el-input>
|
|
|
|
|
|
|
+ <el-form-item prop="url">
|
|
|
|
|
+ <el-input
|
|
|
|
|
+ v-model="adForm.url"
|
|
|
|
|
+ placeholder="请填写链接,留空点图片不跳转"
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ ></el-input>
|
|
|
|
|
+ </el-form-item>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-else>
|
|
<template v-else>
|
|
@@ -255,13 +257,14 @@ export default {
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
resetForm() {
|
|
resetForm() {
|
|
|
|
|
+ this.goodsData = {};
|
|
|
this.$refs['adForm'].resetFields();
|
|
this.$refs['adForm'].resetFields();
|
|
|
this.addDialog = false;
|
|
this.addDialog = false;
|
|
|
},
|
|
},
|
|
|
addFn() {
|
|
addFn() {
|
|
|
console.log(this.$refs['adForm']);
|
|
console.log(this.$refs['adForm']);
|
|
|
- this.$refs['adForm'].resetFields();
|
|
|
|
|
- return false;
|
|
|
|
|
|
|
+ // this.$refs['adForm'].resetFields();
|
|
|
|
|
+ // return false;
|
|
|
let form = JSON.parse(JSON.stringify(this.adForm));
|
|
let form = JSON.parse(JSON.stringify(this.adForm));
|
|
|
form.type = this.tabIndex;
|
|
form.type = this.tabIndex;
|
|
|
if (form.style == '1') {
|
|
if (form.style == '1') {
|