卢龙新增需求
This commit is contained in:
@@ -62,6 +62,7 @@ export default {
|
||||
selected: v => [v.$route?.query.selected].flat()
|
||||
},
|
||||
onLoad(option) {
|
||||
console.log(this.$route.query.action)
|
||||
if (option.isFormMap) {
|
||||
this.isFormMap = option.isFormMap
|
||||
}
|
||||
@@ -81,6 +82,9 @@ export default {
|
||||
if (this.isMyGirds) {
|
||||
url = `/app/appgirdmemberinfo/queryMyGirdListByLevel2`
|
||||
}
|
||||
if(this.$route.query.action) {
|
||||
url = this.$route.query.action
|
||||
}
|
||||
this.$http.post(url, null, {params}).then((res) => {
|
||||
if (res?.data) {
|
||||
let parents = res.data.map(e => e.parentGirdId)
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
<div class="statistics">
|
||||
<AiTopFixed>
|
||||
<div class="select-gird">
|
||||
<AiPagePicker type="gird" v-model="selectGird" valueObj nodeKey="id" formType="2" class="right-span" @change="handleSelectGird">
|
||||
<AiPagePicker type="gird" v-model="selectGird" valueObj nodeKey="id" class="right-span" @change="handleSelectGird"
|
||||
action="/app/apppatrolreportinfo/listByInfo">
|
||||
<AiMore v-model="selectGird.girdName"/>
|
||||
</AiPagePicker>
|
||||
</div>
|
||||
@@ -70,11 +71,7 @@ export default {
|
||||
},
|
||||
|
||||
mounted() {
|
||||
// this.selectGird.girdName = this.user.girdName
|
||||
// this.selectGird.girdId = this.user.girdId
|
||||
this.$dict.load('clapEventStatusHistory').then(() => {
|
||||
this.getStatistics()
|
||||
})
|
||||
this.getGirdInfo()
|
||||
},
|
||||
methods: {
|
||||
getStatistics() {
|
||||
@@ -135,6 +132,18 @@ export default {
|
||||
})
|
||||
},
|
||||
|
||||
getGirdInfo() {
|
||||
this.$http.post(`/app/apppatrolreportinfo/getRootByGirdMember`).then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.selectGird.girdName = res.data.girdName
|
||||
this.selectGird.id = res.data.id
|
||||
this.$dict.load('clapEventStatusHistory').then(() => {
|
||||
this.getStatistics()
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
finishChartInit() {
|
||||
this.finishChart = echarts.init(document.getElementById('finish'))
|
||||
var option = {
|
||||
|
||||
Reference in New Issue
Block a user