| | |
| | | // 最终评优数据 |
| | | 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: { |
| | |
| | | }, |
| | | }); |
| | | }; |
| | | |
| | | // 候选人集合 |
| | | |
| | |
| | | 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; |
| | | } |
| | | |
| | |
| | | // } |
| | | |
| | | ::-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; |
| | | } |
| | |
| | | </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> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { evaluateTask } from "@/api/hfiveget/index.js"; |
| | | import { evaluateTask, evaluateTasktop } from "@/api/hfiveget/index.js"; |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | this.evaluateTaskData(); |
| | | } |
| | | }, |
| | | mounted() {}, |
| | | methods: { |
| | | // 评优任务列表 |
| | | evaluateTaskData() { |
| | |
| | | }; |
| | | 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; // 顺序不变 |
| | | } |
| | | }); |
| | | }); |
| | | }); |
| | | }, |
| | |
| | | assessmentTask, |
| | | assessmentSet, |
| | | assessmentSetDept, |
| | | evaluateTask |
| | | evaluateTask, |
| | | evaluateTasktop |
| | | } from "@/api/hfiveget/index.js"; |
| | | export default { |
| | | components: { |
| | |
| | | } |
| | | 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; |
| | | } |
| | | }); |
| | |
| | | } |
| | | }); |
| | | } |
| | | 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; |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | }); |
| | | } |
| | | }, |
| | |
| | | return { |
| | | isshownotnm: true, |
| | | messageData: [], |
| | | pageswitch: { current: 1, size: 500, descs: "update_time" } |
| | | pageswitch: { current: 1, size: 10, descs: "update_time" } |
| | | }; |
| | | }, |
| | | |
| | |
| | | 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() { |
| | |
| | | </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> |
| | |
| | | v-model="currentValue" |
| | | is-link |
| | | readonly |
| | | :label="this.poepleinfo.type==0?'推荐人员':'推荐部门'" |
| | | :label="this.poepleinfo.type==1?'推荐部门':'推荐人员'" |
| | | placeholder="请选择" |
| | | @click="showPicker = true" |
| | | class="van-hairline" |
| | |
| | | </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> |
| | |
| | | pickerkey: "", |
| | | currentValue: "", // 用于绑定选择结果的变量 |
| | | columns: [], // 选择器的选项列表 |
| | | poepleinfo: {}, |
| | | poepleinfo: { type: -1 }, |
| | | toData: {}, |
| | | toshow: {} |
| | | }; |
| | |
| | | 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; |
| | |
| | | //提交 |
| | | 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 { |
| | |
| | | <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 |
| | |
| | | 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) { |
| | |
| | | }; |
| | | if (Data.scoreVal == "") { |
| | | this.$toast.fail("请输入评分"); |
| | | } else if (Data.instructions == "") { |
| | | } else if (Data.remark == "") { |
| | | this.$toast.fail("请输入评分说明"); |
| | | } else { |
| | | assessmentScore(Data).then(res => { |
| | |
| | | // 业务平台接口 |
| | | "/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": "/" |
| | | // } |
| | | }, |
| | | }, |
| | | }, |