Commit 2373e54a by LJM

bug

parent 95b85ef1
Showing with 10 additions and 3 deletions
......@@ -281,7 +281,7 @@
<script>
import Vue from 'vue';
import Menu from "@/components/menu.vue";
import {Form, FormItem, Select, Option, Input, DatePicker, Button, Dropdown, DropdownMenu, DropdownItem, Table, TableColumn, Message, MessageBox, Dialog, Pagination, Tooltip, Autocomplete, Popover, Tag} from 'element-ui'
import {Autocomplete, Button, DatePicker, Dialog, Dropdown, DropdownItem, DropdownMenu, Form, FormItem, Input, Message, MessageBox, Option, Pagination, Popover, Select, Table, TableColumn, Tag, Tooltip} from 'element-ui'
Vue.prototype.$message = Message
Vue.prototype.$confirm = MessageBox.confirm;
......@@ -423,6 +423,9 @@ export default {
//新增优势货源提交
addBestgoodsSubmit() {
var self = this;
if (this.addBestgoodsParam.length > 0) {
for (let i = 0; i < this.addBestgoodsParam.length; i++) {
if (!this.addBestgoodsParam[i].goods_name) {
this.$message({
......@@ -447,7 +450,6 @@ export default {
return false;
}
}
this.$http('post', "/api/bestgoods/addBestgoods", {add_json: JSON.stringify(this.addBestgoodsParam)}).then(res => {
if (res.code === 0) {
this.$message({
......@@ -466,7 +468,12 @@ export default {
});
}
})
} else {
this.$message({
message: '请添加数据',
type: 'warning'
});
}
},
//修改优势货源提交
updateBestgoodsSubmit() {
......
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 sign in to comment