优化
This commit is contained in:
parent
41ed494630
commit
bdf413fa47
@ -211,8 +211,6 @@ export default {
|
||||
}
|
||||
this.handleClick(params)
|
||||
this.$forceUpdate()
|
||||
console.log('this.itemInfo: ', this.itemInfo)
|
||||
console.log('this.list: ', this.list)
|
||||
},
|
||||
handleDelete (item) {
|
||||
if (item.id) {
|
||||
@ -238,9 +236,9 @@ export default {
|
||||
})
|
||||
i.roleIds = i.roleIds.substring(0, i.roleIds.length - 1)
|
||||
i.optType = (i.isActive === 0 || i.isActive === -1) ? i.isActive : i.optType
|
||||
console.log('i.optType: ', i.optType)
|
||||
})
|
||||
console.log('n: ', n)
|
||||
this.$emit('update:info', this.list)
|
||||
this.$emit('update:info', n)
|
||||
this.$forceUpdate()
|
||||
}
|
||||
},
|
||||
@ -258,7 +256,6 @@ export default {
|
||||
deep: true,
|
||||
handler (n, o) {
|
||||
const arr = n
|
||||
console.log('arr: ', arr)
|
||||
if (arr.isActive !== 0 && arr.isActive !== -1) {
|
||||
if (arr.optType < 1) arr.optType = 1
|
||||
arr.name = this.options.filter(i => i.id === arr.optType)[0].name
|
||||
@ -269,6 +266,7 @@ export default {
|
||||
arr.name = '未指定成员'
|
||||
}
|
||||
} else {
|
||||
arr.optType = -1
|
||||
arr.name = '被考核人自己'
|
||||
}
|
||||
// n.roleIds = ''
|
||||
|
||||
@ -249,7 +249,6 @@ export default {
|
||||
i.optType = (i.isActive === 0 || i.isActive === -1) ? i.isActive : i.optType
|
||||
return i
|
||||
})
|
||||
console.log('arr: ', arr)
|
||||
this.$emit('update:info', arr)
|
||||
this.$forceUpdate()
|
||||
}
|
||||
@ -262,7 +261,7 @@ export default {
|
||||
list: {
|
||||
deep: true,
|
||||
handler (n, o) {
|
||||
this.handleIsEmit(n)
|
||||
this.handleIsEmit(JSON.parse(JSON.stringify(n)))
|
||||
}
|
||||
},
|
||||
itemInfo: {
|
||||
|
||||
@ -244,7 +244,6 @@ export default {
|
||||
i.roleIds = i.roleIds.substring(0, i.roleIds.length - 1)
|
||||
i.label = '权重评分:' + i.weight1 + '%'
|
||||
})
|
||||
console.log('n: ', n)
|
||||
this.$emit('update:info', this.list)
|
||||
this.$forceUpdate()
|
||||
}
|
||||
@ -256,7 +255,7 @@ export default {
|
||||
list: {
|
||||
deep: true,
|
||||
handler (n, o) {
|
||||
this.handleIsEmit(n)
|
||||
this.handleIsEmit(JSON.parse(JSON.stringify(n)))
|
||||
}
|
||||
},
|
||||
itemInfo: {
|
||||
|
||||
@ -209,6 +209,7 @@ export default {
|
||||
apiInitiateAssessmentInfo(para).then(res => {
|
||||
this.dialogSendVisible = false
|
||||
if (res.code !== 200) {
|
||||
this.$message.error(res.msg)
|
||||
return
|
||||
}
|
||||
this.$router.push({ name: 'assessment-stepList', query: { id: res.data.id, name: 'assessment-homeList' } })
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user