Commit ddfe9f9e authored by wangxl's avatar wangxl

33

parent c7a3c33b
...@@ -774,9 +774,9 @@ export default { ...@@ -774,9 +774,9 @@ export default {
methods: { methods: {
moment, moment,
save (step) { save (step) {
console.log(obj,'obj1') console.log(obj, 'obj1')
var obj = this.getObj(step) var obj = this.getObj(step)
console.log(obj,'obj') console.log(obj, 'obj')
obj.step = step obj.step = step
if (this.checkInfo(step)) { if (this.checkInfo(step)) {
this.$emit('load', true) this.$emit('load', true)
...@@ -799,6 +799,9 @@ export default { ...@@ -799,6 +799,9 @@ export default {
this.$refs.form.validate(valid => { this.$refs.form.validate(valid => {
if (valid) { if (valid) {
this.$emit('load', true) this.$emit('load', true)
var arr = this.completeStatus.split(',');
arr[step] = "1";
this.formData.completeStatus = arr.toString()
var obj = this.getObj(step) var obj = this.getObj(step)
obj.step = step obj.step = step
let state = obj.projState let state = obj.projState
...@@ -811,9 +814,6 @@ export default { ...@@ -811,9 +814,6 @@ export default {
this.formData.id = data this.formData.id = data
if (next) { if (next) {
this.$emit('close', 'save') this.$emit('close', 'save')
var arr = this.completeStatus.split(',');
arr[step] = "1";
this.formData.completeStatus = arr.toString()
this.$emit('onStepChange', { step: step + 1, state: arr.toString() }) this.$emit('onStepChange', { step: step + 1, state: arr.toString() })
} else { } else {
this.$message.success('成功!') this.$message.success('成功!')
......
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