5.10(优化
This commit is contained in:
@@ -275,10 +275,10 @@
|
||||
<el-form-item label="营业时间" prop="intro">
|
||||
<el-input v-model.trim="merInfoForm.dayTime" placeholder="8:30 - 21:30" class="width100"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="店铺简介:" prop="intro">
|
||||
<el-form-item label="店铺简介:" >
|
||||
<el-input type="textarea" v-model.trim="merInfoForm.intro" class="width100"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="商户关键字:" prop="labelarr">
|
||||
<el-form-item label="商户关键字:">
|
||||
<keyword @getLabelarr="getLabelarr" :labelarr="labelarr" class="width100"></keyword>
|
||||
</el-form-item>
|
||||
<el-form-item label="客服类型:" prop="serviceType">
|
||||
@@ -415,7 +415,7 @@ export default {
|
||||
};
|
||||
const validateVal = (rule, value, callback) => {
|
||||
if (this.labelarr.length === 0) {
|
||||
callback(new Error('请输入后回车'));
|
||||
callback(new Error('请输入商户关键字'));
|
||||
} else {
|
||||
callback();
|
||||
}
|
||||
@@ -689,7 +689,10 @@ export default {
|
||||
this.merInfoForm.backImage = JSON.stringify(this.merInfoForm.backBgc);
|
||||
this.$refs[formName].validate((valid) => {
|
||||
if (valid) {
|
||||
this.merInfoForm.keywords = this.labelarr.join(',');
|
||||
if(this.labelarr.length){
|
||||
console.log(this.labelarr);
|
||||
this.merInfoForm.keywords = this.labelarr.join(',');
|
||||
}
|
||||
merchantUpdateApi(this.merInfoForm).then((res) => {
|
||||
this.$message.success('操作成功');
|
||||
this.getConfigInfo();
|
||||
@@ -741,7 +744,9 @@ export default {
|
||||
this.$set(res, 'backBgc', res.backImage ? JSON.parse(res.backImage) : []);
|
||||
this.merInfoForm = res;
|
||||
// console.log(this.merInfoForm, ' this.merInfoForm');
|
||||
this.labelarr = res.keywords.split(',') || [];
|
||||
if( res.keywords){
|
||||
this.labelarr = res.keywords.split(',') || [];
|
||||
}
|
||||
});
|
||||
},
|
||||
// 获取转账信息
|
||||
|
||||
Reference in New Issue
Block a user