15179599649
2024-01-11 7946322448f7bbcb8af77d7d4f2403ddab757362
'修改路由跳转错误'
6 files modified
26 ■■■■ changed files
src/views/Appraising/index.vue 1 ●●●● patch | view | raw | blame | history
src/views/examine/index.vue 4 ●●● patch | view | raw | blame | history
src/views/layout/index.vue 1 ●●●● patch | view | raw | blame | history
src/views/message/index.vue 13 ●●●●● patch | view | raw | blame | history
src/views/toAppraising/toAppraisingtwo.vue 4 ●●●● patch | view | raw | blame | history
vue.config.js 3 ●●●● patch | view | raw | blame | history
src/views/Appraising/index.vue
@@ -81,6 +81,7 @@
    },
    OutLogin() {
      localStorage.clear();
      store.commit("updatelogintopath", "/Appraising");
      setTimeout(() => {
        this.$router.push({
          path: "/discrimination"
src/views/examine/index.vue
@@ -73,6 +73,7 @@
  },
  mounted() {},
  computed: {},
  beforeCreate() {},
  created() {
    store.commit("updatelogintopath", "/examine");
    if (localStorage.getItem("tokensave") == null) {
@@ -86,6 +87,7 @@
    },
    OutLogin() {
      localStorage.clear();
      store.commit("updatelogintopath", "/examine");
      setTimeout(() => {
        this.$router.push({
          path: "/discrimination"
@@ -101,7 +103,7 @@
      ) {
        let toUserId = localStorage.getItem("tokensave");
        assessmentTask({ userId: toUserId }).then(res => {
          this.ViewData = res.data.data.records||[];
          this.ViewData = res.data.data.records || [];
          this.ViewData = this.ViewData.sort(
            (a, b) => a.isAssessmentOk - b.isAssessmentOk
          );
src/views/layout/index.vue
@@ -110,6 +110,7 @@
  computed: {},
  created() {
    this.$router.push(this.$store.state.logintopath);
    if (localStorage.getItem("tokensave") == null) {
      this.$router.push({
        path: "/discrimination"
src/views/message/index.vue
@@ -137,6 +137,13 @@
        if (localStorage.getItem("tokensave") == "111") {
          this.messageData.forEach((item, indexto) => {
            if (item.userName == "匿名用户") {
              let childitemdata = [];
              item.children.forEach((itemsss, indexsss) => {
                if (itemsss.userName == "匿名用户") {
                  childitemdata.push(itemsss);
                }
              });
              item.children = childitemdata;
              kehuarray.push(item);
            }
          });
@@ -146,7 +153,10 @@
    },
    // 提交评论:1匿名提交,2不匿名提交
    SubmitComment(key, item, index) {
      if (item.inputValue == undefined && item.imageDatatoup == undefined) {
      if (
        (item.inputValue == undefined || item.inputValue == "") &&
        (item.imageDatatoup == undefined || item.imageDatatoup.length == 0)
      ) {
        this.$toast.fail("请输入留言内容");
      } else {
        let toData = {
@@ -222,6 +232,7 @@
    },
    OutLogin() {
      localStorage.clear();
      store.commit("updatelogintopath", "/message");
      setTimeout(() => {
        this.$router.push({
          path: "/discrimination"
src/views/toAppraising/toAppraisingtwo.vue
@@ -13,7 +13,7 @@
      </p>
      <p class="info">
        <span>截止日期:</span>
        <span>{{this.poepleinfo.candidateCutoffTimeEnd}}</span>
        <span>{{this.poepleinfo.evaluateCutoffTimeEnd}}</span>
      </p>
      <p class="info" v-show="this.poepleinfo.isVote==false">
        <span>推荐部门:</span>
@@ -25,7 +25,7 @@
          </van-checkbox-group>
        </span>
      </p>
      <p class="info">
      <p class="info" v-show="this.poepleinfo.isVote==true">
        <span>推荐部门:</span>
        <span
          v-for="item_resu in this.poepleinfo.evaluateCandidateResultVOS"
vue.config.js
@@ -127,7 +127,8 @@
    proxy: {
      "/api": {
        // target用于配置你允许访问数据的计算机名称,即是你的api接口的服务器地址
        target: "http://127.0.0.1:8111",
        // target: "http://127.0.0.1:8111",
        target: "http://139.196.94.172:8111",
        // target: "https://132v69t077.yicp.fun",
        // target: "http://139.196.94.172:8111",
        // target: 'http://192.168.1.83:2888',