mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-16 11:06:43 +08:00
修改传参方式
This commit is contained in:
@@ -13,16 +13,7 @@ export default [
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/performance/Performance/:parmas',
|
path: '/performance/AttendanceInfo',
|
||||||
name: 'Performance',
|
|
||||||
component: performance,
|
|
||||||
meta: {
|
|
||||||
title: '业绩查询',
|
|
||||||
index: 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/performance/AttendanceInfo/:parmas',
|
|
||||||
name: 'AttendanceInfo',
|
name: 'AttendanceInfo',
|
||||||
component: attendanceInfo,
|
component: attendanceInfo,
|
||||||
meta: {
|
meta: {
|
||||||
@@ -31,7 +22,7 @@ export default [
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/performance/PerformanceList/:obj',
|
path: '/performance/PerformanceList',
|
||||||
name: 'PerformanceList',
|
name: 'PerformanceList',
|
||||||
component: PerformanceList,
|
component: PerformanceList,
|
||||||
meta: {
|
meta: {
|
||||||
|
|||||||
@@ -238,7 +238,7 @@ export default {
|
|||||||
z-index: 100;
|
z-index: 100;
|
||||||
}
|
}
|
||||||
.calendar {
|
.calendar {
|
||||||
z-index: -1;
|
/* z-index: -1; */
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.calendar_title[data-v-f3b38220] {
|
.calendar_title[data-v-f3b38220] {
|
||||||
|
|||||||
@@ -68,10 +68,10 @@
|
|||||||
</van-sticky>
|
</van-sticky>
|
||||||
<div>
|
<div>
|
||||||
<div class="directly fs14">
|
<div class="directly fs14">
|
||||||
<div class="directly1 bg-white" v-for="item in data" :key="item">{{item.name}}</div>
|
<div class="directly1 bg-white" v-for="(item,index) in data1" :key="index">{{item.name}}</div>
|
||||||
</div>
|
</div>
|
||||||
<table class="main-table bg-white">
|
<table class="main-table bg-white">
|
||||||
<tr v-for="item1 in list" :key="item1">
|
<tr v-for="(item1,index1) in list" :key="index1">
|
||||||
<td>
|
<td>
|
||||||
<div class="name">{{item1.cbbb}}</div>
|
<div class="name">{{item1.cbbb}}</div>
|
||||||
</td>
|
</td>
|
||||||
@@ -85,7 +85,7 @@
|
|||||||
<div class="date">{{item1.ysjs}}</div>
|
<div class="date">{{item1.ysjs}}</div>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<div class="date red" @click="details(item1)">查看</div>
|
<div class="date red" @click="details(index1)">查看</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@@ -111,10 +111,9 @@ export default {
|
|||||||
dateShow: false,
|
dateShow: false,
|
||||||
minDate: new Date(2019, 1),
|
minDate: new Date(2019, 1),
|
||||||
maxDate: new Date(),
|
maxDate: new Date(),
|
||||||
data: [1, 2, 3, 4, 5, 6, 7, 8, 9, 9, 0],
|
data1: [],
|
||||||
titleTime: '',
|
titleTime: '',
|
||||||
code: '',
|
code: '',
|
||||||
arr: [],
|
|
||||||
dateTime: '',
|
dateTime: '',
|
||||||
list: [],
|
list: [],
|
||||||
cbbb: '',
|
cbbb: '',
|
||||||
@@ -122,13 +121,15 @@ export default {
|
|||||||
ysbb: '',
|
ysbb: '',
|
||||||
ysjs: '',
|
ysjs: '',
|
||||||
parmas: {},
|
parmas: {},
|
||||||
|
unitName:''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
console.log('=======' + this.$route.params.parmas)
|
console.log('=======' + this.$route.params.parmas)
|
||||||
this.unitName = JSON.parse(this.$route.params.parmas).unitName
|
console.log(JSON.parse(window.localStorage.getItem('parmas')).time)
|
||||||
this.titleTime = JSON.parse(this.$route.params.parmas).date.slice(0, 7)
|
this.unitName = JSON.parse(window.localStorage.getItem('parmas')).unitName
|
||||||
;(this.dateTime = JSON.parse(this.$route.params.parmas).date), (this.code = JSON.parse(this.$route.params.parmas).code)
|
this.titleTime = JSON.parse(window.localStorage.getItem('parmas')).date.slice(0, 7)
|
||||||
|
;(this.dateTime = JSON.parse(window.localStorage.getItem('parmas')).date), (this.code = JSON.parse(window.localStorage.getItem('parmas')).code)
|
||||||
this.getBranchInfos1()
|
this.getBranchInfos1()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -158,17 +159,23 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
//跳转查看
|
//跳转查看
|
||||||
details(parmas) {
|
details(e) {
|
||||||
console.log(parmas)
|
console.log(e)
|
||||||
;(this.parmas.code = parmas.code), (this.parmas.date = this.dateTime)
|
let i=Number(e)
|
||||||
;(this.parmas.mask = '1'), (this.parmas.Name = this.unitName)
|
let parmas={}
|
||||||
|
parmas.code = this.list[i].code,
|
||||||
|
parmas.date = this.dateTime
|
||||||
|
parmas.mask = '1'
|
||||||
|
parmas.Name = this.data1[i].name
|
||||||
|
parmas.buName=this.unitName
|
||||||
|
localStorage.parmas = JSON.stringify(parmas)
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
url: location.origin + `/#/performance/Performance/${JSON.stringify(this.parmas)}`,
|
url: location.origin + `/#/performance/Performance`,
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
path: `/performance/Performance/${JSON.stringify(this.parmas)}`,
|
path: `/performance/Performance`,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -179,14 +186,14 @@ export default {
|
|||||||
getBranchInfos(date).then((res) => {
|
getBranchInfos(date).then((res) => {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
if (res.result == 0) {
|
if (res.result == 0) {
|
||||||
this.data = res.content
|
this.data1 = res.content
|
||||||
let arr = []
|
let arr = []
|
||||||
for (let i = 0; i < res.content.length; i++) {
|
for (let i = 0; i < res.content.length; i++) {
|
||||||
let code = res.content[i].code
|
let code = res.content[i].code
|
||||||
arr.push(code)
|
arr.push(code)
|
||||||
// console.log(arr)
|
// console.log(arr)
|
||||||
}
|
}
|
||||||
this.arr = arr
|
this.arr1 = arr
|
||||||
// console.log(this.arr)
|
// console.log(this.arr)
|
||||||
this.getPerformanceDetailC()
|
this.getPerformanceDetailC()
|
||||||
}
|
}
|
||||||
@@ -197,7 +204,7 @@ export default {
|
|||||||
// console.log(this.agentCode)
|
// console.log(this.agentCode)
|
||||||
let code = {
|
let code = {
|
||||||
date: this.dateTime,
|
date: this.dateTime,
|
||||||
groupList: this.arr,
|
groupList: this.arr1,
|
||||||
}
|
}
|
||||||
// console.log(code)
|
// console.log(code)
|
||||||
getPerformanceDetail(code).then((res) => {
|
getPerformanceDetail(code).then((res) => {
|
||||||
@@ -247,7 +254,7 @@ export default {
|
|||||||
.footer {
|
.footer {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
margin-top: -20px;
|
margin-top: 70px;
|
||||||
}
|
}
|
||||||
.directly {
|
.directly {
|
||||||
width: 99px;
|
width: 99px;
|
||||||
|
|||||||
@@ -29,8 +29,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="c-gray-base fs13 ml25 mt10" v-if="mask=='1'">
|
<div class="c-gray-base fs13 ml25 mt10" v-if="mask=='1'">
|
||||||
所在机构:
|
所在机构:
|
||||||
<span v-if="Name!==''">{{Name}}></span>
|
<span v-if="buName!==undefined">{{buName}}></span>
|
||||||
<span class="red">{{unitName}}</span>
|
<span class="red">{{Name}}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex align-items-c h86 content1 bg-white mt10" v-if="mask=='1'">
|
<div class="flex align-items-c h86 content1 bg-white mt10" v-if="mask=='1'">
|
||||||
<div
|
<div
|
||||||
@@ -135,17 +135,20 @@ export default {
|
|||||||
Name: '',
|
Name: '',
|
||||||
code: '',
|
code: '',
|
||||||
isShowImg: true,
|
isShowImg: true,
|
||||||
|
buName:''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
// console.log('=======' + this.$route.params.parmas)
|
// console.log('=======' + this.$route.params.parmas)
|
||||||
if (this.$route.params.parmas !== undefined) {
|
console.log(JSON.parse(window.localStorage.getItem('parmas')))
|
||||||
this.mask = JSON.parse(this.$route.params.parmas).mask
|
if (window.localStorage.getItem('parmas') !== null) {
|
||||||
;(this.titleTime = JSON.parse(this.$route.params.parmas).date.slice(0, 7)),
|
this.mask = JSON.parse(window.localStorage.getItem('parmas')).mask
|
||||||
(this.dateTime = JSON.parse(this.$route.params.parmas).date),
|
;(this.titleTime = JSON.parse(window.localStorage.getItem('parmas')).date.slice(0, 7)),
|
||||||
(this.unitName = JSON.parse(this.$route.params.parmas).unitName),
|
(this.dateTime = JSON.parse(window.localStorage.getItem('parmas')).date),
|
||||||
(this.Name = JSON.parse(this.$route.params.parmas).Name),
|
(this.unitName = JSON.parse(window.localStorage.getItem('parmas')).unitName),
|
||||||
(this.code = JSON.parse(this.$route.params.parmas).code)
|
(this.Name = JSON.parse(window.localStorage.getItem('parmas')).Name),
|
||||||
|
(this.code = JSON.parse(window.localStorage.getItem('parmas')).code),
|
||||||
|
this.buName=JSON.parse(window.localStorage.getItem('parmas')).buName
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.mask !== '1') {
|
if (this.mask !== '1') {
|
||||||
@@ -227,13 +230,14 @@ export default {
|
|||||||
},
|
},
|
||||||
checkTeam(obj) {
|
checkTeam(obj) {
|
||||||
console.log(obj)
|
console.log(obj)
|
||||||
|
localStorage.obj = JSON.stringify(this.obj)
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
url: location.origin + `/#/performance/PerformanceList/${JSON.stringify(obj)}`,
|
url: location.origin + `/#/performance/PerformanceList`,
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
path: `/performance/PerformanceList/${JSON.stringify(obj)}`,
|
path: `/performance/PerformanceList`,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -106,21 +106,27 @@ export default {
|
|||||||
teamName:'',
|
teamName:'',
|
||||||
parmas:{},
|
parmas:{},
|
||||||
unitName:'',
|
unitName:'',
|
||||||
code:''
|
code:'',
|
||||||
|
agentGrade:'',
|
||||||
|
agentCode:'',
|
||||||
|
dateTime:'',
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
console.log(JSON.parse(this.$route.params.obj))
|
// console.log(JSON.parse(this.$route.params.obj))
|
||||||
|
// console.log(JSON.parse(window.localStorage.getItem('obj')).time)
|
||||||
//代理人编码
|
//代理人编码
|
||||||
this.agentGrade = JSON.parse(this.$route.params.obj).agentGrade,
|
this.agentGrade = JSON.parse(window.localStorage.getItem('obj')).agentGrade,
|
||||||
this.agentCode=JSON.parse(this.$route.params.obj).agentCode,
|
this.agentCode=JSON.parse(window.localStorage.getItem('obj')).agentCode,
|
||||||
this.titleTime=JSON.parse(this.$route.params.obj).date.slice(0,7),
|
this.titleTime=JSON.parse(window.localStorage.getItem('obj')).date.slice(0,7),
|
||||||
this.dateTime=JSON.parse(this.$route.params.obj).date
|
this.dateTime=JSON.parse(window.localStorage.getItem('obj')).date
|
||||||
this.parmas.date=JSON.parse(this.$route.params.obj).date
|
this.parmas.date=JSON.parse(window.localStorage.getItem('obj')).date
|
||||||
this.unitName=JSON.parse(this.$route.params.obj).unitName
|
this.unitName=JSON.parse(window.localStorage.getItem('obj')).unitName
|
||||||
this.code=JSON.parse(this.$route.params.obj).code
|
this.code=JSON.parse(window.localStorage.getItem('obj')).code
|
||||||
this.parmas.mask=this.mask
|
this.parmas.mask=this.mask
|
||||||
this.parmas.unitName=JSON.parse(this.$route.params.obj).unitName
|
this.parmas.unitName=JSON.parse(window.localStorage.getItem('obj')).unitName
|
||||||
|
this.parmas.Name=JSON.parse(window.localStorage.getItem('obj')).unitName
|
||||||
console.log(typeof(this.titleTime))
|
console.log(typeof(this.titleTime))
|
||||||
console.log(this.agentGrade.slice(0,2))
|
console.log(this.agentGrade.slice(0,2))
|
||||||
if(this.agentGrade.slice(0,2)=='A2'){
|
if(this.agentGrade.slice(0,2)=='A2'){
|
||||||
@@ -173,24 +179,25 @@ export default {
|
|||||||
console.log(this.dateTime)
|
console.log(this.dateTime)
|
||||||
},
|
},
|
||||||
checkDetails(parmas) {
|
checkDetails(parmas) {
|
||||||
|
localStorage.parmas = JSON.stringify(parmas)
|
||||||
if (this.agentGrade.slice(0, 2) == 'A2') {
|
if (this.agentGrade.slice(0, 2) == 'A2') {
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
url: location.origin + `/#/performance/Performance/${JSON.stringify(parmas)}`,
|
url: location.origin + `/#/performance/Performance`,
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
path: `/performance/Performance/${JSON.stringify(parmas)}`,
|
path: `/performance/Performance`,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
} else if (this.agentGrade.slice(0, 2) == 'A3') {
|
} else if (this.agentGrade.slice(0, 2) == 'A3') {
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
url: location.origin + `/#/performance/AttendanceInfo/${JSON.stringify(parmas)}`,
|
url: location.origin + `/#/performance/AttendanceInfo`,
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
path: `/performance/AttendanceInfo/${JSON.stringify(parmas)}`,
|
path: `/performance/AttendanceInfo`,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user