|
@@ -377,7 +377,7 @@ export default {
|
|
|
})
|
|
|
let rankMsg = ref('正在加载...')
|
|
|
let headerbasics = ref([
|
|
|
- { id: 1, title: '参与管理的学校', num: 0, subheading: '总数据量', subnum: 0, class: 'schoolnum-statistics' },
|
|
|
+ { id: 1, title: '当前关联学校', num: 0, subheading: '总数据量', subnum: 0, class: 'schoolnum-statistics' },
|
|
|
{ id: 2, title: '学校教师总数', num: 0, subheading: '本月新增', subnum: 0, class: 'teachnum-statistics' },
|
|
|
{ id: 3, title: '学校学生总数', num: 0, subheading: '本月新增', subnum: 0, class: 'studentnum-statistics' },
|
|
|
{ id: 4, title: '课例总数', num: 0, subheading: '本月新增', subnum: 0, class: 'classnum-statistics' },
|
|
@@ -1542,12 +1542,14 @@ export default {
|
|
|
}
|
|
|
console.log(roleA, '身份')
|
|
|
console.log(store.state.areaClickCounselor, '特殊跳过来的')
|
|
|
-
|
|
|
// let data = store.state.areaClickCounselor && urlState ? { tmdId: store.state.areaClickCounselor, role: store.state.areaClickRoles } : { tmdId: JSON.parse(localStorage.getItem('userData')).tmdId, role: roleA }
|
|
|
let ids = store.state.areaClickCounselor && urlState ? store.state.areaClickCounselor : JSON.parse(localStorage.getItem('userData')).tmdId
|
|
|
let data = (roleA === 'admin' || roleA === 'leader') && !store.state.areaClickCounselor ? {} :
|
|
|
- store.state.areaClickCounselor && urlState ? { tmdId: store.state.areaClickCounselor, role: store.state.areaClickRoles } :
|
|
|
- (roleA !== 'admin' || roleA !== 'leader') && !store.state.areaClickCounselor ? { tmdId: JSON.parse(localStorage.getItem('userData')).tmdId, role: roleA } : ''
|
|
|
+ store.state.areaClickCounselor && urlState && store.state.areaClickRoles == 'sales' ? { tmdId: store.state.areaClickCounselor, role: store.state.areaClickRoles } :
|
|
|
+ store.state.areaClickCounselor && urlState && store.state.areaClickRoles == 'assist' ? { tmdId: store.state.areaClickCounselor } :
|
|
|
+ store.state.areaClickCounselor && urlState && (store.state.areaClickRoles === 'admin' || store.state.areaClickRoles === 'leader') ? {} :
|
|
|
+ roleA === 'sales' && !store.state.areaClickCounselor ? { tmdId: JSON.parse(localStorage.getItem('userData')).tmdId, role: roleA } :
|
|
|
+ roleA === 'assist' && !store.state.areaClickCounselor ? { tmdId: JSON.parse(localStorage.getItem('userData')).tmdId } : ''
|
|
|
allAspects(ids)
|
|
|
serviceAndversions(ids)
|
|
|
proxy.$api.getBasicsData(data).then((res) => {
|
|
@@ -1587,7 +1589,7 @@ export default {
|
|
|
allLoding.value.headerData = false
|
|
|
allLoding.value.rank = false
|
|
|
searchText.loading = false
|
|
|
- store.commit('clickCounselor', '')
|
|
|
+ // store.commit('clickCounselor', '')
|
|
|
}
|
|
|
}).catch((error) => {
|
|
|
ElMessage.error('数据获取API异常')
|
|
@@ -1609,12 +1611,18 @@ export default {
|
|
|
roleA = user.roles[0]
|
|
|
}
|
|
|
let urlState = window.location.href.indexOf('pattern=area') != -1 ? true : false
|
|
|
- console.log(store.state.areaClickCounselor, '身份')
|
|
|
+ console.log(store.state.areaClickCounselor, '身份123456')
|
|
|
let beData = behinddata
|
|
|
let nowstate = state
|
|
|
+ console.log(state, '是否有state')
|
|
|
let data = state === 'details' ? { schoolId: val } :
|
|
|
- !store.state.areaClickCounselor && urlState === false ? { tmdId: user.sub, role: roleA } :
|
|
|
- (roleA === 'admin' || roleA === 'leader') && store.state.areaClickCounselor && (state !== 'details' && state) ? {} : { tmdId: user.sub }
|
|
|
+ store.state.areaClickCounselor && urlState && store.state.areaClickRoles === 'sales' ? { tmdId: store.state.areaClickCounselor, role: store.state.areaClickRoles } :
|
|
|
+ store.state.areaClickCounselor && urlState && store.state.areaClickRoles === 'assist' ? { tmdId: store.state.areaClickCounselor } :
|
|
|
+ store.state.areaClickCounselor && urlState && (store.state.areaClickRoles === 'admin' || store.state.areaClickRoles === 'leader') ? {} :
|
|
|
+ (roleA === 'admin' || roleA === 'leader') && !store.state.areaClickCounselor && state === undefined ? {} :
|
|
|
+ roleA === 'assist' && !store.state.areaClickCounselor && state === undefined ? { tmdId: user.sub } :
|
|
|
+ roleA === 'sales' && !store.state.areaClickCounselor && state === undefined ? { tmdId: user.sub, role: roleA } :
|
|
|
+ { tmdId: user.sub, role: roleA }
|
|
|
console.log(data, '提交的数据')
|
|
|
proxy.$api.getAllaspects(data).then((res) => {
|
|
|
console.log(res, '课例等的返回')
|
|
@@ -1678,9 +1686,14 @@ export default {
|
|
|
} else {
|
|
|
roleA = user.roles[0]
|
|
|
}
|
|
|
+ let urlState = window.location.href.indexOf('pattern=area') != -1 ? true : false
|
|
|
+ console.log(store.state.areaClickCounselor, urlState, store.state.areaClickRoles, '最后一个API')
|
|
|
let data = (roleA === 'admin' || roleA === 'leader') && !store.state.areaClickCounselor ? {} :
|
|
|
- store.state.areaClickCounselor && urlState ? { tmdId: store.state.areaClickCounselor, role: store.state.areaClickRoles } :
|
|
|
- (roleA !== 'admin' || roleA !== 'leader') && !store.state.areaClickCounselor ? { tmdId: JSON.parse(localStorage.getItem('userData')).tmdId, role: roleA } : ''
|
|
|
+ store.state.areaClickCounselor && urlState && store.state.areaClickRoles == 'sales' ? { tmdId: store.state.areaClickCounselor, role: store.state.areaClickRoles } :
|
|
|
+ store.state.areaClickCounselor && urlState && store.state.areaClickRoles == 'assist' ? { tmdId: store.state.areaClickCounselor } :
|
|
|
+ store.state.areaClickCounselor && urlState && (store.state.areaClickRoles == 'admin' || store.state.areaClickRoles == 'leader') ? {} :
|
|
|
+ roleA === 'sales' && !store.state.areaClickCounselor ? { tmdId: JSON.parse(localStorage.getItem('userData')).tmdId, role: roleA } :
|
|
|
+ roleA === 'assist' && !store.state.areaClickCounselor ? { tmdId: JSON.parse(localStorage.getItem('userData')).tmdId } : ''
|
|
|
proxy.$api.getaspects(data).then((res) => {
|
|
|
console.log(res, '历史全部返回')
|
|
|
if (res.state == 200) {
|
|
@@ -1761,9 +1774,15 @@ export default {
|
|
|
} else {
|
|
|
roleA = user.roles[0]
|
|
|
}
|
|
|
+ let urlState = window.location.href.indexOf('pattern=area') != -1 ? true : false
|
|
|
+ console.log(store.state.areaClickCounselor, '--', urlState, '--', store.state.areaClickRoles, '查看传值')
|
|
|
+ console.log(store.state.areaClickRoles, '身份')
|
|
|
let data = (roleA === 'admin' || roleA === 'leader') && !store.state.areaClickCounselor ? {} :
|
|
|
- store.state.areaClickCounselor && urlState ? { tmdId: store.state.areaClickCounselor, role: store.state.areaClickRoles } :
|
|
|
- (roleA !== 'admin' || roleA !== 'leader') && !store.state.areaClickCounselor ? { tmdId: JSON.parse(localStorage.getItem('userData')).tmdId, role: roleA } : ''
|
|
|
+ store.state.areaClickCounselor && urlState && store.state.areaClickRoles == 'sales' ? { tmdId: store.state.areaClickCounselor, role: store.state.areaClickRoles } :
|
|
|
+ store.state.areaClickCounselor && urlState && store.state.areaClickRoles == 'assist' ? { tmdId: store.state.areaClickCounselor } :
|
|
|
+ store.state.areaClickCounselor && urlState && (store.state.areaClickRoles == 'admin' || store.state.areaClickRoles == 'leader') ? {} :
|
|
|
+ roleA === 'sales' && !store.state.areaClickCounselor ? { tmdId: JSON.parse(localStorage.getItem('userData')).tmdId, role: roleA } :
|
|
|
+ roleA === 'assist' && !store.state.areaClickCounselor ? { tmdId: JSON.parse(localStorage.getItem('userData')).tmdId } : ''
|
|
|
proxy.$api.getServiceandVersions(data).then((res) => {
|
|
|
console.log(res, '服务和版本占比')
|
|
|
let xData = []; let datas = []
|
|
@@ -2005,7 +2024,7 @@ export default {
|
|
|
timer.value = setTimeout(fn, wait)
|
|
|
}
|
|
|
function personnelSearch () {
|
|
|
- let arr = schoolDefault.value
|
|
|
+ let arr = searchText.original
|
|
|
let newArr = arr.filter((item) => {
|
|
|
return item.name.includes(searchText.values) || item.id.includes(searchText.values)
|
|
|
})
|
|
@@ -2420,7 +2439,7 @@ export default {
|
|
|
background-color: rgba(116, 185, 255, 1);
|
|
|
border-radius: 5px;
|
|
|
position: absolute;
|
|
|
- top: -1%;
|
|
|
+ top: -15px;
|
|
|
right: 0%;
|
|
|
cursor: pointer;
|
|
|
}
|