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
f3dca634
Commit
f3dca634
authored
Mar 04, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化订单列表页面的权限设置
parent
eff22d53
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
index.vue
src/views/ecw/order/index.vue
+11
-3
No files found.
src/views/ecw/order/index.vue
View file @
f3dca634
...
...
@@ -126,13 +126,13 @@
<el-col
:span=
"1.5"
>
<!--
<el-button
type=
"warning"
plain
icon=
"el-icon-download"
size=
"mini"
@
click=
"handleExport"
:loading=
"exportLoading"
v-hasPermi=
"['ecw:order:export']"
>
{{
$t
(
'
导出
'
)
}}
</el-button>
-->
<el-dropdown
v-hasPermi=
"
['ecw:order:export:other','ecw:order:export:checked','ecw:order:export:search'
]"
>
<el-dropdown
v-hasPermi=
"
isAll ? ['ecw:order:export','ecw:order:export:other']:[exportPermiString
]"
>
<el-button
type=
"primary"
:loading=
"exportLoading"
size=
"mini"
>
导出
<i
class=
"el-icon-arrow-down el-icon--right"
></i>
</el-button>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-item
v-hasPermi=
"[
'ecw:order:export:checked'
]"
@
click.native=
"exportChecked"
>
导出勾选
</el-dropdown-item>
<el-dropdown-item
v-hasPermi=
"[
'ecw:order:export:search'
]"
@
click.native=
"exportSearch"
>
导出搜索
</el-dropdown-item>
<el-dropdown-item
v-hasPermi=
"[
exportPermiString
]"
@
click.native=
"exportChecked"
>
导出勾选
</el-dropdown-item>
<el-dropdown-item
v-hasPermi=
"[
exportPermiString
]"
@
click.native=
"exportSearch"
>
导出搜索
</el-dropdown-item>
<template
v-if=
"isAll"
v-hasPermi=
"['ecw:order:export:other']"
>
<el-dropdown-item
@
click.native=
"$message('// TODO')"
>
异常单统计
</el-dropdown-item>
<el-dropdown-item
@
click.native=
"$message('// TODO')"
>
重货单统计
</el-dropdown-item>
...
...
@@ -542,6 +542,14 @@ export default {
}
},
computed
:
{
// 导出的权限字符串
exportPermiString
(){
let
arr
=
[
'
ecw:order:export
'
]
if
(
this
.
mine
)
arr
.
push
(
'
my
'
)
if
(
this
.
dept
)
arr
.
push
(
'
dept
'
)
if
(
this
.
transportId
)
arr
.
push
(
this
.
transportId
)
return
arr
.
join
(
"
:
"
)
},
// 是否全部订单
isAll
(){
return
!
(
this
.
mine
||
this
.
dept
||
this
.
transportId
)
...
...
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