From c9304ea521f318ed44844361351d316fc4d6e5f7 Mon Sep 17 00:00:00 2001 From: quyixiao <2621048238@qq.com> Date: Sun, 23 Aug 2020 17:42:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../result/record/approval-add-or-update.vue | 32 +++++++++++++++++-- .../modules/result/record/lzresultrecord.vue | 4 +-- .../modules/result/record/recorddetail.vue | 10 +++--- 3 files changed, 35 insertions(+), 11 deletions(-) diff --git a/src/views/modules/result/record/approval-add-or-update.vue b/src/views/modules/result/record/approval-add-or-update.vue index 1a8a256..fd2960f 100644 --- a/src/views/modules/result/record/approval-add-or-update.vue +++ b/src/views/modules/result/record/approval-add-or-update.vue @@ -4,10 +4,27 @@ :close-on-click-modal="false" :visible.sync="visible"> + + + + + + + + +
+
+ + 通过 侍提交 @@ -28,8 +45,12 @@ export default { recordResultId: 0, auth: [], resultCommitId: 0, + type: 1, + rollbackData: [], dataForm: { - resultComment: '' + resultComment: '', + robackFlowId: 0, + status: 1 }, dataRule: {} } @@ -39,10 +60,12 @@ export default { }, computed: {}, methods: { - async init (recordResultId, auth) { + async init (recordResultId, auth, type) { this.recordResultId = recordResultId this.auth = auth this.visible = true + this.type = type + this.$nextTick(async () => { this.$refs['dataForm'].resetFields() if (this.resultCommentEditor === null) { @@ -56,6 +79,7 @@ export default { const data = await getResultComment(this.recordResultId) if (data && data.code === 0) { this.resultCommitId = data.resultComment.id + this.rollbackData = data.list if (this.keyResultEditor !== null) { this.resultCommentEditor.txt.html(data.resultComment.comment) } @@ -76,7 +100,9 @@ export default { 'recordResultId': this.recordResultId, 'resultComment': Base64.encode(this.resultCommentEditor.txt.html()), 'status': status, - 'resultCommitId': this.resultCommitId + 'resultCommitId': this.resultCommitId, + 'type': this.type, + 'rollbackFlowId':this.rollbackFlowId }).then(data => { if (data && data.code === 0) { this.$emit('refreshDataList', this.recordResultId) diff --git a/src/views/modules/result/record/lzresultrecord.vue b/src/views/modules/result/record/lzresultrecord.vue index e04f8b1..4175f77 100644 --- a/src/views/modules/result/record/lzresultrecord.vue +++ b/src/views/modules/result/record/lzresultrecord.vue @@ -46,8 +46,8 @@
- 新增目标 - 新增业绩 + 新增月初目标 + 新增月未总结
-
考核月份:{{checkMonth}} 员工姓名:{{ staffName }} @@ -30,7 +29,7 @@
-

审批

+

审批

@@ -38,9 +37,8 @@
-

驳回

+

驳回

- @@ -208,11 +206,11 @@ export default { }, 500) }) }, - commitApprovalAddOrUpdate () { + commitApprovalAddOrUpdate (val) { this.approvalVisible = true this.$nextTick(() => { setTimeout(() => { - this.$refs.approvalAddOrUpdate.init(this.recordResultId, this.auth) + this.$refs.approvalAddOrUpdate.init(this.recordResultId, this.auth, val) }, 500) }) },