15179599649
2023-12-23 3b910753ac87f9a8e13eba459b53dc5c39c1dc51
'提交内容'
8 files modified
136 ■■■■ changed files
src/api/hfiveget/index.js 4 ●●●● patch | view | raw | blame | history
src/styles/base/index.scss 13 ●●●● patch | view | raw | blame | history
src/views/Appraising/index.vue 38 ●●●● patch | view | raw | blame | history
src/views/layout/index.vue 16 ●●●● patch | view | raw | blame | history
src/views/message/index.vue 19 ●●●● patch | view | raw | blame | history
src/views/toAppraising/index.vue 26 ●●●●● patch | view | raw | blame | history
src/views/toexamine/index.vue 10 ●●●●● patch | view | raw | blame | history
vue.config.js 10 ●●●● patch | view | raw | blame | history
src/api/hfiveget/index.js
@@ -169,7 +169,7 @@
// 最终评优数据
export const evaluateTasktop = (params) => {
    return request({
        url: "/api/evaluate/evaluateTask/list?type=0&evaluateState=1",
        url: "/api/evaluate/evaluateTask/companyList/" + params.user_id,
        method: "get",
        apiKey: true,
        params: {
@@ -177,5 +177,5 @@
        },
    });
};
// 候选人集合
src/styles/base/index.scss
@@ -2,7 +2,7 @@
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    // scrollbar-color: rgba(17, 38, 163, 0.5) hsla(0, 0%, 84.7%, 0.2);
    scrollbar-color: rgba(17, 38, 163, 0.5) hsla(0, 0%, 84.7%, 0.2);
    scrollbar-width: thin;
}
@@ -69,15 +69,14 @@
// }
::-webkit-scrollbar {
    display: none;
    // width: 8px;
    // height: 8px;
    // background-color: none;
    display: none; //1111111111111111111111111111111111111111111111111111111111111111111111111111111111111
    width: 8px;
    height: 8px;
    background-color: none;
}
::-webkit-scrollbar-thumb {
    // border:1px solid red;
    // background-color: hsla(0, 0%, 84.7%, 0.5);
    background-color: hsla(0, 0%, 84.7%, 0.5);
    padding-left: 2px;
    padding-right: 2px;
}
src/views/Appraising/index.vue
@@ -10,11 +10,11 @@
      </p>
      <p class="Tasktime">
        <span>评优对象:</span>
        <span>{{item.type==0?'个人':'部门'}}</span>
        <span>{{item.type == 0 ? "个人" :item.type == 1 ? "部门" :item.type == 2 ? "个人" : ""}}</span>
      </p>
      <p class="Tasktime">
        <span>评优级别:</span>
        <span>{{item.type==0?'部门级评优':'部门评优'}}</span>
        <span>{{item.type == 0 ? "部门级评优" :item.type == 1 ? "部门评优" :item.type == 2 ? "公司评优" : ""}}</span>
      </p>
      <p class="Tasktime">
        <span>评优类别:</span>
@@ -35,7 +35,7 @@
</template>
          
