Browse Source

提交修改

newStyle
douzhuo 2 years ago
parent
commit
68ac41315e
3 changed files with 195 additions and 115 deletions
  1. +48
    -50
      src/page/wel.vue
  2. +3
    -0
      src/router/avue-router.js
  3. +144
    -65
      src/views/ReceivingRecords/index.vue

+ 48
- 50
src/page/wel.vue View File

@@ -32,7 +32,7 @@
</div>
<!-- 卡片部分 -->
<div class="page-container">
<div class="pagechen" @click="toDetail('/ReceivingRecords/index', customtime.join(','))">
<div class="pagechen" @click="toDetail('/ReceivingRecords/index', '', '接待记录')">
<div class="pageboxtitle1">平均接待时长(分钟)</div>
<div class="pageboxtitle2">
<div class="span1">{{ cardlist.datalist.avgDuration || 0 }}</div>
@@ -52,7 +52,7 @@
</div>
</div>

<div class="pagechen" @click="toDetail('/ReceivingRecords/index')">
<div class="pagechen" @click="toDetail('/ReceivingRecords/index', '', '接待记录')">
<div class="pageboxtitle1">平均执行率(%)</div>
<div class="pageboxtitle2">
<div class="span1">{{ cardlist.datalist.fraction || 0 }}</div>
@@ -60,7 +60,6 @@
<span class="span2-1">
环比:{{ cardlist.sequential.fraction || 0 }}</span
>
<!-- <span class="span2-2">{{cardlist.liftlist.fraction || 0}}%</span> -->
<span class="span2-2" v-if="cardlist.liftlist.fraction > 0">
<i class="el-icon-top" style="color: red"></i>
{{ cardlist.liftlist.fraction || 0 }}%
@@ -73,7 +72,7 @@
</div>
</div>

<div class="pagechen">
<div class="pagechen" @click="toDetail('/ReceivingRecords/index', '', '接待记录')">
<div class="pageboxtitle1">接待量 (次)</div>
<div class="pageboxtitle2">
<div class="span1">{{ cardlist.datalist.receptionCount || 0 }}</div>
@@ -92,7 +91,11 @@
</div>
</div>
</div>
<div class="pagechen">
<!-- validInvalid;//是否为有效接待 0:有效 1:无效 -->
<div
class="pagechen"
@click="toDetail('/ReceivingRecords/index', 'validInvalid,0', '接待记录')"
>
<div class="pageboxtitle1">有效接待(次)</div>
<div class="pageboxtitle2">
<div class="span1">{{ cardlist.datalist.activeCustomer || 0 }}</div>
@@ -100,7 +103,6 @@
<span class="span2-1">
环比:{{ cardlist.sequential.activeCustomer || 0 }}</span
>
<!-- <span class="span2-2">{{cardlist.liftlist.activeCustomer || 0}}%</span> -->
<span class="span2-2" v-if="cardlist.liftlist.activeCustomer > 0">
<i class="el-icon-top" style="color: red"></i>
{{ cardlist.liftlist.activeCustomer || 0 }}
@@ -123,7 +125,10 @@
</div>

