| @@ -158,7 +158,7 @@ export default { | |||||
| endoftime: "", | endoftime: "", | ||||
| name: "", | name: "", | ||||
| agentName: "", | agentName: "", | ||||
| projectId: "", | |||||
| projectId: localStorage.getItem("houseId"), | |||||
| type: 0, | type: 0, | ||||
| keywords: "", | keywords: "", | ||||
| keywordIds: [], | keywordIds: [], | ||||
| @@ -172,21 +172,21 @@ export default { | |||||
| mounted() { | mounted() { | ||||
| // 权限 | // 权限 | ||||
| this.sta_idx_download = this.permissions["sta_idx_download"]; | this.sta_idx_download = this.permissions["sta_idx_download"]; | ||||
| var isnull = this.$route.query.flag; | |||||
| console.log(isnull); | |||||
| try { | |||||
| console.log(this.$route.query) | |||||
| console.log(Object.keys(this.$route.query)) | |||||
| if (Object.keys(this.$route.query).length > 0) { | |||||
| var isnull = this.$route.query.flag; | |||||
| if (isnull.TimetoAhoose) this.TimetoAhoose = isnull.TimetoAhoose; | if (isnull.TimetoAhoose) this.TimetoAhoose = isnull.TimetoAhoose; | ||||
| if (isnull.customtime) this.customtime = isnull.customtime; | if (isnull.customtime) this.customtime = isnull.customtime; | ||||
| this.fromobj.starttime = isnull.starttime; | this.fromobj.starttime = isnull.starttime; | ||||
| this.fromobj.endoftime = isnull.endoftime; | this.fromobj.endoftime = isnull.endoftime; | ||||
| this.fromobj.projectId = isnull.houseId; | |||||
| this.fromobj.projectId = isnull.houseId | |||||
| this.fromobj.keywords = isnull.keywordsId; | this.fromobj.keywords = isnull.keywordsId; | ||||
| if (!isnull.TimetoAhoose && isnull.starttime && isnull.endoftime) { | if (!isnull.TimetoAhoose && isnull.starttime && isnull.endoftime) { | ||||
| this.TimetoAhoose = 6; | this.TimetoAhoose = 6; | ||||
| } | } | ||||
| } catch (e) { | |||||
| console.log(e); | |||||
| } | } | ||||
| this.Accesstolevel(); | this.Accesstolevel(); | ||||
| }, | }, | ||||
| computed: { | computed: { | ||||