| | |
| | | computed: { |
| | | filterList() { |
| | | return this.planList.slice((this.filter.pageNo-1)*this.filter.pageSize, this.filter.pageNo*this.filter.pageSize) |
| | | }, |
| | | query() { |
| | | return this.$route.query |
| | | } |
| | | }, |
| | | watch: { |
| | | signupDialogVisible: { |
| | | handler: function(val) { |
| | | if (!val) { |
| | | this.$router.replace({ path: this.$route.path }) |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | created() { |
| | | this.getPlanList() |
| | | |
| | | }, |
| | | mounted() { |
| | | if (this.query.signupDialogFlag == '1') { |
| | | this.signup({ id: this.query.appraisalId }) |
| | | } |
| | | }, |
| | | methods: { |
| | | getPlanList() { |
| | |
| | | }, 400) |
| | | }, |
| | | signup(item) { |
| | | if (this.userInfo.id) { |
| | | this.signupDialogVisible = true |
| | | this.currentPlan = item |
| | | } else { |
| | | this.loginDialogVisible = true |
| | | this.$message.primary('请先登录') |
| | | } |
| | | this.signupDialogVisible = true |
| | | this.currentPlan = item |
| | | this.$router.replace({ path: this.$route.path, query: { appraisalId: item.id, signupDialogFlag: 1 } }) |
| | | // if (this.userInfo.id) { |
| | | // this.signupDialogVisible = true |
| | | // this.currentPlan = item |
| | | // this.$router.replace({ path: this.$route.path, query: { appraisalId: item.id, signupDialogFlag: 1 } }) |
| | | // } |
| | | // else { |
| | | // this.loginDialogVisible = true |
| | | // this.$message.primary('请先登录') |
| | | // } |
| | | } |
| | | } |
| | | } |