瀏覽代碼

测试调整

zhengkaixin 4 年之前
父節點
當前提交
bb6fe89f06

+ 1 - 1
src/projects/business/apis/Master/attendance.js

@@ -10,7 +10,7 @@ import Qs from 'qs';
 
 //获取考勤记录
 export function pageList(params) {
-	return request({
+	return request2({
 		url: '/mobile/workAttendance/pageList',
 		data: Qs.stringify(params),
 		method: 'post',

+ 11 - 5
src/projects/business/views/Master/Attendance/Statistic.vue

@@ -33,9 +33,9 @@
 			
 			 <ul class="mui-table-view"> 
 					
-			        <li class="mui-table-view-cell mui-collapse"  v-for="(it,index) in recordList"  >
+			        <li class="mui-table-view-cell mui-collapse"  v-for="(it,index) in recordList"  v-if="it.list.length" >
 			            <a class="mui-navigate-right" href="#">{{it.name}}
-						<span style="float: right;  margin-right: 20px; color: rgba(136, 136, 136, 100); ">{{it.list.length}}</span></a>
+						<span style="float: right;  margin-right: 20px; color: rgba(136, 136, 136, 100); ">{{it.list.length}}</span></a>
 			            <div class="mui-content-padded vongi-work">
 			               
 							<ul class="mui-table-view">
@@ -160,10 +160,16 @@
 				}
 				this.recordList=[];
 				API_Attendance.statistics(obj).then(response => {
-					
-					//this.recordList = response.list;
-					var recordList=[]
 					var status=this.status
+					//this.recordList = response.list;
+					var recordList=[
+						{
+														 result:"1",
+														 name:status[1],
+														 list:[],
+						}
+					]
+					
 					response.list.forEach(function(item, index) {
 						var bl=true;
 						

+ 2 - 2
src/utils/request.js

@@ -19,8 +19,8 @@ if (process.env.VUE_APP_NODE_NAME == 'devlopment') {
 		// BACKEND_URL='http://192.168.33.120:8086/shinestar-server';
 		// BACKEND_URL='http://192.168.33.90:8086/shinestar-server';
 		
-		BACKEND_URL="https://ykt-test.xiaoxinda.com/shinestar-server/"
-		//BACKEND_URL='http://223.75.170.44:6060/shinestar-server';
+		//BACKEND_URL="https://ykt-test.xiaoxinda.com/shinestar-server/"
+		BACKEND_URL='http://223.75.170.44:6060/shinestar-server';
 		
 }