浏览代码

去掉服务端没有做的功能,修改添加用户

eraser 4 年之前
父节点
当前提交
5b3a90bef9
共有 3 个文件被更改,包括 111 次插入37 次删除
  1. 1 1
      components/manager/assets.vue
  2. 2 2
      components/manager/project.vue
  3. 108 34
      components/manager/user.vue

+ 1 - 1
components/manager/assets.vue

@@ -1,7 +1,7 @@
 <template>
 	<view class="m_right">
 		<view class="m_right_hander">
-			<button size="mini" class="m_btn_red" @click="addZc()">添加资产</button>
+			<!-- <button size="mini" class="m_btn_red" @click="addZc()">添加资产</button> -->
 		</view>
 		<view class="m_right_container">
 			<table style="width: 100%;border: 1px solid #DDDDDD;border-collapse: collapse">

+ 2 - 2
components/manager/project.vue

@@ -15,7 +15,7 @@
 						<th>项目创建时间</th>
 						<th>项目描述</th>
 						<!-- <th>项目推荐</th> -->
-						<th>上线</th>
+						<!-- <th>上线</th> -->
 						<th>删除</th>
 					</tr>
 				</thead>
@@ -29,7 +29,7 @@
 						<th>{{dataUser.CreateTime}}</th>
 						<th>{{dataUser.Type}}</th>
 						<!-- <th>{{dataUser.ProjectName}}</th> -->
-						<th style="position: relative;"><button type="default" size="mini" class="m_online" @click="onlineProject(dataUser)">上线</button></th>
+						<!-- <th style="position: relative;"><button type="default" size="mini" class="m_online" @click="onlineProject(dataUser)">上线</button></th> -->
 						<th style="position: relative;"><button type="default" size="mini" class="m_delete" @click="deleteProject(dataUser)">删除</button></th>
 					</tr>
 					

+ 108 - 34
components/manager/user.vue

@@ -180,26 +180,24 @@
 						"Users":[
 							{
 								"IlabAccount":content_arr[0].input,
-								"UserID" : content_arr[1].input,        
-								"SetUserID":content_arr[2].input,        
-								"Name":content_arr[3].input,              
-								"School":content_arr[4].input,       
-								"Department":content_arr[5].input,  
-								"Profession":content_arr[6].input,    
-								"Class":content_arr[7].input,          
-								"StudentID":Number(content_arr[8].input),       
-								"Post":content_arr[9].input,            
-								"PhoneNum":Number(content_arr[10].input),
-								"Email":content_arr[11].input,
-								"Nation":content_arr[12].input,             
-								"PoliticsStatus":content_arr[13].input, 
-								"NativePlace":content_arr[14].input,   
-								"Certificate":content_arr[15].input,
-								"CertificateNum":content_arr[16].input
+								"Name":content_arr[1].input, 
+								"School":content_arr[2].input,
+								"Department":content_arr[3].input,  
+								"Profession":content_arr[4].input,    
+								"Class":content_arr[5].input,          
+								"StudentID":Number(content_arr[6].input),       
+								"Post":content_arr[7].input,            
+								"PhoneNum":Number(content_arr[8].input),
+								"Email":content_arr[9].input,
+								"Nation":content_arr[10].input,             
+								"PoliticsStatus":content_arr[11].input, 
+								"NativePlace":content_arr[12].input,   
+								"Certificate":content_arr[13].input,
+								"CertificateNum":content_arr[14].input,        
 							}
 						]					
 					}
-					// console.log('data===',data)
+					console.log('添加用户data===',data)
 					
 					uni.showLoading({
 					    title: '上传中'  
@@ -231,23 +229,12 @@
 						}
 					});
 				};
-				
 				this.$refs.popForm.setContent([
 					{
 						'name':'Ilab账号',
 						'input':'',
 						'type' :'text'
 					},
-					{
-						'name':'设置用户',
-						'input':mydata_userInfo.userID,
-						'type' :'text'
-					},
-					{
-						'name':'被设置用户ID',
-						'input':'',
-						'type' :'text'
-					},
 					{
 						'name':'姓名',
 						'input':'',
@@ -278,11 +265,6 @@
 						'input':'',
 						'type' :'text'
 					},
-					{
-						'name':'Post',
-						'input':'',
-						'type' :'text'
-					},
 					{
 						'name':'职务',
 						'input':'',
@@ -323,7 +305,99 @@
 						'input':'',
 						'type' :'text'
 					}
-				],callback);	
+				],callback);
+				// this.$refs.popForm.setContent([
+				// 	{
+				// 		'name':'Ilab账号',
+				// 		'input':'',
+				// 		'type' :'text'
+				// 	},
+				// 	{
+				// 		'name':'设置用户',
+				// 		'input':mydata_userInfo.userID,
+				// 		'type' :'text'
+				// 	},
+				// 	{
+				// 		'name':'被设置用户ID',
+				// 		'input':'',
+				// 		'type' :'text'
+				// 	},
+				// 	{
+				// 		'name':'姓名',
+				// 		'input':'',
+				// 		'type' :'text'
+				// 	},
+				// 	{
+				// 		'name':'学校',
+				// 		'input':'',
+				// 		'type' :'text'
+				// 	},
+				// 	{
+				// 		'name':'院系',
+				// 		'input':'',
+				// 		'type' :'text'
+				// 	},
+				// 	{
+				// 		'name':'专业',
+				// 		'input':'',
+				// 		'type' :'text'
+				// 	},
+				// 	{
+				// 		'name':'班级',
+				// 		'input':'',
+				// 		'type' :'text'
+				// 	},
+				// 	{
+				// 		'name':'学号',
+				// 		'input':'',
+				// 		'type' :'text'
+				// 	},
+				// 	{
+				// 		'name':'Post',
+				// 		'input':'',
+				// 		'type' :'text'
+				// 	},
+				// 	{
+				// 		'name':'职务',
+				// 		'input':'',
+				// 		'type' :'text'
+				// 	},
+				// 	{
+				// 		'name':'电话',
+				// 		'input':'',
+				// 		'type' :'text'
+				// 	},
+				// 	{
+				// 		'name':'邮箱',
+				// 		'input':'',
+				// 		'type' :'text'
+				// 	},
+				// 	{
+				// 		'name':'民族',
+				// 		'input':'',
+				// 		'type' :'text'
+				// 	},
+				// 	{
+				// 		'name':'政治面貌',
+				// 		'input':'',
+				// 		'type' :'text'
+				// 	},
+				// 	{
+				// 		'name':'籍贯',
+				// 		'input':'',
+				// 		'type' :'text'
+				// 	},
+				// 	{
+				// 		'name':'证件类型',
+				// 		'input':'',
+				// 		'type' :'text'
+				// 	},
+				// 	{
+				// 		'name':'证件号码',
+				// 		'input':'',
+				// 		'type' :'text'
+				// 	}
+				// ],callback);	
 			},
 			modify(dataUser)
 			{