Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
ka-op-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QA
ka-op-ui
Commits
90fb0861
Commit
90fb0861
authored
Mar 13, 2020
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
权限调整
parent
1af68b92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
index.vue
src/views/channel/index.vue
+5
-5
No files found.
src/views/channel/index.vue
View file @
90fb0861
<
template
>
<div
class=
"app-container"
>
<div
class=
"filter-container"
style=
"padding-bottom:20px"
>
<el-input
v-permission=
"['admin']"
v-model=
"listQuery.channelId"
placeholder=
"渠道号"
clearable
style=
"width: 200px;"
class=
"filter-item"
@
keyup.enter.native=
"getChannels"
/>
<el-input
v-permission=
"['admin'
,'operator'
]"
v-model=
"listQuery.channelId"
placeholder=
"渠道号"
clearable
style=
"width: 200px;"
class=
"filter-item"
@
keyup.enter.native=
"getChannels"
/>
<el-select
v-permission=
"['channel']"
v-model=
"listQuery.channelId"
placeholder=
"渠道"
clearable
style=
"width: 200px"
class=
"filter-item"
>
<el-option
v-for=
"item in channels"
:key=
"item.channelId"
:label=
"item.channelName"
:value=
"item.channelId"
/>
</el-select>
<el-input
v-permission=
"['admin']"
v-model=
"listQuery.channelName"
placeholder=
"渠道名称"
clearable
style=
"width: 200px;"
class=
"filter-item"
@
keyup.enter.native=
"getChannels"
/>
<el-input
v-permission=
"['admin'
,'operator'
]"
v-model=
"listQuery.channelName"
placeholder=
"渠道名称"
clearable
style=
"width: 200px;"
class=
"filter-item"
@
keyup.enter.native=
"getChannels"
/>
<el-button
class=
"filter-item"
type=
"primary"
icon=
"el-icon-search"
@
click=
"getChannels"
>
查询
</el-button>
<el-button
v-permission=
"['admin']"
:disabled=
"!createBool"
class=
"filter-item"
style=
"margin-left: 10px;"
type=
"primary"
icon=
"el-icon-edit"
@
click=
"handleCreate"
>
添加
</el-button>
<el-button
v-permission=
"['admin'
,'operator'
]"
:disabled=
"!createBool"
class=
"filter-item"
style=
"margin-left: 10px;"
type=
"primary"
icon=
"el-icon-edit"
@
click=
"handleCreate"
>
添加
</el-button>
</div>
<el-table
...
...
@@ -42,7 +42,7 @@
<el-card
v-show=
"channel.addInfo"
class=
"box-card"
>
<el-card
v-permission=
"['admin']"
class=
"box-card"
style=
"margin-bottom:20px;float:left;width:45%;margin-right:1%"
>
<el-card
v-permission=
"['admin'
,'operator'
]"
class=
"box-card"
style=
"margin-bottom:20px;float:left;width:45%;margin-right:1%"
>
<div
slot=
"header"
>
<span>
基础配置
</span>
</div>
...
...
@@ -194,7 +194,7 @@ export default {
},
savevData
()
{
if
(
!
this
.
roles
.
includes
(
'
admin
'
))
{
if
(
this
.
roles
.
includes
(
'
channel
'
))
{
this
.
channel
.
basicInfo
=
{
channelId
:
this
.
channel
.
basicInfo
.
channelId
}
}
saveChannel
(
this
.
channel
).
then
(()
=>
{
...
...
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