Commit 7714e001 authored by 黄奎's avatar 黄奎

统计修改

parent 12b9bc81
...@@ -909,7 +909,6 @@ export default { ...@@ -909,7 +909,6 @@ export default {
query = { query = {
activation: 1, activation: 1,
blank: "y", blank: "y",
} }
}else if(type==4){ }else if(type==4){
query = { query = {
...@@ -918,10 +917,7 @@ export default { ...@@ -918,10 +917,7 @@ export default {
blank: "y", blank: "y",
} }
} }
this.$router.push({ this.OpenNewPage('/customerTransfer',query)
name: 'customerTransfer',
query
});
} }
if(type>4&&type<9){ if(type>4&&type<9){
if(type==5){ if(type==5){
...@@ -963,10 +959,7 @@ export default { ...@@ -963,10 +959,7 @@ export default {
blank: "y", blank: "y",
} }
} }
this.$router.push({ this.OpenNewPage('/salesVolumeRank',query)
name: 'enrollTotal',
query
});
} }
}, },
changeDepart(node, instanceId){ changeDepart(node, instanceId){
......
...@@ -3,13 +3,7 @@ ...@@ -3,13 +3,7 @@
<el-tabs v-model="activeName" @tab-click="handleClick"> <el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane :label="$t('sm.Personalrank')" name="first"></el-tab-pane> <el-tab-pane :label="$t('sm.Personalrank')" name="first"></el-tab-pane>
<el-tab-pane :label="$t('sm.derprank')" name="second"></el-tab-pane> <el-tab-pane :label="$t('sm.derprank')" name="second"></el-tab-pane>
<!-- <el-tab-pane :label="$t('sm.companyrank')" name="third" v-if="S_CheckAllOrder"></el-tab-pane>
v-if="authority.indexOf('Sales_Volume_Rank_Show') != -1" -->
<el-tab-pane
:label="$t('sm.companyrank')"
name="third"
v-if="S_CheckAllOrder"
></el-tab-pane>
<el-tab-pane :label="$t('sm.salerank')" name="four"></el-tab-pane> <el-tab-pane :label="$t('sm.salerank')" name="four"></el-tab-pane>
</el-tabs> </el-tabs>
<div class="query-box"> <div class="query-box">
...@@ -17,88 +11,42 @@ ...@@ -17,88 +11,42 @@
<el-row style="padding: 15px 0px 0 0"> <el-row style="padding: 15px 0px 0 0">
<el-col :span="4" v-show="activeName != 'four'"> <el-col :span="4" v-show="activeName != 'four'">
<el-form-item :label="$t('system.table_company')"> <el-form-item :label="$t('system.table_company')">
<el-select <el-select filterable v-model="msg.RB_Branch_Id" @change="getDepartment" class>
filterable <el-option :value="-1" :label="$t('pub.unlimitedSel')"></el-option>
v-model="msg.RB_Branch_Id" <el-option v-for="item in CompanyList" :label="item.BName" :value="item.Id" :key="item.Id"></el-option>
@change="getDepartment"
class
>
<el-option
:value="-1"
:label="$t('pub.unlimitedSel')"
></el-option>
<el-option
v-for="item in CompanyList"
:label="item.BName"
:value="item.Id"
:key="item.Id"
></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col <el-col :span="4" v-show="activeName != 'third' && activeName != 'four'">
:span="4"
v-show="activeName != 'third' && activeName != 'four'"
>
<el-form-item :label="$t('admin.admin_Department')"> <el-form-item :label="$t('admin.admin_Department')">
<el-select <el-select filterable v-model="msg.RB_Department_Id" @change="getEmployee" class>
filterable <el-option :value="0" :label="$t('pub.unlimitedSel')"></el-option>
v-model="msg.RB_Department_Id" <el-option v-for="item in DepartmentList" :label="item.DepartmentName" :value="item.DepartmentID"
@change="getEmployee" :key="item.DepartmentID"></el-option>
class
>
<el-option
:value="0"
:label="$t('pub.unlimitedSel')"
></el-option>
<el-option
v-for="item in DepartmentList"
:label="item.DepartmentName"
:value="item.DepartmentID"
:key="item.DepartmentID"
></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" v-show="activeName == 'first'"> <el-col :span="4" v-show="activeName == 'first'">
<el-form-item :label="$t('salesModule.Personnel')"> <el-form-item :label="$t('salesModule.Personnel')">
<el-select filterable v-model="msg.EnterID" class> <el-select filterable v-model="msg.EnterID" class>
<el-option <el-option :value="0" :label="$t('pub.unlimitedSel')"></el-option>
:value="0" <el-option v-for="item in EmployeeList" :label="item.EmName" :value="item.EmployeeId"
:label="$t('pub.unlimitedSel')" :key="item.EmployeeId"></el-option>
></el-option>
<el-option
v-for="item in EmployeeList"
:label="item.EmName"
:value="item.EmployeeId"
:key="item.EmployeeId"
></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('sm.chutuandate')"> <el-form-item :label="$t('fnc.bmriqi')">
<el-date-picker <el-date-picker v-model="msg.qStartDates" type="daterange" range-separator="-"
v-model="msg.tStartDates" :start-placeholder="$t('hotel.hotel_StartDate')" :end-placeholder="$t('hotel.hotel_EndDate')"
type="daterange" value-format="yyyy-MM-dd"></el-date-picker>
range-separator="-"
:start-placeholder="$t('hotel.hotel_StartDate')"
:end-placeholder="$t('hotel.hotel_EndDate')"
value-format="yyyy-MM-dd"
:picker-options="pickerOptions"
></el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item :label="$t('fnc.bmriqi')"> <el-form-item :label="$t('sm.chutuandate')">
<el-date-picker <el-date-picker v-model="msg.tStartDates" type="daterange" range-separator="-"
v-model="msg.qStartDates" :start-placeholder="$t('hotel.hotel_StartDate')" :end-placeholder="$t('hotel.hotel_EndDate')"
type="daterange" value-format="yyyy-MM-dd" :picker-options="pickerOptions"></el-date-picker>
range-separator="-"
:start-placeholder="$t('hotel.hotel_StartDate')"
:end-placeholder="$t('hotel.hotel_EndDate')"
value-format="yyyy-MM-dd"
></el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -111,370 +59,362 @@ ...@@ -111,370 +59,362 @@
</li> </li>
</ul> </ul>
</div> </div>
<el-table <el-table v-if="isReady" ref="singleTable" :data="tableData" style="width: 100%" v-loading="loading">
v-if="isReady" <el-table-column type="index" :label="$t('active.ad_xuhao')" :width="getLanguage()=='en-US'?'120':'50'">
ref="singleTable" </el-table-column>
:data="tableData" <el-table-column property="name" :label="$t('system.query_airName')">
style="width: 100%"> </el-table-column>
<el-table-column <el-table-column property="SumPreferPrice" :label="$t('objFill.xiaosoue')" width="" sortable>
type="index" <template slot-scope="scope">
:label="$t('active.ad_xuhao')" <div class="clickText" @click="goUrl('salesVolumeRankEntryForm',scope.row)">{{scope.row.SumPreferPrice}}</div>
:width="getLanguage()=='en-US'?'120':'50'" </template>
> </el-table-column>
</el-table-column> <el-table-column property="income" :label="$t('fnc.skjine')" width="" sortable>
<el-table-column <template slot-scope="scope">
property="name" <div class="clickText" @click="goUrl('salesVolumeRankEntryForm',scope.row)">{{scope.row.income}}</div>
:label="$t('system.query_airName')"> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column property="notInCome" :label="$t('fnc.wsjine')" width="" sortable>
property="SumPreferPrice" <template slot-scope="scope">
:label="$t('objFill.xiaosoue')" <div class="clickText" @click="goUrl('salesVolumeRankEntryForm',scope.row)">{{scope.row.notInCome}}</div>
width="" sortable> </template>
<template slot-scope="scope"> </el-table-column>
<div class="clickText" @click="goUrl('salesVolumeRankEntryForm',scope.row)">{{scope.row.SumPreferPrice}}</div> <el-table-column property="peopleCount" :label="$t('objFill.v101.SalesModule.zhengchangsks')" width="" sortable>
</template> </el-table-column>
</el-table-column> <el-table-column property="CalcheCount" :label="$t('objFill.v101.SalesModule.quxiaosks')" width="" sortable>
<el-table-column </el-table-column>
property="income" <el-table-column property="totalGuestNum" :label="$t('objFill.v101.SalesModule.danxiansks')" width="">
:label="$t('fnc.skjine')" </el-table-column>
width="" sortable> <el-table-column property="avgPrice" :label="$t('objFill.v101.SalesModule.kedanjia')" width="" sortable>
<template slot-scope="scope"> </el-table-column>
<div class="clickText" @click="goUrl('salesVolumeRankEntryForm',scope.row)">{{scope.row.income}}</div> <el-table-column property="XiaoBaoTuanCount" :label="$t('objFill.v101.SalesModule.xiaobaotts')" width="">
</template> </el-table-column>
</el-table-column> <el-table-column property="zanBi" :label="$t('objFill.v101.SalesModule.xiaosouezb')" width="">
<el-table-column </el-table-column>
property="notInCome" <el-table-column property="CustomerCount" label="客户总数" width="">
:label="$t('fnc.wsjine')" </el-table-column>
width="" sortable> <el-table-column property="TodayAddCustomer" label="今日新增" width="">
<template slot-scope="scope"> </el-table-column>
<div class="clickText" @click="goUrl('salesVolumeRankEntryForm',scope.row)">{{scope.row.notInCome}}</div> <el-table-column property="MiniAppCount" label="小程序激活数" width="">
</template> </el-table-column>
</el-table-column> <el-table-column property="MiniAppAdd" label="今日激活数" width="">
<el-table-column </el-table-column>
property="peopleCount" <el-table-column property="OrderCount" label="团队订单数" width="">
:label="$t('objFill.v101.SalesModule.zhengchangsks')" </el-table-column>
width="" sortable> <el-table-column property="CouponCount" label="优惠卷订单数" width="">
</el-table-column> </el-table-column>
<el-table-column <el-table-column property="LXYCount" label="小程序订单数" width="">
property="CalcheCount" </el-table-column>
:label="$t('objFill.v101.SalesModule.quxiaosks')" </el-table>
width="" sortable>
</el-table-column>
<el-table-column
property="totalGuestNum"
:label="$t('objFill.v101.SalesModule.danxiansks')"
width="">
</el-table-column>
<el-table-column
property="avgPrice"
:label="$t('objFill.v101.SalesModule.kedanjia')"
width="" sortable>
</el-table-column>
<el-table-column
property="XiaoBaoTuanCount"
:label="$t('objFill.v101.SalesModule.xiaobaotts')"
width="">
</el-table-column>
<el-table-column
property="zanBi"
:label="$t('objFill.v101.SalesModule.xiaosouezb')"
width="">
</el-table-column>
</el-table>
</div> </div>
</template> </template>
<script> <script>
import Vue from "vue"; import Vue from "vue";
import moment from 'moment' import moment from 'moment'
export default { export default {
data() { data() {
return { return {
S_CheckAllOrder: false, S_CheckAllOrder: false,
pickerOptions: { pickerOptions: {
disabledDate(time) { disabledDate(time) {
return time < new Date("2018-12-31"); return time < new Date("2018-12-31");
},
}, },
activeName: "first",
columns: [],
pageSize: 100000,
pageIndex: 1,
total: 0,
tableData: [],
isReady: false,
multipleSort: false,
loading: true,
authority: [],
msg: {
RB_Branch_Id: -1,
RB_Department_Id: 0,
EnterID: 0,
tStartDates: [], //出发日期
qStartDates: [], //报名日期
GroupBy: "EnterID",
QueryType: 0,
},
getCompanyMsg: {
// 公司
RB_Group_Id: "0",
Status: "0",
},
getDepartmentMsg: {
// 部门
RB_Group_Id: "",
RB_Branch_Id: "",
Status: 0,
ParentId: -1,
Tier: 0,
},
employeeMsg: {
// 员工
GroupId: "",
BranchId: -1,
DepartmentId: 0,
PostId: 0,
IsLeave: 0,
},
CompanyList: [],
DepartmentList: [],
EmployeeList: [],
};
},
created() {
this.getCompanyList();
this.getCompanyMsg.RB_Group_Id = this.getLocalStorage().RB_Group_id;
this.getDepartmentMsg.RB_Group_Id = this.getLocalStorage().RB_Group_id;
this.employeeMsg.employeeMsg = this.getLocalStorage().RB_Group_id;
if (this.$route.query.CStartDate && this.$route.query.CEndDate) {
this.msg.qStartDates.push(this.$route.query.CStartDate.replace(/\//g, '-'));
this.msg.qStartDates.push(this.$route.query.CEndDate.replace(/\//g, '-'));
} else {
this.settStartDates();
}
if (this.$route.query.BranchId) {
this.msg.RB_Branch_Id = Number(this.$route.query.BranchId);
this.getDepartmentMsg.RB_Branch_Id = Number(this.$route.query.BranchId);
this.employeeMsg.RB_Branch_Id = Number(this.$route.query.BranchId);
this.getDepartment();
}
if (this.$route.query.RB_Department_Id) {
this.msg.RB_Department_Id = Number(this.$route.query.RB_Department_Id);
this.employeeMsg.DepartmentId = Number(this.$route.query.RB_Department_Id);
this.getEmployee();
}
if (this.$route.query.EmployeeId) {
this.msg.EnterID = Number(this.$route.query.EmployeeId);
}
},
mounted() {
this.GetAuth()
this.initColumns();
this.initData();
this.initAuthor();
},
methods: {
goUrl(name, rowData) {
if (name == 'salesVolumeRankEntryForm') this.customCompFunc(rowData)
}, },
activeName: "first", customCompFunc(rowData) {
columns: [], this.$router.push({
pageSize: 100000, path: "/salesVolumeRankEntryForm",
pageIndex: 1, query: {
total: 0, BranchId: rowData.BranchId,
tableData: [], EnterID: rowData.EnterID,
isReady: false, RB_Department_Id: rowData.RB_Department_Id,
multipleSort: false, blank: "y",
loading: true, tStartDates: this.msg.tStartDates,
authority: [], qStartDates: this.msg.qStartDates,
msg: { },
RB_Branch_Id: -1, });
RB_Department_Id: 0,
EnterID: 0,
tStartDates: [],
qStartDates: [],
GroupBy: "EnterID",
QueryType: 0,
},
getCompanyMsg: {
// 公司
RB_Group_Id: "0",
Status: "0",
}, },
getDepartmentMsg: { GetAuth() {
// 部门 var actionCode = this.$AuthCode.S_CheckAllOrder;
RB_Group_Id: "", this.CheckUserAuth(actionCode, res => {
RB_Branch_Id: "", if (res.data.resultCode == 1 && res.data.data == 1) {
Status: 0, this.S_CheckAllOrder = true;
ParentId: -1, }
Tier: 0, });
}, },
employeeMsg: { initColumns() {
// 员工 this.isReady = true;
GroupId: "",
BranchId: -1,
DepartmentId: 0,
PostId: 0,
IsLeave: 0,
}, },
CompanyList: [], initData() {
DepartmentList: [], this.loading = true;
EmployeeList: [], console.log("this.msg", this.msg);
}; let param = {
}, RB_Branch_Id: this.msg.RB_Branch_Id == -1 ? null : this.msg.RB_Branch_Id,
created() {}, RB_Department_Id: this.msg.RB_Department_Id == 0 ? null : this.msg.RB_Department_Id,
mounted() { EnterID: this.msg.EnterID == 0 ? null : this.msg.EnterID,
this.settStartDates() QStartDate: this.msg.tStartDates && this.msg.tStartDates.length == 2 ?
this.GetAuth() this.msg.tStartDates[0] : null,
this.initColumns(); QEndDate: this.msg.tStartDates && this.msg.tStartDates.length == 2 ?
this.getCompanyMsg.RB_Group_Id = this.getLocalStorage().RB_Group_id; this.msg.tStartDates[1] : null,
this.getDepartmentMsg.RB_Group_Id = this.getLocalStorage().RB_Group_id; CStartDate: this.msg.qStartDates && this.msg.qStartDates.length == 2 ?
this.employeeMsg.employeeMsg = this.getLocalStorage().RB_Group_id; this.msg.qStartDates[0] : null,
this.initData(); CEndDate: this.msg.qStartDates && this.msg.qStartDates.length == 2 ?
this.getCompanyList(); this.msg.qStartDates[1] : null,
this.initAuthor(); GroupBy: this.msg.GroupBy,
//this.pageSize = this.calcPageSize(40); 此页不需要分页 QueryType: this.msg.QueryType,
}, };
methods: { if (!param.QStartDate) {
goUrl(name,rowData){ param.QStartDate = "2019-01-01";
if(name=='salesVolumeRankEntryForm') this.customCompFunc(rowData)
},
customCompFunc(rowData) {
this.$router.push({
path: "/salesVolumeRankEntryForm",
query: {
BranchId: rowData.BranchId,
EnterID: rowData.EnterID,
RB_Department_Id: rowData.RB_Department_Id,
blank: "y",
tStartDates: this.msg.tStartDates,
qStartDates: this.msg.qStartDates,
},
});},
GetAuth() {
var actionCode = this.$AuthCode.S_CheckAllOrder;
this.CheckUserAuth(actionCode, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.S_CheckAllOrder = true;
} }
}); this.tableData = []
}, this.apipost("sellorder_get_sellvolumerankNew", param, (r) => {
initColumns() { var tempData = r.data.data;
this.isReady = true; if (tempData && tempData.length > 0) {
}, tempData.forEach((x) => {
initData() { x.incomeVal = parseFloat(x.income);
this.loading = true; x.avgPrice = parseFloat(x.avgPrice);
let param = { });
RB_Branch_Id:
this.msg.RB_Branch_Id == -1 ? null : this.msg.RB_Branch_Id,
RB_Department_Id:
this.msg.RB_Department_Id == 0 ? null : this.msg.RB_Department_Id,
EnterID: this.msg.EnterID == 0 ? null : this.msg.EnterID,
QStartDate:
this.msg.tStartDates && this.msg.tStartDates.length == 2
? this.msg.tStartDates[0]
: null,
QEndDate:
this.msg.tStartDates && this.msg.tStartDates.length == 2
? this.msg.tStartDates[1]
: null,
CStartDate:
this.msg.qStartDates && this.msg.qStartDates.length == 2
? this.msg.qStartDates[0]
: null,
CEndDate:
this.msg.qStartDates && this.msg.qStartDates.length == 2
? this.msg.qStartDates[1]
: null,
GroupBy: this.msg.GroupBy,
QueryType: this.msg.QueryType,
};
if (!param.QStartDate) {
param.QStartDate = "2019-01-01";
}
this.tableData = []
this.apipost("sellorder_get_sellvolumerankNew", param, (r) => {
r.data.data.forEach((x) => {
x.incomeVal = parseFloat(x.income);
x.avgPrice = parseFloat(x.avgPrice);
});
this.tableData = r.data.data;
this.loading = false;
});
},
getCompanyList() {
//获取公司列表
this.apipost(
"admin_get_BranchGetList",
this.getCompanyMsg,
(res) => {
if (res.data.resultCode == 1) {
this.CompanyList = res.data.data;
} else {
} }
}, this.tableData = tempData;
(err) => {} this.loading = false;
); });
}, },
initAuthor() { getCompanyList() {
let msg = { //获取公司列表
MenuUrl: "/salesVolumeRank",
};
this.apipost("admin_get_GetActionCodeForUrlAndUser", msg, (r) => {
this.authority = r.data.data;
});
},
getDepartment() {
//部门
this.getDepartmentMsg.RB_Branch_Id = this.msg.RB_Branch_Id;
this.msg.RB_Department_Id = 0;
this.msg.EnterID = 0;
this.DepartmentList = [];
this.EmployeeList = [];
if (this.msg.RB_Branch_Id != -1) {
this.apipost( this.apipost(
"admin_get_DepartmentGetList", "admin_get_BranchGetList",
this.getDepartmentMsg, this.getCompanyMsg,
(res) => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.DepartmentList = res.data.data; this.CompanyList = res.data.data;
} else {}
},
(err) => {}
);
},
initAuthor() {
let msg = {
MenuUrl: "/salesVolumeRank",
};
this.apipost("admin_get_GetActionCodeForUrlAndUser", msg, (r) => {
this.authority = r.data.data;
});
},
getDepartment() {
//部门
this.getDepartmentMsg.RB_Branch_Id = this.msg.RB_Branch_Id;
this.msg.RB_Department_Id = 0;
this.msg.EnterID = 0;
this.DepartmentList = [];
this.EmployeeList = [];
if (this.msg.RB_Branch_Id != -1) {
this.apipost(
"admin_get_DepartmentGetList",
this.getDepartmentMsg,
(res) => {
if (res.data.resultCode == 1) {
this.DepartmentList = res.data.data;
}
},
(err) => {}
);
}
},
getEmployee() {
this.employeeMsg.DepartmentId = this.msg.RB_Department_Id;
this.msg.EnterID = 0;
this.EmployeeList = [];
//员工
this.apipost(
"admin_get_EmployeeGetList",
this.employeeMsg,
(res) => {
if (res.data.resultCode == 1) {
this.EmployeeList = res.data.data;
} }
}, },
(err) => {} (err) => {}
); );
} },
}, settStartDates() {
getEmployee() { if (this.$route.query.tStartDates) {
this.employeeMsg.DepartmentId = this.msg.RB_Department_Id; this.msg.tStartDates = this.$route.query.tStartDates
this.msg.EnterID = 0; } else {
this.EmployeeList = []; let date = moment().format('yyyy-MM-DD')
//员工 let start = moment().subtract(1, 'months').format('yyyy-MM-DD')
this.apipost( //this.msg.tStartDates = [start, date]
"admin_get_EmployeeGetList", this.msg.qStartDates = [start, date];
this.employeeMsg, }
(res) => { },
if (res.data.resultCode == 1) { handleClick(tab, event) {
this.EmployeeList = res.data.data; this.msg.EnterID = 0;
this.msg.QueryType = 0;
if (this.activeName == "first") this.msg.GroupBy = "EnterID";
else if (this.activeName == "second")
this.msg.GroupBy = "RB_Department_Id";
else if (this.activeName == "third") {
this.msg.GroupBy = "RB_Branch_Id";
this.msg.RB_Department_Id = 0;
} else {
this.msg.RB_Department_Id = 0;
this.msg.RB_Branch_Id = -1;
this.msg.GroupBy = "EnterID";
this.msg.QueryType = 4;
}
this.initColumns();
this.initData();
},
sortChange(param) {
//自己写实现
let d = JSON.parse(JSON.stringify(this.tableData));
if (d && d.length > 0) {
if (param.income != "") {
this.tableData = this.orderBy(d, ["incomeVal"], param.income).results;
} else if (param.peopleCount != "") {
this.tableData = this.orderBy(
d,
["peopleCount"],
param.peopleCount
).results;
} else if (param.avgPrice != "") {
this.tableData = this.orderBy(
d,
["avgPrice"],
param.avgPrice
).results;
} else if (param.notInCome != "") {
this.tableData = this.orderBy(
d,
["notInCome"],
param.notInCome
).results;
} else if (param.PreferPrice != "") {
this.tableData = this.orderBy(
d,
["PreferPrice"],
param.PreferPrice
).results;
} else if (param.CalcheCount != "") {
this.tableData = this.orderBy(
d,
["CalcheCount"],
param.CalcheCount
).results;
} }
},
(err) => {}
);
},
settStartDates() {
if(this.$route.query.tStartDates){
this.msg.tStartDates = this.$route.query.tStartDates
}else{
let date = moment().format('yyyy-MM-DD')
let start = moment().subtract(1, 'months').format('yyyy-MM-DD')
this.msg.tStartDates = [start, date]
}
},
handleClick(tab, event) {
this.msg.EnterID = 0;
this.msg.QueryType = 0;
if (this.activeName == "first") this.msg.GroupBy = "EnterID";
else if (this.activeName == "second")
this.msg.GroupBy = "RB_Department_Id";
else if (this.activeName == "third") {
this.msg.GroupBy = "RB_Branch_Id";
this.msg.RB_Department_Id = 0;
} else {
this.msg.RB_Department_Id = 0;
this.msg.RB_Branch_Id = -1;
this.msg.GroupBy = "EnterID";
this.msg.QueryType = 4;
}
this.initColumns();
this.initData();
},
handleCurrentChanges(val) {
// this.pageIndex = val;
// this.tableData = this.getTableData().filter(
// (item, index) => index == val - 1
// );
},
sortChange(param) {
//自己写实现
let d = JSON.parse(JSON.stringify(this.tableData));
if (d && d.length > 0) {
if (param.income != "") {
this.tableData = this.orderBy(d, ["incomeVal"], param.income).results;
} else if (param.peopleCount != "") {
this.tableData = this.orderBy(
d,
["peopleCount"],
param.peopleCount
).results;
} else if (param.avgPrice != "") {
this.tableData = this.orderBy(
d,
["avgPrice"],
param.avgPrice
).results;
} else if (param.notInCome != "") {
this.tableData = this.orderBy(
d,
["notInCome"],
param.notInCome
).results;
} else if (param.PreferPrice != "") {
this.tableData = this.orderBy(
d,
["PreferPrice"],
param.PreferPrice
).results;
} else if (param.CalcheCount != "") {
this.tableData = this.orderBy(
d,
["CalcheCount"],
param.CalcheCount
).results;
} }
} },
filterMethod(filters) {},
}, },
filterMethod(filters) {}, };
},
};
</script> </script>
<style scoped> <style scoped>
.salesVolumeRank-box .query-box { .salesVolumeRank-box .query-box {
padding: 0 !important; padding: 0 !important;
border-bottom: 0px; border-bottom: 0px;
} }
.salesVolumeRank-box .el-tabs__nav-wrap::after {
height: 1px; .salesVolumeRank-box .el-tabs__nav-wrap::after {
} height: 1px;
.salesVolumeRank-box .el-date-editor.el-input, }
.salesVolumeRank-box .el-date-editor.el-input__inner {
width: 100% !important; .salesVolumeRank-box .el-date-editor.el-input,
} .salesVolumeRank-box .el-date-editor.el-input__inner {
.salesVolumeRank-box .el-date-editor .el-range-input, width: 100% !important;
.el-date-editor .el-range-separator { }
font-size: 12px;
} .salesVolumeRank-box .el-date-editor .el-range-input,
/deep/.salesVolumeRank-box .el-table th.el-table__cell{ .el-date-editor .el-range-separator {
background-color: #E6E6E6 !important; font-size: 12px;
} }
.clickText{
color: #33B3FF; /deep/.salesVolumeRank-box .el-table th.el-table__cell {
cursor: pointer; background-color: #E6E6E6 !important;
} }
.clickText {
color: #33B3FF;
cursor: pointer;
}
</style> </style>
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