mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-09 04:06:44 +08:00
日历兼容ios
This commit is contained in:
@@ -234,13 +234,12 @@ export default {
|
|||||||
let workTime = res.content.rest[i].split(' ')
|
let workTime = res.content.rest[i].split(' ')
|
||||||
let workTime1 = workTime[0]
|
let workTime1 = workTime[0]
|
||||||
if (Date.parse(workTime1) < Date.parse(formatDate(new Date(), 'YY-MM-DD'))) {
|
if (Date.parse(workTime1) < Date.parse(formatDate(new Date(), 'YY-MM-DD'))) {
|
||||||
let arr2 = res.content.rest.slice(0, i + 1)
|
date1.push(workTime1)
|
||||||
obj1.date = arr2
|
|
||||||
// console.log(arr2)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
obj1.date=date1
|
||||||
arr1.push(obj1)
|
arr1.push(obj1)
|
||||||
// console.log(obj1)
|
console.log(obj1)
|
||||||
// this.mask=arr1
|
// this.mask=arr1
|
||||||
let arr = arr1
|
let arr = arr1
|
||||||
let obj = {}
|
let obj = {}
|
||||||
@@ -254,11 +253,10 @@ export default {
|
|||||||
// console.log(date)
|
// console.log(date)
|
||||||
obj.date = date
|
obj.date = date
|
||||||
}
|
}
|
||||||
|
console.log(obj)
|
||||||
arr.push(obj)
|
arr.push(obj)
|
||||||
// arr3=arr3.concat(arr1,arr)
|
|
||||||
|
|
||||||
this.markDate = arr
|
this.markDate = arr
|
||||||
console.log(this.markDate)
|
// console.log(this.markDate)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -96,7 +96,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { getBaseAgentInfo, getPerformanceDetail, getHeader } from '@/api/ebiz/performance/performance'
|
import { getBaseAgentInfo, getPerformanceHeader, getPerformanceDetail, getHeader } from '@/api/ebiz/performance/performance'
|
||||||
import utils from '@/assets/js/utils/date-utils'
|
import utils from '@/assets/js/utils/date-utils'
|
||||||
import { Popup, DatetimePicker } from 'vant'
|
import { Popup, DatetimePicker } from 'vant'
|
||||||
export default {
|
export default {
|
||||||
@@ -185,7 +185,9 @@ export default {
|
|||||||
|
|
||||||
|
|
||||||
// this.performanceData()
|
// this.performanceData()
|
||||||
|
if (this.code == '') {
|
||||||
|
this.getPerformanceHeader1()
|
||||||
|
}
|
||||||
if(this.mask=="1"){
|
if(this.mask=="1"){
|
||||||
this.getPerformanceDetailC()
|
this.getPerformanceDetailC()
|
||||||
}
|
}
|
||||||
@@ -293,7 +295,20 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
//获取代理人下级头像
|
||||||
|
getPerformanceHeader1() {
|
||||||
|
let date = {}
|
||||||
|
getPerformanceHeader(date).then((res) => {
|
||||||
|
console.log('==' + res)
|
||||||
|
if (res.result == 0) {
|
||||||
|
for (let i = 0; i < res.content.length; i++) {
|
||||||
|
res.content[i].isShowImg = true
|
||||||
|
}
|
||||||
|
this.headerList = res.content
|
||||||
|
console.log(this.headerList)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
getHeader1() {
|
getHeader1() {
|
||||||
console.log(1111)
|
console.log(1111)
|
||||||
let code = {
|
let code = {
|
||||||
|
|||||||
@@ -125,9 +125,8 @@ export default {
|
|||||||
this.unitName=JSON.parse(window.localStorage.getItem('obj')).unitName
|
this.unitName=JSON.parse(window.localStorage.getItem('obj')).unitName
|
||||||
this.code=JSON.parse(window.localStorage.getItem('obj')).code
|
this.code=JSON.parse(window.localStorage.getItem('obj')).code
|
||||||
this.parmas.unitName=JSON.parse(window.localStorage.getItem('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'){
|
||||||
this.teamName='直辖组'
|
this.teamName='直辖组'
|
||||||
}else if(this.agentGrade.slice(0,2)=='A3'){
|
}else if(this.agentGrade.slice(0,2)=='A3'){
|
||||||
|
|||||||
Reference in New Issue
Block a user