Commit d0107cf5 authored by Mac's avatar Mac

1

parent 4e634069
...@@ -157,6 +157,46 @@ export function calculateDuration(data) { ...@@ -157,6 +157,46 @@ export function calculateDuration(data) {
data data
}); });
} }
/**
*考勤管理
*/
export function getAttendancePageList(data) {
return request({
url: '/usercenter/GetAttendancePageList',
method: 'post',
data
});
}
/**
*校区的岗位
*/
export function getDepartmentGetList(data) {
return request({
url: '/usercenter/GetDepartmentGetList',
method: 'post',
data
});
}
/**
*获取当前校区的考勤
*/
export function getAttendanceInfo(data) {
return request({
url: '/usercenter/GetAttendanceInfo',
method: 'post',
data
});
}
/**
*设置当前校区的考勤
*/
export function setAttendanceInfo(data) {
return request({
url: '/usercenter/SetAttendanceInfo',
method: 'post',
data
});
}
......
<template> <template>
<div class="flexOne"> <div class="flexOne">
<div class="query-box"> <div class="page-search row items-center">
<ul> <div class="col row wrap q-mr-lg q-col-gutter-md">
<li> <div class="col-3">
<span><em>{{$t('system.table_company')}}</em> <q-select filled stack-label @input="resetSearch()" option-value="SId"
<el-select filterable v-model='msg.RB_BranchId' :placeholder="$t('pub.unlimitedSel')"> option-label="SName" v-model="msg.RB_BranchId" ref="School_Id" :options="schoolList" label="所属校区"
<el-option :label="$t('pub.unlimitedSel')" value='-1'></el-option> :dense="false" emit-value map-options />
<el-option v-for='item in companyList' </div>
:label='item.BName'
:value='item.Id'
:key='item.Id'>
</el-option>
</el-select>
</span>
</li>
<!--<li>
<span><em>状态</em>
<el-select v-model="msg.Status" placeholder="请选项">
<el-option :label="$t('pub.unlimitedSel')" value='-1'></el-option>
<el-option label='开启' value='0'></el-option>
<el-option label='关闭' value='1'></el-option>
</el-select>
</span>
</li>-->
<li>
<input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" @click="resetPageIndex(),getList()" />
<!--<input type="button" @click="" class="normalBtn" :value="$t('pub.addBtn')" @click="$router.push('AttendanceRules')"/> -->
</li>
</ul>
</div> </div>
</div>
<table class="singeRowTable" border="0" cellspacing="0" cellpadding="0" v-loading='loading'> <table class="singeRowTable" border="0" cellspacing="0" cellpadding="0" v-loading='loading'>
<tr> <tr>
<th width="400">{{$t('admin.admin_company')}}</th> <th width="400">{{$t('admin.admin_company')}}</th>
...@@ -64,6 +44,12 @@ ...@@ -64,6 +44,12 @@
</template> </template>
<script> <script>
import {
getSchoolDropdown,
} from '../../api/school/index'
import {
getAttendancePageList
} from '../../api/administration/administration'
export default{ export default{
data() { data() {
...@@ -87,35 +73,44 @@ ...@@ -87,35 +73,44 @@
}, },
//返回数据 //返回数据
dataList:[], dataList:[],
companyList:[] schoolList: [], //校区数组
} }
}, },
methods:{ methods:{
getList(){ getList(){
this.loading=true; this.loading=true;
this.apipost('User_get_AttendanceGetPageList',this.msg,res=>{ getAttendancePageList(this.msg).then(res => {
if(res.data.resultCode==1){ if(res.Code ==1){
this.loading=false;
this.dataList=res.Data.PageData;
this.total = res.Data.Count;
}else {
this.loading=false; this.loading=false;
this.dataList=res.data.data.pageData; }
this.total = res.data.data.count; })
}else{}
},err=>{})
}, },
getCompany(){ //公司 getCompany(){ //公司
this.apipost('admin_get_BranchGetList', this.companyMsg, res => { getSchoolDropdown({}).then(res => {
this.companyList = res.data.data; this.schoolList = res.Data;
}, err => {}) var obj = {
SName: '全部',
SId: '-1'
}
this.schoolList.unshift(obj);
})
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.msg.pageIndex = val; this.msg.pageIndex = val;
this.getList(); this.getList();
}, },
resetPageIndex() { resetSearch() {
this.msg.pageIndex = 1; this.msg.pageIndex = 1;
this.currentPage=1 this.currentPage=1;
this.getList();
}, },
goUrl (path,id,bId) { goUrl (path,id,bId) {
this.$router.push({ name: path,query:{"id":id,"bId":bId} }) this.$router.push({ path: path,query:{"id":id,"bId":bId} })
} }
}, },
mounted() { mounted() {
...@@ -129,6 +124,8 @@ ...@@ -129,6 +124,8 @@
</script> </script>
<style> <style>
@import "../financial/css/cssReset.css";
.singeRowTable th{text-align: left; padding-left: 10px;} .singeRowTable th{text-align: left; padding-left: 10px;}
.singeRowTable td{text-align: left;padding-left: 10px} .singeRowTable td{text-align: left;padding-left: 10px}
</style> </style>
This diff is collapsed.
...@@ -2296,6 +2296,7 @@ ...@@ -2296,6 +2296,7 @@
this.AuditOrRefundMsg.TemplateType=this.GetDetail.TemplateType this.AuditOrRefundMsg.TemplateType=this.GetDetail.TemplateType
this.AuditOrRefundMsg.Image=JSON.stringify(imgArr); this.AuditOrRefundMsg.Image=JSON.stringify(imgArr);
this.AuditOrRefundMsg.emList = this.chosenPeople; this.AuditOrRefundMsg.emList = this.chosenPeople;
this.AuditOrRefundMsg.emStrList = this.chosenPeople;
// this.GetDetail.AuditSteps.forEach(x=>{ // this.GetDetail.AuditSteps.forEach(x=>{
// if(x.SpecialNode === 1 && x.AuditWay === 3) { // if(x.SpecialNode === 1 && x.AuditWay === 3) {
// if (this.GetDetail.CashierDetail.length>0) { // if (this.GetDetail.CashierDetail.length>0) {
......
...@@ -395,6 +395,11 @@ const routes = [{ ...@@ -395,6 +395,11 @@ const routes = [{
component: () => component: () =>
import("pages/administration/Attendance.vue") import("pages/administration/Attendance.vue")
}, },
{
path: "/administration/AttendanceRules", //考勤设置
component: () =>
import("pages/administration/AttendanceRules.vue")
},
{ {
path: "/sale/japaneseTrain", //日语培训列表 path: "/sale/japaneseTrain", //日语培训列表
component: () => component: () =>
......
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