<div style="margin-top: 20px" class="page-container">
<div class="pagechen">
<div
class="pagechen"
@click="toDetail('/ReceivingRecords/index', 'taboo,1', '接待记录')"
>
<div class="pageboxtitle1">违禁接待次数(次)</div>
<div class="pageboxtitle2">
<div class="span1">
@@ -133,7 +138,6 @@
<span class="span2-1">
环比:{{ cardlist.sequential.prohibitedCustomer || 0 }}</span
>
<!-- <span class="span2-2">{{cardlist.liftlist.prohibitedCustomer || 0}}%</span> -->
<span
class="span2-2"
v-if="cardlist.liftlist.prohibitedCustomer > 0"
@@ -151,7 +155,7 @@
</div>
</div>
</div>
<div class="pagechen">
<div class="pagechen" @click="toDetail('/ReceivingRecords/index', '', '接待记录')">
<div class="pageboxtitle1">违禁接待占比(%)</div>
<div class="pageboxtitle2">
<div class="span1">{{ cardlist.datalist.prohibitedZb || 0 }}</div>
@@ -159,7 +163,6 @@
<span class="span2-1">
环比:{{ cardlist.sequential.prohibitedZb || 0 }}</span
>
<!-- <span class="span2-2">{{cardlist.liftlist.prohibitedZb || 0}}%</span> -->
<span class="span2-2" v-if="cardlist.liftlist.prohibitedZb > 0">
<i class="el-icon-top" style="color: red"></i>
{{ cardlist.liftlist.prohibitedZb || 0 }}%
@@ -171,7 +174,7 @@
</div>
</div>
</div>
<div class="pagechen">
<div class="pagechen" @click="toDetail('/Statistics/ConsultantBrand', '', '顾问排名')">
<div class="pageboxtitle1">顾问(人)</div>
<div class="pageboxtitle2">
<div class="span1">{{ cardlist.datalist.accountNum || 0 }}</div>
@@ -179,7 +182,6 @@
<span class="span2-1">
环比:{{ cardlist.sequential.accountNum || 0 }}</span
>
<!-- <span class="span2-2">{{cardlist.liftlist.accountNum || 0}}%</span> -->
<span class="span2-2" v-if="cardlist.liftlist.accountNum > 0">
<i class="el-icon-top" style="color: red"></i>
{{ cardlist.liftlist.accountNum || 0 }}
@@ -548,7 +550,6 @@
<span class="span2-1">
环比:{{ sysCompare.equipmentQuantityWithSold || 0 }}</span
>
<!-- <span class="span2-2">{{cardlist.liftlist.avgDuration || 0}}%</span> -->
<span
class="span2-2"
v-if="orderBy.equipmentQuantityWithSold > 0"
@@ -574,7 +575,6 @@
<span class="span2-1">
环比:{{ sysCompare.activeEquipmentQuantity || 0 }}</span
>
<!-- <span class="span2-2">{{cardlist.liftlist.fraction || 0}}%</span> -->
<span
class="span2-2"
v-if="orderBy.activeEquipmentQuantity > 0"
@@ -601,7 +601,6 @@
<span class="span2-1">
环比:{{ sysCompare.activeUserQuantity || 0 }}</span
>
<!-- <span class="span2-2">{{cardlist.liftlist.prohibitedCustomer || 0}}%</span> -->
<span class="span2-2" v-if="orderBy.activeUserQuantity > 0">
<i class="el-icon-top" style="color: red"></i>
{{ orderBy.activeUserQuantity || 0 }}
@@ -623,7 +622,6 @@
<span class="span2-1">
环比:{{ sysCompare.receptionCount || 0 }}</span
>
<!-- <span class="span2-2">{{cardlist.liftlist.prohibitedZb || 0}}%</span> -->
<span class="span2-2" v-if="orderBy.receptionCount > 0">
<i class="el-icon-top" style="color: red"></i>
{{ orderBy.receptionCount || 0 }}
@@ -643,7 +641,6 @@
<span class="span2-1">
环比:{{ sysCompare.activeCustomer || 0 }}</span
>
<!-- <span class="span2-2">{{cardlist.liftlist.accountNum || 0}}%</span> -->
<span class="span2-2" v-if="orderBy.activeCustomer > 0">
<i class="el-icon-top" style="color: red"></i>
{{ orderBy.activeCustomer || 0 }}
@@ -663,7 +660,6 @@
<span class="span2-1">
环比:{{ sysCompare.prohibitedCount || 0 }}</span
>
<!-- <span class="span2-2">{{cardlist.liftlist.accountNum || 0}}%</span> -->
<span class="span2-2" v-if="orderBy.prohibitedCount > 0">
<i class="el-icon-top" style="color: red"></i>
{{ orderBy.prohibitedCount || 0 }}
@@ -683,7 +679,6 @@
<span class="span2-1">
环比:{{ sysCompare.receptionTimeWithAvg || 0 }}</span
>
<!-- <span class="span2-2">{{cardlist.liftlist.accountNum || 0}}%</span> -->
<span class="span2-2" v-if="orderBy.receptionTimeWithAvg > 0">
<i class="el-icon-top" style="color: red"></i>
{{ orderBy.receptionTimeWithAvg || 0 }}
@@ -703,7 +698,6 @@
<span class="span2-1">
环比:{{ sysCompare.receptionTime || 0 }}</span
>
<!-- <span class="span2-2">{{cardlist.liftlist.accountNum || 0}}%</span> -->
<span class="span2-2" v-if="orderBy.receptionTime > 0">
<i class="el-icon-top" style="color: red"></i>
{{ orderBy.receptionTime || 0 }}
@@ -728,7 +722,6 @@
<span class="span2-1">
环比:{{ sysCompare.receptionCount || 0 }}</span
>
<!-- <span class="span2-2">{{cardlist.liftlist.prohibitedZb || 0}}%</span> -->
<span class="span2-2" v-if="orderBy.receptionCount > 0">
<i class="el-icon-top" style="color: red"></i>
{{ orderBy.receptionCount || 0 }}
@@ -749,7 +742,6 @@
<span class="span2-1">
环比:{{ sysCompare.activeCustomer || 0 }}</span
>
<!-- <span class="span2-2">{{cardlist.liftlist.accountNum || 0}}%</span> -->
<span class="span2-2" v-if="orderBy.activeCustomer > 0">
<i class="el-icon-top" style="color: red"></i>
{{ orderBy.activeCustomer || 0 }}
@@ -789,7 +781,6 @@
<span class="span2-1">
环比:{{ sysCompare.receptionTime || 0 }}</span
>
<!-- <span class="span2-2">{{cardlist.liftlist.accountNum || 0}}%</span> -->
<span class="span2-2" v-if="orderBy.receptionTime > 0">
<i class="el-icon-top" style="color: red"></i>
{{ orderBy.receptionTime || 0 }}
@@ -810,7 +801,6 @@
<span class="span2-1">
环比:{{ sysCompare.receptionTimeWithAvg || 0 }}</span
>
<!-- <span class="span2-2">{{cardlist.liftlist.accountNum || 0}}%</span> -->
<span class="span2-2" v-if="orderBy.receptionTimeWithAvg > 0">
<i class="el-icon-top" style="color: red"></i>
{{ orderBy.receptionTimeWithAvg || 0 }}
@@ -832,7 +822,6 @@
<span class="span2-1">
环比:{{ sysCompare.avgFration || 0 }}</span
>
<!-- <span class="span2-2">{{cardlist.liftlist.avgDuration || 0}}%</span> -->
<span class="span2-2" v-if="orderBy.avgFration > 0">
<i class="el-icon-top" style="color: red"></i>
{{ orderBy.avgFration || 0 }}%
@@ -853,7 +842,6 @@
<span class="span2-1">
环比:{{ sysCompare.prohibitedCount || 0 }}</span
>
<!-- <span class="span2-2">{{cardlist.liftlist.accountNum || 0}}%</span> -->
<span class="span2-2" v-if="orderBy.prohibitedCount > 0">
<i class="el-icon-top" style="color: red"></i>
{{ orderBy.prohibitedCount || 0 }}
@@ -874,7 +862,6 @@
<span class="span2-1">
环比:{{ sysCompare.activeEquipmentQuantity || 0 }}</span
>
<!-- <span class="span2-2">{{cardlist.liftlist.fraction || 0}}%</span> -->
<span
class="span2-2"
v-if="orderBy.activeEquipmentQuantity > 0"
@@ -903,7 +890,6 @@
<span class="span2-1">
环比:{{ sysCompare.activeEquipmentQuantityZB || 0 }}</span
>
<!-- <span class="span2-2">{{cardlist.liftlist.prohibitedCustomer || 0}}%</span> -->
<span
class="span2-2"
v-if="orderBy.activeEquipmentQuantityZB > 0"
@@ -930,7 +916,6 @@
<span class="span2-1">
环比:{{ sysCompare.activeHouseQuantity || 0 }}</span
>
<!-- <span class="span2-2">{{cardlist.liftlist.activeCustomer || 0}}%</span> -->
<span class="span2-2" v-if="orderBy.activeHouseQuantity > 0">
<i class="el-icon-top" style="color: red"></i>
{{ orderBy.activeHouseQuantity || 0 }}
@@ -1095,6 +1080,7 @@

