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
f407847f
Commit
f407847f
authored
Mar 25, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增接口
parent
c9291fa1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
74 additions
and
22 deletions
+74
-22
index.js
src/api/studyabroad/index.js
+12
-0
studyProAudit.vue
src/pages/studyAbroad/studyProAudit.vue
+62
-22
No files found.
src/api/studyabroad/index.js
View file @
f407847f
...
...
@@ -70,6 +70,18 @@ export function queryStudyAbroadPage(data) {
}
/**
* 获取留学就业审核分页列表
*/
export
function
queryStudyAbroadAuditPage
(
data
)
{
return
request
({
url
:
'/StudyAbroad/GetStudyAbroadAuditPage'
,
method
:
'post'
,
data
})
}
/**
* 获取留学就业列表
*/
...
...
src/pages/studyAbroad/studyProAudit.vue
View file @
f407847f
...
...
@@ -6,6 +6,18 @@
<q-input
@
input=
"resetSearch"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.Name"
label=
"项目名称"
@
clear=
"resetSearch"
maxlength=
"20"
/>
</div>
<div
class=
"col-3"
>
<q-select
class=
"q-pb-lg q-pr-lg"
filled
stack-label
clearable
option-value=
"Id"
option-label=
"Name"
v-model=
"msg.Type"
ref=
"Type"
:options=
"studyAbroadList"
label=
"类型"
:dense=
"false"
emit-value
map-options
@
input=
"resetSearch"
>
</q-select>
</div>
<div
class=
"col-3"
>
<q-select
class=
"q-pb-lg q-pr-lg"
filled
stack-label
option-value=
"Id"
option-label=
"Name"
v-model=
"msg.AuditState"
ref=
"AuditState"
:options=
"AuditStateList"
label=
"审核状态"
:dense=
"false"
emit-value
map-options
@
input=
"resetSearch"
>
</q-select>
</div>
</div>
</div>
<div
class=
"page-content"
>
...
...
@@ -113,8 +125,17 @@
</
template
>
<
template
v-slot:body-cell-Id=
"props"
>
<q-td
:props=
"props"
>
<q-btn
v-if=
"props.row.SaleState==2&&msg.AuditType>0"
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"审核"
@
click=
"EditStudy(props.row)"
/>
<!--部门主管审核-->
<template
v-if=
"AuditType==1"
>
<q-btn
v-if=
"props.row.SaleState==2&&props.row.DirectorStatus==0"
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"审核"
@
click=
"AuditStudy(props.row)"
/>
</
template
>
<!--部门负责人审核-->
<
template
v-if=
"AuditType==2"
>
<q-btn
v-if=
"props.row.SaleState==2&&props.row.DirectorStatus==1&&props.row.ManagerStatus==0"
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"审核"
@
click=
"AuditStudy(props.row)"
/>
</
template
>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"详情"
@
click=
"getviewInfo(props.row)"
/>
</q-td>
...
...
@@ -124,16 +145,16 @@
:input=
"true"
@
input=
"changePage"
/>
</
template
>
</q-table>
<studyproaudit-form
v-if=
"isShowStudy
"
:Id=
"
Id"
@
close=
"closeStudyForm"
@
success=
"refreshPage()"
>
<studyproaudit-form
v-if=
"isShowStudy
Audit"
:Id=
"studyObj.
Id"
@
close=
"closeStudyForm"
@
success=
"refreshPage()"
>
</studyproaudit-form>
<studyproauditinfo-form
v-if=
"isShowInfo"
:Id=
"Id"
@
close=
"closeStudyInfo"
></studyproauditinfo-form>
<studyproauditinfo-form
v-if=
"isShowInfo"
:Id=
"
studyObj.
Id"
@
close=
"closeStudyInfo"
></studyproauditinfo-form>
</div>
</div>
</template>
<
script
>
import
{
queryStudyAbroadPage
queryStudyAbroad
Audit
Page
}
from
'../../api/studyabroad/index'
import
studyproauditForm
from
'../../components/studyAbroad/studyproaudit-form'
import
studyproauditinfoForm
from
'../../components/studyAbroad/studyproauditinfo-form'
...
...
@@ -157,8 +178,7 @@
rowsPerPage
:
10
,
Name
:
""
,
IsQPrice
:
1
,
SaleState
:
2
,
//销售状态
AuditType
:
0
,
//审核类型(1-部门主管审核,2-部门负责人审核)
Type
:
""
,
//项目类型
AuditState
:
1
,
//审核状态(1-待审核,2-已审核)
},
dataList
:
[],
...
...
@@ -234,17 +254,37 @@
field
:
'Id'
}
],
//审核类型
AuditStateList
:
[{
Id
:
1
,
Name
:
"待审核"
},
{
Id
:
2
,
Name
:
"已审核"
},
],
//项目类型列表
studyAbroadList
:
[{
Id
:
1
,
Name
:
"留学"
},
{
Id
:
2
,
Name
:
"就业"
},
],
//表格可见列
visibleColumns
:
[
'Name'
,
'Type'
,
'SuggestPrice'
,
'SellPrice'
,
"PreferentialList"
,
"PreferentialListSellCommission"
,
'Name'
,
'Type'
,
'SuggestPrice'
,
'SellPrice'
,
"PreferentialList"
,
"PreferentialListSellCommission"
,
"PreferentialListB2BCommission"
,
"EducationCommission"
,
'SaleStateName'
,
'Id'
,
'SupplierName'
,
],
//可见列
PageCount
:
0
,
isShowStudy
:
false
,
//是否显示留学
弹窗
Id
:
0
,
currentUserId
:
0
,
//当前用户登录Id
isShowInfo
:
false
isShowStudy
Audit
:
false
,
//是否显示留学就业审核
弹窗
isShowInfo
:
false
,
//是否显示详情
studyObj
:
{},
//留学就业申请对象
AuditType
:
0
,
//1-部门主管审核,2-部门负责人审核
}
},
computed
:
mapState
({
...
...
@@ -280,12 +320,11 @@
},
created
()
{
let
userInfo
=
this
.
getLocalStorage
();
this
.
currentUserId
=
userInfo
.
Id
;
let
StudyAbroadObj
=
userInfo
.
StudyAbroadObj
;
if
(
StudyAbroadObj
&&
StudyAbroadObj
.
length
>
0
)
{
StudyAbroadObj
.
forEach
(
x
=>
{
if
(
x
.
Id
===
userInfo
.
Id
)
{
this
.
msg
.
AuditType
=
x
.
AuditType
this
.
AuditType
=
x
.
AuditType
}
})
}
...
...
@@ -302,7 +341,7 @@
//获取留学分页列表
getList
()
{
this
.
loading
=
true
;
queryStudyAbroadPage
(
this
.
msg
).
then
(
res
=>
{
queryStudyAbroad
Audit
Page
(
this
.
msg
).
then
(
res
=>
{
this
.
loading
=
false
;
this
.
dataList
=
res
.
Data
.
PageData
;
this
.
PageCount
=
res
.
Data
.
PageCount
;
...
...
@@ -317,26 +356,27 @@
},
//关闭弹窗
closeStudyForm
()
{
this
.
isShowStudy
=
false
;
this
.
isShowStudy
Audit
=
false
;
},
closeStudyInfo
()
{
this
.
isShowInfo
=
false
;
},
//
编辑留学
E
ditStudy
(
obj
)
{
this
.
Id
=
obj
.
Id
;
this
.
isShowStudy
=
true
;
//
留学就业审核
Au
ditStudy
(
obj
)
{
this
.
studyObj
=
obj
;
this
.
isShowStudy
Audit
=
true
;
},
refreshPage
()
{
this
.
getList
();
},
//
申请审核
//
审核详情
getviewInfo
(
obj
)
{
this
.
Id
=
obj
.
Id
;
this
.
studyObj
=
obj
;
this
.
isShowInfo
=
true
;
}
}
}
</
script
>
<
style
scoped
>
.border-bottom
{
...
...
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