Commit 3e4d5d9b authored by gengshaojing's avatar gengshaojing

add: 自提点管理

parent adee0d54
...@@ -27,7 +27,9 @@ ...@@ -27,7 +27,9 @@
<div> <div>
<search @getData="getPlaceList"></search> <search @getData="getPlaceList"></search>
</div> </div>
<el-button type="primary" @click="$router.push('/op/groupmeal/point')">自提点管理</el-button> <a href="/op/groupmeal/point" target="_blank">
<el-button type="primary">自提点管理</el-button>
</a>
</div> </div>
<div <div
...@@ -61,6 +63,7 @@ ...@@ -61,6 +63,7 @@
border border
tooltip-effect="dark" tooltip-effect="dark"
style="width: 100%" style="width: 100%"
@select-all="selectall"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
> >
<el-table-column align="center" type="selection" width="80"></el-table-column> <el-table-column align="center" type="selection" width="80"></el-table-column>
...@@ -266,6 +269,12 @@ ...@@ -266,6 +269,12 @@
}, },
}, },
methods: { methods: {
selectall() {
console.log("selectall");
if (this.currentCheckedTakePlacelist.length === 0) {
this.checkedTakePlacelist = [];
}
},
/* API */ /* API */
// 获取自提点 // 获取自提点
async getPlaceList(params = {}) { async getPlaceList(params = {}) {
...@@ -392,6 +401,7 @@ ...@@ -392,6 +401,7 @@
// 复选框(提供给父组件) // 复选框(提供给父组件)
handleSelectionChange(val) { handleSelectionChange(val) {
console.log(val);
this.currentCheckedTakePlacelist = val; // 当前勾选的列表 this.currentCheckedTakePlacelist = val; // 当前勾选的列表
this.checkedNum = val.length; this.checkedNum = val.length;
this.multipleSelection = val; this.multipleSelection = val;
......
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