Commit 667b7103 authored by 徐俊's avatar 徐俊

xujun

parents 57ff828c 0ec37203
......@@ -822,10 +822,8 @@ export default {
if (!!this.value) {
this.$api.project.getProjectInfoById({ id: this.value }).then(({ data = {} }) => {
if (data) {
console.log('q', data)
this.formData = data
this.loadList()
console.log('h', this.formData)
} else
this.$emit('close', 'error')
this.$emit('load', false)
......@@ -836,10 +834,8 @@ export default {
} else {
this.$api.project.getNewProject({ projType: getType() }).then(({ data = {} }) => {
if (data) {
console.log('q', data)
this.formData = data
this.loadList()
console.log('h', this.formData)
} else
this.$emit('close', 'error')
this.$emit('load', false)
......@@ -850,7 +846,6 @@ export default {
}
},
loadList () {
if (!!!this.formData.projectResearchList || this.formData.projectResearchList.length == 0)
this.formData.projectResearchList = [{ ...ProjResearch }]
if (!!!this.formData.managementRuleList || this.formData.managementRuleList.length == 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment