From cd9022e34e085fb1b03662188e50c4ada3a7e1ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=86=8A=E6=88=90=E5=BC=BA?= Date: Wed, 11 Nov 2020 18:02:54 +0800 Subject: [PATCH] =?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/EvaluationTeamFilter/index.vue | 1 + src/components/PopupRight/index.vue | 2 +- src/style/common.less | 2 +- src/utils/common.js | 2 +- .../performance/components/table copy 2.vue | 469 ++++++++++++++++++ .../performance/components/table copy.vue | 431 ++++++++++++++++ .../performance/components/table.vue | 12 +- .../kpi/assessment/stepList/addPerson.vue | 2 +- 8 files changed, 911 insertions(+), 10 deletions(-) create mode 100644 src/views/kpi/assessment/performance/components/table copy 2.vue create mode 100644 src/views/kpi/assessment/performance/components/table copy.vue diff --git a/src/components/EvaluationTeamFilter/index.vue b/src/components/EvaluationTeamFilter/index.vue index 29769de..f812bb9 100644 --- a/src/components/EvaluationTeamFilter/index.vue +++ b/src/components/EvaluationTeamFilter/index.vue @@ -162,6 +162,7 @@ export default { handleDataList () { apiGetEvaluationTeamList(Object.assign({}, this.pageInfo, this.filtersDic)).then(res => { if (res.code !== 200) { + this.$message.error(res.msg) return } this.pageInfo.currPage = res.data.currPage diff --git a/src/components/PopupRight/index.vue b/src/components/PopupRight/index.vue index b4df48c..7b5e0eb 100644 --- a/src/components/PopupRight/index.vue +++ b/src/components/PopupRight/index.vue @@ -136,7 +136,7 @@ export default { } } &-content { - width: 480px; + min-width: 480px; flex: 1; padding: 20px 20px; overflow: auto; diff --git a/src/style/common.less b/src/style/common.less index 3a0ba68..4c5c2ff 100644 --- a/src/style/common.less +++ b/src/style/common.less @@ -15,7 +15,7 @@ .pre{ pre{ - white-space: pre-wrap; + white-space:pre-line; word-wrap: break-word; word-break: break-all; } diff --git a/src/utils/common.js b/src/utils/common.js index 014de91..6bf42e7 100644 --- a/src/utils/common.js +++ b/src/utils/common.js @@ -104,5 +104,5 @@ export function loading (options = opt) { export function loadingClose () { setTimeout(() => { this.$loading.service(opt).close() - }, 300) + }, 100) } diff --git a/src/views/kpi/assessment/performance/components/table copy 2.vue b/src/views/kpi/assessment/performance/components/table copy 2.vue new file mode 100644 index 0000000..4b9b365 --- /dev/null +++ b/src/views/kpi/assessment/performance/components/table copy 2.vue @@ -0,0 +1,469 @@ + + + diff --git a/src/views/kpi/assessment/performance/components/table copy.vue b/src/views/kpi/assessment/performance/components/table copy.vue new file mode 100644 index 0000000..e926754 --- /dev/null +++ b/src/views/kpi/assessment/performance/components/table copy.vue @@ -0,0 +1,431 @@ + + + diff --git a/src/views/kpi/assessment/performance/components/table.vue b/src/views/kpi/assessment/performance/components/table.vue index 54eb841..22c3af6 100644 --- a/src/views/kpi/assessment/performance/components/table.vue +++ b/src/views/kpi/assessment/performance/components/table.vue @@ -24,7 +24,7 @@ {{child.target || ''}}
-
+                   
                     {{child.keyResult || ''}}
                    
@@ -155,9 +155,9 @@ export default { }, computed: { score () { - const result = this.obj.recortModelDtos.reduce((result, i) => { - i.detailDtos.map(j => { - j.scoreDtos.map(k => { + const result = this.obj.recortModelDtos && this.obj.recortModelDtos.reduce((result, i) => { + i.detailDtos && i.detailDtos.map(j => { + j.scoreDtos && j.scoreDtos.map(k => { const str = j.calculate.replace(/{\w+}/g, (i) => { i = i.replace(/{|}/g, '') return k[i] @@ -186,8 +186,8 @@ export default { this.loadingTi = true let res1 = await apiSaveDetail(Object.assign({}, this.obj, this.score)) if (res1.code !== 200) { - this.$message.error(res1.msg) this.loadingTi = false + this.$message.error(res1.msg) return } const obj = {status: 1, menuName: this.tableInfo.result ? '提交了结果值' : '提交了评分'} @@ -241,7 +241,7 @@ export default { width: 300px !important; display: block; pre{ - white-space: pre-wrap; + white-space:pre-line; word-wrap: break-word; word-break: break-all; } diff --git a/src/views/kpi/assessment/stepList/addPerson.vue b/src/views/kpi/assessment/stepList/addPerson.vue index 682497e..a6d3fb7 100644 --- a/src/views/kpi/assessment/stepList/addPerson.vue +++ b/src/views/kpi/assessment/stepList/addPerson.vue @@ -90,7 +90,7 @@ export default { this.isLoading = false this.$loadingEnd() if (res1.code !== 200) return this.$message.error(res1.msg) - // history.go(-1) + history.go(-1) } } },