Commit bd797caa by lixiaomin

修改添加商品的问题

parent 7c271154
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
<el-row :gutter="10"> <el-row :gutter="10">
<el-col :span="12"> <el-col :span="12">
<el-form-item label="描述" prop="desc"> <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-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
...@@ -218,12 +218,13 @@ export default { ...@@ -218,12 +218,13 @@ export default {
}, },
tagValues:"", tagValues:"",
goodsTagList: [], goodsTagList: [],
inputVisible: false, inputVisible: false,
inputValue: '' inputValue: ''
}; };
}, },
methods: { methods: {
handleClose(tag) { handleClose(tag) {
this.tagValues=this.tagValues.replace(tag,"");
this.goodsTagList.splice(this.goodsTagList.indexOf(tag), 1); this.goodsTagList.splice(this.goodsTagList.indexOf(tag), 1);
}, },
showInput() { showInput() {
...@@ -298,7 +299,7 @@ export default { ...@@ -298,7 +299,7 @@ export default {
sendForm.pics = JSON.stringify(sendForm.pics); sendForm.pics = JSON.stringify(sendForm.pics);
sendForm.goodsTagList = this.goodsTagList; sendForm.goodsTagList = this.goodsTagList;
if (sendForm.id != null) { if (sendForm.id != null) {
if(sendForm.state != "4"){ if(sendForm.state != "4" && sendForm.state != "2"){
this.$message.error("下架商品之后才可以修改!"); this.$message.error("下架商品之后才可以修改!");
return; 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