| | |
| | | <div class="content-left"> |
| | | <img src="./../../assets/user.png" alt=""> |
| | | <div class="user"> |
| | | <h2>{{ dateTime + ',李静,欢迎使用自治区自然灾害综合风险预警发布及响应联动系统。' }}</h2> |
| | | <p>自治区预警中心干部 工作人员</p> |
| | | <h2>{{ dateTime}},{{userInfo.realName}},欢迎使用自治区自然灾害综合风险预警发布及响应联动系统</h2> |
| | | <p>{{userInfo.company}} {{userInfo.role.roleName}}</p> |
| | | </div> |
| | | </div> |
| | | <div class="content-right"> |
| | | <div class="item"> |
| | | <p>本月通知数</p> |
| | | <span>646</span> |
| | | <span>{{basicData.notificationsThisMonthNum}}</span> |
| | | </div> |
| | | <a-divider type="vertical" style="height: 100%; margin: 0px 16px"/> |
| | | <div class="item"> |
| | | <p>总应叫应数</p> |
| | | <span>{{basicData.responsesThisMonthSum}}</span> |
| | | </div> |
| | | <a-divider type="vertical" style="height: 100%; margin: 0px 16px"/> |
| | | <div class="item"> |
| | | <p>叫应数</p> |
| | | <span>568</span> |
| | | <span>{{basicData.responsesThisMonthNum}}</span> |
| | | </div> |
| | | <a-divider type="vertical" style="height: 100%; margin: 0px 16px"/> |
| | | <div class="item"> |
| | | <p>叫应率</p> |
| | | <span>88%</span> |
| | | <span>{{basicData.responsesRate}}</span> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="home-default-content"> |
| | | <div class="left"> |
| | | <div class="left" v-if="userInfo.role.id == 1 || userInfo.role.id == 3"> |
| | | <Projecting /> |
| | | <Dynamic style="margin-top: 20px"/> |
| | | </div> |
| | | <div class="left" v-if="userInfo.role.id == 2 || userInfo.role.id == 4"> |
| | | <Review /> |
| | | </div> |
| | | <div class="right"> |
| | | <QuickNavigation /> |
| | | <IndexEcharts style="margin-top: 20px"/> |
| | | <!-- <QuickNavigation />--> |
| | | <IndexEcharts/> |
| | | <Team style="margin-top: 20px"/> |
| | | </div> |
| | | </div> |
| | |
| | | <script> |
| | | import Projecting from '@/components/Home/Projecting' |
| | | import Dynamic from '@/components/Home/Dynamic' |
| | | import Review from '@/components/Home/Review' |
| | | import QuickNavigation from '@/components/Home/QuickNavigation' |
| | | import IndexEcharts from '@/components/Home/IndexEcharts' |
| | | import Team from '@/components/Home/Team' |
| | | import Cookies from "js-cookie"; |
| | | import {getUserInfo} from "@/util/storage"; |
| | | import {getResponseRecord} from "@/api/list"; |
| | | import {getBasicData, getbasicData} from "@/api/login"; |
| | | |
| | | export default { |
| | | name: 'home-default', |
| | | components: { |
| | | Projecting, |
| | | Dynamic, |
| | | Review, |
| | | QuickNavigation, |
| | | IndexEcharts, |
| | | Team |
| | | }, |
| | | data() { |
| | | return { |
| | | userInfo: getUserInfo(), |
| | | basicData: {} |
| | | }; |
| | | }, |
| | | created() { |
| | | this.getData() |
| | | }, |
| | | computed: { |
| | | dateTime () { |
| | |
| | | return '晚上好' |
| | | } |
| | | } |
| | | }, |
| | | methods:{ |
| | | async getData(){ |
| | | const t = this |
| | | const res = await getBasicData() |
| | | if(res.data.code == 100){ |
| | | t.basicData = res.data.data |
| | | }else{ |
| | | this.$message.error(res.data.msg) |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |