Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
loan-manager-customer
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
zhanhai
loan-manager-customer
Commits
8929c586
Commit
8929c586
authored
Jun 16, 2020
by
feifei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
权限
parent
43f6cf52
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
55 additions
and
22 deletions
+55
-22
ByhService.vue
src/components/byh/ByhService.vue
+2
-1
ServiceProblem.vue
src/components/byh/ServiceProblem.vue
+18
-18
Login.vue
src/components/login/Login.vue
+18
-2
cacheManage.js
src/utils/cacheManage.js
+1
-0
permission.js
src/utils/permission.js
+15
-0
version.json
version.json
+1
-1
No files found.
src/components/byh/ByhService.vue
View file @
8929c586
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
<el-table-column
prop=
"userStatus"
label=
"状态"
:formatter=
"userStatusFormat"
></el-table-column>
<el-table-column
prop=
"userStatus"
label=
"状态"
:formatter=
"userStatusFormat"
></el-table-column>
<el-table-column
label=
"操作"
>
<el-table-column
label=
"操作"
>
<template
scope=
"scope"
>
<template
scope=
"scope"
>
<el-button
type=
"primary"
size=
"small"
v-if=
"
scope.row.userStatus == 'REAL_NAME'
"
@
click=
"cancellation(scope.row)"
>
注销
</el-button>
<el-button
type=
"primary"
size=
"small"
v-if=
"
$permissionUtils.rolePermission('customBoss') && scope.row.userStatus == 'REAL_NAME'
"
@
click=
"cancellation(scope.row)"
>
注销
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"查看详情"
>
<el-table-column
label=
"查看详情"
>
...
@@ -148,6 +148,7 @@
...
@@ -148,6 +148,7 @@
loanList
(){
loanList
(){
console
.
log
(
"角色"
+
this
.
$permissionUtils
.
rolePermission
(
'admin'
));
/** 加载数据 */
/** 加载数据 */
this
.
$$post
(
'/customer/selectClientInfo'
,
this
.
buildParam
()).
then
(
res
=>
{
this
.
$$post
(
'/customer/selectClientInfo'
,
this
.
buildParam
()).
then
(
res
=>
{
if
(
res
.
data
.
code
!=
200
)
{
if
(
res
.
data
.
code
!=
200
)
{
...
...
src/components/byh/ServiceProblem.vue
View file @
8929c586
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<el-form-item
label=
"编号:"
>
<el-form-item
label=
"编号:"
>
<el-input
placeholder=
"请输入客户编号"
v-model=
"searchInfo.feedNo"
></el-input>
<el-input
placeholder=
"请输入客户编号"
v-model=
"searchInfo.feedNo"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"手机号:"
>
<el-form-item
label=
"手机号:"
>
<el-input
placeholder=
"请输入手机号"
v-model=
"searchInfo.clientCell"
></el-input>
<el-input
placeholder=
"请输入手机号"
v-model=
"searchInfo.clientCell"
></el-input>
</el-form-item>
</el-form-item>
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
:label=
"item.label"
:value=
"item.value"
></el-option>
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"反馈时间:"
>
<el-form-item
label=
"反馈时间:"
>
<el-date-picker
v-model=
"searchInfo.gmtCreated"
type=
"daterange"
range-separator=
"至"
<el-date-picker
v-model=
"searchInfo.gmtCreated"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
start-placeholder=
"开始日期"
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
</el-form>
</el-form>
</div>
</div>
<div
class=
"system-list"
>
<div
class=
"system-list"
>
<el-table
:data=
"tablePlanRemindData"
style=
"width: 100%"
:default-sort=
"
{prop: 'date', order: 'descending'}" :highlight-current-row="true" >
<el-table
:data=
"tablePlanRemindData"
style=
"width: 100%"
:default-sort=
"
{prop: 'date', order: 'descending'}" :highlight-current-row="true" >
<el-table-column
prop=
"feedNo"
label=
"编号"
></el-table-column>
<el-table-column
prop=
"feedNo"
label=
"编号"
></el-table-column>
<!--
<el-table-column
prop=
"feedContent"
label=
"反馈内容"
:formatter=
"filterFun"
></el-table-column>
-->
<!--
<el-table-column
prop=
"feedContent"
label=
"反馈内容"
:formatter=
"filterFun"
></el-table-column>
-->
<el-table-column
<el-table-column
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div
v-if=
"scope.row.feedStatus =='NO' "
>
<div
v-if=
"scope.row.feedStatus =='NO' "
>
<el-button
type=
"text"
size=
"big"
@
click=
"deleteRaise(scope.row)"
>
解决
</el-button>
<el-button
type=
"text"
size=
"big"
@
click=
"deleteRaise(scope.row)"
>
解决
</el-button>
</div>
</div>
<div
v-else
>
<div
v-else
>
<el-button
type=
"text"
size=
"small"
disabled
>
已解决
</el-button>
<el-button
type=
"text"
size=
"small"
disabled
>
已解决
</el-button>
</div>
</div>
...
@@ -92,8 +92,8 @@
...
@@ -92,8 +92,8 @@
</el-pagination>
</el-pagination>
</div>
</div>
</div>
</div>
</template>
</template>
...
@@ -129,10 +129,10 @@
...
@@ -129,10 +129,10 @@
}
}
},
},
mounted
:
function
()
{
mounted
:
function
()
{
this
.
tablePlanRemindData
=
this
.
remindData
();
this
.
tablePlanRemindData
=
this
.
remindData
();
},
},
filters
:
{
filters
:
{
...
@@ -147,14 +147,14 @@
...
@@ -147,14 +147,14 @@
methods
:
{
methods
:
{
formatter
(
row
,
column
)
{
formatter
(
row
,
column
)
{
return
row
.
address
;
return
row
.
address
;
},
},
selected
:
function
(
gameName
)
{
selected
:
function
(
gameName
)
{
this
.
activeName
=
gameName
this
.
activeName
=
gameName
},
},
/** 加载数据 */
/** 加载数据 */
remindData
(
params
)
{
remindData
(
params
)
{
var
listsData
=
[];
var
listsData
=
[];
...
@@ -166,7 +166,7 @@
...
@@ -166,7 +166,7 @@
listsData
=
res
.
data
.
result
.
data
;
listsData
=
res
.
data
.
result
.
data
;
this
.
tablePlanRemindData
=
listsData
;
this
.
tablePlanRemindData
=
listsData
;
this
.
page
.
total
=
res
.
data
.
result
.
total
;
this
.
page
.
total
=
res
.
data
.
result
.
total
;
}).
catch
(
error
=>
{
}).
catch
(
error
=>
{
this
.
$Message
.
error
(
error
||
'系统异常'
);
this
.
$Message
.
error
(
error
||
'系统异常'
);
});
});
...
@@ -209,20 +209,20 @@
...
@@ -209,20 +209,20 @@
// 修改成功后再次加载数据
// 修改成功后再次加载数据
this
.
$message
({
message
:
'操作成功'
,
type
:
'success'
});
this
.
$message
({
message
:
'操作成功'
,
type
:
'success'
});
this
.
tablePlanRemindData
=
this
.
remindData
();
this
.
tablePlanRemindData
=
this
.
remindData
();
}).
catch
(
error
=>
{
}).
catch
(
error
=>
{
this
.
$Message
.
error
(
error
||
'系统异常'
);
this
.
$Message
.
error
(
error
||
'系统异常'
);
});
});
}).
catch
(()
=>
{
}).
catch
(()
=>
{
this
.
$message
({
this
.
$message
({
type
:
'info'
,
type
:
'info'
,
message
:
'取消处理'
message
:
'取消处理'
});
});
});
});
},
},
//产品名称
//产品名称
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
var
status
=
row
[
'productName'
];
var
status
=
row
[
'productName'
];
return
this
.
$enumUtils
.
toMsg
(
'BusinessType'
,
status
);
return
this
.
$enumUtils
.
toMsg
(
'BusinessType'
,
status
);
},
},
//参数
//参数
buildParam
()
{
buildParam
()
{
var
return_hash
=
{
var
return_hash
=
{
...
@@ -257,7 +257,7 @@
...
@@ -257,7 +257,7 @@
if
(
this
.
searchInfo
.
productName
!=
''
)
{
if
(
this
.
searchInfo
.
productName
!=
''
)
{
return_hash
[
'productName'
]
=
this
.
searchInfo
.
productName
return_hash
[
'productName'
]
=
this
.
searchInfo
.
productName
}
}
if
(
this
.
searchInfo
.
gmtCreated
!=
null
&&
this
.
searchInfo
.
gmtCreated
.
length
>
0
)
{
if
(
this
.
searchInfo
.
gmtCreated
!=
null
&&
this
.
searchInfo
.
gmtCreated
.
length
>
0
)
{
var
end
=
new
Date
(
this
.
searchInfo
.
gmtCreated
[
1
])
var
end
=
new
Date
(
this
.
searchInfo
.
gmtCreated
[
1
])
...
@@ -267,7 +267,7 @@
...
@@ -267,7 +267,7 @@
return_hash
[
'gmtCreated'
]
=
this
.
searchInfo
.
gmtCreated
[
0
];
return_hash
[
'gmtCreated'
]
=
this
.
searchInfo
.
gmtCreated
[
0
];
return_hash
[
'gmtTimeEnd'
]
=
end
return_hash
[
'gmtTimeEnd'
]
=
end
}
}
return
return_hash
;
return
return_hash
;
},
},
...
...
src/components/login/Login.vue
View file @
8929c586
...
@@ -97,9 +97,13 @@
...
@@ -97,9 +97,13 @@
.
then
(
res
=>
{
.
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
code
==
200
)
{
localStorage
.
setItem
(
'userName'
,
res
.
data
.
result
.
userName
)
localStorage
.
setItem
(
'userName'
,
res
.
data
.
result
.
userName
)
;
localStorage
.
setItem
(
'agentNo'
,
res
.
data
.
result
.
extensionNumber
);
localStorage
.
setItem
(
'agentNo'
,
res
.
data
.
result
.
extensionNumber
);
localStorage
.
setItem
(
'loginName'
,
res
.
data
.
result
.
loginName
)
localStorage
.
setItem
(
'loginName'
,
res
.
data
.
result
.
loginName
);
var
userRolePermission
=
this
.
userRolelistToStringUtils
(
res
.
data
.
result
.
userRole
);
localStorage
.
setItem
(
'userRole'
,
userRolePermission
);
var
btnPermission
=
this
.
listToStringUtils
(
res
.
data
.
result
.
buttonList
);
var
btnPermission
=
this
.
listToStringUtils
(
res
.
data
.
result
.
buttonList
);
localStorage
.
setItem
(
'btnPermission'
,
btnPermission
)
localStorage
.
setItem
(
'btnPermission'
,
btnPermission
)
...
@@ -210,6 +214,18 @@
...
@@ -210,6 +214,18 @@
return
returnStr
;
return
returnStr
;
},
},
userRolelistToStringUtils
(
list
)
{
var
returnStr
=
''
for
(
var
num
in
list
)
{
if
(
num
==
list
.
length
-
1
)
{
returnStr
=
returnStr
+
list
[
num
].
roleCode
}
else
{
returnStr
=
returnStr
+
list
[
num
].
roleCode
+
","
}
}
return
returnStr
;
},
showErrorAlert
(
err
)
{
showErrorAlert
(
err
)
{
this
.
$message
.
error
(
err
.
msg
===
undefined
?
'404'
:
err
.
msg
)
this
.
$message
.
error
(
err
.
msg
===
undefined
?
'404'
:
err
.
msg
)
this
.
ui
.
loginLoading
=
false
this
.
ui
.
loginLoading
=
false
...
...
src/utils/cacheManage.js
View file @
8929c586
...
@@ -11,6 +11,7 @@ const cacheManage = {
...
@@ -11,6 +11,7 @@ const cacheManage = {
localStorage
.
setItem
(
'userName'
,
""
)
localStorage
.
setItem
(
'userName'
,
""
)
localStorage
.
setItem
(
'loginName'
,
""
)
localStorage
.
setItem
(
'loginName'
,
""
)
localStorage
.
setItem
(
'userRole'
,
""
)
localStorage
.
setItem
(
'btnPermission'
,
""
)
localStorage
.
setItem
(
'btnPermission'
,
""
)
localStorage
.
setItem
(
'menuPermission'
,
""
)
localStorage
.
setItem
(
'menuPermission'
,
""
)
localStorage
.
setItem
(
'myRaisCardName'
,
""
)
localStorage
.
setItem
(
'myRaisCardName'
,
""
)
...
...
src/utils/permission.js
View file @
8929c586
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
const
permissionUtils
=
{
const
permissionUtils
=
{
install
:
function
(
Vue
)
{
install
:
function
(
Vue
)
{
Vue
.
prototype
.
$permissionUtils
=
{
Vue
.
prototype
.
$permissionUtils
=
{
btnPermission
(
code
)
{
btnPermission
(
code
)
{
if
(
localStorage
.
getItem
(
'btnPermission'
)
==
null
||
localStorage
.
getItem
(
'btnPermission'
)
==
''
)
{
if
(
localStorage
.
getItem
(
'btnPermission'
)
==
null
||
localStorage
.
getItem
(
'btnPermission'
)
==
''
)
{
return
false
return
false
...
@@ -30,6 +31,20 @@ const permissionUtils = {
...
@@ -30,6 +31,20 @@ const permissionUtils = {
}
}
}
}
return
false
return
false
},
rolePermission
(
code
)
{
if
(
localStorage
.
getItem
(
'userRole'
)
==
null
||
localStorage
.
getItem
(
'userRole'
)
==
''
)
{
return
false
}
var
rolePerList
=
localStorage
.
getItem
(
'userRole'
).
split
(
","
);
for
(
var
num
in
rolePerList
)
{
if
(
code
==
rolePerList
[
num
])
{
return
true
}
}
return
false
}
}
...
...
version.json
View file @
8929c586
{
{
"name"
:
"versiony"
,
"name"
:
"versiony"
,
"version"
:
"5.6.
2
"
"version"
:
"5.6.
4
"
}
}
\ No newline at end of file
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