Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
01e18cd9
Commit
01e18cd9
authored
Dec 22, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/confucius
parents
e324ed6a
d0107cf5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1193 additions
and
41 deletions
+1193
-41
administration.js
src/api/administration/administration.js
+40
-0
Attendance.vue
src/pages/administration/Attendance.vue
+38
-41
AttendanceRules.vue
src/pages/administration/AttendanceRules.vue
+1109
-0
BasicDocuments.vue
src/pages/financial/financalDocument/BasicDocuments.vue
+1
-0
routes.js
src/router/routes.js
+5
-0
No files found.
src/api/administration/administration.js
View file @
01e18cd9
...
@@ -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
});
}
...
...
src/pages/administration/Attendance.vue
View file @
01e18cd9
<
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
();
},
},
reset
PageIndex
()
{
reset
Search
()
{
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
>
src/pages/administration/AttendanceRules.vue
0 → 100644
View file @
01e18cd9
This diff is collapsed.
Click to expand it.
src/pages/financial/financalDocument/BasicDocuments.vue
View file @
01e18cd9
...
@@ -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) {
...
...
src/router/routes.js
View file @
01e18cd9
...
@@ -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
:
()
=>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment