mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-09 02:56:43 +08:00
日历兼容ios
This commit is contained in:
@@ -234,13 +234,12 @@ export default {
|
||||
let workTime = res.content.rest[i].split(' ')
|
||||
let workTime1 = workTime[0]
|
||||
if (Date.parse(workTime1) < Date.parse(formatDate(new Date(), 'YY-MM-DD'))) {
|
||||
let arr2 = res.content.rest.slice(0, i + 1)
|
||||
obj1.date = arr2
|
||||
// console.log(arr2)
|
||||
date1.push(workTime1)
|
||||
}
|
||||
}
|
||||
obj1.date=date1
|
||||
arr1.push(obj1)
|
||||
// console.log(obj1)
|
||||
console.log(obj1)
|
||||
// this.mask=arr1
|
||||
let arr = arr1
|
||||
let obj = {}
|
||||
@@ -254,11 +253,10 @@ export default {
|
||||
// console.log(date)
|
||||
obj.date = date
|
||||
}
|
||||
console.log(obj)
|
||||
arr.push(obj)
|
||||
// arr3=arr3.concat(arr1,arr)
|
||||
|
||||
this.markDate = arr
|
||||
console.log(this.markDate)
|
||||
// console.log(this.markDate)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<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 { Popup, DatetimePicker } from 'vant'
|
||||
export default {
|
||||
@@ -185,7 +185,9 @@ export default {
|
||||
|
||||
|
||||
// this.performanceData()
|
||||
|
||||
if (this.code == '') {
|
||||
this.getPerformanceHeader1()
|
||||
}
|
||||
if(this.mask=="1"){
|
||||
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() {
|
||||
console.log(1111)
|
||||
let code = {
|
||||
|
||||
@@ -125,9 +125,8 @@ export default {
|
||||
this.unitName=JSON.parse(window.localStorage.getItem('obj')).unitName
|
||||
this.code=JSON.parse(window.localStorage.getItem('obj')).code
|
||||
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(this.agentGrade.slice(0,2))
|
||||
// console.log(typeof(this.titleTime))
|
||||
// console.log(this.agentGrade.slice(0,2))
|
||||
if(this.agentGrade.slice(0,2)=='A2'){
|
||||
this.teamName='直辖组'
|
||||
}else if(this.agentGrade.slice(0,2)=='A3'){
|
||||
|
||||
Reference in New Issue
Block a user