6 files modified
1 files added
| | |
| | | //登录 |
| | | 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: { |
| | |
| | | }, |
| | | }); |
| | | }; |
| | | //查看该用户需要进行的评分任务 |
| | | |
| | | // 我的考核列表 |
| | | export const listGroupByTask = (params) => { |
| | | return request({ |
| | | url: "/api/assessment/assessmentScore/listMyScore/" + params, |
| | | method: "get", |
| | | apiKey: true, |
| | | params: { |
| | | ...params, |
| | | }, |
| | | }); |
| | | }; |
| | | //查看该用户需要进行的评分任务(个人) |
| | | export const assessmentSet = (params) => { |
| | | return request({ |
| | | url: "/api/assessment/assessmentSet/list", |
| | |
| | | }, |
| | | }); |
| | | }; |
| | | //查看该用户需要进行的评分任务(部门) |
| | | export const assessmentSetDept = (params) => { |
| | | return request({ |
| | | url: "/api/assessment/assessmentSetDept/list", |
| | | method: "get", |
| | | apiKey: true, |
| | | params: { |
| | | ...params, |
| | | }, |
| | | }); |
| | | }; |
| | | |
| | | |
| | | //进行评分提交 |
| | |
| | | </p> |
| | | <van-button @click="toAppraising(item)">去评优</van-button> |
| | | </div> |
| | | <div class="not" v-show="ViewData.length==0"> |
| | | <img src="images/notdata.png" /> |
| | | <p>暂无数据</p> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | ViewData: [ |
| | | { |
| | | id: "202402", |
| | | fraction: "待完成", |
| | | Assessmentpeople: "王五", |
| | | department: "技术部" |
| | | } |
| | | ] |
| | | ViewData: [] |
| | | }; |
| | | }, |
| | | |
| | |
| | | border-radius: 8px; |
| | | } |
| | | } |
| | | .not { |
| | | img { |
| | | margin-top: 30px; |
| | | width: 100%; |
| | | } |
| | | p { |
| | | font-size: 20px; |
| | | color: #999999; |
| | | text-align: center; |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | | |
| | |
| | | <div class="Checkandassess"> |
| | | <div class="view" v-for="(item,index) in ViewData" :key="index"> |
| | | <p class="TaskNumber"> |
| | | <span>考核任务编号:{{item.id}}</span> |
| | | <span :class="item.fraction=='评估中'?'evaluation':'number'">{{item.fraction}}</span> |
| | | <span>考核任务编号:{{item.assessmentTaskVO.assessmentNo}}</span> |
| | | <span |
| | | :class="item.isAssessmentOk==true?'number':'evaluation'" |
| | | >{{item.isAssessmentOk==true?item.scoreVal:'评估中'}}</span> |
| | | </p> |
| | | <p class="Tasktime"> |
| | | <span>发起日期:</span> |
| | | <span>{{item.time}}</span> |
| | | <span>{{item.assessmentTaskVO.createTime}}</span> |
| | | </p> |
| | | </div> |
| | | <div class="not" v-show="ViewData.length==0"> |
| | | <img src="images/notdata.png" /> |
| | | <p>暂无数据</p> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { listGroupByTask } from "@/api/hfiveget/index.js"; |
| | | export default { |
| | | data() { |
| | | return { |
| | | ViewData: [ |
| | | { |
| | | id: "202402", |
| | | fraction: "评估中", |
| | | time: "2024-01-04" |
| | | }, |
| | | { |
| | | id: "202401", |
| | | fraction: "98", |
| | | time: "2024-01-02" |
| | | } |
| | | ] |
| | | ViewData: [] |
| | | }; |
| | | }, |
| | | |
| | | computed: {}, |
| | | created() {}, |
| | | methods: {} |
| | | created() { |
| | | this.getTaskData(); |
| | | }, |
| | | methods: { |
| | | getTaskData() { |
| | | let toUserId = localStorage.getItem("tokensave"); |
| | | listGroupByTask(toUserId).then(res => { |
| | | console.log(res.data.data); |
| | | this.ViewData = res.data.data; |
| | | }); |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | |
| | |
| | | } |
| | | } |
| | | } |
| | | .not { |
| | | img { |
| | | margin-top: 30px; |
| | | width: 100%; |
| | | } |
| | | p { |
| | | font-size: 20px; |
| | | color: #999999; |
| | | text-align: center; |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | | |
| | |
| | | <!--考核--> |
| | | <template> |
| | | <div class="Checkandassess"> |
| | | <div |
| | | class="view" |
| | | v-for="(item,index) in ViewData" |
| | | :key="index" |
| | | v-show="!(item.assessmentTaskVO==null)" |
| | | > |
| | | <div class="view" v-for="(item,index) in ViewData" :key="index"> |
| | | <p class="TaskNumber"> |
| | | <span>考核任务编号:{{item.assessmentTaskVO.assessmentNo}}</span> |
| | | <span |
| | |
| | | <span>{{item.assessmentTaskVO.assessmentPurpose}}</span> |
| | | </p> |
| | | <p class="Tasktime"> |
| | | <span>考核对象:</span> |
| | | <span>{{item.userId!=undefined?"个人":"部门"}}</span> |
| | | </p> |
| | | <p class="Tasktime"> |
| | | <span>截止日期:</span> |
| | | <qspan>{{item.assessmentTaskVO.endTime}}</qspan> |
| | | </p> |
| | | <p class="Tasktime"> |
| | | <span>考核任务:</span> |
| | | <span>对({{item.userName}})进行评分</span> |
| | | <span>对({{item.assessmentTaskVO.type==0?item.userName:item.deptName}})进行评分</span> |
| | | </p> |
| | | <van-button @click="toexamine(item)" v-show="item.assessmentScoreVO==null">去评分</van-button> |
| | | <p class="read" v-show="item.assessmentScoreVO!=null" @click="toexamine(item)">查看评分</p> |
| | | </div> |
| | | <div class="not" v-show="ViewData.length==0"> |
| | | <img src="images/notdata.png" /> |
| | | <p>赞无数据</p> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import { assessmentTask, assessmentSet } from "@/api/hfiveget/index.js"; |
| | | import { |
| | | assessmentTask, |
| | | assessmentSet, |
| | | assessmentSetDept |
| | | } from "@/api/hfiveget/index.js"; |
| | | export default { |
| | | data() { |
| | | return { |
| | | ViewData: [] |
| | | }; |
| | | }, |
| | | mounted() { |
| | | let currentTime = new Date(); |
| | | let targetTime = new Date("2023-12-14 10:23:00"); |
| | | console.log(currentTime < targetTime); |
| | | }, |
| | | mounted() {}, |
| | | computed: {}, |
| | | created() { |
| | | this.assessmentTaskData(); |
| | |
| | | // 考核任务列表 |
| | | assessmentTaskData() { |
| | | let toUserId = localStorage.getItem("tokensave"); |
| | | assessmentSet({ toUserId: toUserId }).then(res => { |
| | | this.ViewData = res.data.data.records; |
| | | this.ViewData.forEach(item => { |
| | | console.log(); |
| | | console.log(item.assessmentTaskVO.endTime); |
| | | assessmentSet({ toUserId: toUserId }).then(res_peo => { |
| | | res_peo.data.data.records.forEach(items => { |
| | | if (items.assessmentTaskVO !== null) { |
| | | this.ViewData.push(items); |
| | | } |
| | | if (items.assessmentScoreVO !== null) { |
| | | items.condition = 1; |
| | | } else { |
| | | items.condition = 0; |
| | | } |
| | | }); |
| | | assessmentSetDept({ toUserId: toUserId }).then(res_dept => { |
| | | res_dept.data.data.records.forEach(items => { |
| | | if (items.assessmentTaskVO !== null) { |
| | | this.ViewData.push(items); |
| | | } |
| | | if (items.assessmentScoreVO !== null) { |
| | | items.condition = 1; |
| | | } else { |
| | | items.condition = 0; |
| | | } |
| | | }); |
| | | this.ViewData.sort((a, b) => a.condition - b.condition); |
| | | }); |
| | | }); |
| | | // console.log(people); |
| | | // assessmentTask(data).then(task => { |
| | | // console.log(task); |
| | | // assessmentSet({ toUserId: toUserId }).then(person => { |
| | |
| | | border-radius: 8px; |
| | | } |
| | | } |
| | | .not { |
| | | img { |
| | | margin-top: 30px; |
| | | width: 100%; |
| | | } |
| | | p { |
| | | font-size: 20px; |
| | | color: #999999; |
| | | text-align: center; |
| | | } |
| | | } |
| | | } |
| | | </style> |
| | | |
| | |
| | | phone: this.username, |
| | | code: this.Code |
| | | }; |
| | | Loginto(Data).then(res => { |
| | | Loginto(Data.phone).then(res => { |
| | | if (res.data.code == 400) { |
| | | this.$toast.fail(res.data.msg); |
| | | } else { |
| | |
| | | <!--去评分--> |
| | | <template> |
| | | <div class="toexamine"> |
| | | <div class="headsculpture"> |
| | | <div class="headsculpture" v-show="this.poepleinfo.userId!=undefined"> |
| | | <img |
| | | src="https://img1.baidu.com/it/u=2465052889,887279449&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500" |
| | | /> |
| | |
| | | <p>部门</p> |
| | | <p>{{this.poepleinfo.deptName}}</p> |
| | | </div> |
| | | <div> |
| | | <div v-show="this.poepleinfo.userId!=undefined"> |
| | | <p>职务</p> |
| | | <p>{{this.poepleinfo.postName}}</p> |
| | | </div> |
| | | <div> |
| | | <div v-show="this.poepleinfo.userId!=undefined"> |
| | | <p>人员类型</p> |
| | | <p>经营</p> |
| | | </div> |
| | | <div> |
| | | <div v-show="this.poepleinfo.userId!=undefined"> |
| | | <p>合伙类型</p> |
| | | <p>重要合伙人</p> |
| | | </div> |
| | |
| | | <p class="title">评分</p> |
| | | <p class="fraction">{{this.poepleinfo.assessmentScoreVO.scoreVal}}</p> |
| | | <p class="title">评分说明</p> |
| | | <p class="instruct">{{this.poepleinfo.assessmentScoreVO.remark}}</p> |
| | | <p |
| | | class="instruct" |
| | | >{{this.poepleinfo.assessmentScoreVO.remark==""?'无':this.poepleinfo.assessmentScoreVO.remark}}</p> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | computed: {}, |
| | | mounted() { |
| | | localStorage.setItem("Appraising", "examine"); |
| | | this.poepleinfo = JSON.parse(this.$route.query.info); |
| | | console.log(this.poepleinfo); |
| | | }, |
| | | created() {}, |
| | | created() { |
| | | this.poepleinfo = JSON.parse(this.$route.query.info); |
| | | }, |
| | | methods: { |
| | | submit() { |
| | | let beId = ""; |
| | | if (parseFloat(this.score) > 100 + this.poepleinfo.rangeVal) { |
| | | this.$toast.fail("超出评分范围"); |
| | | } else { |
| | | if (this.poepleinfo.userId != undefined) { |
| | | beId = this.poepleinfo.userId; |
| | | } else { |
| | | beId = this.poepleinfo.deptId; |
| | | } |
| | | let Data = { |
| | | scoreUserId: localStorage.getItem("tokensave"), |
| | | remark: this.instructions, |
| | | scoreVal: this.score, |
| | | type: this.poepleinfo.assessmentTaskVO.type, |
| | | assessmentTaskId: this.poepleinfo.assessmentTaskVO.id, |
| | | beId: this.poepleinfo.userId |
| | | beId: beId, |
| | | weight: this.poepleinfo.weight, |
| | | rangeVal: this.poepleinfo.rangeVal |
| | | }; |
| | | assessmentScore(Data).then(res => { |
| | | this.$router.push({ |
| | | path: "/" |
| | | }); |
| | | setTimeout(() => { |
| | | this.$router.push("/"); |
| | | }, 1000); |
| | | this.$toast.success("评分成功"); |
| | | }); |
| | | } |
| | | } |