From dca74c76b85c5ece7b87beae9d9f921883b55564 Mon Sep 17 00:00:00 2001
From: zhangyanpeng <bob.zhang@highdatas.com>
Date: 星期四, 07 五月 2020 14:45:39 +0800
Subject: [PATCH] 调整cookies

---
 src/components/popup/newProject.vue |   21 ++++++++++++++++-----
 1 files changed, 16 insertions(+), 5 deletions(-)

diff --git a/src/components/popup/newProject.vue b/src/components/popup/newProject.vue
index 4ba4b18..b365483 100644
--- a/src/components/popup/newProject.vue
+++ b/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 =>{

--
Gitblit v1.8.0