Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
6bb9ca89
Commit
6bb9ca89
authored
Jul 11, 2023
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
b3894c8e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
20 deletions
+36
-20
AuthCode.js
src/assets/utils/AuthCode.js
+2
-1
GuestBlock.vue
src/components/Complaints/GuestBlock.vue
+34
-19
No files found.
src/assets/utils/AuthCode.js
View file @
6bb9ca89
...
...
@@ -29,6 +29,7 @@ var AuthCode = {
F_Disbursement_Schedule
:
'F_Disbursement_Schedule'
,
//财务团队用款计划权限
F_Advance_Match
:
'F_Advance_Match'
,
//预付款冲抵
S_Travel_AirLoss
:
'S_Travel_AirLoss'
,
//设为损失
S_CheckAllOrder
:
's_CheckAllOrder'
//查看所有订单
S_CheckAllOrder
:
's_CheckAllOrder'
,
//查看所有订单
F_EditDeleteGuest
:
"F_EditDeleteGuest"
,
//修改删除旅客和名单权限
};
export
default
AuthCode
;
\ No newline at end of file
src/components/Complaints/GuestBlock.vue
View file @
6bb9ca89
...
...
@@ -46,19 +46,21 @@
</td>
<td>
{{
item
.
MobilePhone
}}
</td>
<td>
{{
item
.
PassportNo
}}
</td>
<td>
{{
item
.
Notes
}}
</td>
<td
style=
"text-align:left;"
>
{{
item
.
Notes
}}
</td>
<td>
{{
item
.
CreateByName
}}
</td>
<td>
<span
class=
"CM_detail"
@
click=
"showDialog(item)"
>
修改
</span>
<span
class=
"CM_detail"
@
click=
"delGuest(item)"
>
删除
</span>
<template
v-if=
"CurrentUserInfo.EmployeeId==item.CreateBy||IsEditDlete"
>
<span
class=
"CM_detail"
@
click=
"showDialog(item)"
>
修改
</span>
<span
class=
"CM_detail"
@
click=
"delGuest(item)"
>
删除
</span>
</
template
>
</td>
</tr>
</table>
<div
class=
"noData"
v-show=
"queryCommonData.noData"
>
{{$t('system.content_noData')}}
</div>
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"query
CommonData
.currentPage"
layout=
"total,prev, pager, next, jumper"
:page-size=
"query
CommonData.pageSize"
:total=
"queryCommonData
.total"
>
<el-pagination
background
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"query
Msg
.currentPage"
layout=
"total,prev, pager, next, jumper"
:page-size=
"query
Msg.pageSize"
:total=
"queryMsg
.total"
>
</el-pagination>
</div>
<el-dialog
custom-class=
'w500'
:title=
"editTitle"
:visible
.
sync=
"isShowGuestForm"
center
...
...
@@ -106,11 +108,6 @@
loading
:
false
,
//是否有数据
noData
:
false
,
//总数
total
:
0
,
//第几页
currentPage
:
1
,
pageSize
:
10
,
//数据列表
dataList
:
[],
},
...
...
@@ -118,6 +115,10 @@
IdCard
:
""
,
pageIndex
:
1
,
pageSize
:
10
,
//第几页
currentPage
:
1
,
//总数
total
:
0
,
},
//新增修改旅客黑名单参数
postMsg
:
{
...
...
@@ -129,6 +130,8 @@
},
isShowGuestForm
:
false
,
//是否显示新增修改弹窗
editTitle
:
"新增旅客黑名单信息"
,
//弹窗标题
CurrentUserInfo
:
{},
//当前登录用户信息
IsEditDlete
:
false
,
//是否有修改删除权限
}
},
methods
:
{
...
...
@@ -166,13 +169,13 @@
},
err
=>
{})
},
getList
()
{
this
.
queryCommonData
.
loading
=
true
this
.
queryCommonData
.
loading
=
true
;
this
.
apipost
(
'travel_post_GetGuestBlackPageList'
,
this
.
queryMsg
,
res
=>
{
this
.
queryCommonData
.
loading
=
false
;
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
query
CommonData
.
total
=
res
.
data
.
data
.
count
this
.
queryCommonData
.
noData
=
!
this
.
query
CommonData
.
total
>
0
this
.
queryCommonData
.
dataList
=
res
.
data
.
data
.
pageData
this
.
query
Msg
.
total
=
res
.
data
.
data
.
count
;
this
.
queryCommonData
.
noData
=
!
this
.
query
Msg
.
total
>
0
;
this
.
queryCommonData
.
dataList
=
res
.
data
.
data
.
pageData
;
}
else
{
this
.
Error
(
res
.
data
.
message
)
}
...
...
@@ -180,14 +183,13 @@
},
//翻页
handleCurrentChange
(
val
)
{
this
.
query
CommonData
.
pageIndex
=
val
this
.
query
Msg
.
pageIndex
=
val
this
.
getList
()
},
//重新查询
resetPageIndex
()
{
this
.
queryCommonData
.
pageIndex
=
1
this
.
queryMsg
.
pageIndex
=
1
this
.
queryCommonData
.
currentPage
=
1
this
.
queryMsg
.
pageIndex
=
1
;
this
.
queryMsg
.
currentPage
=
1
;
},
//删除
delGuest
(
item
)
{
...
...
@@ -209,7 +211,20 @@
null
);
});
}
},
//是否有修改和删除旅客黑名单权限
CheckAuth
()
{
var
actionCode
=
this
.
$AuthCode
.
F_EditDeleteGuest
;
this
.
CheckUserAuth
(
actionCode
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
&&
res
.
data
.
data
==
1
)
{
this
.
IsEditDlete
=
true
;
}
});
},
},
created
()
{
this
.
CurrentUserInfo
=
this
.
getLocalStorage
();
this
.
CheckAuth
();
},
mounted
()
{
this
.
getList
();
...
...
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