清除无效引用
This commit is contained in:
@@ -15,7 +15,7 @@ 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 (/\/project\/beta\//.test(location.pathname) || config.module == 'wangge') {
|
} else if (/\/project\/beta\//.test(location.pathname) || store.state.config.corpid == 'ww2a667717a70164f1' || config.module == 'wangge') {
|
||||||
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'
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ export default {
|
|||||||
girdMemberManageList: [],
|
girdMemberManageList: [],
|
||||||
girdMemberList: []
|
girdMemberList: []
|
||||||
},
|
},
|
||||||
detailInfo: {},
|
|
||||||
fromType: 'add', //add新增 edit编辑,
|
fromType: 'add', //add新增 edit编辑,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -43,6 +42,14 @@ export default {
|
|||||||
this.fromType = option.fromType
|
this.fromType = option.fromType
|
||||||
this.getDetail()
|
this.getDetail()
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
gmmList() {//网格长集合
|
||||||
|
|
||||||
|
},
|
||||||
|
gmList() {//网格员集合
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
if (this.fromType == 'add') {
|
if (this.fromType == 'add') {
|
||||||
document.title = '添加网格'
|
document.title = '添加网格'
|
||||||
@@ -54,13 +61,12 @@ export default {
|
|||||||
getDetail() {
|
getDetail() {
|
||||||
this.$http.post(`/app/appgirdinfo/queryDetailById?id=${this.id}`).then((res) => {
|
this.$http.post(`/app/appgirdinfo/queryDetailById?id=${this.id}`).then((res) => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
this.detailInfo = res.data
|
|
||||||
if (this.fromType == 'edit') {
|
if (this.fromType == 'edit') {
|
||||||
this.form = res.data
|
this.form = res.data
|
||||||
}
|
}
|
||||||
if (this.fromType == 'add') {
|
if (this.fromType == 'add') {
|
||||||
this.form.parentGirdId = this.detailInfo.id
|
this.form.parentGirdId = res.data.id
|
||||||
this.form.parentGirdName = this.detailInfo.girdName
|
this.form.parentGirdName = res.data.girdName
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user