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