Commit a5dcb94c authored by 张锡奇's avatar 张锡奇

upload

parent 64ec0f9b
import healthApi from './healthApi';
const methodMap = { const methodMap = {
/** /**
* 产品颜色销售排行TOP50 * 产品颜色销售排行TOP50
...@@ -81,4 +82,4 @@ const methodMap = { ...@@ -81,4 +82,4 @@ const methodMap = {
getTipProcurementProgress:{url:"/pbcontracthdr/",method:"post",host:"default"}, getTipProcurementProgress:{url:"/pbcontracthdr/",method:"post",host:"default"},
}; };
export default methodMap; export default Object.assign(methodMap,healthApi);
module.exports = {
getStatisticalDetails:{url:"/healthlog/",method:"post",host:"health"},
}
\ No newline at end of file
...@@ -27,6 +27,11 @@ function urlFun(name){ ...@@ -27,6 +27,11 @@ function urlFun(name){
*/ */
// inside:`http://192.168.4.39:5003`, // inside:`http://192.168.4.39:5003`,
inside:`https://weixin.huansi.net/apiproxy/huansi/ERP`, inside:`https://weixin.huansi.net/apiproxy/huansi/ERP`,
/**
* 健康打卡统计
*/
health:`http://47.97.206.38:23253`
} }
return url[name] return url[name]
} }
......
...@@ -26,6 +26,22 @@ module.exports = [ ...@@ -26,6 +26,22 @@ module.exports = [
meta:{ meta:{
title: '员工健康' title: '员工健康'
} }
},
{
path:'statistics/chart',
name:'healthCardStatisticsChart',
component:()=> import('@/view/healthCard/statistics/chart.vue'),
meta:{
title: '员工健康'
}
},
{
path:'statistics/list',
name:'healthCardStatisticsList',
component:()=> import('@/view/healthCard/statistics/list.vue'),
meta:{
title: '员工健康'
}
} }
] ]
} }
......
This diff is collapsed.
<style lang="less" > <style lang="less" >
@import url('../../../styles/common.less'); @import url('../../../styles/common.less');
#healthCardStatisticsIndex{ #healthCardStatisticsIndex{
background: #f6f5f9; background: white;
height:100%; height:100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
.items{
// flex-grow:1;
// height:1px;
margin:15px 15px 0 15px;
.HEAD{
border-top-left-radius: 6px;
border-top-right-radius: 6px;
background: #6b9bf7;
height:60px;
display: flex;
align-items: center;
padding:0 10px;
.left{
flex:1;
color:white;
font-size:18px;
font-weight: bold;
}
.right{
flex:1;
text-align: right;
display:flex;
flex-wrap: wrap;
div{
width:100%;
color:white;
}
.month{
font-size:14px;
}
.day{
font-size:18px;
font-weight: bold;
}
}
}
.CONTENT{
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
border:2px solid #6b9bf7;
border-top:0;
padding:10px;
display: flex;
justify-content: center;
align-items: center;
.left,.right,.center{
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
flex:1;
.n{
width:100%;
color:#527cd9;
font-weight: bold;
font-size:20px;
text-align: center;
}
.t{
width:100%;
font-size:14px;
text-align: center;
}
}
}
}
.items:last-child{
margin-bottom:15px;
}
} }
</style> </style>
<template> <template>
<div id="healthCardStatisticsIndex"> <div id="healthCardStatisticsIndex">
<div class="items" v-for="(item,index) in list" :key="index">
<div class="HEAD">
<div class="left">
<span>{{item.iAllJoin}}/{{item.iAll}}</span>
</div>
<div class="right">
<div class="day">{{item.iDay}}</div>
<div class="month">{{item.sMonth}}</div>
</div>
</div>
<div class="CONTENT">
<div class="left">
<div class="n">{{item.iAll}}</div>
<div class="t">应参与人员</div>
</div>
<div class="center">
<div class="n">{{item.iAllJoin}}</div>
<div class="t">已参与人员</div>
</div>
<div class="right">
<div class="n">{{item.iAllNotJoin}}</div>
<div class="t">未参与人员</div>
</div>
</div>
</div>
</div> </div>
</template> </template>
...@@ -23,7 +115,7 @@ export default { ...@@ -23,7 +115,7 @@ export default {
name: 'healthCardStatisticsIndex', name: 'healthCardStatisticsIndex',
data () { data () {
return { return {
list:[]
} }
}, },
components:{ components:{
...@@ -39,9 +131,21 @@ export default { ...@@ -39,9 +131,21 @@ export default {
}, },
async activated(){ async activated(){
window.d = this; window.d = this;
await this.getData();
}, },
methods:{ methods:{
async getData(){
let res = await this.request('getStatisticalDetails',{
data:[
{key:'url',value:'statistical_details'},
{key:'openid',value:'3'}
],
params:{},
},'加载中',{});
if(res && res.length > 0) {
this.list = res;
}
}
} }
} }
</script> </script>
\ No newline at end of file
<style lang="less" >
@import url('../../../styles/common.less');
#healthCardStatisticsList{
background: #f6f5f9;
height:100%;
display: flex;
flex-direction: column;
.CONTENT{
flex-grow: 1;
height:1px;
display: flex;
flex-direction: column;
.activeTab2{
flex-grow: 1;
height:1px;
background: white;
overflow: auto;
-webkit-overflow-scrolling: touch;
.items{
display: flex;
height:60px;
align-items: center;
margin:10px;
.avatar{
height:50px;
width:50px;
border-radius: 50%;
background: #3a8af7;
display: flex;
justify-content: center;
align-items: center;
color:white;
font-size:22px;
margin-right:10px;
}
.item{
flex:1;
height:60px;
border-bottom:1px solid #f6f6f6;
box-sizing: border-box;
display: flex;
align-items: center;
.name{
font-size:14px;
}
>div{
flex:1;
}
}
}
}
}
}
</style>
<template>
<div id="healthCardStatisticsList">
<div class="CONTENT">
<tab v-model="activeTab" prevent-default @on-before-index-change="switchTabItem" bar-active-color="#4572d7" active-color="#4572d7" default-color="#8a8a8a">
<tab-item :selected="activeTab == 0">已填写(229)</tab-item>
<tab-item :selected="activeTab == 1">未填写(53)</tab-item>
</tab>
<div class="activeTab2">
<div class="items" v-for="(item,index) in [1,2,3,4,5,5,5,5,5,5,5,5,5]" :key="index">
<div class="avatar">
<img src="" alt="">
<span></span>
</div>
<div class="item">
<div class="name">张锡奇</div>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
import Util from '@/libs/util.js';
import {mapState} from 'vuex';
import { Tab, TabItem } from 'vux'
export default {
name: 'healthCardStatisticsList',
data () {
return {
activeTab:0,
}
},
components:{
Tab, TabItem
},
computed:{
...mapState({
})
},
async mounted(){
},
async activated(){
window.d = this;
},
methods:{
switchTabItem(index){
this.activeTab = index;
}
}
}
</script>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment