Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
82745899
Commit
82745899
authored
Sep 04, 2023
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf:修改密码和修改用户添加账号密码加密
parent
c0ba780a
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
57 additions
and
40 deletions
+57
-40
portal-manager-ui/admin/src/api/user.js
portal-manager-ui/admin/src/api/user.js
+0
-6
portal-manager-ui/admin/src/assets/css/common.less
portal-manager-ui/admin/src/assets/css/common.less
+28
-26
portal-manager-ui/admin/src/directive/index.js
portal-manager-ui/admin/src/directive/index.js
+1
-1
portal-manager-ui/admin/src/request/request.js
portal-manager-ui/admin/src/request/request.js
+8
-2
portal-manager-ui/admin/src/views/home/components/changePassword.vue
...ger-ui/admin/src/views/home/components/changePassword.vue
+1
-0
portal-manager-ui/admin/src/views/thePlatformIsSet/components/permissionsModel/components/EditPwd.vue
...mIsSet/components/permissionsModel/components/EditPwd.vue
+11
-4
portal-manager-ui/admin/src/views/thePlatformIsSet/components/permissionsModel/components/EditUser.vue
...IsSet/components/permissionsModel/components/EditUser.vue
+2
-0
portal-manager-ui/admin/src/views/thePlatformIsSet/components/permissionsModel/components/addUser.vue
...mIsSet/components/permissionsModel/components/addUser.vue
+6
-1
No files found.
portal-manager-ui/admin/src/api/user.js
View file @
82745899
...
...
@@ -20,9 +20,3 @@ export function changePassword(params) {
export
function
editPassword
(
params
)
{
return
http
.
post
(
`
${
baseURL
}
/zwfw/user/reset/password`
,
params
);
}
// 获取图形验证码
export
function
createCode
(
params
)
{
return
http
.
post
(
`
${
baseURL
}
/zwfw/securitycode/createCode`
,
params
,
{
responseType
:
"
blob
"
,
});
}
portal-manager-ui/admin/src/assets/css/common.less
View file @
82745899
...
...
@@ -631,18 +631,20 @@ img {
tr, th,td{
border:none !important;
}
// .ant-table-body-inner{
// &::-webkit-scrollbar{
// display: none;
// }
// }
// :hover{
// .ant-table-body-inner{
// &::-webkit-scrollbar{
// display: block;
// }
// }
// }
// 表格鼠标移入显示滚动条
.ant-table-body,.ant-table-body-inner{
&::-webkit-scrollbar{
display: none;
}
}
:hover{
.ant-table-body,.ant-table-body-inner{
&::-webkit-scrollbar{
display:block;
}
}
}
}
.ant-table-thead th {
background: linear-gradient(0deg, #f9fbff 0%, #cbddff 78%);
...
...
@@ -760,18 +762,18 @@ img {
}
}
// 表格鼠标移入显示滚动条
.ant-table {
//
.ant-table {
.ant-table-body,.ant-table-body-inner{
&::-webkit-scrollbar{
display: none;
}
}
:hover{
.ant-table-body,.ant-table-body-inner{
&::-webkit-scrollbar{
display:block;
}
}
}
}
\ No newline at end of file
// .ant-table-body,.ant-table-body-inner{
// &::-webkit-scrollbar{
// display: none;
// }
// }
// :hover{
// .ant-table-body,.ant-table-body-inner{
// &::-webkit-scrollbar{
// display:block;
// }
// }
// }
// }
\ No newline at end of file
portal-manager-ui/admin/src/directive/index.js
View file @
82745899
import
Storage
from
"
@/utils/js/Storage
"
;
//
import Storage from "@/utils/js/Storage";
import
store
from
"
@/store
"
;
// 修改密码权限
export
const
permission
=
{
...
...
portal-manager-ui/admin/src/request/request.js
View file @
82745899
...
...
@@ -39,7 +39,6 @@ axios.interceptors.response.use(
// 取出数据
let
{
code
,
msg
}
=
response
.
data
;
if
(
code
===
-
1
)
{
console
.
log
(
response
.
data
);
message
.
error
({
content
:
msg
,
maxCount
:
1
,
...
...
@@ -49,7 +48,14 @@ axios.interceptors.response.use(
store
.
commit
(
"
user/reset
"
);
router
.
push
(
"
/
"
);
}
}
else
if
(
code
===
401
)
{
}
else
if
(
code
===
401
||
code
===
201
||
code
===
101
||
code
===
102
||
code
===
9001
||
code
===
9002
)
{
message
.
error
({
content
:
msg
,
maxCount
:
1
,
...
...
portal-manager-ui/admin/src/views/home/components/changePassword.vue
View file @
82745899
...
...
@@ -42,6 +42,7 @@ import { changePassWord } from "@/utils/js/validate";
import
{
changePassword
,
LogoutInterface
}
from
"
@/api/user
"
;
import
{
mapMutations
}
from
"
vuex
"
;
import
{
encrypt
}
from
"
@/utils
"
;
import
storage
from
"
@/utils/js/Storage
"
;
export
default
{
props
:
{
visibleEditPwd
:
{
...
...
portal-manager-ui/admin/src/views/thePlatformIsSet/components/permissionsModel/components/EditPwd.vue
View file @
82745899
...
...
@@ -13,8 +13,8 @@
:model=
"form"
:rules=
"rules"
ref=
"formData"
:label-col=
"
{ span:
5
}"
:wrapper-col="{ span: 1
9
}"
:label-col=
"
{ span:
6
}"
:wrapper-col="{ span: 1
8
}"
>
<a-form-model-item
label=
"用户名"
prop=
"loginName"
>
<a-input
...
...
@@ -36,7 +36,9 @@
<div
slot=
"footer"
>
<a-button
style=
"margin-left: 10px"
@
click=
"handleClose"
>
取消
</a-button>
<a-button
type=
"primary"
class=
"addclass"
@
click=
"handleOk"
>
确定
</a-button>
<a-button
type=
"primary"
class=
"addclass"
@
click=
"handleOk"
>
确定
</a-button
>
</div>
</a-modal>
</div>
...
...
@@ -45,6 +47,7 @@
<
script
>
import
{
changeAccount
,
changePassWord
}
from
"
@/utils/js/validate
"
;
import
{
editPassword
}
from
"
@/api/user
"
;
import
{
encrypt
}
from
"
@/utils
"
;
export
default
{
props
:
{
visibleEditPwd
:
{
...
...
@@ -98,7 +101,11 @@ export default {
handleOk
()
{
this
.
$refs
.
formData
.
validate
(
async
(
valid
)
=>
{
if
(
valid
)
{
let
res
=
await
editPassword
(
this
.
form
);
let
obj
=
{
loginName
:
encrypt
(
this
.
form
.
loginName
),
newPwd
:
encrypt
(
this
.
form
.
newPwd
),
};
let
res
=
await
editPassword
(
obj
);
if
(
res
.
code
===
1
)
{
this
.
$message
.
success
(
"
密码修改成功
"
);
this
.
handleClose
();
...
...
portal-manager-ui/admin/src/views/thePlatformIsSet/components/permissionsModel/components/EditUser.vue
View file @
82745899
...
...
@@ -69,6 +69,7 @@ import { getListByParentId } from "@/api/area.js";
import
{
userSave
}
from
"
@/api/userManagement.js
"
;
import
{
TreeSelect
}
from
"
ant-design-vue
"
;
const
SHOW_PARENT
=
TreeSelect
.
SHOW_PARENT
;
//SHOW_ALL, SHOW_PARENT, SHOW_CHILD
import
{
encrypt
}
from
"
@/utils
"
;
export
default
{
data
()
{
return
{
...
...
@@ -180,6 +181,7 @@ export default {
...
this
.
form
,
areaNames
:
JSON
.
stringify
(
this
.
form
.
areaNames
),
areaCodes
:
this
.
form
.
areaNames
.
map
((
v
)
=>
v
.
areaCode
).
join
(
"
,
"
),
loginName
:
encrypt
(
this
.
form
.
loginName
),
});
let
{
code
,
msg
}
=
res
;
if
(
code
===
1
)
{
...
...
portal-manager-ui/admin/src/views/thePlatformIsSet/components/permissionsModel/components/addUser.vue
View file @
82745899
...
...
@@ -80,7 +80,9 @@
</a-form-model>
<div
slot=
"footer"
>
<a-button
style=
"margin-left: 10px"
@
click=
"resetForm"
>
重置
</a-button>
<a-button
type=
"primary"
class=
"addclass"
@
click=
"onSubmit"
>
确定
</a-button>
<a-button
type=
"primary"
class=
"addclass"
@
click=
"onSubmit"
>
确定
</a-button
>
</div>
</a-modal>
</div>
...
...
@@ -91,6 +93,7 @@ import { changeAccount, changePassWord } from "@/utils/js/validate";
import
{
getListByParentId
}
from
"
@/api/area.js
"
;
import
{
userSave
}
from
"
@/api/userManagement.js
"
;
import
{
TreeSelect
}
from
"
ant-design-vue
"
;
import
{
encrypt
}
from
"
@/utils
"
;
const
SHOW_PARENT
=
TreeSelect
.
SHOW_PARENT
;
//SHOW_ALL, SHOW_PARENT, SHOW_CHILD
export
default
{
data
()
{
...
...
@@ -189,6 +192,8 @@ export default {
...
this
.
form
,
areaCodes
:
this
.
form
.
areaCodes
.
join
(
"
,
"
),
areaNames
:
JSON
.
stringify
(
this
.
changeSelect
),
loginName
:
encrypt
(
this
.
form
.
loginName
),
loginPwd
:
encrypt
(
this
.
form
.
loginPwd
),
});
let
{
code
,
msg
}
=
res
;
if
(
code
===
1
)
{
...
...
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