-
-
hahahhHah
+
+ {{i.staffName}}
@@ -111,6 +111,7 @@
import getDepart from './getDepart'
import getPersonnel from './getPersonnel'
import PopupRight from '@/components/PopupRight'
+import {getGround} from '@/api/data'
export default {
props: {
basisForm: {
@@ -129,6 +130,8 @@ export default {
},
data () {
return {
+ GroundList: [],
+ GroundList1: [],
isSshowOutIds: false,
outIdsLsit: {
list: []
@@ -172,17 +175,50 @@ export default {
PopupRight
},
computed: {
-
+ Ground () {
+ const params = {
+ list: [],
+ title: '',
+ managerIds: ''
+ }
+ params.list = this.GroundList1.filter(i => i.isSelect === 1)
+ params.list.map((i, index) => {
+ params.managerIds += i.staffId + ','
+ if (index < 2) params.title += i.staffName.split(' ')[0] + ','
+ })
+ params.managerIds = params.managerIds.substring(0, params.managerIds.length - 1)
+ params.title = params.title.substring(0, params.title.length - 1)
+ // eslint-disable-next-line vue/no-side-effects-in-computed-properties
+ this.form.managerIds = params.managerIds
+ return params
+ }
},
beforeMount () {},
- mounted () {
+ async mounted () {
this.form = this.basisForm
+ this.handleGetGround()
},
methods: {
+ async handleGetGround () {
+ try {
+ let res = await getGround({groupId: 1})
+ console.log('res: ', res)
+ res = res.map(i => {
+ i.isDisable = i.isSelect
+ return i
+ })
+ this.GroundList = JSON.parse(JSON.stringify(res))
+ this.GroundList1 = JSON.parse(JSON.stringify(res))
+ } catch (error) {
+ this.$message.error(error.msg)
+ }
+ },
handleCancel () {
+ this.GroundList = JSON.parse(JSON.stringify(this.GroundList1))
this.showRight = false
},
handleSubmit () {
+ this.GroundList1 = JSON.parse(JSON.stringify(this.GroundList))
this.showRight = false
},
handleGetChoose (item) {
diff --git a/src/views/kpi/workbench/assessmentGroup/edit/components/process.vue b/src/views/kpi/workbench/assessmentGroup/edit/components/process.vue
index 7b2543f..04e3c47 100644
--- a/src/views/kpi/workbench/assessmentGroup/edit/components/process.vue
+++ b/src/views/kpi/workbench/assessmentGroup/edit/components/process.vue
@@ -29,7 +29,7 @@ import Perform from './Perform'
import Entry from './Entry'
import Score from './Score'
import Approval from './Approval'
-
+import {getByFlowManagerId, saveDetailProcs} from '@/api/workbench'
export default {
data () {
return {
diff --git a/src/views/kpi/workbench/assessmentGroup/edit/components/templateSet.vue b/src/views/kpi/workbench/assessmentGroup/edit/components/templateSet.vue
index a4bfa82..267f51c 100644
--- a/src/views/kpi/workbench/assessmentGroup/edit/components/templateSet.vue
+++ b/src/views/kpi/workbench/assessmentGroup/edit/components/templateSet.vue
@@ -4,9 +4,9 @@
总分规则
-
+
-
+
加权计算
-
-
+
+
- {{i.leixing}}
+ {{handleWeiDu(i)}}
-
- 所含指标数量 {{i.center.number1String}}
+
+ 所含指标数量 {{i.maxCount}}
-
- 所含指标总权重 {{i.center.number2String}}%
+
+ 所含指标总权重 {{i.weight * 100}}%
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
{{j.name}}
+
{{j.keyResult}}
+
{{j.weight * 100}}%
+
+
编辑
删除
-
-
-
+
+
+
增加指标项
-
+
-
+
-
-
-
+
+
@@ -139,11 +146,11 @@
-
- 不限数量
- 自定义
+
+ 不限数量
+ 自定义
-
+
所含指标总权重
@@ -151,34 +158,37 @@
-
- 不限权重
- 自定义
+
+ 不限权重
+ 自定义
-
+
%
-
+
-
-
-
+
+
-
-
+
+
-
-
+
+
%
@@ -192,16 +202,30 @@