Commit 5c7fd7d5 by lixiaomin

修改bug

parent f469cdff
...@@ -65,20 +65,13 @@ export default { ...@@ -65,20 +65,13 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
spuName: null, spuName: null,
productionTime: null, category: null,
discountPrice: null, state: 3,
originalPrice: null,
label: null,
desc: null,
createUserId: null,
updateUserId: null,
shelfTime: null,
status: null,
}, },
}; };
}, },
created() { created() {
this.getList(); //this.getList();
}, },
methods: { methods: {
getPicsList(str){ getPicsList(str){
...@@ -108,7 +101,8 @@ export default { ...@@ -108,7 +101,8 @@ export default {
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
resetQuery() { resetQuery() {
this.resetForm("queryForm"); this.queryParams.spuName=null;
this.queryParams.category=null;
this.handleQuery(); this.handleQuery();
}, },
// 多选框选中数据 // 多选框选中数据
...@@ -121,7 +115,8 @@ export default { ...@@ -121,7 +115,8 @@ export default {
//this.reset(); //this.reset();
}, },
openModal() { openModal() {
this.open = true this.open = true;
this.getList();
}, },
submit() { submit() {
this.$emit('callback', this.ids) this.$emit('callback', this.ids)
......
...@@ -135,23 +135,48 @@ export default { ...@@ -135,23 +135,48 @@ export default {
this.outIds = selection.map((item) => item.id); this.outIds = selection.map((item) => item.id);
}, },
soldOutGoos(){ soldOutGoos(){
this.$confirm('是否确认下架所选商品?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
offGoods({"shopId":this.shopId,"goodsIds":this.outIds}).then(({ response }) => {
if(response.code=="200"){
this.$message({
type: 'success',
message: '删除成功!'
});
}
})
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
});
});
// offGoods({"shopId":this.shopId,"goodsIds":this.outIds}).then(({ response }) => { // offGoods({"shopId":this.shopId,"goodsIds":this.outIds}).then(({ response }) => {
// console.log("response",response); // console.log("response",response);
// }) // })
this.$modal // this.$modal
.confirm('是否确认下架所选商品?') // .confirm('是否确认下架所选商品?')
.then(function () { // .then(function () {
return offGoods({"shopId":this.shopId,"goodsIds":this.outIds}); // return offGoods({"shopId":this.shopId,"goodsIds":this.outIds});
}) // })
.then((response) => { // .then((response) => {
// console.log("response",response); // // console.log("response",response);
// if(response.code=="200"){ // // if(response.code=="200"){
// this.getList(); // // this.getList();
//this.$modal.msgSuccess('' + mess + '成功'); // //this.$modal.msgSuccess('' + mess + '成功');
// } // // }
}) // })
.catch(() => { }); // .catch(() => { });
......
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