Commit 0160f3f5 authored by pengyunqian's avatar pengyunqian

feature: 添加修改功能

parent e3df03db
......@@ -32,13 +32,14 @@
{{ scope.row.list.map((item) => item.deliverer_name).join(",") }}
</template>
</el-table-column>
<el-table-column align="center" prop="prop" label="操作" width="width">
<el-table-column prop="prop" label="操作" width="width" align="center">
<template #default="scope">
<el-button type="primary" @click="handleModify(scope.row)"
<el-button type="primary" @click="handleModify(scope.row)"
>修改</el-button
>
<el-button
type="primary"
v-show=scope.row.url
@click="handleDownload(scope.row.url)"
>下载配送路线</el-button
>
......@@ -50,7 +51,7 @@
class="pagination"
@current-change="handleCurrentChange"
v-model.current-page="page"
:page-size="page_size"
:page-size="pageSize"
layout="prev, pager, next, jumper, ->,page , total"
:total="total"
>
......@@ -140,7 +141,7 @@
clearable
filterable
>
<!-- <el-option label="电动车" value="electric"></el-option> -->
<el-option :label="item.label" :value="item.value" v-for="item in marketingList" :key="item.value"></el-option>
</el-select>
</el-form-item>
<span class="dioFor">已选:{{ multipleSelection.length }}人</span>
......@@ -245,8 +246,9 @@ export default {
selectActivity: "", //活动下拉框
total: 0,
page: 1,
page_size: 3,
pageSize: 20,
isEdit: false,
marketingList:[]
};
},
created() {
......@@ -278,20 +280,21 @@ export default {
min_capacity: "", //最小配送量
tool_type: [], //配送工具
}),
//分配配送员弹框
this.resetDate()
this.deliverer= [],
this.multipleSelection = [];
this.selectActivity = ""; //活动下拉框
},
// 获取主页列表
async getList() {
const {page, pageSize} = this
const params={
page,
pageSize
}
try {
const res = await getList();
const res = await getList(params);
this.distribList = res.response.list;
// console.log(res)
// this.distribList=[
// ]
this.total = res.response.total;
} catch (error) {
console.log(error);
}
......@@ -326,6 +329,7 @@ export default {
// 添加的取消
addCancel(){
this.dialogFormAdd = false
this.getList()
this.resetDate()
},
// 分配配送员
......@@ -360,7 +364,7 @@ export default {
},
// 下载路线
handleDownload(url) {
url && window.open(url)
url && window.open("http://bp-dev.ini.yidian-inc.com" + url)
console.log(url)
},
// 分配保存
......
......@@ -2,7 +2,7 @@ import axios from "@/utils/request";
// 获取主页配送员列表
export async function getList (params) {
const res = await axios.post("/api/v1/order/deliverer/list_day_deliverer_conf",{params});
const res = await axios.post("/api/v1/order/deliverer/list_day_deliverer_conf",params);
return res;
}
// 获取分配配送员列表
......
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