| | |
| | | totalItems: null, |
| | | showData_: null, |
| | | form_objs: null, |
| | | parttimeLists: null, |
| | | |
| | | options_leadUserId: [], |
| | | options_objectives: [ |
| | |
| | | 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() { |
| | |
| | | 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; |
| | |
| | | // 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_ == "") { |
| | |
| | | } |
| | | |
| | | form_obj.parttimeUser = parttimeUser_; |
| | | } |
| | | } */ |
| | | |
| | | //form_obj.parttimeList = this.parttimeLists[itm_k]; |
| | | |
| | | if (form_obj.userIds) { |
| | | let leng = form_obj.userIds.length; |
| | |
| | | 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 =>{ |