Commit 7a51a330 by 无尘

fix: 修改设置模板

parent caa30f4d
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2020-06-23 15:35:26
* @LastEditTime: 2020-06-24 09:54:59
-->
<!--
<taskView :brandId="brandId" activeGroupId></taskView>
......@@ -248,6 +248,10 @@ export default {
*/
exportExcel() {
const that = this;
if (!that.multipleSelection.length) {
showMsg.showmsg('请选择任务', 'warning');
return false;
}
that.loadingBtn = true;
let para = {
......@@ -255,7 +259,7 @@ export default {
selectType: that.selectRadio,
ecmIds: that.selectRadio == 1 ? '' : that.multipleSelection.map(ele => ele.ecmId).join(',')
};
postExcel('/haoban-app-tel-task-three-web/task/export-store-task-list', para)
postExcel('/haoban-app-tel-task-three-web/task/export-task-view-task-list', para)
.then(res => {
that.loadingBtn = false;
if (!res.data) {
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2020-06-23 15:36:59
* @LastEditTime: 2020-06-24 09:54:28
-->
<template>
<div class="my-customer-wrap common-set-wrap">
......@@ -278,6 +278,10 @@ export default {
*/
exportExcel() {
const that = this;
if (!that.multipleSelection.length) {
showMsg.showmsg('请选择导购', 'warning');
return false;
}
that.loadingBtn = true;
let para = {
......@@ -285,7 +289,7 @@ export default {
selectType: that.selectRadio,
taskIds: that.selectRadio == 1 ? '' : that.multipleSelection.map(ele => ele.taskId).join(',')
};
postExcel('/haoban-app-tel-task-three-web/task/export-store-task-list', para)
postExcel('/haoban-app-tel-task-three-web/task/export-store-view-clerk-list', para)
.then(res => {
that.loadingBtn = false;
if (!res.data) {
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2020-06-24 09:41:19
* @LastEditTime: 2020-06-24 09:53:42
-->
<template>
<div class="daily-set-wrap ">
......@@ -253,6 +253,10 @@ export default {
*/
exportExcel() {
const that = this;
if (!that.multipleSelection.length) {
showMsg.showmsg('请选择门店', 'warning');
return false;
}
that.loadingBtn = true;
let storeGroups = [];
that.conditionObj.storeGroup.forEach(ele => {
......@@ -261,7 +265,7 @@ export default {
let para = {
search: that.conditionObj.searchInput || '', // 搜索字段
storeGroupIds: storeGroups.join(',') || '', // 门店分组,数组
// storeIds: that.multipleSelection.map(ele => ele.storeId).join(',') || '', // 门店分组,数组
storeIds: that.selectRadio == 1 ? '' : that.multipleSelection.map(ele => ele.storeId).join(' ') || '', // 门店分组,数组
storeType: that.conditionObj.storeType || '', //门店类型
startDate: !!that.conditionObj.dateRange ? that.conditionObj.dateRange[0] : '',
endDate: !!that.conditionObj.dateRange ? that.conditionObj.dateRange[1] : '',
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-03-20 14:36:37
* @LastEditors: 无尘
* @LastEditTime: 2020-06-23 15:36:03
* @LastEditTime: 2020-06-24 09:55:16
-->
<!--
<taskViewDetail :brandId="brandId" :activeGroupId="activeGroupId"></taskViewDetail>
......@@ -285,6 +285,10 @@ export default {
*/
exportExcel() {
const that = this;
if (!that.multipleSelection.length) {
showMsg.showmsg('请选择门店', 'warning');
return false;
}
that.loadingBtn = true;
let para = {
......@@ -293,7 +297,7 @@ export default {
gicEnterpriseId: that.activeBrand, // 品牌 id
selectType: String(that.selectRadio)
};
postExcel('/haoban-app-tel-task-three-web/task/export-store-task-list', para)
postExcel('/haoban-app-tel-task-three-web/task/export-task-view-store-list', para)
.then(res => {
if (!res.data) {
that.loadingBtn = false;
......
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