From 62e2b80ab4c0a2abc7dcbeab439c7665646c9318 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=86=8A=E6=88=90=E5=BC=BA?= Date: Fri, 6 Nov 2020 09:28:57 +0800 Subject: [PATCH 01/13] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ChooseInitiate/index.vue | 2 +- .../performance/components/UseButton/index.vue | 2 +- src/views/kpi/assessment/performance/index.vue | 16 ++++++++++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/components/ChooseInitiate/index.vue b/src/components/ChooseInitiate/index.vue index 593f37d..0ebacd9 100644 --- a/src/components/ChooseInitiate/index.vue +++ b/src/components/ChooseInitiate/index.vue @@ -136,7 +136,7 @@ export default { }, methods: { checkSelectable (row, index) { - return !this.nOSec && row.score === 0 + return this.nOSec && row.score === 0 }, handlePopupCreat () { this.$emit('update:showChooseList', false) diff --git a/src/views/kpi/assessment/performance/components/UseButton/index.vue b/src/views/kpi/assessment/performance/components/UseButton/index.vue index 3849489..2c9e883 100644 --- a/src/views/kpi/assessment/performance/components/UseButton/index.vue +++ b/src/views/kpi/assessment/performance/components/UseButton/index.vue @@ -24,7 +24,7 @@ @cancel='handleCancel' @submit="handleSubmit" :footer='true' - title="驳回评分" + title="评分" >
{{i.staffName}}#{{i.optDesc}}#
+
+
{{i.comment}}
+
@@ -231,6 +234,19 @@ export default { } } &-content { + .comment{ + width: 200px; + margin: 0 0 0 50px; + padding: 10px; + background: rgb(240, 240, 240); + border-radius: 4px; + pre{ + white-space: pre; + white-space: pre-wrap!important; + word-wrap: break-word!important; + *white-space:normal!important; + } + } padding: 28px; margin: 10px 0 50px; // height: 700px; From 4eadfb7e3f2fd95d0b132c1474a9713d3fd14c41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=86=8A=E6=88=90=E5=BC=BA?= Date: Fri, 6 Nov 2020 09:46:54 +0800 Subject: [PATCH 02/13] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ChooseInitiate/index.vue | 6 +++++- src/components/PopupRight/index.vue | 13 ++++++++++++- src/views/kpi/assessment/performance/index.vue | 2 +- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/components/ChooseInitiate/index.vue b/src/components/ChooseInitiate/index.vue index 0ebacd9..e484f46 100644 --- a/src/components/ChooseInitiate/index.vue +++ b/src/components/ChooseInitiate/index.vue @@ -136,7 +136,11 @@ export default { }, methods: { checkSelectable (row, index) { - return this.nOSec && row.score === 0 + if (!this.nOSec) { + return true + } else { + return row.score === 0 + } }, handlePopupCreat () { this.$emit('update:showChooseList', false) diff --git a/src/components/PopupRight/index.vue b/src/components/PopupRight/index.vue index 0259ea3..6454661 100644 --- a/src/components/PopupRight/index.vue +++ b/src/components/PopupRight/index.vue @@ -8,7 +8,10 @@ class="taskDetailRight-contant" @click.stop="aa" > -
{{title}}
+
+
{{title}}
+ +
@@ -123,6 +126,14 @@ export default { &-title { border-bottom: 1px solid @borderColor; padding: 10px 20px; + display: flex; + height: 60px; + align-items: center; + justify-content: space-between; + i{ + font-size: 22px; + cursor: pointer; + } } &-content { flex: 1; diff --git a/src/views/kpi/assessment/performance/index.vue b/src/views/kpi/assessment/performance/index.vue index bb36d55..fa61ceb 100644 --- a/src/views/kpi/assessment/performance/index.vue +++ b/src/views/kpi/assessment/performance/index.vue @@ -109,7 +109,7 @@ v-if="right.showRight" @cancel='handleCancel' @submit="handleSubmit" - :footer='true' + :footer='false' :title="form.item.flowName" >
Date: Fri, 6 Nov 2020 11:20:52 +0800 Subject: [PATCH 03/13] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 16 +++++++- src/main.js | 6 ++- src/utils/common.js | 7 ++++ .../performance/components/table.vue | 4 +- .../kpi/assessment/performance/index.vue | 37 ++++++++++++++++--- src/views/kpi/assessment/stepList/index.vue | 25 ++++++++++--- src/views/kpi/workbench/home/index.vue | 4 +- 7 files changed, 79 insertions(+), 20 deletions(-) diff --git a/src/App.vue b/src/App.vue index e5a4c92..d13f044 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,10 @@ @@ -8,13 +12,20 @@ import { mapState, mapActions } from 'vuex' import * as dd from 'dingtalk-jsapi' import { apiDingtalkLogin } from '@/api/login' +// import Loading from 'vue-loading-overlay' +// Import stylesheet +// import 'vue-loading-overlay/dist/vue-loading.css' export default { name: 'App', data () { return { - + active: true, + fullPage: true } }, + components: { + // Loading + }, computed: { ...mapState(['user']) }, @@ -22,6 +33,9 @@ export default { this.GET_DEPLIST() }, methods: { + onCancel () { + + }, ...mapActions(['GET_DEPLIST']), // 获取钉钉鉴权码 handleGetDingtalkCode () { diff --git a/src/main.js b/src/main.js index 34d93a5..1eace95 100644 --- a/src/main.js +++ b/src/main.js @@ -10,8 +10,9 @@ import './style/index.less' import '@/icons' import VConsole from 'vconsole' import VueCookie from 'vue-cookies' -import {debounce, departGetForm, personlGetForm, handleInput} from '@/utils/common' +import { debounce, departGetForm, personlGetForm, handleInput, messageSuccess } from '@/utils/common' import { format } from '@/utils/dateFormat' +// } // let hostList = ['lzmanagement.ldxinyong.com'] // if (!hostList.includes(window.location.host)) { @@ -19,7 +20,6 @@ var vConsole = new VConsole({ vConsole_switch_x: 0, vConsole_switch_y: 0 }) -// } Vue.use(VueCookie) Vue.config.productionTip = false @@ -28,6 +28,8 @@ Vue.prototype.debounce = debounce Vue.prototype.$personlGetForm = personlGetForm Vue.prototype.$departGetForm = departGetForm Vue.prototype.$handleInputInt = handleInput +Vue.prototype.$msg = messageSuccess + /* eslint-disable no-new */ new Vue({ el: '#app', diff --git a/src/utils/common.js b/src/utils/common.js index e5230ea..dc1af5a 100644 --- a/src/utils/common.js +++ b/src/utils/common.js @@ -83,3 +83,10 @@ export function handleInput (form) { const a = Number(value) > 100 ? 0 : value.replace(/[^.\d]/g, '') this[form.split('.')[0]][form.split('.')[1]] = String(a) } + +export function messageSuccess (params) { + this.$message({ + message: params.msg, + type: 'success' + }) +} diff --git a/src/views/kpi/assessment/performance/components/table.vue b/src/views/kpi/assessment/performance/components/table.vue index c0c7c64..2bf4cd1 100644 --- a/src/views/kpi/assessment/performance/components/table.vue +++ b/src/views/kpi/assessment/performance/components/table.vue @@ -33,8 +33,8 @@
- - {{child.checkResult || '--'}} + +
{{child.checkResult || '--'}}
{{( Math.round((child.checkWeight * 100) * 1000) / 1000 )}}% diff --git a/src/views/kpi/assessment/performance/index.vue b/src/views/kpi/assessment/performance/index.vue index fa61ceb..f3ccbbc 100644 --- a/src/views/kpi/assessment/performance/index.vue +++ b/src/views/kpi/assessment/performance/index.vue @@ -55,7 +55,7 @@
执行中”是员工在目标确认后,努力达成目标的一个过程,直到管理员发起评分。
管理员如何发起评分:返回上级页面<考核详情>,点击"开始评分"按钮发起。
{{index+1}}.{{i.flowName}}:{{i.staffName}} @@ -203,13 +203,38 @@ export default { async handleList () { let res = await apiResultRecordDetail({ resultRecordId: this.$route.query.id }) if (res.code !== 200) return + console.log('res.data.flowRecordList: ', res.data.flowRecordList) + const arr = res.data.flowRecordList.concat([]) for (let i in res.data.flowRecordList) { - res.data.flowRecordList[i === '0' ? i : (i - 1)].isGou = true - if (res.data.flowRecordList[i].status === 0) { - res.data.flowRecordList[i === '0' ? i : (i - 1)].isActive = true - break - } + arr.shift() + res.data.flowRecordList[i][arr.some(j => j.status === 1) ? 'isGou' : 'isActive'] = true + if (!arr.some(j => j.status === 1)) break + // if (res.data.flowRecordList[i].status === 1) { + // res.data.flowRecordList[i].isGou = true + // arr.shift() + // } else { + // if (!arr.some(j => j.status === 1)) { + // res.data.flowRecordList[i === '0' ? i : (Number(i) - 1)].isActive = true + // break + // } else { + // res.data.flowRecordList[ i ].isGou = true + // arr.shift() + // debugger + // } + // } } + // for (let i in res.data.flowRecordList) { + // if (res.data.flowRecordList[i].status === 4 && res.data.flowRecordList[Number(i) + 1].status === 0) { + // console.log('i: ', i) + // debugger + // break + // } + // res.data.flowRecordList[i === '0' ? i : (Number(i) - 1)].isGou = true + // if (res.data.flowRecordList[i].status === 0) { + // res.data.flowRecordList[i === '0' ? i : (Number(i) - 1)].isActive = true + // break + // } + // } this.formList = res.data } }, diff --git a/src/views/kpi/assessment/stepList/index.vue b/src/views/kpi/assessment/stepList/index.vue index 15b8dee..1a02404 100644 --- a/src/views/kpi/assessment/stepList/index.vue +++ b/src/views/kpi/assessment/stepList/index.vue @@ -272,12 +272,25 @@ export default { methods: { async handleCallBackChoose (item) { if (!item.value) return this.$message.info('请选择考评组!') - const params = { - evaluationIds: item.value, - startId: this.$route.query.id - } - let res = await apiAssessManagerToScore(params) - if (res.code !== 200) return this.$message.error(res.msg) + this.$confirm('所选考评组员工的绩效考核将自动进入评分流程,确认开始评分?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(async () => { + const params = { + evaluationIds: item.value, + startId: this.$route.query.id + } + let res = await apiAssessManagerToScore(params) + if (res.code !== 200) return this.$message.error(res.msg) + this.$msg(res) + this.showChooseList = false + }).catch(() => { + this.$message({ + type: 'info', + message: '已取消评分' + }) + }) }, submitClick (item) { this.params.evaluationIds = item.value diff --git a/src/views/kpi/workbench/home/index.vue b/src/views/kpi/workbench/home/index.vue index c66e2dd..c0d61a3 100644 --- a/src/views/kpi/workbench/home/index.vue +++ b/src/views/kpi/workbench/home/index.vue @@ -58,7 +58,6 @@ export default { beforeMount () {}, mounted () { let search = window.location.search - console.log('search: ', search) if (search) { const item = this.list.filter(i => '?' + i.tag === search.split('=')[0]) if (item.length > 0) { @@ -76,12 +75,11 @@ export default { methods: { handleGetList () { apiGetWaitList(this.pageProcessedInfo).then(res => { - console.log('res: ', res) if (res.code === 200) { this.pageProcessedInfo.currPage = res.data.currPage this.pageProcessedInfo.totalCount = res.data.totalCount this.pageProcessedInfo.totalPage = res.data.totalPage - this.selectedTableList = res.data.list + this.selectedTableList = res.data.list || [] } }) }, From 5ba79cef6f88f3fce44fd26494211a3784eb660a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=86=8A=E6=88=90=E5=BC=BA?= Date: Fri, 6 Nov 2020 11:23:03 +0800 Subject: [PATCH 04/13] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/kpi/workbench/home/index.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/kpi/workbench/home/index.vue b/src/views/kpi/workbench/home/index.vue index c0d61a3..a6a1c90 100644 --- a/src/views/kpi/workbench/home/index.vue +++ b/src/views/kpi/workbench/home/index.vue @@ -20,7 +20,7 @@
考核管理
考评组
发起考核
-
指标库
+
指标库
@@ -84,6 +84,9 @@ export default { }) }, handleGetMoreToDo (name) { + if (name === '1') { + return this.$message.info('开发中。。。') + } const params = { name } From dcd1b4e31248ed5ab4d7dc3691b893a8894d25be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=86=8A=E6=88=90=E5=BC=BA?= Date: Fri, 6 Nov 2020 11:45:42 +0800 Subject: [PATCH 05/13] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kpi/assessment/performance/index.vue | 28 ------------------- 1 file changed, 28 deletions(-) diff --git a/src/views/kpi/assessment/performance/index.vue b/src/views/kpi/assessment/performance/index.vue index f3ccbbc..a57ce60 100644 --- a/src/views/kpi/assessment/performance/index.vue +++ b/src/views/kpi/assessment/performance/index.vue @@ -187,10 +187,8 @@ export default { let res = await apiResultGetDetail({ id }) if (res.code !== 200) return this.obj = res.data - console.log('res: ', res) }, handleRight (item) { - console.log('item: ', item) this.form.item = item this.right.showRight = true }, @@ -203,38 +201,12 @@ export default { async handleList () { let res = await apiResultRecordDetail({ resultRecordId: this.$route.query.id }) if (res.code !== 200) return - console.log('res.data.flowRecordList: ', res.data.flowRecordList) const arr = res.data.flowRecordList.concat([]) for (let i in res.data.flowRecordList) { arr.shift() res.data.flowRecordList[i][arr.some(j => j.status === 1) ? 'isGou' : 'isActive'] = true if (!arr.some(j => j.status === 1)) break - // if (res.data.flowRecordList[i].status === 1) { - // res.data.flowRecordList[i].isGou = true - // arr.shift() - // } else { - // if (!arr.some(j => j.status === 1)) { - // res.data.flowRecordList[i === '0' ? i : (Number(i) - 1)].isActive = true - // break - // } else { - // res.data.flowRecordList[ i ].isGou = true - // arr.shift() - // debugger - // } - // } } - // for (let i in res.data.flowRecordList) { - // if (res.data.flowRecordList[i].status === 4 && res.data.flowRecordList[Number(i) + 1].status === 0) { - // console.log('i: ', i) - // debugger - // break - // } - // res.data.flowRecordList[i === '0' ? i : (Number(i) - 1)].isGou = true - // if (res.data.flowRecordList[i].status === 0) { - // res.data.flowRecordList[i === '0' ? i : (Number(i) - 1)].isActive = true - // break - // } - // } this.formList = res.data } }, From 01f538f722efa4845b9c8b3c775340888ad64173 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=86=8A=E6=88=90=E5=BC=BA?= Date: Fri, 6 Nov 2020 14:31:54 +0800 Subject: [PATCH 06/13] youhua --- src/views/kpi/workbench/todo/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/kpi/workbench/todo/index.vue b/src/views/kpi/workbench/todo/index.vue index 7a93438..d24d676 100644 --- a/src/views/kpi/workbench/todo/index.vue +++ b/src/views/kpi/workbench/todo/index.vue @@ -93,7 +93,7 @@ export default { // 待处理事项 this.waitCount = res.data.totalCount } - this.selectedTableList = res.data.list + this.selectedTableList = res.data.list || [] console.log('待处理', res) }) }, From 349cd5e4e9b0f8bf32fc633cd8ff245aad5ca768 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=86=8A=E6=88=90=E5=BC=BA?= Date: Fri, 6 Nov 2020 15:33:50 +0800 Subject: [PATCH 07/13] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 20 ++++++------- src/api/data.js | 9 ++++++ src/api/login.js | 9 ++++++ src/components/kpi-layout/NavBar.vue | 10 +++++-- src/main.js | 4 ++- src/store/modules/user.js | 9 ++++-- src/utils/common.js | 16 ++++++++++ src/utils/request.js | 30 +++++++++---------- src/views/kpi/assessment/homeList/index.vue | 2 ++ .../components/UseButton/index.vue | 8 +++++ .../performance/components/table.vue | 11 +++++-- .../kpi/assessment/performance/index.vue | 8 +++-- .../kpi/assessment/stepList/addPerson.vue | 9 ++++-- src/views/kpi/assessment/stepList/index.vue | 3 +- src/views/kpi/report/home/index.vue | 2 ++ .../assessmentGroup/edit/components/basis.vue | 4 ++- .../workbench/assessmentGroup/edit/index.vue | 2 ++ .../workbench/assessmentGroup/groundTable.vue | 2 ++ src/views/kpi/workbench/home/index.vue | 2 ++ src/views/kpi/workbench/index.vue | 9 +++++- .../workbench/initiateAssessment/index.vue | 2 ++ 21 files changed, 130 insertions(+), 41 deletions(-) diff --git a/src/App.vue b/src/App.vue index d13f044..0d2fb76 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,20 +1,13 @@