|
|
@ -193,7 +193,7 @@ export default { |
|
|
|
}, |
|
|
|
activated() { |
|
|
|
// this.getLendingTotal(this.activatedBaseSetting) |
|
|
|
this.getTodayJH() |
|
|
|
// this.getTodayJH() |
|
|
|
this.isKeep = true |
|
|
|
// if (this.rankingYearWithPercentage.length !== 0) { |
|
|
|
// this.currentHover = -1 |
|
|
@ -271,12 +271,19 @@ export default { |
|
|
|
}, |
|
|
|
// 分管显示内容 |
|
|
|
getLibcodeDetails(data) { |
|
|
|
FetchLibcodeDetails().then(res => { |
|
|
|
const result = JSON.parse(res.data) |
|
|
|
console.log('getLibcodeDetails:', data) |
|
|
|
const params = { |
|
|
|
'libcode': this.libcode |
|
|
|
} |
|
|
|
FetchLibcodeDetails(params).then(res => { |
|
|
|
console.log('fff:', res) |
|
|
|
// const result = JSON.parse(res.data) |
|
|
|
const result = res.data |
|
|
|
console.log('result:', result) |
|
|
|
if (result.length !== 0) { |
|
|
|
const newDataArray = [] |
|
|
|
data.forEach(item => { |
|
|
|
const foundItem = result.find(library => library.tcId === item.LIBCODE) |
|
|
|
const foundItem = result.find(library => (library.branchType === 1 ? library.libcode : library.tcId) === item.LIBCODE) |
|
|
|
|
|
|
|
if (foundItem) { |
|
|
|
const yearValue = item.JCC_YEAR || 0 |
|
|
|