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
497ba59f
Commit
497ba59f
authored
Dec 24, 2020
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改接口
parent
750c32a1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
95 additions
and
35 deletions
+95
-35
administration.js
src/api/administration/administration.js
+11
-0
ApprovalProcess.vue
src/pages/administration/ApprovalProcess.vue
+1
-2
ApprovalStatistical.vue
src/pages/administration/ApprovalStatistical.vue
+65
-26
processDesign.vue
src/pages/administration/processDesign.vue
+10
-4
updateProcessDesign.vue
src/pages/administration/updateProcessDesign.vue
+8
-3
No files found.
src/api/administration/administration.js
View file @
497ba59f
...
...
@@ -288,6 +288,17 @@ export function myAudit(data) {
data
});
}
/**
*获取审批统计列表
*/
export
function
getOAPageList
(
data
)
{
return
request
({
url
:
'/workflow/GetOAPageList'
,
method
:
'post'
,
data
});
}
...
...
src/pages/administration/ApprovalProcess.vue
View file @
497ba59f
...
...
@@ -169,7 +169,7 @@
ref=
"treeRole"
show-checkbox
:filter-node-method=
"filterNode1"
node-key=
"
Pos
tId"
node-key=
"
Dep
tId"
:props=
"defaultProps1"
@
check-change=
"checkedRole"
>
...
...
@@ -584,7 +584,6 @@
},
checkedRole
(
data
,
checked
){
console
.
log
(
data
,
checked
)
data
.
IsCheck
=
checked
;
// if(data.Disabled==false&&data.IsCheck){
if
(
data
.
IsCheck
){
...
...
src/pages/administration/ApprovalStatistical.vue
View file @
497ba59f
...
...
@@ -5,28 +5,28 @@
<li>
<span><em>
公司
</em><el-select
filterable
@
change=
'getUser'
v-model=
'msg.RB_BranchId'
>
<el-option
label=
'不限'
value=
'-1'
></el-option>
<el-option
v-for=
'item in companyList'
:label=
'item.
BName'
:value=
'item.
Id'
:key=
'item.Id'
></el-option>
<el-option
v-for=
'item in companyList'
:label=
'item.
SName'
:value=
'item.S
Id'
:key=
'item.Id'
></el-option>
</el-select>
</span>
</li>
<li>
<span><em>
申请人
</em><el-select
filterable
v-model=
'msg.CreateBy'
>
<el-option
label=
'不限'
value=
'0'
></el-option>
<el-option
v-for=
'item in userList'
:label=
'item.
name'
:value=
'item.empId'
:key=
'item.emp
Id'
></el-option>
<el-option
v-for=
'item in userList'
:label=
'item.
EmployeeName'
:value=
'item.Id'
:key=
'item.
Id'
></el-option>
</el-select>
</span>
</li>
<li>
<span><em>
待审核人
</em><el-select
filterable
v-model=
'msg.ToAuditId'
>
<el-option
label=
'不限'
value=
'0'
></el-option>
<el-option
v-for=
'item in userList'
:label=
'item.
name'
:value=
'item.empId'
:key=
'item.emp
Id'
></el-option>
<el-option
v-for=
'item in userList'
:label=
'item.
EmployeeName'
:value=
'item.Id'
:key=
'item.
Id'
></el-option>
</el-select>
</span>
</li>
<li>
<span><em>
已审核人
</em><el-select
filterable
v-model=
'msg.AuditedId'
>
<el-option
label=
'不限'
value=
'0'
></el-option>
<el-option
v-for=
'item in userList'
:label=
'item.
name'
:value=
'item.empId'
:key=
'item.emp
Id'
></el-option>
<el-option
v-for=
'item in userList'
:label=
'item.
EmployeeName'
:value=
'item.Id'
:key=
'item.
Id'
></el-option>
</el-select>
</span>
</li>
...
...
@@ -203,6 +203,18 @@
</
template
>
<
script
>
import
{
queryEmployee
}
from
'../../api/users/user'
import
{
gettemplatetype
,
getMyInitiateAuditStatus
,
getOAPageList
,
getAuditInfo
}
from
'../../api/administration/administration'
;
import
{
getSchoolDropdown
,
}
from
'../../api/school/index'
export
default
{
data
()
{
return
{
...
...
@@ -262,18 +274,27 @@
return
arr
;
},
getDetail
(
id
,
type
){
this
.
apipost
(
'app_user_workflow_GetAuditInfo'
,{
WorkFlowId
:
id
,
TemplateType
:
type
},
res
=>
{
if
(
res
.
data
.
result
Code
==
1
)
{
getAuditInfo
({
WorkFlowId
:
id
,
TemplateType
:
type
}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
outerVisible
=
true
;
this
.
dialogTitle
=
'审批详情'
this
.
detailList
=
res
.
data
.
d
ata
this
.
detailList
=
res
.
D
ata
}
},
err
=>
{})
}).
catch
(()
=>
{
})
// this.apipost('app_user_workflow_GetAuditInfo',{WorkFlowId:id,TemplateType:type},res=>{
// if(res.data.resultCode == 1) {
// this.outerVisible=true;
// this.dialogTitle='审批详情'
// this.detailList=res.data.data
// }
// },err=>{})
},
getAppAuditStatus
(){
this
.
apipost
(
'app_user_workflow_get_myinitiate_auditstatus'
,{},
res
=>
{
if
(
res
.
data
.
result
Code
==
1
)
{
res
.
data
.
d
ata
.
forEach
(
item
=>
{
getMyInitiateAuditStatus
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
res
.
D
ata
.
forEach
(
item
=>
{
for
(
let
key
in
item
){
if
(
item
.
hasOwnProperty
(
key
)){
this
.
appAuditStatusList
.
push
({
label
:
key
,
value
:
item
[
key
]})
...
...
@@ -281,12 +302,14 @@
}
})
}
},
err
=>
{})
}).
catch
(()
=>
{
})
},
getApplyType
(){
//模板类型
this
.
apipost
(
'app_user_workflow_get_templatetype'
,{},
res
=>
{
if
(
res
.
data
.
result
Code
==
1
)
{
res
.
data
.
d
ata
.
forEach
(
item
=>
{
gettemplatetype
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
res
.
D
ata
.
forEach
(
item
=>
{
for
(
let
key
in
item
){
if
(
item
.
hasOwnProperty
(
key
)){
this
.
ApplyTypeList
.
push
({
label
:
key
,
value
:
item
[
key
]})
...
...
@@ -294,28 +317,44 @@
}
})
}
},
err
=>
{})
}).
catch
(()
=>
{
})
},
getCompany
(){
this
.
apipost
(
'admin_get_BranchGetList'
,
this
.
getCompanyMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
companyList
=
res
.
data
.
data
;
}
else
{}
},
err
=>
{})
getSchoolDropdown
({}).
then
(
res
=>
{
this
.
companyList
=
res
.
Data
;
})
},
getUser
(){
this
.
msg
.
CreateBy
=
'0'
this
.
msg
.
ToAuditId
=
'0'
this
.
msg
.
AuditedId
=
'0'
this
.
getUserMsg
.
RB_Branch_id
=
this
.
msg
.
RB_BranchId
;
this
.
apipost
(
'app_get_company_employee'
,
this
.
getUserMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
userList
=
res
.
data
.
data
;
}
else
{}
},
err
=>
{})
var
qMsg
=
{
EmployeeName
:
""
}
queryEmployee
(
qMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
userList
=
res
.
Data
;
}
})
},
getList
(){
this
.
loading
=
true
;
// getOAPageList(this.msg).then(res => {
// if(res.Code == 1) {
// this.list=res.Data.pageData;
// this.total=res.Data.count;
// this.loading=false
// }
// }).catch(() => {
//
// })
this
.
apipost
(
'WorkFlow_get_GetOAPageList'
,
this
.
msg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
){
this
.
list
=
res
.
data
.
data
.
pageData
;
...
...
src/pages/administration/processDesign.vue
View file @
497ba59f
...
...
@@ -216,6 +216,9 @@
import
{
getEmployeeAddrBook
}
from
'../../api/users/user'
import
{
getDeptPostTree
,
}
from
'../../api/system/post'
export
default
{
data
()
{
return
{
...
...
@@ -425,9 +428,12 @@
getRole
()
{
this
.
outerVisible1
=
true
;
this
.
dialogTitle
=
'选择岗位'
;
this
.
apipost
(
'WorkFlow_get_GetDepartMentPost'
,
{},
res
=>
{
this
.
roleList
=
res
.
data
.
data
},
err
=>
{})
getDeptPostTree
({}).
then
(
res
=>
{
this
.
roleList
=
res
.
Data
}).
catch
(()
=>
{
})
},
handleNodeChange1
(
data
,
checked
)
{
data
.
IsCheck
=
checked
;
...
...
@@ -524,7 +530,7 @@
},
checkedRole
(
data
,
checked
)
{
data
.
IsCheck
=
checked
;
if
(
data
.
Disabled
==
false
&&
data
.
IsCheck
)
{
if
(
data
.
IsCheck
)
{
this
.
showRole
=
[];
this
.
showRole
.
push
({
DeptName
:
data
.
DeptName
,
...
...
src/pages/administration/updateProcessDesign.vue
View file @
497ba59f
...
...
@@ -216,6 +216,9 @@
import
{
getEmployeeAddrBook
}
from
'../../api/users/user'
import
{
getDeptPostTree
,
}
from
'../../api/system/post'
export
default
{
data
()
{
return
{
...
...
@@ -459,9 +462,11 @@
getRole
()
{
this
.
outerVisible1
=
true
;
this
.
dialogTitle
=
'选择岗位'
;
this
.
apipost
(
'WorkFlow_get_GetDepartMentPost'
,
{},
res
=>
{
getDeptPostTree
({}).
then
(
res
=>
{
this
.
roleList
=
res
.
Data
},
err
=>
{})
}).
catch
(()
=>
{
})
},
handleNodeChange1
(
data
,
checked
)
{
data
.
IsCheck
=
checked
;
...
...
@@ -558,7 +563,7 @@
},
checkedRole
(
data
,
checked
)
{
data
.
IsCheck
=
checked
;
if
(
data
.
Disabled
==
false
&&
data
.
IsCheck
)
{
if
(
data
.
IsCheck
)
{
this
.
showRole
=
[];
this
.
showRole
.
push
({
DeptName
:
data
.
DeptName
,
...
...
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