Commit 0160f3f5 authored by pengyunqian's avatar pengyunqian

feature: 添加修改功能

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