<script>
import { getStore, setStore } from "@/util/store";
import { mapGetters } from "vuex";
export default {
name: "Wel",
data() {
@@ -1135,8 +1121,12 @@ export default {
info: {},
};
},

computed: {
...mapGetters(["permissions"]),
},

mounted() {
// location.reload();
this.role = localStorage.getItem("orgType");
this.info = getStore({ name: "userInfo" });
if (this.role == 3) {
@@ -1151,34 +1141,44 @@ export default {
this.findProhibitedRecord();
// 获取设备
this.findAllZkEquipment();
}
// else if(this.role==0){
// // 系统
// // this.zkhousePage()
// this.waitingForOperation()
// }
// else if(this.role==1){
// // 代理商
// // this.zkhousePage()
// }
else {
} else {
// 公司
this.waitingForOperation();
}
},
methods: {
// 跳转详情
toDetail(path, params1 = '', params2 = '') {
console.log(path);
console.log(params1)
if (path == '') return
toDetail(path, params2 = "", name) {
if (path == "") return;
if (!this.hasRoute(name, this.$router.options.routes)) {
this.$message.error('您没有此权限,请联系管理员添加该菜单权限')
return
}
this.$router.push({
path: path,
query: {
date: params1, // 筛选时间
date: this.customtime.join(","), // 筛选时间
types: params2, // 类型
},
});
},

// 是否存在此路由
hasRoute(name, routeList) {
!routeList &&
((routeList = this.$router.options.routes), console.log("执行"));
for (let i = 0; i < routeList.length; i++) {
if (routeList[i].name === name) {
return true;
}
if (routeList[i].children) {
let flag = this.hasRoute(name, routeList[i].children);
if (flag) {
return flag;
}
}
})
}
return false;
},

goinfo(row) {
@@ -1201,8 +1201,6 @@ export default {
let dang = this.getCurrentTime();
let timevt = this.timestampToTime(new Date(dang).getTime() + num);
let newtime = [dang, timevt];
// console.log(newtime)
// return
if (ind == 1) {
this.$router.push({
path: "/Customer/AgentManagement",
@@ -1435,7 +1433,7 @@ export default {
confirmtime() {
this.statDateStart = this.customtime[0];
this.statDateEnd = this.customtime[1];
console.log(this.customtime)
console.log(this.customtime);
this.TimetoAhoose = 5;
if (this.role == 3) {
this.getgicd();


+ 3
- 0
src/router/avue-router.js View File

@@ -179,8 +179,11 @@ RouterPlugin.install = function(router, store) {
}
// 在这里将数据重新赋值为空 就可以了 关键不知道为啥,案例来说可以?
this.routerList=[]
this.safe.$router.options.routes = this.safe.$router.options.routes.concat(aRouter)
// console.log(aRouter,'内容');
}

}
}
// console.log(RouterPlugin,'配置');


+ 144
- 65
src/views/ReceivingRecords/index.vue View File

@@ -2,14 +2,14 @@
<div class="box-center">
<!-- 头 -->
<div class="app-top">
<div class="app-titel" v-if="orgType!=3">
<div class="app-titel" v-if="orgType != 3">
<div
class="label"
style="color: #32363d; font-weight: 400; font-size: 16px"
>
楼盘选择:
</div>
<div style="margin-left: 8px;">
<div style="margin-left: 8px">
<el-select
v-model="searchForm.projectId"
@change="houseChange"
@@ -29,36 +29,36 @@
<div class="app-titel" style="margin-top: 15px">
<div class="label" style="margin-left: 20px">时间:</div>
<div class="toptimeqhuan">
<el-button
<el-button
class="btn"
:type="searchForm.dateType == null?'primary':''"
:type="searchForm.dateType == null ? 'primary' : ''"
@click="tabtimetap(null)"
>
全部
</el-button>
<el-button
class="btn"
:type="searchForm.dateType == 0?'primary':''"
:type="searchForm.dateType == 0 ? 'primary' : ''"
@click="tabtimetap(0)"
>
今日
</el-button>
<el-button
class="btn"
:type="searchForm.dateType == 1?'primary':''"
:type="searchForm.dateType == 1 ? 'primary' : ''"
@click="tabtimetap(1)"
>
昨日
</el-button>
<el-button
class="btn"
:type="searchForm.dateType == 2?'primary':''"
class="btn"
:type="searchForm.dateType == 2 ? 'primary' : ''"
@click="tabtimetap(2)"
>
近7天
</el-button>
</div>
<div style="margin-left:20px;">
<div style="margin-left: 20px">
<el-date-picker
v-model="time"
type="daterange"
@@ -77,7 +77,12 @@
<div class="app-titel" style="margin-top: 15px">
<div class="div-lab">
<div class="label">客户名称:</div>
<el-input class="div-inp" maxlength="10" clearable v-model="searchForm.name"></el-input>
<el-input
class="div-inp"
maxlength="10"
clearable
v-model="searchForm.name"
></el-input>
</div>

<div class="div-lab">
@@ -91,13 +96,17 @@
v-model="searchForm.keywordsId"
placeholder="请选择"
>
<el-option
v-for="item in keywordsList"
:key="item.keywordsId"
:label="item.isInterval==0?item.name+'-'+item.endName+item.unit:item.name"
:value="item.keywordsId"
>
</el-option>
<el-option
v-for="item in keywordsList"
:key="item.keywordsId"
:label="
item.isInterval == 0
? item.name + '-' + item.endName + item.unit
: item.name
"
:value="item.keywordsId"
>
</el-option>
</el-select>
</div>

@@ -159,7 +168,6 @@
</el-select>
</div>


<div class="div-lab">
<!-- 默认全部 -->
<div class="label">是否违禁:</div>
@@ -237,21 +245,40 @@
</el-option>
</el-select>
</div>

<div class="div-lab">
<div class="label">是否有效:</div>
<el-select
v-model="searchForm.validInvalid"
clearable
filterable
placeholder="请选择"
class="div-inp"
>
<el-option
v-for="item in options13"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</el-select>
</div>
</div>

<div class="app-titel" style="margin-top: 15px"></div>

<div class="app-titel" style="margin-top: 15px">
<div class="label" style="color: #ffffff">筛选相关:</div>
<div >
<el-button type="primary" @click="screen"
>筛选</el-button
>
<div>
<el-button type="primary" @click="screen">筛选</el-button>
</div>
<div style="margin-left: 20px">
<el-button @click="clearScreen">清空筛选条件</el-button>
</div>
<div style="margin-left: auto;margin-right:10px;" v-if="rec_index_downLoad">
<div
style="margin-left: auto; margin-right: 10px"
v-if="rec_index_downLoad"
>
<el-button @click="downLoad">导出</el-button>
</div>
</div>
@@ -300,16 +327,25 @@
</el-table-column> -->
<!-- scope -->
<el-table-column prop="taboo" label="是否违禁" align="center">
<template slot-scope="{ row }"> {{ row.taboo==0?'否':'是' }} </template>
<template slot-scope="{ row }">
{{ row.taboo == 0 ? "否" : "是" }}
</template>
</el-table-column>
<el-table-column prop="zfal" label="是否加精" align="center">
<template slot-scope="{ row }"> {{ row.zfal==0?'已加精':'未加精' }} </template>
<template slot-scope="{ row }">
{{ row.zfal == 0 ? "已加精" : "未加精" }}
</template>
</el-table-column>
<el-table-column label="操作" align="center" width="200" fixed="right">
<template slot-scope="{ row }">
<el-button type="text" v-if="rec_index_show" @click="Receivedetailsabout(row)">查看</el-button>
<el-button
type="text"
v-if="rec_index_show"
@click="Receivedetailsabout(row)"
>查看</el-button
>
<!-- To Doing?按钮未添加权限判断 -->
<el-button type="text" @click="deleteReceive(row)">删除</el-button>
<el-button type="text" @click="deleteReceive(row)">删除</el-button>
<!-- <el-button type="text" v-if="rec_index_text">下载文本</el-button>
<el-button type="text" v-if="rec_index_voice">下载录音</el-button> -->
</template>
@@ -333,14 +369,14 @@

<script>
import { mapGetters } from "vuex";
import { exportMethodPost} from "@/util/util";
import { exportMethodPost } from "@/util/util";
export default {
data() {
return {
TimetoAhoose: 2,
time: [],
houseList: [],
orgType:localStorage.getItem('orgType'),
orgType: localStorage.getItem("orgType"),
options: [],
keywordsList: [],
accountList: [],
@@ -428,6 +464,18 @@ export default {
label: "未加精",
},
],

options13: [
{
label: "有效接待",
value: "0",
},
{
label: "无效接待",
value: "1",
},
],

currentPage: 1,
size: 10,
total: 10,
@@ -448,8 +496,9 @@ export default {
houseType: "",
dateType: null,
projectId: "",
taboo:'',
zfal:''
taboo: "",
zfal: "",
validInvalid: "", // 是否为有效接待 0:有效 1:无效
},
rec_index_show: false, // 按钮权限
rec_index_text: false, // 按钮权限
@@ -457,58 +506,71 @@ export default {
rec_index_downLoad: false, // 按钮权限
};
},
computed: {
computed: {
...mapGetters(["permissions"]),
},
created() {
if (this.$route.query.types) {
let arr = this.$route.query.types.split(",");
this.searchForm[arr[0]] = arr[1];
console.log(arr);
}

if (this.$route.query.date) {
this.time = this.$route.query.date.split(',')
this.time = this.$route.query.date.split(",");
this.searchForm.staDate = this.time[0];
this.searchForm.endDate = this.time[1];
console.log("时间");
}
// console.log(this.$route.query.date.split(','))
console.log(this.$route)
this.rec_index_show = this.permissions["rec_index_show"] || false;
this.rec_index_text = this.permissions["rec_index_text"] || false;
this.rec_index_voice = this.permissions["rec_index_voice"] || false;
this.rec_index_downLoad = this.permissions["rec_index_downLoad"] || false;

this.rec_index_show = this.permissions["rec_index_show"];
this.rec_index_text = this.permissions["rec_index_text"];
this.rec_index_voice = this.permissions["rec_index_voice"];
this.rec_index_downLoad = this.permissions["rec_index_downLoad"];
},
mounted() {

// 获取楼盘列表
this.zkhousePage();
},

methods: {
downLoad(){
// 清除上次进入遗留的数据
resetParams() {
this.searchForm.taboo = ''
this.searchForm.validInvalid = ''
this.searchForm.endDate = ''
this.searchForm.staDate = ''
this.time = ''
},

downLoad() {
let obj = {
type: 1,
...this.searchForm,
};
obj.keywordIds = obj.keywordsId.join(",");
obj.dateType = this.searchForm.staDate
? null
: this.searchForm.dateType
exportMethodPost('autoSR/customer/pageExport','接待记录',obj)
obj.dateType = this.searchForm.staDate ? null : this.searchForm.dateType;
exportMethodPost("autoSR/customer/pageExport", "接待记录", obj);
},
// 跳转接待详情
Receivedetailsabout(row){
this.$api.http.findByCusIdcusId({cusId:row.id}).then((res) => {
if(res.data.length==0){
// 跳转接待详情
Receivedetailsabout(row) {
this.$api.http.findByCusIdcusId({ cusId: row.id }).then((res) => {
if (res.data.length == 0) {
this.$message({
message: '无录音',
type: 'warning'
message: "无录音",
type: "warning",
});
} else {
this.$router.push({
path: "/Receive/index",
query: { flag: row.id, AudioIdx: 0 },
});
}else{
this.$router.push({
path: "/Receive/index",
query: { flag: row.id ,AudioIdx:0},
});
}
})
});
},
// 删除此条接待记录
deleteReceive(row) {
console.log(row)
console.log(row);
},
// 接待记录列表
findbypage() {
@@ -541,8 +603,8 @@ export default {
endDate: "",
houseType: "",
dateType: null,
taboo:'',
zfal:'',
taboo: "",
zfal: "",
// projectId: this.houseList[0].id,
projectId:
this.orgType == 3
@@ -559,12 +621,12 @@ export default {
},
timeChange(e) {
if (!e) {
this.searchForm.dateType=null
this.searchForm.dateType = null;
this.searchForm.staDate = "";
this.searchForm.endDate = "";
} else {
console.log(e, 'asdkasljdlksajl')
this.searchForm.dateType=null
console.log(e, "asdkasljdlksajl");
this.searchForm.dateType = null;
this.searchForm.staDate = e[0];
this.searchForm.endDate = e[1];
}
@@ -630,7 +692,7 @@ export default {
this.searchForm.endDate = "";
// this.$set(this, "time", null);
this.searchForm.dateType = idx;
this.houseChange();
this.houseChange();
},
timestampToTime(timestamp) {
var date = new Date(timestamp); //时间戳为10位需*1000,时间戳为13位的话不需乘1000
@@ -649,6 +711,23 @@ export default {
return yyyy + MM + dd;
},
},

watch: {
$route(to, from) {
this.resetParams()
//监听路由是否变化
if (to.query.types != from.query.types && to.query.types != null) {
let arr = this.$route.query.types.split(",");
this.searchForm[arr[0]] = arr[1];
}

if (to.query.date != from.query.date && to.query.date != null) {
this.time = this.$route.query.date.split(",");
this.searchForm.staDate = this.time[0];
this.searchForm.endDate = this.time[1];
}
},
},
};
</script>

@@ -706,7 +785,7 @@ export default {
border-radius: 4px;
border: 1px solid #e0e0e0;
}
.toptimeqhuan .btn {
.toptimeqhuan .btn {
padding-left: 20px;
padding-right: 20px;
text-align: center;


Loading…
Cancel
Save