Commit ddfe9f9e authored by wangxl's avatar wangxl

33

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