|
|
@@ -316,8 +316,8 @@ export default {
|
|
|
})
|
|
|
this.client = client
|
|
|
},
|
|
|
- handleAssessDetail(row) {},
|
|
|
- viewIndexScoreDetail(data) {},
|
|
|
+ handleAssessDetail() {},
|
|
|
+ viewIndexScoreDetail() {},
|
|
|
// Get Data
|
|
|
getData() {
|
|
|
this.getyearOverview()
|
|
|
@@ -359,32 +359,20 @@ export default {
|
|
|
},
|
|
|
getGridScoreByList() {
|
|
|
gridScoreByList(this.conditions).then((resp) => {
|
|
|
- const { code, msg, data } = resp
|
|
|
- if (code === 0) {
|
|
|
- this.gridDataList = data
|
|
|
- } else {
|
|
|
- this.$message.error(msg)
|
|
|
- }
|
|
|
+ const { data } = resp
|
|
|
+ this.gridDataList = data
|
|
|
})
|
|
|
},
|
|
|
getGroupScoreByList() {
|
|
|
groupScoreByList(this.conditions).then((resp) => {
|
|
|
- const { code, msg, data } = resp
|
|
|
- if (code === 0) {
|
|
|
- this.groupDataList = data
|
|
|
- } else {
|
|
|
- this.$message.error(msg)
|
|
|
- }
|
|
|
+ const { data } = resp
|
|
|
+ this.groupDataList = data
|
|
|
})
|
|
|
},
|
|
|
getDoctorScoreByList() {
|
|
|
doctorScoreByList(this.conditions).then((resp) => {
|
|
|
- const { code, msg, data } = resp
|
|
|
- if (code === 0) {
|
|
|
- this.doctorDataList = data
|
|
|
- } else {
|
|
|
- this.$message.error(msg)
|
|
|
- }
|
|
|
+ const { data } = resp
|
|
|
+ this.doctorDataList = data
|
|
|
})
|
|
|
},
|
|
|
getmonthScoreKeys(date = (new Date()), unit = '') {
|
|
|
@@ -424,11 +412,11 @@ export default {
|
|
|
}
|
|
|
return months
|
|
|
},
|
|
|
- mqttResponse(message) {
|
|
|
+ mqttResponse() {
|
|
|
// console.log('message', message.toString())
|
|
|
this.getData()
|
|
|
},
|
|
|
- changeYear(params) {
|
|
|
+ changeYear() {
|
|
|
this.getyearOverview()
|
|
|
},
|
|
|
changeMonth() {
|