<script>
import { evaluateTask } from "@/api/hfiveget/index.js";
import { evaluateTask, evaluateTasktop } from "@/api/hfiveget/index.js";
export default {
  data() {
    return {
@@ -49,6 +49,7 @@
      this.evaluateTaskData();
    }
  },
  mounted() {},
  methods: {
    // 评优任务列表
    evaluateTaskData() {
@@ -58,23 +59,20 @@
      };
      evaluateTask(data).then(res => {
        this.ViewData = res.data.data.records;
        this.ViewData.sort((a, b) => {
          if (a.isEvaluateOk && !b.isEvaluateOk) {
            return 1; // a排在b之前
          } else if (!a.isEvaluateOk && b.isEvaluateOk) {
            return -1; // b排在a之前
          } else {
            return 0; // 顺序不变
          }
        });
        let letData = {
          index: 0,
          notnum: 0
        };
        this.ViewData.forEach(item => {
          if (item.isEvaluateOk == false) {
            letData.notnum += 1;
          }
        evaluateTasktop(data).then(res_new => {
          res_new.data.data.records.forEach(item => {
            item.type = 2;
            this.ViewData.push(item);
          });
          this.ViewData.sort((a, b) => {
            if (a.isEvaluateOk && !b.isEvaluateOk) {
              return 1; // a排在b之前
            } else if (!a.isEvaluateOk && b.isEvaluateOk) {
              return -1; // b排在a之前
            } else {
              return 0; // 顺序不变
            }
          });
        });
      });
    },
src/views/layout/index.vue
@@ -36,7 +36,8 @@
  assessmentTask,
  assessmentSet,
  assessmentSetDept,
  evaluateTask
  evaluateTask,
  evaluateTasktop
} from "@/api/hfiveget/index.js";
export default {
  components: {
@@ -140,8 +141,8 @@
        }
        assessmentSetDept({ toUserId: toUserId }).then(res_dept => {
          if (res_dept.data.data.records != undefined) {
            res_dept.data.data.records.forEach(item => {
              if (item.assessmentScoreVO == null) {
            res_dept.data.data.records.forEach(item_in => {
              if (item_in.assessmentScoreVO == null) {
                this.ygTabName[0].num += 1;
              }
            });
@@ -160,6 +161,15 @@
            }
          });
        }
        evaluateTasktop(data).then(res_new => {
          if (res_new.data.data.records != undefined) {
            res_new.data.data.records.forEach(item => {
              if (item.isEvaluateOk == false) {
                this.ygTabName[1].num += 1;
              }
            });
          }
        });
      });
    }
  },
src/views/message/index.vue
@@ -79,7 +79,7 @@
    return {
      isshownotnm: true,
      messageData: [],
      pageswitch: { current: 1, size: 500, descs: "update_time" }
      pageswitch: { current: 1, size: 10, descs: "update_time" }
    };
  },
