Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
precision-effect
Project
Project
Details
Activity
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
耿迪迪
precision-effect
Commits
ec3638d9
Commit
ec3638d9
authored
Jun 13, 2023
by
王晓倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
申请服务时买方不能选择自己部门
parent
06c73b9c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
index.vue
precision-effect-web/src/views/trade/index.vue
+16
-1
No files found.
precision-effect-web/src/views/trade/index.vue
View file @
ec3638d9
...
...
@@ -201,7 +201,7 @@
<el-form-item
label=
"买方"
prop=
"tradeDeptId"
>
<treeselect
v-model=
"form.tradeDeptId"
:options=
"
d
eptOptions"
:options=
"
formD
eptOptions"
:show-count=
"true"
placeholder=
"请选择部门"
/>
...
...
@@ -396,6 +396,7 @@ export default {
transactionProjects
:
[],
deptOptions
:
[],
formDeptOptions
:
[],
priceType
:
"1"
,
fileList
:
[],
transactionProjectStatus
:
[],
...
...
@@ -574,6 +575,20 @@ export default {
getTreeselect
()
{
treeselect
().
then
((
response
)
=>
{
this
.
deptOptions
=
response
.
data
;
this
.
formDeptOptions
=
response
.
data
;
// 申请服务时买方不能选自己部门
var
items
=
this
.
formDeptOptions
[
0
].
children
;
var
result
=
[];
var
j
=
0
;
for
(
var
i
=
0
;
i
<
items
.
length
;
i
++
){
if
(
items
[
i
].
id
!=
this
.
$store
.
state
.
user
.
deptId
){
result
[
j
]
=
items
[
i
];
j
++
;
}
}
this
.
formDeptOptions
[
0
].
children
=
result
;
console
.
log
(
"formDeptOptions==="
,
this
.
formDeptOptions
);
});
},
changeTransactionProject
(
val
)
{
...
...
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