Commit 2e35d8b2 authored by wangxl's avatar wangxl

33

parent 70cb94c7
...@@ -780,10 +780,8 @@ export default { ...@@ -780,10 +780,8 @@ export default {
if (!!this.value) { if (!!this.value) {
this.$api.project.getProjectInfoById({ id: this.value }).then(({ data = {} }) => { this.$api.project.getProjectInfoById({ id: this.value }).then(({ data = {} }) => {
if (data) { if (data) {
console.log('q', data)
this.formData = data this.formData = data
this.loadList() this.loadList()
console.log('h', this.formData)
} else } else
this.$emit('close', 'error') this.$emit('close', 'error')
this.$emit('load', false) this.$emit('load', false)
...@@ -794,10 +792,8 @@ export default { ...@@ -794,10 +792,8 @@ export default {
} else { } else {
this.$api.project.getNewProject({ projType: getType() }).then(({ data = {} }) => { this.$api.project.getNewProject({ projType: getType() }).then(({ data = {} }) => {
if (data) { if (data) {
console.log('q', data)
this.formData = data this.formData = data
this.loadList() this.loadList()
console.log('h', this.formData)
} else } else
this.$emit('close', 'error') this.$emit('close', 'error')
this.$emit('load', false) this.$emit('load', false)
...@@ -808,7 +804,6 @@ export default { ...@@ -808,7 +804,6 @@ export default {
} }
}, },
loadList () { loadList () {
if (!!!this.formData.projectResearchList || this.formData.projectResearchList.length == 0) if (!!!this.formData.projectResearchList || this.formData.projectResearchList.length == 0)
this.formData.projectResearchList = [{ ...ProjResearch }] this.formData.projectResearchList = [{ ...ProjResearch }]
if (!!!this.formData.managementRuleList || this.formData.managementRuleList.length == 0) if (!!!this.formData.managementRuleList || this.formData.managementRuleList.length == 0)
...@@ -830,7 +825,6 @@ export default { ...@@ -830,7 +825,6 @@ export default {
} }
}, },
save () { save () {
console.log(this.formData)
if (this.checkProjName()) { if (this.checkProjName()) {
this.$emit('load', true) this.$emit('load', true)
let pars = isEmptyParams(this.formData) let pars = isEmptyParams(this.formData)
......
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