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
92ad7a3a
Commit
92ad7a3a
authored
Nov 19, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
519fe34d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
44 deletions
+44
-44
addFinancialProcess.vue
src/pages/financial/addFinancialProcess.vue
+44
-44
No files found.
src/pages/financial/addFinancialProcess.vue
View file @
92ad7a3a
...
...
@@ -465,15 +465,15 @@
</el-input>
</p>
<el-tree
class=
'ApprovalProcessBg'
:data=
"roleList"
ref=
"treeRole"
show-checkbox
:filter-node-method=
"filterNode1"
:props=
"defaultProps1"
@
check-change=
"checkedRole"
:filter-node-method=
"filterNode1"
:props=
"defaultProps1"
:check-on-click-node=
"true"
:check-strictly=
"true"
@
check-change=
"checkedRole"
:default-checked-keys=
"defaultCheckedArr"
node-key=
"PostId"
>
</el-tree>
</div>
<div
class=
"fl"
>
<p
style=
"margin: 0 0 20px 0;"
>
{{
$t
(
'fnc.yixuangangwei'
)
}}
:
</p>
<div
class=
"Approval_yxList"
>
<li
v-for=
"
item
in showRole"
>
{{
item
.
DepartmentName
}}
<i
@
click=
"deleteRole()"
class=
"el-icon-circle-close showMemberIcon"
></i>
<li
v-for=
"
(item,index)
in showRole"
>
{{
item
.
DepartmentName
}}
<i
@
click=
"deleteRole(
index
)"
class=
"el-icon-circle-close showMemberIcon"
></i>
</li>
</div>
</div>
...
...
@@ -528,6 +528,9 @@
import
{
getSchoolPage
}
from
'../../api/school/index'
import
{
getPostPage
,
}
from
'../../api/system/post'
import
Treeselect
from
'@riophae/vue-treeselect'
import
'@riophae/vue-treeselect/dist/vue-treeselect.css'
...
...
@@ -710,6 +713,15 @@
rowsPerPage
:
12
,
SName
:
""
,
Status
:
'-1'
},
//岗位msg
jobMsg
:{
pageIndex
:
1
,
pageSize
:
12
,
rowsPerPage
:
12
,
PostName
:
""
,
//岗位名称
PostId
:
0
,
//岗位编号
Status
:
"-1"
,
}
}
},
...
...
@@ -1029,8 +1041,6 @@
this
.
$message
.
error
(
this
.
$t
(
'tips.qxzspiren'
))
return
}
console
.
log
(
this
.
myAuditList
,
'myAuditList'
);
console
.
log
(
this
.
myAuditUserList
,
'myAuditUserList'
);
if
(
this
.
myAuditUserList
.
length
!=
0
)
{
this
.
addMsg
.
Workflow_Condition
.
AuditUserList
=
this
.
myAuditUserList
...
...
@@ -1046,9 +1056,8 @@
this
.
$message
.
error
(
this
.
$t
(
'tips.qxzliucehng'
))
return
}
//
this.loading = true;
this
.
loading
=
true
;
this
.
addMsg
.
Workflow_Condition
.
AuditList
;
console
.
log
(
this
.
addMsg
,
'this.addMsg'
);
this
.
apipost
(
'FinancialFlowTemplate_post_Set'
,
this
.
addMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
loading
=
false
;
...
...
@@ -1166,40 +1175,37 @@
},
checkedRole
(
data
,
checked
)
{
// 岗位选择+
if
(
data
.
DepartmentId
==
0
)
return
if
(
checked
)
{
this
.
roleSetCheckedKeys
.
push
(
data
.
PostId
)
this
.
$refs
.
treeRole
.
setCheckedKeys
([
data
.
PostId
]);
this
.
showRole
=
[];
this
.
showRole
.
push
({
DepartmentName
:
data
.
PostName
,
Id
:
data
.
PostId
})
console
.
log
(
this
.
showRole
,
'showRolessssss'
);
}
else
{
if
(
this
.
roleSetCheckedKeys
.
length
==
1
)
{
this
.
roleSetCheckedKeys
.
push
(
data
.
PostId
)
}
else
{
this
.
roleSetCheckedKeys
=
this
.
roleSetCheckedKeys
.
slice
(
this
.
roleSetCheckedKeys
.
length
-
1
)
if
(
checked
){
this
.
$refs
.
treeRole
.
setCheckedKeys
([
data
.
PostId
]);
}
}
let
res
=
this
.
$refs
.
treeRole
.
getCheckedNodes
(
true
,
true
);
this
.
showRole
=
[];
res
.
forEach
((
x
,
index
)
=>
{
var
obj
=
{
DepartmentName
:
x
.
PostName
,
Id
:
x
.
PostId
}
this
.
showRole
.
push
(
obj
)
})
},
deleteRole
()
{
// 删除已选岗位
this
.
showRole
=
[]
this
.
roleSetCheckedKeys
.
splice
(
this
.
roleSetCheckedKeys
.
findIndex
(
item
=>
item
),
1
)
this
.
$refs
.
treeRole
.
setCheckedKeys
(
this
.
roleSetCheckedKeys
);
deleteRole
(
index
)
{
// 删除已选岗位
this
.
showRole
.
splice
(
index
,
1
);
var
arr
=
[];
this
.
showRole
.
forEach
(
x
=>
{
arr
.
push
(
x
.
Id
);
})
if
(
this
.
$refs
.
treeRole
){
this
.
$refs
.
treeRole
.
setCheckedKeys
(
arr
);
}
},
getRole
()
{
// 选择岗位
this
.
apipost
(
'admin_get_PostGetList'
,
{
RB_Group_Id
:
this
.
getPostMsg
.
RB_Group_Id
},
res
=>
{
let
data
=
res
.
data
.
data
;
data
.
forEach
(
x
=>
{
x
.
Disabled
=
false
;
})
this
.
roleList
=
data
;
},
err
=>
{})
getPostPage
(
this
.
jobMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
){
this
.
roleList
=
res
.
Data
.
PageData
;
}
}).
catch
(()
=>
{
})
},
saveUpdateNode
()
{
let
AuditList
=
{};
...
...
@@ -1394,7 +1400,6 @@
this
.
directors
=
obj
.
RoleOrInitiator
}
if
(
obj
.
AuditType
==
2
)
{
console
.
log
(
obj
,
'objjj'
);
this
.
showMember
=
[];
this
.
memberSetCheckedKeys
=
[];
this
.
AuditWay
=
obj
.
AuditWay
;
...
...
@@ -1409,7 +1414,6 @@
this
.
$refs
.
tree
.
setCheckedKeys
(
arr
);
}
})
console
.
log
(
this
.
showMember
,
'this.showMember'
);
}
if
(
obj
.
AuditType
==
3
)
{
this
.
AuditWay
=
obj
.
AuditWay
;
...
...
@@ -1439,7 +1443,6 @@
handleNodeChange
(
data
,
checked
)
{
data
.
IsCheck
=
checked
;
let
res
=
this
.
$refs
.
tree
.
getCheckedNodes
(
true
,
true
);
console
.
log
(
res
,
'选中'
);
this
.
showMember
=
[];
res
.
forEach
(
x
=>
{
var
obj
=
{
...
...
@@ -1460,7 +1463,6 @@
}
},
getMember
()
{
// 获取指定成员列表
console
.
log
(
this
.
showMember
,
'this.showMember'
);
this
.
outerVisible
=
true
;
this
.
dialogTitle
=
this
.
$t
(
'fnc.xzrenyuan'
);
queryEmployee
({}).
then
(
res
=>
{
...
...
@@ -1536,7 +1538,6 @@
return
}
this
.
myAuditList
.
push
(
AuditList
);
console
.
log
(
this
.
myAuditList
,
'this.myAuditList'
);
}
if
(
type
==
3
)
{
AuditList
.
AuditType
=
type
;
...
...
@@ -1552,7 +1553,7 @@
return
}
else
{
AuditList
.
RoleOrInitiator
=
this
.
showRole
[
0
].
Id
;
AuditList
.
Name
=
this
.
showRole
[
0
].
DepartmentName
;
AuditList
.
RoleOrInitiator
Name
=
this
.
showRole
[
0
].
DepartmentName
;
AuditList
.
AuditDescription
=
this
.
AuditDescription
;
}
this
.
myAuditList
.
push
(
AuditList
);
...
...
@@ -1706,7 +1707,6 @@
this
.
GetNodeValue
=
0
;
},
goUrl
(
path
)
{
console
.
log
(
path
,
'path'
);
this
.
$router
.
push
({
path
:
'/financial/'
+
path
,
query
:
{
...
...
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