Commit f91a9e52 authored by 黄奎's avatar 黄奎

页面跳转修改

parent 826689d7
......@@ -181,15 +181,21 @@
this.getDepartmentMsg.RB_Branch_Id = Number(this.$route.query.BranchId);
this.employeeMsg.RB_Branch_Id = Number(this.$route.query.BranchId);
this.getDepartment();
this.activeName = "third";
}
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();
this.activeName = 'second';
}
if (this.$route.query.EmployeeId) {
this.msg.EnterID = Number(this.$route.query.EmployeeId);
console.log("this.$route.query.EmployeeId", this.$route.query.EmployeeId);
this.activeName = 'first';
}
console.log("create_msg", this.msg);
this.getSearchData();
},
mounted() {
this.GetAuth()
......@@ -227,7 +233,6 @@
},
initData() {
this.loading = true;
console.log("this.msg", this.msg);
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,
......@@ -246,7 +251,8 @@
if (!param.QStartDate) {
param.QStartDate = "2019-01-01";
}
this.tableData = []
this.tableData = [];
console.log("initData", param);
this.apipost("sellorder_get_sellvolumerankNew", param, (r) => {
var tempData = r.data.data;
if (tempData && tempData.length > 0) {
......@@ -326,8 +332,7 @@
this.msg.qStartDates = [start, date];
}
},
handleClick(tab, event) {
this.msg.EnterID = 0;
getSearchData() {
this.msg.QueryType = 0;
if (this.activeName == "first") this.msg.GroupBy = "EnterID";
else if (this.activeName == "second")
......@@ -341,6 +346,10 @@
this.msg.GroupBy = "EnterID";
this.msg.QueryType = 4;
}
},
handleClick(tab, event) {
this.msg.EnterID = 0;
this.getSearchData();
this.initColumns();
this.initData();
},
......
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