-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
468 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import fetch from '@/utils/fetch' | ||
|
||
export function GetAttenListToday(){ | ||
return fetch({ | ||
url: '/Attendance/PullPersonAttenListWithToday', | ||
method: 'post' | ||
}) | ||
} | ||
|
||
export function DeleteAtten(ID){ | ||
return fetch({ | ||
url: '/Attendance/DelAtten', | ||
method: 'post', | ||
params:{ID} | ||
}) | ||
} | ||
|
||
export function AttenDetailByPerson(ID){ | ||
return fetch({ | ||
url: '/Attendance/PullAttenDetailByPerson', | ||
method: 'post', | ||
params:{ID} | ||
}) | ||
} | ||
|
||
export function SaveNewAtten(data){ | ||
return fetch({ | ||
url: '/Attendance/SaveNewAtten', | ||
method: 'post', | ||
data | ||
}) | ||
} | ||
|
||
export function UpdateAtten(data){ | ||
return fetch({ | ||
url: '/Attendance/UpdateAtten', | ||
method: 'post', | ||
data | ||
}) | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import fetch from '@/utils/fetch' | ||
export function GetUsers(){ | ||
return fetch({ | ||
url: '/Person/pulluserlist', | ||
method: 'post' | ||
}) | ||
} | ||
|
||
export function DeleteUser(ID){ | ||
return fetch({ | ||
url: '/Person/DelUser', | ||
method: 'post', | ||
params:{ID} | ||
}) | ||
} | ||
|
||
export function GetUsersDetail(ID){ | ||
return fetch({ | ||
url: '/Person/PullUsersDetail', | ||
method: 'post', | ||
params:{ID} | ||
}) | ||
} | ||
|
||
export function SaveNewUsers(data){ | ||
return fetch({ | ||
url: '/Person/SaveNewUsers', | ||
method: 'post', | ||
data | ||
}) | ||
} | ||
|
||
export function UpdateUsers(data){ | ||
return fetch({ | ||
url: '/Person/UpdateUsers', | ||
method: 'post', | ||
data | ||
}) | ||
} | ||
|
||
|
||
export function ChangePassword(data){ | ||
return fetch({ | ||
url: '/Person/ChangePassword', | ||
method: 'post', | ||
data | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<template> | ||
<div> | ||
<el-tabs type="border-card"> | ||
<el-tab-pane> | ||
<span slot="label"> | ||
<i class="el-icon-date"></i> 月报</span> | ||
<el-tabs :tab-position="tabPosition" style="height: 200px;"> | ||
<el-tab-pane label="个人月报"> | ||
<div class="charts"> | ||
<div id="myChart" :style="{width:'300px',height:'300px'}"></div> | ||
</div> | ||
</el-tab-pane> | ||
<el-tab-pane label="部门月报"></el-tab-pane> | ||
|
||
</el-tabs> | ||
</el-tab-pane> | ||
<el-tab-pane> | ||
<span slot="label"> | ||
<i class="el-icon-date"></i> 年报</span> | ||
<el-tabs :tab-position="tabPosition" style="height: 200px;"> | ||
<el-tab-pane label="个人年报"></el-tab-pane> | ||
<el-tab-pane label="部门年报"></el-tab-pane> | ||
|
||
</el-tabs> | ||
</el-tab-pane> | ||
|
||
</el-tabs> | ||
</div> | ||
</template> | ||
<script> | ||
// 引入 ECharts 主模块 | ||
let echarts = require('echarts/lib/echarts') | ||
// 引入柱状图 | ||
require('echarts/lib/chart/bar') | ||
// 引入提示框和标题组件 | ||
require('echarts/lib/component/tooltip') | ||
require('echarts/lib/component/title') | ||
export default { | ||
data() { | ||
return { | ||
tabPosition: 'top' | ||
}; | ||
}, | ||
mounted() { | ||
this.initCharts(); | ||
}, | ||
methods: { | ||
initCharts() { | ||
this.chart = echarts.init(this.$el); | ||
this.setOptions(); | ||
}, | ||
setOptions() { | ||
this.chart.setOption({ | ||
title: { | ||
text: 'ECharts 入门示例' | ||
}, | ||
tooltip: {}, | ||
xAxis: { | ||
data: ["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"] | ||
}, | ||
yAxis: {}, | ||
series: [{ | ||
name: '销量', | ||
type: 'bar', | ||
data: [5, 20, 36, 10, 10, 20] | ||
}] | ||
}) | ||
} | ||
} | ||
}; | ||
</script> | ||
<style lang="scss" scoped> | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<template> | ||
<div class="app-container"> | ||
123 | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data() { | ||
return { | ||
} | ||
}, | ||
computed: { | ||
message() { | ||
return '特朗普说这个页面你不能进......' | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style rel="stylesheet/scss" lang="scss" scoped> | ||
</style> |
Oops, something went wrong.