31081
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<ai-list class="list">
|
<ai-list class="list">
|
||||||
<ai-title slot="title" title="卡口登记" isShowBottomBorder :instance="instance" :hideLevel="0" :disabledLevel="disabledLevel" isShowArea v-model="search.arriveAreaId" @change="changeArea"></ai-title>
|
<ai-title slot="title" title="卡口登记" v-if="this.search.arriveAreaId" isShowBottomBorder :instance="instance" :isShowArea="true" v-model="search.arriveAreaId" @change="changeArea"></ai-title>
|
||||||
<template slot="content">
|
<template slot="content">
|
||||||
<div class="statistics-top">
|
<div class="statistics-top">
|
||||||
<div class="statistics-top__item">
|
<div class="statistics-top__item">
|
||||||
@@ -133,7 +133,8 @@
|
|||||||
tableData: [],
|
tableData: [],
|
||||||
total: 0,
|
total: 0,
|
||||||
loading: false,
|
loading: false,
|
||||||
disabledLevel: 0
|
disabledLevel: 0,
|
||||||
|
areaId: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -142,9 +143,12 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
created () {
|
created () {
|
||||||
this.disabledLevel = this.user.info.areaList.length - 1
|
|
||||||
this.search.arriveAreaId = this.user.info.areaId
|
|
||||||
this.loading = true
|
this.loading = true
|
||||||
|
this.instance.post(`/app/appdvcpconfig/getCorpArea`).then(res => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.search.arriveAreaId = res.data
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
this.getTotalInfo()
|
this.getTotalInfo()
|
||||||
this.getDictList()
|
this.getDictList()
|
||||||
|
|||||||
@@ -93,7 +93,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex'
|
|
||||||
import * as echarts from 'echarts'
|
import * as echarts from 'echarts'
|
||||||
export default {
|
export default {
|
||||||
name: 'Statistics',
|
name: 'Statistics',
|
||||||
@@ -126,10 +125,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
|
||||||
...mapState(['user'])
|
|
||||||
},
|
|
||||||
|
|
||||||
watch: {
|
watch: {
|
||||||
unitName (val) {
|
unitName (val) {
|
||||||
this.$refs.tree.filter(val)
|
this.$refs.tree.filter(val)
|
||||||
@@ -137,20 +132,20 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
mounted () {
|
mounted () {
|
||||||
this.areaId = this.user.info.areaId
|
|
||||||
this.areaName = this.user.info.areaName
|
|
||||||
this.endTime = this.$moment().format('YYYY-MM-DD')
|
this.endTime = this.$moment().format('YYYY-MM-DD')
|
||||||
this.beginTime = this.$moment(new Date().getTime() - 7 * 24 * 60 * 60 * 1000).format('YYYY-MM-DD')
|
this.beginTime = this.$moment(new Date().getTime() - 7 * 24 * 60 * 60 * 1000).format('YYYY-MM-DD')
|
||||||
this.getTree()
|
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.chart1 = echarts.init(document.querySelector('.chart1'))
|
this.chart1 = echarts.init(document.querySelector('.chart1'))
|
||||||
this.chart2 = echarts.init(document.querySelector('.chart2'))
|
this.chart2 = echarts.init(document.querySelector('.chart2'))
|
||||||
window.addEventListener('resize', this.onResize)
|
window.addEventListener('resize', this.onResize)
|
||||||
|
|
||||||
this.dict.load('sex').then(() => {
|
|
||||||
this.getInfo()
|
this.getInfo()
|
||||||
})
|
})
|
||||||
|
this.instance.post(`/app/appdvcpconfig/getCorpArea`).then(res => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.areaId = res.data
|
||||||
|
this.getTree(res.data)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -165,7 +160,6 @@
|
|||||||
|
|
||||||
onTreeChange (e) {
|
onTreeChange (e) {
|
||||||
this.areaId = e.id
|
this.areaId = e.id
|
||||||
this.areaName = e.name
|
|
||||||
|
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.getInfo()
|
this.getInfo()
|
||||||
@@ -177,8 +171,8 @@
|
|||||||
return data.name.indexOf(value) !== -1
|
return data.name.indexOf(value) !== -1
|
||||||
},
|
},
|
||||||
|
|
||||||
getTree () {
|
getTree (areaId) {
|
||||||
this.instance.post(`/admin/area/queryAllArea?id=${this.user.info.areaId}`).then(res => {
|
this.instance.post(`/admin/area/queryAllArea?id=${areaId}`).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
let parent = res.data.map(v => {
|
let parent = res.data.map(v => {
|
||||||
v.label = v.name
|
v.label = v.name
|
||||||
|
|||||||
@@ -117,7 +117,7 @@
|
|||||||
@onConfirm="onConfirm">
|
@onConfirm="onConfirm">
|
||||||
<el-form ref="form" :model="form" label-width="110px" label-position="right">
|
<el-form ref="form" :model="form" label-width="110px" label-position="right">
|
||||||
<el-form-item label="返乡登记" prop="fxdj">
|
<el-form-item label="返乡登记" prop="fxdj">
|
||||||
<ai-area-get multiple v-model="form.fxdj" :root="user.info.areaId" :instance="instance" showAll></ai-area-get>
|
<ai-area-get multiple v-model="form.fxdj" :root="user.info.areaId" :instance="instance"></ai-area-get>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="卡口登记-卡口" prop="kkdjKk">
|
<el-form-item label="卡口登记-卡口" prop="kkdjKk">
|
||||||
<ai-select
|
<ai-select
|
||||||
|
|||||||
Reference in New Issue
Block a user