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