@@ -92,15 +92,14 @@
  mounted() {},
  methods: {
    getScroll(event) {
      // 滚动条距离底部的距离scrollBottom
      // let scrollBottom =
      //   event.target.scrollHeight -
      //   event.target.scrollTop -
      //   event.target.clientHeight;
      // console.log(scrollBottom);
      // if (this.finished && scrollBottom < 40) {
      //  操作
      // }
      let scrollBottom =
        event.target.scrollHeight -
        event.target.scrollTop -
        event.target.clientHeight;
      if (scrollBottom < 40) {
        this.pageswitch.size += 10;
        this.getmessagelist();
      }
    },
    // 获取数据
    getmessagelist() {
src/views/toAppraising/index.vue
@@ -13,7 +13,7 @@
      </p>
      <p class="info">
        <span>评优级别:</span>
        <span>{{this.poepleinfo.type==0?'部门级评优':'部门评优'}}</span>
        <span>{{this.poepleinfo.type == 0 ? "部门级评优" :this.poepleinfo.type == 1 ? "部门评优" :this.poepleinfo.type == 2 ? "公司评优" : ""}}</span>
      </p>
      <p class="info">
        <span>评优标准:</span>
@@ -29,7 +29,7 @@
            v-model="currentValue"
            is-link
            readonly
            :label="this.poepleinfo.type==0?'推荐人员':'推荐部门'"
            :label="this.poepleinfo.type==1?'推荐部门':'推荐人员'"
            placeholder="请选择"
            @click="showPicker = true"
            class="van-hairline"
@@ -47,7 +47,7 @@
      </div>
      <div class="showdetails" v-else>
        <p>
          <span class="title">评选{{this.poepleinfo.type==0?"人":"部门"}}:</span>
          <span class="title">评选{{this.poepleinfo.type==1?"部门":"人"}}:</span>
          <span class="fraction">{{toshow.name}}</span>
        </p>
        <p>
@@ -79,7 +79,7 @@
      pickerkey: "",
      currentValue: "", // 用于绑定选择结果的变量
      columns: [], // 选择器的选项列表
      poepleinfo: {},
      poepleinfo: { type: -1 },
      toData: {},
      toshow: {}
    };
@@ -95,12 +95,14 @@
    this.toData.type = this.poepleinfo.type;
    this.poepleinfo.dept_name = localStorage.getItem("dept_name");
    // 部门候选人评定进行选择
    if (this.poepleinfo.type == 0) {
      let index = this.poepleinfo.selfCandidate.findIndex(
        item => item.id === localStorage.getItem("tokensave")
      );
      if (index !== -1) {
        this.poepleinfo.selfCandidate.splice(index, 1);
    if (this.poepleinfo.type == 0 || this.poepleinfo.type == 2) {
      if (this.poepleinfo.type == 0) {
        let index = this.poepleinfo.selfCandidate.findIndex(
          item => item.id === localStorage.getItem("tokensave")
        );
        if (index !== -1) {
          this.poepleinfo.selfCandidate.splice(index, 1);
        }
      }
      this.pickerkey = "name";
      this.columns = this.poepleinfo.selfCandidate;
@@ -147,7 +149,9 @@
    //提交
    SubmitTo() {
      if (this.toData.beId == undefined) {
        this.$toast.fail("请选择推荐部门");
        this.$toast.fail(
          this.poepleinfo.type == 1 ? "请选择推荐部门" : "请选择推荐人员"
        );
      } else if (this.toData.remark == undefined || this.toData.remark == "") {
        this.$toast.fail("请输入推荐理由");
      } else {
src/views/toexamine/index.vue
@@ -32,9 +32,7 @@
        <span>重要合伙人</span>
      </p>
    </div>
    <p
      class="illustrate"
    >说明:对当前评分,权重占{{this.poepleinfo.weight}}%,评分范围(100分制)±{{this.poepleinfo.rangeVal}}</p>
    <p class="illustrate">说明:对当前评分,权重占{{this.poepleinfo.weight}}%,评分范围(100分制)±50</p>
    <div v-if="this.poepleinfo.assessmentScoreVO==null" class="todetails">
      <p class="title">评分</p>
      <van-field
@@ -88,9 +86,9 @@
  methods: {
    submit() {
      let beId = "";
      if (parseFloat(this.score) > 100 + this.poepleinfo.rangeVal) {
      if (parseFloat(this.score) > 150) {
        this.$toast.fail("超出评分范围");
      } else if (parseFloat(this.score) < 100 - this.poepleinfo.rangeVal) {
      } else if (parseFloat(this.score) < 50) {
        this.$toast.fail("低于评分范围");
      } else {
        if (this.poepleinfo.userId != undefined) {
@@ -110,7 +108,7 @@
        };
        if (Data.scoreVal == "") {
          this.$toast.fail("请输入评分");
        } else if (Data.instructions == "") {
        } else if (Data.remark == "") {
          this.$toast.fail("请输入评分说明");
        } else {
          assessmentScore(Data).then(res => {
vue.config.js
@@ -136,17 +136,17 @@
      // 业务平台接口
      "/api": {
        // target用于配置你允许访问数据的计算机名称,即是你的api接口的服务器地址
        target: "http://127.0.0.1",
        // target: "https://132v69t077.yicp.fun",
        // target: "http://127.0.0.1",
        target: "https://132v69t077.yicp.fun",
        // target: 'http://192.168.1.85:2888',
        // target: "http://192.168.0.100:82",
        // target: "http://17.20.10.3:82",
        // target: "http://10.141.11.11/api",
        // ws: true, //启用webSocket6566
        changeOrigin: true,
        pathRewrite: {
          "^/api": "/"
        }
        // pathRewrite: {
        //   "^/api": "/"
        // }
      },
    },
  },