|
|
|
@ -96,6 +96,7 @@ export default { |
|
|
|
endDate: '', |
|
|
|
content: '', |
|
|
|
state: '', |
|
|
|
allDeptIds: '', |
|
|
|
images: [], |
|
|
|
files: [] |
|
|
|
}, |
|
|
|
@ -155,9 +156,17 @@ export default { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
changeHandle (value, selectedData) { |
|
|
|
console.log(this.$refs['name'].getCheckedNodes()[0]) |
|
|
|
this.dataForm.deptName = this.$refs['name'].getCheckedNodes()[0].label |
|
|
|
this.dataForm.deptId = this.$refs['name'].getCheckedNodes()[0].value |
|
|
|
let path = this.$refs['name'].getCheckedNodes()[0].path |
|
|
|
let allDeptIds = '' |
|
|
|
for (var i = 0; i < path.length; i++) { |
|
|
|
allDeptIds += path[i] + ',' |
|
|
|
} |
|
|
|
if (allDeptIds.length > 0) { |
|
|
|
allDeptIds = allDeptIds.substring(0, allDeptIds.length - 1) |
|
|
|
} |
|
|
|
this.dataForm.allDeptIds = allDeptIds |
|
|
|
}, |
|
|
|
init () { |
|
|
|
this.dataForm.id = this.$route.query.id |
|
|
|
|