wwf
15 小时以前 a32100e31b93bc378b11ab93617a9c40b081ad70
src/views/main/appraisalPlan/index.vue
@@ -227,10 +227,28 @@
  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() {
@@ -331,13 +349,18 @@
      }, 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('请先登录')
      // }
    }
  }
}