Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GeliBusinessPlatform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ljy
GeliBusinessPlatform
Commits
2ca74bcc
Commit
2ca74bcc
authored
Jun 22, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
补充具备新增权限,不具备申请权限,通过申请接口进入,阻止其操作
parent
f1b663f5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/新增采购单/XinCaiGouViewController.swift
...atform/ViewController/新增采购单/XinCaiGouViewController.swift
+10
-1
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
2ca74bcc
No preview for this file type
GeliBusinessPlatform/ViewController/新增采购单/XinCaiGouViewController.swift
View file @
2ca74bcc
...
@@ -147,9 +147,10 @@ class XinCaiGouViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -147,9 +147,10 @@ class XinCaiGouViewController: BaseViewController,UITableViewDelegate,UITableVie
if
isSQ
==
true
&&
idx
!=
nil
{
//
125
if
isSQ
==
true
&&
idx
!=
nil
{
//
申请入口
dict
[
"is_apply"
]
=
1
dict
[
"is_apply"
]
=
1
}
else
{
}
else
{
if
idx
!=
nil
{
if
idx
!=
nil
{
dict
[
"is_apply"
]
=
1
dict
[
"is_apply"
]
=
1
}
}
...
@@ -308,11 +309,19 @@ class XinCaiGouViewController: BaseViewController,UITableViewDelegate,UITableVie
...
@@ -308,11 +309,19 @@ class XinCaiGouViewController: BaseViewController,UITableViewDelegate,UITableVie
self
.
model
=
mo
.
data
self
.
model
=
mo
.
data
self
.
idx
=
self
.
model
?
.
auth
?
.
firstIndex
(
of
:
"125"
)
self
.
idx
=
self
.
model
?
.
auth
?
.
firstIndex
(
of
:
"125"
)
let
idx2
=
self
.
model
?
.
auth
?
.
firstIndex
(
of
:
"119"
)
let
idx2
=
self
.
model
?
.
auth
?
.
firstIndex
(
of
:
"119"
)
if
self
.
isSQ
==
false
{
if
self
.
idx
==
nil
&&
idx2
==
nil
{
if
self
.
idx
==
nil
&&
idx2
==
nil
{
self
.
listView
.
isHidden
=
true
self
.
listView
.
isHidden
=
true
self
.
btmLbl
.
isHidden
=
true
self
.
btmLbl
.
isHidden
=
true
HUD
.
flash
(
.
label
(
"亲,您不具备新增采购单的权限"
),
delay
:
1.2
)
HUD
.
flash
(
.
label
(
"亲,您不具备新增采购单的权限"
),
delay
:
1.2
)
}
}
}
else
{
if
self
.
idx
==
nil
{
self
.
listView
.
isHidden
=
true
self
.
btmLbl
.
isHidden
=
true
HUD
.
flash
(
.
label
(
"亲,您不具备申请采购单的权限"
),
delay
:
1.2
)
}
}
})
{
(
err
)
in
})
{
(
err
)
in
...
...
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