|
|
@@ -96,15 +96,20 @@ import configService from '../../common/service/config.service'
|
|
|
|
|
|
},
|
|
|
add(){
|
|
|
- this.productList.forEach((item => {
|
|
|
- this.productHandleList.push(item.productId)
|
|
|
- }))
|
|
|
+ // this.productList.forEach((item => {
|
|
|
+ // this.productHandleList.push(item.productId)
|
|
|
+ // }))
|
|
|
let ids = this.productHandleList.join(',')
|
|
|
+ console.log(ids,8888888888);
|
|
|
+
|
|
|
this.$http.get("/app/product/addPurveyorProduct?ids="+ ids)
|
|
|
.then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
- this.$tip.error(res.data.message ||'添加成功');
|
|
|
+ this.$tip.success(res.data.message ||'添加成功');
|
|
|
this.back()
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ this.$tip.error(res.data.message);
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
@@ -133,6 +138,8 @@ import configService from '../../common/service/config.service'
|
|
|
if (res.data.code == 200) {
|
|
|
res.data.result.records.forEach((item) => {
|
|
|
item.select = false;
|
|
|
+ item.saleEndDate= item.saleEndDate.includes('00:00:00')?item.saleEndDate.slice(0,10): item.saleEndDate
|
|
|
+ item.saleStartDate= item.saleStartDate.includes('00:00:00')?item.saleStartDate.slice(0,10): item.saleStartDate
|
|
|
item.productImage=configService.apiUrl +'/'+ item.productImage
|
|
|
})
|
|
|
this.productList = res.data.result.records
|