From adaa50b4c3b0a318f156faba88f15ec05236b2af Mon Sep 17 00:00:00 2001
From: yanyizhou <2311759275@qq.com>
Date: Fri, 10 Dec 2021 15:27:38 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=81=E6=A0=87=E8=AF=84=E4=BB=B7=20-=20?=
=?UTF-8?q?=E4=BF=AE=E7=BC=AE=E4=BA=86=E4=B8=80=E4=BA=9Bbug=EF=BC=8C?=
=?UTF-8?q?=E4=BC=98=E5=8C=96=E7=94=A8=E6=88=B7=E4=BD=93=E9=AA=8C=EF=BC=88?=
=?UTF-8?q?=E5=A6=82=E6=9E=9C=E4=BB=96=E8=BF=98=E6=89=BE=E8=8C=AC=EF=BC=8C?=
=?UTF-8?q?=E9=82=A3=E5=94=AF=E4=B8=80=E7=9A=84=E6=89=BE=E8=8C=AC=E7=82=B9?=
=?UTF-8?q?=E5=B0=B1=E6=98=AF=E9=80=89=E4=BA=BA=E8=A1=A8=E6=A0=BC=E7=9A=84?=
=?UTF-8?q?=E9=BB=98=E8=AE=A4=E9=80=89=E4=B8=AD=E4=BA=BA=E6=B2=A1=E6=9C=89?=
=?UTF-8?q?=E9=AB=98=E4=BA=AE=E6=98=BE=E7=A4=BA=EF=BC=88tnnd=EF=BC=8C?=
=?UTF-8?q?=E6=88=91=E9=83=BD=E9=BB=98=E8=AE=A4=E6=98=BE=E7=A4=BA=E7=AC=AC?=
=?UTF-8?q?=E4=B8=80=E4=B8=AA=E4=BA=86=EF=BC=8C=E4=BF=A9=E9=83=BD=E6=98=AF?=
=?UTF-8?q?=E7=AC=AC=E4=B8=80=E4=B8=AA=EF=BC=8C=E5=B0=B1=E7=9C=8B=E5=9C=A8?=
=?UTF-8?q?=E6=88=91=E5=8D=8E=E5=BC=BA=E7=9A=84=E9=9D=A2=E5=AD=90=E4=B8=8A?=
=?UTF-8?q?=EF=BC=8C=E4=B8=8D=E8=A6=81=E6=89=BE=E8=8C=AC=EF=BC=89?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../otherBussStandardDetails/index.vue | 82 ++++++++++++++-----
1 file changed, 61 insertions(+), 21 deletions(-)
diff --git a/src/pages/details/otherBussStandardDetails/index.vue b/src/pages/details/otherBussStandardDetails/index.vue
index 62a5b7bed..ea197d73d 100644
--- a/src/pages/details/otherBussStandardDetails/index.vue
+++ b/src/pages/details/otherBussStandardDetails/index.vue
@@ -136,13 +136,15 @@
prop="historyPeopleName"
align="center"
label="质量评价人"
- width="130px"
- show-overflow-tooltip>
+ width="200px">
+
- {{ scope.row.userName }}
+ style="width: 180px;" size="mini"
+ @click="historyPeopleChange(scope.row)">
+ {{ scope.row.userName + '-' + scope.row.processNode.substring(0,9) }}
+
@@ -232,7 +234,7 @@
-
+
@@ -254,7 +256,7 @@
-
+
@@ -293,7 +295,7 @@
-
+
@@ -1294,19 +1296,20 @@ export default {
data () {
return {
commentAverageScoreTag: '1',
- firstHistoryPeopleId: '',//最新评价的人的id
+ qualityFirstHistoryPeopleId: '',//质量评价最新评价的人的id
+ dynamicFirstHistoryPeopleId: '',//动态评价最新评价的人的id
historyInfoLoading: false,//历史评价信息的loading
historyCommentForm: {
averageScore: 0, // 平均分值
revise: '',
reviseReason: '', // 修订理由
}, // 历史评价表单
- dynamicHistoryCommentTable: [], // 动态评价历史评价表格
qualityHistoryCommentTable: [], // 质量评价历史评价表格
- dynamicHistoryPeopleTable: [], // 动态评价历史评价人表格
+ dynamicHistoryCommentTable: [], // 动态评价历史评价表格
qualityHistoryPeopleTable: [], // 质量评价历史评价人表格
- dynamicCommentScore: 0,// 动态评价总平均分
+ dynamicHistoryPeopleTable: [], // 动态评价历史评价人表格
qualityCommentScore: 0,// 质量评价总平均分
+ dynamicCommentScore: 0,// 动态评价总平均分
commentActiveName: 'dynamicComment',
indexType: 'dynamic',
commentReason: '', // 评价理由
@@ -1537,13 +1540,19 @@ export default {
methods: {
historyPeopleChange(row){
this.historyInfoLoading = true
- const allData = {
+ const qualityAllData = {
+ lawId: this.$route.params.id,
+ userId: row.userId,
+ evaluationType: this.indexType,
+ processNode: row.processNode
+ }
+ const dynamicAllData = {
lawId: this.$route.params.id,
userId: row.userId,
evaluationType: this.indexType
}
if (this.indexType === 'quality'){
- this.$http.get('sarEnterpriseStandardEvaluation/quality-evaluation/getEvaluationForm', allData , {
+ this.$http.get('sarEnterpriseStandardEvaluation/quality-evaluation/getEvaluationForm', qualityAllData , {
_this: this
}, res => {
this.qualityHistoryCommentTable = res.data
@@ -1553,7 +1562,7 @@ export default {
this.historyInfoLoading = false
})
}else if (this.indexType === 'dynamic'){
- this.$http.get('sarEnterpriseStandardEvaluation/quality-evaluation/getEvaluationForm', allData , {
+ this.$http.get('sarEnterpriseStandardEvaluation/quality-evaluation/getEvaluationForm', dynamicAllData , {
_this: this
}, res => {
this.dynamicHistoryCommentTable = res.data
@@ -1583,8 +1592,9 @@ export default {
//查询评分表
const allData = {
lawId: this.$route.params.id,
- userId: this.firstHistoryPeopleId,
- evaluationType: this.indexType
+ userId: this.qualityFirstHistoryPeopleId,
+ evaluationType: this.indexType,
+ processNode: this.qualityHistoryPeopleTable[0].processNode
}
this.$http.get('sarEnterpriseStandardEvaluation/quality-evaluation/getEvaluationForm', allData , {
_this: this
@@ -1601,7 +1611,7 @@ export default {
//查询评分表
const allData = {
lawId: this.$route.params.id,
- userId: this.firstHistoryPeopleId,
+ userId: this.dynamicFirstHistoryPeopleId,
evaluationType: this.indexType
}
this.$http.get('sarEnterpriseStandardEvaluation/quality-evaluation/getEvaluationForm', allData , {
@@ -1636,6 +1646,32 @@ export default {
}, e => {
})
+ // 刷新质量评价评分人表格和动态评价评分人表格
+ const qualityRequest = {
+ lawId: standId,
+ evaluationType: 'quality'
+ }
+ this.$http.get('sarEnterpriseStandardEvaluation/quality-evaluation/getHistory', qualityRequest, {
+ _this: this
+ }, res => {
+ this.qualityHistoryPeopleTable = res.data.records
+ this.qualityFirstHistoryPeopleId = res.data.records[0].userId
+
+ }, e => {
+ })
+ const dynamicRequest = {
+ lawId: standId,
+ evaluationType: 'dynamic'
+ }
+ this.$http.get('sarEnterpriseStandardEvaluation/quality-evaluation/getHistory', dynamicRequest, {
+ _this: this
+ }, res => {
+ this.dynamicHistoryPeopleTable = res.data.records
+ this.dynamicFirstHistoryPeopleId = res.data.records[0].userId
+
+ }, e => {
+ })
+
},
targetScoreChange(row){
if (this.targetScore1 === '') {
@@ -1729,12 +1765,16 @@ export default {
this.commentSubmitLoading = false
//重新评分之后刷新历史评分人
let standId = this.$route.params.id
- this.$http.get('sarEnterpriseStandardEvaluation/quality-evaluation/getHistory', {lawId:standId}, {
+ const dynamicRequest = {
+ lawId: standId,
+ evaluationType: 'dynamic'
+ }
+ this.$http.get('sarEnterpriseStandardEvaluation/quality-evaluation/getHistory', dynamicRequest, {
_this: this
}, res => {
this.dynamicHistoryPeopleTable = []
this.dynamicHistoryPeopleTable = res.data.records
- this.firstHistoryPeopleId = res.data.records[0].userId
+ this.dynamicFirstHistoryPeopleId = res.data.records[0].userId
}, e => {
})
@@ -2827,7 +2867,7 @@ export default {
_this: this
}, res => {
this.qualityHistoryPeopleTable = res.data.records
- this.firstHistoryPeopleId = res.data.records[0].userId
+ this.qualityFirstHistoryPeopleId = res.data.records[0].userId
}, e => {
})
@@ -2839,7 +2879,7 @@ export default {
_this: this
}, res => {
this.dynamicHistoryPeopleTable = res.data.records
- this.firstHistoryPeopleId = res.data.records[0].userId
+ this.dynamicFirstHistoryPeopleId = res.data.records[0].userId
}, e => {
})