| @@ -63,17 +63,17 @@ service.interceptors.response.use(res => { | |||||
| if (code === 401) { | if (code === 401) { | ||||
| console.log(this.$route.path) | console.log(this.$route.path) | ||||
| // Dialog.confirm({ | |||||
| // title: '系统提示', | |||||
| // message: '登录状态已过期,您可以继续留在该页面,或者重新登录', | |||||
| // confirmButtonText: '重新登录', | |||||
| // cancelButtonText: '取消' | |||||
| // }) | |||||
| // .then(() => { | |||||
| // store.dispatch('LogOut').then(() => { | |||||
| // location.href = '/index'; | |||||
| // }) | |||||
| // }) | |||||
| Dialog.confirm({ | |||||
| title: '系统提示', | |||||
| message: '登录状态已过期,您可以继续留在该页面,或者重新登录', | |||||
| confirmButtonText: '重新登录', | |||||
| cancelButtonText: '取消' | |||||
| }) | |||||
| .then(() => { | |||||
| store.dispatch('LogOut').then(() => { | |||||
| location.href = '/index'; | |||||
| }) | |||||
| }) | |||||
| } else if (code === 500) { | } else if (code === 500) { | ||||
| Dialog.alert({ type: 'warning', message: msg }); | Dialog.alert({ type: 'warning', message: msg }); | ||||
| return Promise.reject(new Error(msg)) | return Promise.reject(new Error(msg)) | ||||
| @@ -16,8 +16,7 @@ | |||||
| <div | <div | ||||
| class="selectionIcon_wrap" | class="selectionIcon_wrap" | ||||
| :style="{ | :style="{ | ||||
| opacity: | |||||
| hcBottonHouseArr.length != 0 || hcBottonLandArr.length != 0 ? 1 : 0, | |||||
| opacity: ishcBotton == true ? 1 : 0, | |||||
| }" | }" | ||||
| @click="selectionPush" | @click="selectionPush" | ||||
| > | > | ||||
| @@ -624,7 +623,8 @@ export default { | |||||
| orderVillageOptions: [], | orderVillageOptions: [], | ||||
| //村选择框高度 | //村选择框高度 | ||||
| villageOptionsHeight: 0, | villageOptionsHeight: 0, | ||||
| // 待租列表显示 | |||||
| ishcBotton: false, | |||||
| // 待租列表 类型 0 农房 1 农地 | // 待租列表 类型 0 农房 1 农地 | ||||
| statusList: 0, | statusList: 0, | ||||
| //待租列表 房 | //待租列表 房 | ||||
| @@ -723,13 +723,13 @@ export default { | |||||
| }); | }); | ||||
| this.hcBottonHouseArr = houseArr; | this.hcBottonHouseArr = houseArr; | ||||
| this.hcBottonLandArr = landArr; | this.hcBottonLandArr = landArr; | ||||
| console.log(houseArr); | |||||
| console.log(landArr); | |||||
| this.ishcBotton = true; | |||||
| }); | }); | ||||
| } else { | } else { | ||||
| this.hcBottonHouseArr = []; | this.hcBottonHouseArr = []; | ||||
| //待租列表 地 | //待租列表 地 | ||||
| this.hcBottonLandArr = []; | this.hcBottonLandArr = []; | ||||
| this.ishcBotton = false; | |||||
| } | } | ||||
| // console.log(); | // console.log(); | ||||
| }, | }, | ||||
| @@ -802,6 +802,9 @@ export default { | |||||
| /*右侧列表 --展开收缩*/ | /*右侧列表 --展开收缩*/ | ||||
| selectionPush() { | selectionPush() { | ||||
| if (this.ishcBotton == false) { | |||||
| return false; | |||||
| } | |||||
| $(".homesteadList_wrap").animate( | $(".homesteadList_wrap").animate( | ||||
| { | { | ||||
| right: "0", | right: "0", | ||||