Commit 3c28d1c4 authored by zhengke's avatar zhengke

修改

parent 29a7b532
...@@ -124,6 +124,16 @@ ...@@ -124,6 +124,16 @@
handleSelectionChange(val) { handleSelectionChange(val) {
this.selectRow = JSON.parse(JSON.stringify(val)); this.selectRow = JSON.parse(JSON.stringify(val));
}, },
//清空多选方法
toggleSelection(rows) {
if (rows) {
rows.forEach(row => {
this.$refs.multipleTable.toggleRowSelection(row);
});
} else {
this.$refs.multipleTable.clearSelection();
}
}
}, },
mounted() { mounted() {
......
...@@ -548,14 +548,13 @@ ...@@ -548,14 +548,13 @@
//确定选择载体 //确定选择载体
getZaiTi(){ getZaiTi(){
var ckedArr = this.$refs.chooseZaiti.getChoicedGoods(); var ckedArr = this.$refs.chooseZaiti.getChoicedGoods();
console.log(ckedArr,'ckedarr');
ckedArr.forEach(x=>{ ckedArr.forEach(x=>{
let obj={ let obj={
id: 0, id: x.ID,
name: x.CarrierName, //标题 name: x.CarrierName, //标题
lableName: x.CarrierPlan, //副标题 lableName: x.CarrierPlan, //副标题
picUrl: x.Logo, //商品图片 picUrl: x.Logo, //商品图片
linkUrl: '' //链接 linkUrl: '/pages/kotra/carrier/detail?id=' + x.ID+"&&type="+x.ProjectTypeName
} }
this.data.list.push(obj); this.data.list.push(obj);
}) })
...@@ -565,14 +564,13 @@ ...@@ -565,14 +564,13 @@
//确定选择品牌 //确定选择品牌
getBrand(){ getBrand(){
var ckedArr = this.$refs.chooseBrand.getChoicedGoods(); var ckedArr = this.$refs.chooseBrand.getChoicedGoods();
console.log(ckedArr,'ckedarr');
ckedArr.forEach(x=>{ ckedArr.forEach(x=>{
let obj={ let obj={
id: 0, id: x.ID,
name: x.BrandName, //标题 name: x.BrandName, //标题
lableName: x.BrandType, //副标题 lableName: x.BrandType, //副标题
picUrl: x.Logo, //商品图片 picUrl: x.Logo, //商品图片
linkUrl: '' //链接 linkUrl: '/pages/kotra/brand/detail?id=' + x.ID //链接
} }
this.data.list.push(obj); this.data.list.push(obj);
}) })
......
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