url
This commit is contained in:
@@ -29,7 +29,8 @@
|
|||||||
"open": true,
|
"open": true,
|
||||||
"proxy": {
|
"proxy": {
|
||||||
"/lan": {
|
"/lan": {
|
||||||
"target": "http://192.168.1.87:9000",
|
// "target": "http://192.168.1.87:9000",
|
||||||
|
"target": "http://test87tpweb.cunwuyun.cn",
|
||||||
"changeOrigin": true,
|
"changeOrigin": true,
|
||||||
"pathRewrite": {
|
"pathRewrite": {
|
||||||
"^/lan": "/"
|
"^/lan": "/"
|
||||||
|
|||||||
@@ -7,12 +7,12 @@
|
|||||||
<div class="area-select">
|
<div class="area-select">
|
||||||
<div class="select-content">
|
<div class="select-content">
|
||||||
<div class="area-content">
|
<div class="area-content">
|
||||||
<AiAreaPicker :areaId="user.areaId" v-model="areaId" @select="areaSelect" :name.sync="areaName">
|
<!-- <AiAreaPicker :areaId="user.areaId" v-model="areaId" @select="areaSelect" :name.sync="areaName">
|
||||||
<img src="./img/local-icon.png" alt="">
|
<img src="./img/local-icon.png" alt="">
|
||||||
<span class="label" v-if="areaName">{{ areaName }}</span>
|
<span class="label" v-if="areaName">{{ areaName }}</span>
|
||||||
<span v-else>请选择</span>
|
<span v-else>请选择</span>
|
||||||
<u-icon name="arrow-down" color="#666" size="24" />
|
<u-icon name="arrow-down" color="#666" size="24" />
|
||||||
</AiAreaPicker>
|
</AiAreaPicker> -->
|
||||||
</div>
|
</div>
|
||||||
<div class="search-input" v-if="tabIndex">
|
<div class="search-input" v-if="tabIndex">
|
||||||
<img src="./img/search-icon.png" alt="">
|
<img src="./img/search-icon.png" alt="">
|
||||||
@@ -96,14 +96,15 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: { ...mapState(['user']) },
|
computed: { ...mapState(['user']) },
|
||||||
created() {
|
created() {
|
||||||
this.areaId = this.user.areaId
|
this.$dict.load('appSpecialTypeFive').then(() => {
|
||||||
this.areaName = this.user.areaName
|
this.areaId = this.user.areaId
|
||||||
this.getStatistic()
|
this.areaName = this.user.areaName
|
||||||
this.getStatisticMon()
|
this.getStatistic()
|
||||||
this.getUserList()
|
this.getUserList()
|
||||||
|
})
|
||||||
|
|
||||||
uni.$on('specialPeopleList', () => {
|
uni.$on('specialPeopleList', () => {
|
||||||
this.getStatistic()
|
this.getStatistic()
|
||||||
this.getStatisticMon()
|
|
||||||
this.getUserList()
|
this.getUserList()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -115,7 +116,6 @@ export default {
|
|||||||
areaSelect(e) {
|
areaSelect(e) {
|
||||||
this.areaId = e
|
this.areaId = e
|
||||||
this.getStatistic()
|
this.getStatistic()
|
||||||
this.getStatisticMon()
|
|
||||||
this.getUserList()
|
this.getUserList()
|
||||||
},
|
},
|
||||||
tabClick(index) {
|
tabClick(index) {
|
||||||
@@ -123,45 +123,45 @@ export default {
|
|||||||
},
|
},
|
||||||
getStatistic() {
|
getStatistic() {
|
||||||
this.statisticsList = []
|
this.statisticsList = []
|
||||||
this.$http.post(`/app/appapplicationinfo/specialStatistic?areaId=${this.areaId}&type=0&range=0`).then((res) => {
|
this.$http.post(`/app/appspecialadjustment/statistic?type=0&range=0`).then((res) => {
|
||||||
if (res.code == 0) {
|
// if (res.code == 0) {
|
||||||
for(let i in res.data){
|
// for(let i in res.data){
|
||||||
var obj = {
|
// var obj = {
|
||||||
label: i,
|
// label: i,
|
||||||
value: res.data[i]
|
// value: res.data[i]
|
||||||
}
|
// }
|
||||||
this.statisticsList.push(obj)
|
// this.statisticsList.push(obj)
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getStatisticMon() {
|
getStatisticMon() {
|
||||||
this.statisticsListMon = []
|
// this.statisticsListMon = []
|
||||||
this.$http.post(`/app/appapplicationinfo/specialStatistic?areaId=${this.areaId}&type=0&range=1`).then((res) => {
|
// this.$http.post(`/app/appapplicationinfo/specialStatistic?areaId=${this.areaId}&type=0&range=1`).then((res) => {
|
||||||
if (res.code == 0) {
|
// if (res.code == 0) {
|
||||||
for(let i in res.data){
|
// for(let i in res.data){
|
||||||
var obj = {
|
// var obj = {
|
||||||
label: i,
|
// label: i,
|
||||||
value: res.data[i]
|
// value: res.data[i]
|
||||||
}
|
// }
|
||||||
this.statisticsListMon.push(obj)
|
// this.statisticsListMon.push(obj)
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
},
|
},
|
||||||
getUserList() {
|
getUserList() {
|
||||||
this.userList = []
|
this.userList = []
|
||||||
this.$http.post(`/app/appapplicationinfo/queryPeople?areaId=${this.areaId}&type=0&name=${this.name}`).then((res) => {
|
this.$http.post(`/app/appspecialadjustment/allList?type=0&name=${this.name}`).then((res) => {
|
||||||
if (res.code == 0) {
|
// if (res.code == 0) {
|
||||||
for(let i in res.data){
|
// for(let i in res.data){
|
||||||
var obj = {
|
// var obj = {
|
||||||
label: i,
|
// label: i,
|
||||||
value: res.data[i],
|
// value: res.data[i],
|
||||||
check: false
|
// check: false
|
||||||
}
|
// }
|
||||||
this.userList.push(obj)
|
// this.userList.push(obj)
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
toAdd() {
|
toAdd() {
|
||||||
|
|||||||
Reference in New Issue
Block a user