BUG 30097
This commit is contained in:
@@ -15,9 +15,9 @@ instance.interceptors.request.use(config => {
|
|||||||
} else if (/AppCountryAlbum/.test(location.pathname) || config.module == 'AppCountryAlbum') {
|
} else if (/AppCountryAlbum/.test(location.pathname) || config.module == 'AppCountryAlbum') {
|
||||||
config.baseURL = '/aca'
|
config.baseURL = '/aca'
|
||||||
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
|
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
|
||||||
} else if (/\/grid\//.test(location.pathname)) {
|
} else if (/\/project\/beta\//.test(location.pathname)) {
|
||||||
config.baseURL = '/wangge'
|
config.baseURL = '/wangge'
|
||||||
} else if (/\/project\/police\//.test(location.pathname)||config.module=='hnjc') {
|
} else if (/\/project\/police\//.test(location.pathname) || config.module == 'hnjc') {
|
||||||
config.baseURL = '/hnjc'
|
config.baseURL = '/hnjc'
|
||||||
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
|
config.url = config.url.replace(/(app|auth|admin)\//, "api/")
|
||||||
} else if (sessionStorage.getItem("prj") == "saas") {
|
} else if (sessionStorage.getItem("prj") == "saas") {
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
<div class="SelectGird">
|
<div class="SelectGird">
|
||||||
<div class="header-middle">
|
<div class="header-middle">
|
||||||
<div class="hint">
|
<div class="hint">
|
||||||
<AiGap/>
|
|
||||||
<span v-for="(item, index) in slectList" :key="index">
|
<span v-for="(item, index) in slectList" :key="index">
|
||||||
<span v-if="index" style="margin:0 4px;" v-text="`/`"/>
|
<span v-if="index" style="margin:0 4px;" v-text="`/`"/>
|
||||||
<span style="color:#3F8DF5" @click="girdNameClick(item, index)" v-text="item.girdName"/>
|
<span style="color:#3F8DF5" @click="girdNameClick(item, index)" v-text="item.girdName"/>
|
||||||
@@ -43,7 +42,6 @@ export default {
|
|||||||
allData: null,
|
allData: null,
|
||||||
treeList: [],
|
treeList: [],
|
||||||
slectList: [],
|
slectList: [],
|
||||||
userList: [],
|
|
||||||
parentGirdId: '',
|
parentGirdId: '',
|
||||||
isFormMap: 0, //1为网格地图 一级不允许选中
|
isFormMap: 0, //1为网格地图 一级不允许选中
|
||||||
}
|
}
|
||||||
@@ -81,9 +79,9 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
treeInit() {
|
treeInit(isClick) {
|
||||||
let last = uni.getStorageSync("lastSelectedGrid")
|
let last = uni.getStorageSync("lastSelectedGrid")
|
||||||
if (last) {
|
if (!isClick && last) {
|
||||||
this.$http.post("/app/appgirdinfo/listFatherGirdInfo", null, {
|
this.$http.post("/app/appgirdinfo/listFatherGirdInfo", null, {
|
||||||
params: {girdId: last}
|
params: {girdId: last}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
@@ -114,18 +112,11 @@ export default {
|
|||||||
this.treeList = this.allData.filter(e => e.parentGirdId == parentGirdId)
|
this.treeList = this.allData.filter(e => e.parentGirdId == parentGirdId)
|
||||||
},
|
},
|
||||||
girdNameClick(row, index) {
|
girdNameClick(row, index) {
|
||||||
this.userList = []
|
|
||||||
if (!index) { //第一级别
|
if (!index) { //第一级别
|
||||||
this.slectList = []
|
this.slectList = []
|
||||||
this.treeInit()
|
this.treeInit(true)
|
||||||
} else {
|
} else {
|
||||||
var list = []
|
this.slectList.splice(index, 8)
|
||||||
this.slectList.map((item, i) => {
|
|
||||||
if (i <= index) {
|
|
||||||
list.push(item)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
this.slectList = list
|
|
||||||
this.getGridsByGridMemberAndParent(row)
|
this.getGridsByGridMemberAndParent(row)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user