Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
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
lanbaoming
jiedao-app-operator-master
Commits
5cfd559d
Commit
5cfd559d
authored
Jan 21, 2024
by
邓春圆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加查看渠道
parent
82e4d334
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
edit.vue
src/views/ecw/channel/edit.vue
+6
-2
index.vue
src/views/ecw/channel/index.vue
+9
-2
No files found.
src/views/ecw/channel/edit.vue
View file @
5cfd559d
<
template
>
<div
class=
"app-container"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"120px"
>
<el-form
:disabled=
"isView"
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"120px"
>
<el-card
shadow=
"never"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
{{
$t
(
'
渠道信息
'
)
}}
</span>
...
...
@@ -178,7 +178,7 @@
<!-- </el-card>-->
</el-form>
<div>
<el-button
type=
"primary"
@
click=
"submitForm"
>
{{ $t('确 定') }}
</el-button>
<el-button
v-if=
"!isView"
type=
"primary"
@
click=
"submitForm"
>
{{ $t('确 定') }}
</el-button>
<el-button
@
click=
"$router.back()"
>
{{ $t('返回列表') }}
</el-button>
</div>
<el-dialog
...
...
@@ -249,6 +249,7 @@ export default {
} */
},
mounted
()
{
console
.
log
(
this
.
$route
,
'
rotue
'
)
getTradeCountryList
().
then
(
r
=>
{
this
.
countryList
=
r
.
data
})
...
...
@@ -296,6 +297,9 @@ export default {
},
computed
:
{
isView
(){
return
this
.
$route
.
path
.
includes
(
'
view_channel
'
)
},
DICT_TYPE
()
{
return
DICT_TYPE
},
...
...
src/views/ecw/channel/index.vue
View file @
5cfd559d
...
...
@@ -129,6 +129,9 @@
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
v-hasPermi=
"['ecw:channel:update']"
>
{{
$t
(
'
修改
'
)
}}
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-view"
@
click=
"handleUpdate(scope.row,2)"
v-hasPermi=
"['ecw:channel:view']"
>
{{
$t
(
'
查看
'
)
}}
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
v-hasPermi=
"['ecw:channel:delete']"
>
{{
$t
(
'
删除
'
)
}}
...
...
@@ -244,8 +247,12 @@ export default {
return
this
.
$router
.
push
(
'
create_channel
'
)
},
/** 修改按钮操作 */
handleUpdate
(
row
)
{
return
this
.
$router
.
push
(
'
edit_channel?id=
'
+
row
.
channelId
)
handleUpdate
(
row
,
type
=
1
)
{
if
(
type
===
1
)
{
return
this
.
$router
.
push
(
'
edit_channel?id=
'
+
row
.
channelId
)
}
else
{
return
this
.
$router
.
push
(
'
view_channel?id=
'
+
row
.
channelId
)
}
},
/** 删除按钮操作 */
...
...
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