Commit bd797caa by lixiaomin

修改添加商品的问题

parent 7c271154
......@@ -104,7 +104,7 @@
<el-row :gutter="10">
<el-col :span="12">
<el-form-item label="描述" prop="desc">
<el-input v-model="form.desc" type="textarea" placeholder="请输入内容" maxlength="18" show-word-limit/>
<el-input v-model="form.desc" type="textarea" placeholder="请输入内容" maxlength="17" show-word-limit/>
</el-form-item>
</el-col>
<el-col :span="12">
......@@ -218,12 +218,13 @@ export default {
},
tagValues:"",
goodsTagList: [],
inputVisible: false,
inputValue: ''
inputVisible: false,
inputValue: ''
};
},
methods: {
handleClose(tag) {
this.tagValues=this.tagValues.replace(tag,"");
this.goodsTagList.splice(this.goodsTagList.indexOf(tag), 1);
},
showInput() {
......@@ -298,7 +299,7 @@ export default {
sendForm.pics = JSON.stringify(sendForm.pics);
sendForm.goodsTagList = this.goodsTagList;
if (sendForm.id != null) {
if(sendForm.state != "4"){
if(sendForm.state != "4" && sendForm.state != "2"){
this.$message.error("下架商品之后才可以修改!");
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment