Commit 7b7ce6d6 authored by 陈明豪's avatar 陈明豪

bug修改67916

parent 64c9121f
......@@ -341,7 +341,6 @@ import ColumnarChart from '@/views/data-statistics/echars-components/columnarCha
import RadarChartForHospital from '@/views/data-statistics/echars-components/radar-chart-for-hospital.vue'
import { getHospitalStatistics, listHospital } from '@/api/business/statistics'
import { parseTime } from '@/utils/ruoyi'
import { testMsg } from '@/api/business/test'
import EmptyTool from '@/views/data-statistics/other-components/emptyTool.vue'
import { moneyFormat } from '@/utils'
......@@ -408,12 +407,13 @@ export default {
},
methods: {
moneyFormat,
justTest() {
testMsg().then(res => {
if (res) {
console.log('测试结果', res)
}
})
getMonthEmptyArray() {
const month = new Date().getMonth()
const monthArray = []
for (let i = 1; i <= month; i++) {
monthArray.push(0)
}
return monthArray
},
parseTime,
getStatistics() {
......@@ -422,8 +422,8 @@ export default {
console.log('dataRes', res)
this.hospitalInfoStatistics = res.data.hospitalInfoStatistics
this.hospitalPercentInfo = res.data.hospitalPercentInfo
this.yData1.data = res.data.prestoredUndulateDTO.newPrestored
this.yData2.data = res.data.prestoredUndulateDTO.balanceArray
this.yData1.data = res.data.prestoredUndulateDTO.newPrestored.length > 0 ? res.data.prestoredUndulateDTO.newPrestored : this.getMonthEmptyArray()
this.yData2.data = res.data.prestoredUndulateDTO.balanceArray.length > 0 ? res.data.prestoredUndulateDTO.balanceArray : this.getMonthEmptyArray()
this.mapData = res.data.chinaMapDistributionList
this.hospitalPrestoredRank = res.data.prestoredRankList
this.hospitalTimeRank = res.data.enterTimeRankList
......@@ -507,9 +507,6 @@ export default {
},
/** 医院详情按钮操作 */
handleDetail(row) {
// console.log('详情', row)
// const authorizationExpirationDate = this.addDays(row.createTime, row.dueDate)
// row.authorizationExpirationDate = authorizationExpirationDate
const local = process.env.VUE_APP_WEB
window.location.href = `${local}/hospital-management/hospital-details?detail=${row}&from='plat'`
localStorage.setItem('hospitalDetail', JSON.stringify(row))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment