From 9f3aa131a057b5c9c9f5431afcea8766044e16dc Mon Sep 17 00:00:00 2001 From: aixianling Date: Wed, 8 Jun 2022 18:54:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E9=99=A4=E6=97=A0=E6=95=88=E5=BC=95?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/axios.js | 2 +- src/project/beta/AppGridManagement/AddGird.vue | 14 ++++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/common/axios.js b/src/common/axios.js index c569ec79..b72ca253 100644 --- a/src/common/axios.js +++ b/src/common/axios.js @@ -15,7 +15,7 @@ instance.interceptors.request.use(config => { } else if (/AppCountryAlbum/.test(location.pathname) || config.module == 'AppCountryAlbum') { config.baseURL = '/aca' 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' } else if (/\/project\/police\//.test(location.pathname) || config.module == 'hnjc') { config.baseURL = '/hnjc' diff --git a/src/project/beta/AppGridManagement/AddGird.vue b/src/project/beta/AppGridManagement/AddGird.vue index dd9bd7c0..c2d2f835 100644 --- a/src/project/beta/AppGridManagement/AddGird.vue +++ b/src/project/beta/AppGridManagement/AddGird.vue @@ -34,7 +34,6 @@ export default { girdMemberManageList: [], girdMemberList: [] }, - detailInfo: {}, fromType: 'add', //add新增 edit编辑, } }, @@ -43,6 +42,14 @@ export default { this.fromType = option.fromType this.getDetail() }, + computed: { + gmmList() {//网格长集合 + + }, + gmList() {//网格员集合 + + } + }, onShow() { if (this.fromType == 'add') { document.title = '添加网格' @@ -54,13 +61,12 @@ export default { getDetail() { this.$http.post(`/app/appgirdinfo/queryDetailById?id=${this.id}`).then((res) => { if (res?.data) { - this.detailInfo = res.data if (this.fromType == 'edit') { this.form = res.data } if (this.fromType == 'add') { - this.form.parentGirdId = this.detailInfo.id - this.form.parentGirdName = this.detailInfo.girdName + this.form.parentGirdId = res.data.id + this.form.parentGirdName = res.data.girdName this.$forceUpdate() } }