Commit 5c7fd7d5 by lixiaomin

修改bug

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