zhangyanpeng
2020-05-07 dca74c76b85c5ece7b87beae9d9f921883b55564
src/components/popup/newProject.vue
@@ -134,6 +134,7 @@
         totalItems: null,
         showData_: null,
         form_objs: null,
         parttimeLists: null,
         
         options_leadUserId: [],
         options_objectives: [
@@ -215,8 +216,11 @@
      this.ruleForm = this.rowData;
   }
   
   this.userId = localStorage.getItem('userId');
   this.assign = localStorage.getItem('assign');
   //this.userId = localStorage.getItem('userId');
   //this.assign = localStorage.getItem('assign');
   this.userId = this.$cookies.get('userId');
   this.assign = this.$cookies.get('assign');
},
  methods:{
      getUsers() {
@@ -369,6 +373,7 @@
      saveStep2() {
         this.showData_ = this.$refs.substep_zj.showData;
         this.form_objs = this.$refs.substep_zj.form_;
         this.parttimeLists = this.$refs.substep_zj.parttimeList_;
         
         let form_array = [];
         let is_null1 = true;
@@ -400,7 +405,11 @@
            //   form_obj.endTime = new Date(form_obj.endTime).Format("yyyy-MM-dd").toLocaleString();
            }
            
            if (form_obj.parttimeUser && form_obj.parttimeUser.length>0) {
            if (form_obj.createTime) {
               form_obj.createTime = this.$moment(form_obj.createTime).format('YYYY-MM-DD');
            }
            /* if (form_obj.parttimeUser && form_obj.parttimeUser.length>0) {
               let parttimeUser_ = "";
               for (let i = 0; i<form_obj.parttimeUser.length; i++) {
                  if (parttimeUser_ == "") {
@@ -412,7 +421,9 @@
               }
               
               form_obj.parttimeUser = parttimeUser_;
            }
            } */
            //form_obj.parttimeList = this.parttimeLists[itm_k];
            
            if (form_obj.userIds) {
               let leng = form_obj.userIds.length;
@@ -431,7 +442,7 @@
            let datas = "?datas=" + encodeURI(JSON.stringify(form_array));
            let url = "/api/detail/updates";
            this.$axios.get(url + datas).then(data_ => {
               window.console.log(data_);
               this.add_Step = 2;
               this.nextStepName = "完 成";
            }).catch(error =>{