| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 | 
							- import {
 
-   getAllbaseInfo,
 
-   safetycheck,
 
-   getAllresumption,
 
-   getSyntheticQuestion,
 
-   getSyntheticResumption,
 
-   getotherHandler
 
- } from '@/api/cockpit.js'
 
- export const baseInfoApi = {
 
-   data() {
 
-     return {
 
-       property: 'value'
 
-     }
 
-   },
 
-   methods: {
 
-     //获取基础信息
 
-     getBaseInfoHandler(data) {
 
-       getAllbaseInfo(data).then(res => {
 
-         let { code, data } = res
 
-         if (code == 200) {
 
-           this.baseData = data
 
-           this.baseInit()
 
-         }
 
-       })
 
-     },
 
-     //获取履职情况信息
 
-     getResumptionfoHandler(data) {
 
-       getAllresumption(data).then(res => {
 
-         let { code, data } = res
 
-         if (code == 200) {
 
-           this.resumptionList = data
 
-           this.resumptionInit()
 
-         }
 
-       })
 
-     },
 
-     //获取综合数据日常履职
 
-     getsynthesisResumptionfo(data) {
 
-       getSyntheticResumption(data).then(res => {
 
-         let { code, data } = res
 
-         if (code == 200) {
 
-           let { rateByType, infoByType } = data
 
-           this.infoByType = infoByType
 
-           this.keysList = Object.keys(infoByType)
 
-           let list = []
 
-           Object.keys(rateByType).forEach(item => {
 
-             list.push({ orgName: item + '', rate: rateByType[item] })
 
-           })
 
-           this.syntheticResumptionInit(list)
 
-         }
 
-       })
 
-     },
 
-     //获取综合隐患问题
 
-     getSyntheticQuestionHandler(data) {
 
-       getSyntheticQuestion(data).then(res => {
 
-         let { code, data } = res
 
-         if (code == 200) {
 
-           console.log(data, 'data')
 
-           let { rateByState, resumption, offATMCheck, safetyCheck } = data
 
-           //   this.infoByType = infoByType
 
-           this.resumptionList = resumption //履职
 
-           this.offATMCheckList = offATMCheck //巡检
 
-           this.safetyCheck = safetyCheck //安全检查
 
-           let list = []
 
-           Object.keys(rateByState).forEach(item => {
 
-             if (item == '整改率') {
 
-               list.push({ orgName: item + '', rate: rateByState[item], isNo: true })
 
-             } else {
 
-               list.push({ orgName: item + '', rate: rateByState[item] })
 
-             }
 
-           })
 
-           this.syntheticquestionInit(list)
 
-         }
 
-       })
 
-     },
 
-     //获取安全检查
 
-     getSafetycheck(data) {
 
-       safetycheck(data).then(res => {
 
-         let { code, data } = res
 
-         if (code == 200) {
 
-           let { rateByType, taskInfoByType } = data
 
-           this.taskInfoByTypeList = taskInfoByType
 
-           this.safetyKeysList = Object.keys(taskInfoByType)
 
-           let list = []
 
-           Object.keys(rateByType).forEach(item => {
 
-             list.push({ orgName: item + '', rate: rateByType[item] })
 
-           })
 
-           this.safetyInit(list)
 
-         }
 
-       })
 
-     },
 
-     //获取其他接口
 
-     getQtHandler(data) {
 
-       getotherHandler(data).then(res => {
 
-         let { code, data } = res
 
-         if (code == 200) {
 
-           console.log(data);
 
-           let { drill, edu,inout,monitor } = data
 
-           this.otherDrill = drill
 
-           this.otherMonitor = monitor
 
-           this.otherInout = inout
 
-           this.otherEdu = edu
 
-         
 
-         }
 
-       })
 
-     }
 
-   }
 
- }
 
 
  |