|
@@ -213,6 +213,7 @@ export default {
|
|
|
reset() {
|
|
|
this.form = {
|
|
|
id: undefined,
|
|
|
+ parentId: undefined,
|
|
|
projectName: undefined,
|
|
|
categoryId: undefined,
|
|
|
description: undefined,
|
|
@@ -229,7 +230,7 @@ export default {
|
|
|
}
|
|
|
return {
|
|
|
id: node.id,
|
|
|
- label: node.projectName,
|
|
|
+ label: node.name || node.projectName,
|
|
|
children: node.children
|
|
|
};
|
|
|
},
|
|
@@ -276,7 +277,7 @@ export default {
|
|
|
let arr = []
|
|
|
if (row.parentId != '0') {
|
|
|
arr.push(getProjectTree().then(response => {
|
|
|
- this.projectData = response.data
|
|
|
+ this.projectOptions = response.data
|
|
|
}))
|
|
|
}
|
|
|
arr.push(getDeptUserTree('1').then(res => {
|
|
@@ -284,7 +285,6 @@ export default {
|
|
|
}))
|
|
|
arr.push(getProject(row.id).then(res => {
|
|
|
this.form = res.data;
|
|
|
- this.form.id = this.form.id
|
|
|
this.open = true;
|
|
|
this.title = "修改项目";
|
|
|
}))
|