15179599649
2023-12-15 e9a03e748186e66f0f7981026432d1374790187c
'提交内容'
4 files modified
34 ■■■■■ changed files
src/api/hfiveget/index.js 8 ●●●● patch | view | raw | blame | history
src/views/Appraising/index.vue 20 ●●●● patch | view | raw | blame | history
src/views/login/index.vue 4 ●●● patch | view | raw | blame | history
vue.config.js 2 ●●● patch | view | raw | blame | history
src/api/hfiveget/index.js
@@ -25,8 +25,8 @@
//登录
export const Loginto = (params) => {
    return request({
        // url: "/api/blade-auth/oauth/token",
        url: '/api/blade-auth/oauth/token?tenantId=000000&username=' + params + '&password=21232f297a57a5a743894a0e4a801fc3&grant_type=password&scope=all&type=account',
        url: "/api/blade-auth/oauth/token",
        // url: '/api/blade-auth/oauth/token?tenantId=000000&username=' + params + '&password=21232f297a57a5a743894a0e4a801fc3&grant_type=password&scope=all&type=account',
        method: "post",
        apiKey: true,
        params: {
@@ -85,7 +85,7 @@
//进行评分提交
export const assessmentScore = (params) => {
    return request({
        url: "/api/assessmentScore/assessmentScore/submit",
        url: "/api/assessment/assessmentScore/submit",
        method: "post",
        apiKey: true,
        data: {
@@ -96,7 +96,7 @@
// 评优任务列表
export const evaluateTask = (params) => {
    return request({
        url: "/api/evaluate/evaluateTask/list",
        url: "/api/evaluate/evaluateTask/taskList/" + params.dept_id + "/" + params.user_id,
        method: "get",
        apiKey: true,
        params: {
src/views/Appraising/index.vue
@@ -3,14 +3,18 @@
  <div class="Appraising">
    <div class="view" v-for="(item,index) in ViewData" :key="index">
      <p class="TaskNumber">
        <span>部门评优</span>
        <span>{{(item.type==0||item.type==1)?'部门评优':'公司评优'}}</span>
        <span
          :class="item.taskType=='优秀员工'?'evaluation':'evaluationget'"
        >{{item.taskType=='优秀员工'?'待完成 ':'已完成'}}</span>
          :class="item.taskType=='优秀员工'?'evaluationget':'evaluation'"
        >{{item.taskType=='优秀员工'?'待完成 ':'待完成'}}</span>
      </p>
      <p class="Tasktime">
        <span>评优任务名称:</span>
        <span>{{item.taskName}}</span>
      </p>
      <p class="Tasktime">
        <span>评优对象:</span>
        <span>{{(item.type==0||item.type==1)?'个人':'部门'}}</span>
      </p>
      <p class="Tasktime">
        <span>本次类别:</span>
@@ -18,7 +22,7 @@
      </p>
      <p class="Tasktime">
        <span>截止日期:</span>
        <span>{{item.updateTime}}</span>
        <span>{{item.evaluateCutoffTime}}</span>
      </p>
      <van-button @click="toAppraising(item)">去评优</van-button>
    </div>
@@ -45,9 +49,13 @@
  methods: {
    // 评优任务列表
    evaluateTaskData() {
      let data = { current: 1, size: 100 };
      let data = {
        user_id: localStorage.getItem("tokensave"),
        dept_id: localStorage.getItem("dept_id")
      };
      evaluateTask(data).then(res => {
        this.ViewData = res.data.data.records;
        console.log(res);
        this.ViewData = res.data.data;
      });
    },
    toAppraising(item) {
src/views/login/index.vue
@@ -87,15 +87,17 @@
          phone: this.username,
          code: this.Code
        };
        Loginto(Data.phone).then(res => {
        Loginto(Data).then(res => {
          if (res.data.code == 400) {
            this.$toast.fail(res.data.msg);
          } else {
            setTimeout(() => {
              this.$router.push("/");
            }, 1000);
            console.log(res.data);
            localStorage.setItem("Appraising", "message");
            localStorage.setItem("tokensave", res.data.user_id);
            localStorage.setItem("dept_id", res.data.dept_id);
            setToken(res.data.access_token);
            this.$toast.success("登录成功");
          }
vue.config.js
@@ -137,7 +137,7 @@
      "/api": {
        // target用于配置你允许访问数据的计算机名称,即是你的api接口的服务器地址
        // target: "http://127.0.0.1",
        target: "http://192.168.1.88:2888",
        target: "https://132v69t077.yicp.fun",
        // target: "http://192.168.0.100:82",
        // target: "http://17.20.10.3:82",
        // target: "http://10.141.11.11/api",