zhangyanpeng
2020-01-22 c6f32fce5f7abedb7e63e474e5c10463cca439d3
修改
1个文件已修改
39 ■■■■ 已修改文件
src/components/popup/newProject.vue 39 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/popup/newProject.vue
@@ -35,8 +35,8 @@
                            </el-date-picker>
                      </el-form-item>
                        
                      <el-form-item label="项目描述:" prop="desc" style="width: 50%;">
                        <el-input type="textarea" v-model="ruleForm.desc"></el-input>
                      <el-form-item label="项目描述:" prop="desp" style="width: 50%;">
                        <el-input type="textarea" v-model="ruleForm.desp"></el-input>
                      </el-form-item>
                    </el-form>
        </div>
@@ -63,6 +63,12 @@
import substepReadOnly from './portion/substepReadOnly.vue'
export default {
  name: 'dataImport',
  props:{
      rowData:{
          type: Object,
          required: true
      }
  },
    components: {
      substep,
        substepReadOnly
@@ -125,7 +131,12 @@
            
        }
  },
mounted() {
    if(this.rowData.id) {
        this.ruleForm = this.rowData;
        this.xmId = this.rowData.id;
    }
},
  methods:{
        Cancel() {
            this.add_Step = 0;
@@ -171,7 +182,7 @@
            //    this.nextStepName = "完 成";
            }
            else if (this.add_Step == 2) {
                this.Cancel();
                this.saveStep3();
            }
        },
        
@@ -189,7 +200,8 @@
                name: ruleForm_.name,
                    startTime: items1,
                    endTime: items2,
                    id: this.xmId
                    id: this.xmId,
                    desp:ruleForm_.desp
              }
            }).then(data_ => {
              console.log(data_);
@@ -243,7 +255,7 @@
            
            if (is_null1) {
                let datas = "?datas=" + encodeURI(JSON.stringify(form_array));
                let url = "/api/schemeDetail/updates";
                let url = "/api/detail/updates";
                this.$axios.get(url + datas).then(data_ => {
                    console.log(data_);
                    
@@ -254,7 +266,20 @@
                })
            }
        },
        saveStep3() {
            let url = "/api/scheme/working/" + this.ruleForm.id;
            this.$axios.get(url + datas).then(data_ => {
                if(data_.data.success) {
                    this.$message('项目启动成功');
                    this.Cancel();
                }else {
                    this.$message({message:'项目启动失败', type: 'warning'});
                }
            }).catch(error =>{
                    console.log(error);
            })
        },
  }
}
</script>