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
21ed51e4
Commit
21ed51e4
authored
Sep 15, 2023
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:遂宁项目
parent
aa9dd7d3
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
177 additions
and
38 deletions
+177
-38
portal-manager-ui/admin/package.json
portal-manager-ui/admin/package.json
+1
-0
portal-manager-ui/admin/src/main.js
portal-manager-ui/admin/src/main.js
+5
-5
portal-manager-ui/admin/src/request/request.js
portal-manager-ui/admin/src/request/request.js
+11
-4
portal-manager-ui/admin/src/router/routes.js
portal-manager-ui/admin/src/router/routes.js
+1
-1
portal-manager-ui/admin/src/utils/index.js
portal-manager-ui/admin/src/utils/index.js
+67
-0
portal-manager-ui/admin/src/views/dataActuary/dataActuary.vue
...al-manager-ui/admin/src/views/dataActuary/dataActuary.vue
+11
-1
portal-manager-ui/admin/src/views/dataAdmin/dataAdmin.vue
portal-manager-ui/admin/src/views/dataAdmin/dataAdmin.vue
+8
-2
portal-manager-ui/admin/src/views/home/components/changePassword.vue
...ger-ui/admin/src/views/home/components/changePassword.vue
+19
-10
portal-manager-ui/admin/src/views/home/home.vue
portal-manager-ui/admin/src/views/home/home.vue
+12
-7
portal-manager-ui/admin/src/views/signIn/signIn.vue
portal-manager-ui/admin/src/views/signIn/signIn.vue
+7
-1
portal-manager-ui/admin/src/views/siteArrange/siteArrange.vue
...al-manager-ui/admin/src/views/siteArrange/siteArrange.vue
+9
-3
portal-manager-ui/admin/src/views/thePlatformIsSet/components/permissionsModel/components/EditPwd.vue
...mIsSet/components/permissionsModel/components/EditPwd.vue
+9
-2
portal-manager-ui/admin/src/views/thePlatformIsSet/components/permissionsModel/components/EditUser.vue
...IsSet/components/permissionsModel/components/EditUser.vue
+6
-1
portal-manager-ui/admin/src/views/thePlatformIsSet/components/permissionsModel/components/addUser.vue
...mIsSet/components/permissionsModel/components/addUser.vue
+6
-1
portal-manager-ui/admin/yarn.lock
portal-manager-ui/admin/yarn.lock
+5
-0
No files found.
portal-manager-ui/admin/package.json
View file @
21ed51e4
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
"axios"
:
"^0.27.2"
,
"axios"
:
"^0.27.2"
,
"babel-polyfill"
:
"^6.26.0"
,
"babel-polyfill"
:
"^6.26.0"
,
"core-js"
:
"^3.8.3"
,
"core-js"
:
"^3.8.3"
,
"crypto-js"
:
"^4.1.1"
,
"echarts"
:
"^5.3.3"
,
"echarts"
:
"^5.3.3"
,
"element-ui"
:
"^2.15.8"
,
"element-ui"
:
"^2.15.8"
,
"font-awesome"
:
"^4.7.0"
,
"font-awesome"
:
"^4.7.0"
,
...
...
portal-manager-ui/admin/src/main.js
View file @
21ed51e4
...
@@ -21,8 +21,8 @@ Object.keys(directives).forEach((name) =>
...
@@ -21,8 +21,8 @@ Object.keys(directives).forEach((name) =>
Vue
.
directive
(
name
,
directives
[
name
])
Vue
.
directive
(
name
,
directives
[
name
])
);
);
// datav
// datav
import
dataV
from
'
@jiaminghi/data-view
'
import
dataV
from
"
@jiaminghi/data-view
"
;
Vue
.
use
(
dataV
)
Vue
.
use
(
dataV
)
;
// 引入lodash
// 引入lodash
import
lodash
from
"
lodash
"
;
import
lodash
from
"
lodash
"
;
Vue
.
prototype
.
$_
=
lodash
;
Vue
.
prototype
.
$_
=
lodash
;
...
@@ -41,9 +41,9 @@ Vue.prototype.$codeMap = codeMap;
...
@@ -41,9 +41,9 @@ Vue.prototype.$codeMap = codeMap;
Vue
.
prototype
.
$bus
=
new
Vue
();
Vue
.
prototype
.
$bus
=
new
Vue
();
Vue
.
config
.
productionTip
=
false
;
Vue
.
config
.
productionTip
=
false
;
// 图片预
约
// 图片预
览
import
Viewer
from
'
v-viewer
'
import
Viewer
from
"
v-viewer
"
;
import
'
viewerjs/dist/viewer.css
'
import
"
viewerjs/dist/viewer.css
"
;
Vue
.
use
(
Viewer
);
Vue
.
use
(
Viewer
);
new
Vue
({
new
Vue
({
router
,
router
,
...
...
portal-manager-ui/admin/src/request/request.js
View file @
21ed51e4
...
@@ -18,12 +18,12 @@ service.interceptors.request.use(
...
@@ -18,12 +18,12 @@ service.interceptors.request.use(
"
Content-Type
"
:
"
application/json;charset=utf-8
"
,
"
Content-Type
"
:
"
application/json;charset=utf-8
"
,
};
};
const
Authorization
=
JSON
.
parse
(
localStorage
.
getItem
(
"
Authorization
"
));
const
Authorization
=
JSON
.
parse
(
localStorage
.
getItem
(
"
Authorization
"
));
const
siteid
=
JSON
.
parse
(
localStorage
.
getItem
(
"
siteId
"
))
const
siteid
=
JSON
.
parse
(
localStorage
.
getItem
(
"
siteId
"
))
;
if
(
Authorization
)
{
if
(
Authorization
)
{
config
.
headers
.
Authorization
=
Authorization
;
config
.
headers
.
Authorization
=
Authorization
;
config
.
headers
.
Authtoken
=
Authorization
;
config
.
headers
.
Authtoken
=
Authorization
;
config
.
headers
.
siteid
=
siteid
config
.
headers
.
siteid
=
siteid
;
}
}
return
config
;
return
config
;
},
},
...
@@ -42,7 +42,13 @@ service.interceptors.response.use(
...
@@ -42,7 +42,13 @@ service.interceptors.response.use(
maxCount
:
1
,
maxCount
:
1
,
duration
:
1
,
duration
:
1
,
});
});
}
else
if
(
code
===
401
)
{
}
else
if
(
code
===
401
||
code
===
9001
||
code
===
9002
||
code
===
101
||
code
===
102
)
{
message
.
error
({
message
.
error
({
message
:
msg
,
message
:
msg
,
maxCount
:
1
,
maxCount
:
1
,
...
@@ -98,8 +104,9 @@ service.interceptors.response.use(
...
@@ -98,8 +104,9 @@ service.interceptors.response.use(
}
else
{
}
else
{
if
(
JSON
.
stringify
(
error
).
includes
(
"
timeout
"
))
{
if
(
JSON
.
stringify
(
error
).
includes
(
"
timeout
"
))
{
Vue
.
prototype
.
$message
.
error
(
"
服务器响应超时,请刷新当前页
"
);
Vue
.
prototype
.
$message
.
error
(
"
服务器响应超时,请刷新当前页
"
);
}
else
{
error
.
message
=
"
连接服务器失败
"
;
}
}
error
.
message
=
"
连接服务器失败
"
;
}
}
message
.
error
({
message
.
error
({
message
:
error
.
message
,
message
:
error
.
message
,
...
...
portal-manager-ui/admin/src/router/routes.js
View file @
21ed51e4
...
@@ -25,7 +25,7 @@ const routes = [
...
@@ -25,7 +25,7 @@ const routes = [
import
(
import
(
/* webpackChunkName: "dataAdmin" */
"
@/views/dataAdmin/dataAdmin.vue
"
/* webpackChunkName: "dataAdmin" */
"
@/views/dataAdmin/dataAdmin.vue
"
),
),
meta
:
{
title
:
"
数据管理
"
},
meta
:
{
title
:
"
数据管理
"
,
activeMenu
:
"
/home/dataManagement
"
},
},
},
{
{
path
:
"
serviceDataAnalyse
"
,
path
:
"
serviceDataAnalyse
"
,
...
...
portal-manager-ui/admin/src/utils/index.js
0 → 100644
View file @
21ed51e4
import
CryptoJS
from
"
crypto-js
"
;
// 加密数据
export
let
encrypt
=
(
str
,
keyStr
,
ivStr
)
=>
{
keyStr
=
keyStr
?
keyStr
:
"
0000000671595991
"
;
ivStr
=
ivStr
?
ivStr
:
"
tdrdadq59tbss5n7
"
;
//密钥16位
let
key
=
CryptoJS
.
enc
.
Utf8
.
parse
(
keyStr
);
//加密向量16位
let
iv
=
CryptoJS
.
enc
.
Utf8
.
parse
(
ivStr
);
let
encrypted
=
CryptoJS
.
AES
.
encrypt
(
str
,
key
,
{
iv
:
iv
,
mode
:
CryptoJS
.
mode
.
CBC
,
padding
:
CryptoJS
.
pad
.
Pkcs7
,
});
return
encrypted
.
toString
();
};
/**
* 加密存储临时数据并解析对象
*/
const
aseKey
=
"
**_FXxx_1234_KEY
"
;
const
KEY
=
"
KEY_EXTRA
"
;
export
class
SessionCrypto
{
// 加密
static
setItem
(
key
=
KEY
,
value
=
""
)
{
if
(
typeof
key
===
"
string
"
)
{
const
stringify
=
JSON
.
stringify
(
value
);
const
encrypt
=
CryptoJS
.
AES
.
encrypt
(
stringify
,
CryptoJS
.
enc
.
Utf8
.
parse
(
aseKey
),
{
mode
:
CryptoJS
.
mode
.
ECB
,
padding
:
CryptoJS
.
pad
.
Pkcs7
,
}
).
toString
();
window
.
sessionStorage
.
setItem
(
key
,
encrypt
);
return
encrypt
;
}
}
// 解密
static
getItem
(
key
=
KEY
)
{
const
ssStr
=
window
.
sessionStorage
.
getItem
(
key
)
||
""
;
try
{
if
(
ssStr
)
{
const
decrypt
=
CryptoJS
.
AES
.
decrypt
(
ssStr
,
CryptoJS
.
enc
.
Utf8
.
parse
(
aseKey
),
{
mode
:
CryptoJS
.
mode
.
ECB
,
padding
:
CryptoJS
.
pad
.
Pkcs7
,
}
).
toString
(
CryptoJS
.
enc
.
Utf8
);
const
parseStr
=
JSON
.
parse
(
decrypt
);
return
parseStr
;
}
return
""
;
}
catch
(
e
)
{
return
""
;
}
}
// 删除
static
remove
(
key
)
{
window
.
sessionStorage
.
removeItem
(
key
);
}
}
portal-manager-ui/admin/src/views/dataActuary/dataActuary.vue
View file @
21ed51e4
...
@@ -59,7 +59,17 @@ export default {
...
@@ -59,7 +59,17 @@ export default {
methods
:
{
methods
:
{
// 跳转
// 跳转
handleJump
(
url
)
{
handleJump
(
url
)
{
this
.
$router
.
push
(
url
);
if
(
url
.
includes
(
"
http
"
))
{
let
token
=
Storage
.
get
(
2
,
"
Authorization
"
);
let
siteid
=
Storage
.
get
(
2
,
"
siteId
"
)
?
Storage
.
get
(
2
,
"
siteId
"
)
:
0
;
let
path
=
this
.
$route
.
path
;
window
.
open
(
`
${
url
}
?token=
${
token
}
&siteid=
${
siteid
}
&path=
${
path
}
`
,
"
_blank
"
);
}
else
{
this
.
$router
.
push
(
url
);
}
},
},
// 获取子菜单权限
// 获取子菜单权限
getChildrenPermission
()
{
getChildrenPermission
()
{
...
...
portal-manager-ui/admin/src/views/dataAdmin/dataAdmin.vue
View file @
21ed51e4
...
@@ -5,7 +5,13 @@
...
@@ -5,7 +5,13 @@
autoplay
autoplay
:autoplaySpeed=
"2400"
:autoplaySpeed=
"2400"
:dots=
"false"
:dots=
"false"
style=
"width: 100%; overflow: hidden; position: absolute; left: 0"
style=
"
width: 100%;
height: calc(100% - 72px);
overflow: hidden;
position: absolute;
left: 0;
"
>
>
<div
class=
"img_box img1"
></div>
<div
class=
"img_box img1"
></div>
<!-- style="
<!-- style="
...
@@ -314,7 +320,7 @@ export default {
...
@@ -314,7 +320,7 @@ export default {
overflow: hidden;
overflow: hidden;
.img_box {
.img_box {
width: 100%;
width: 100%;
height:
92.1vh
;
height:
calc(100vh - 72px)
;
overflow: hidden;
overflow: hidden;
background-size: cover;
background-size: cover;
}
}
...
...
portal-manager-ui/admin/src/views/home/components/changePassword.vue
View file @
21ed51e4
...
@@ -33,15 +33,19 @@
...
@@ -33,15 +33,19 @@
<div
slot=
"footer"
>
<div
slot=
"footer"
>
<a-button
style=
"margin-left: 10px"
@
click=
"resetForm"
>
重置
</a-button>
<a-button
style=
"margin-left: 10px"
@
click=
"resetForm"
>
重置
</a-button>
<a-button
type=
"primary"
class=
"addclass"
@
click=
"handleOk"
>
确定
</a-button>
<a-button
type=
"primary"
class=
"addclass"
@
click=
"handleOk"
>
确定
</a-button
>
</div>
</div>
</a-modal>
</a-modal>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
changeAccount
,
changePassWord
}
from
"
@/utils/js/validate
"
;
import
{
changeAccount
,
changePassWord
}
from
"
@/utils/js/validate
"
;
import
{
changePassword
}
from
"
@/api/user
"
;
import
{
changePassword
,
LogoutInterface
}
from
"
@/api/user
"
;
import
Storage
from
"
@/utils/js/Storage
"
;
import
Storage
from
"
@/utils/js/Storage
"
;
import
{
mapMutations
}
from
"
vuex
"
;
import
{
encrypt
}
from
"
@/utils
"
;
export
default
{
export
default
{
props
:
{
props
:
{
visibleEditPwd
:
{
visibleEditPwd
:
{
...
@@ -93,24 +97,29 @@ export default {
...
@@ -93,24 +97,29 @@ export default {
},
},
},
},
methods
:
{
methods
:
{
...
mapMutations
(
"
user
"
,
[
"
SET_USERDATA
"
]),
handleOk
()
{
handleOk
()
{
this
.
$refs
.
formData
.
validate
(
async
(
valid
)
=>
{
this
.
$refs
.
formData
.
validate
(
async
(
valid
)
=>
{
let
_this
=
this
;
if
(
valid
)
{
if
(
valid
)
{
let
obj
=
{
let
obj
=
{
loginName
:
this
.
form
.
loginName
,
loginName
:
encrypt
(
this
.
form
.
loginName
)
,
oldPwd
:
this
.
form
.
oldPwd
,
oldPwd
:
encrypt
(
this
.
form
.
oldPwd
)
,
newPwd
:
this
.
form
.
newPwd
,
newPwd
:
encrypt
(
this
.
form
.
newPwd
)
,
};
};
let
res
=
await
changePassword
(
obj
);
let
res
=
await
changePassword
(
obj
);
let
{
code
}
=
res
;
let
{
code
}
=
res
;
if
(
code
===
1
)
{
if
(
code
===
1
)
{
this
.
$message
.
success
(
"
密码修改成功,请重新登录
"
);
this
.
$message
.
success
(
"
密码修改成功,请重新登录
"
);
this
.
Visible
=
false
;
this
.
Visible
=
false
;
setTimeout
(()
=>
{
LogoutInterface
({}).
then
(()
=>
{
Storage
.
remove
(
2
,
"
userInfo
"
);
setTimeout
(()
=>
{
Storage
.
remove
(
2
,
"
Authorization
"
);
Storage
.
clear
(
2
);
this
.
$router
.
push
(
"
/
"
);
Storage
.
clear
(
1
);
},
1000
);
_this
.
SET_USERDATA
({});
_this
.
$router
.
push
(
"
/
"
);
},
1000
);
});
}
}
}
}
});
});
...
...
portal-manager-ui/admin/src/views/home/home.vue
View file @
21ed51e4
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
<a-menu
<a-menu
mode=
"horizontal"
mode=
"horizontal"
@
click=
"handelClick"
@
click=
"handelClick"
:
defaultSelectedKeys=
"[$route.path]
"
:
selectedKeys=
"curActive
"
:style=
"
{ lineHeight: '4.4rem' }"
:style=
"
{ lineHeight: '4.4rem' }"
>
>
<a-menu-item
v-for=
"v of menuTree_X"
:key=
"`$
{v.url}`">
{{
<a-menu-item
v-for=
"v of menuTree_X"
:key=
"`$
{v.url}`">
{{
...
@@ -135,6 +135,14 @@ export default {
...
@@ -135,6 +135,14 @@ export default {
];
];
return
arr
.
includes
(
this
.
$route
.
path
);
return
arr
.
includes
(
this
.
$route
.
path
);
},
},
curActive
()
{
let
router
=
this
.
$route
;
if
(
router
.
meta
.
activeMenu
)
{
return
[
router
.
meta
.
activeMenu
];
}
else
{
return
[
router
.
path
];
}
},
},
},
methods
:
{
methods
:
{
...
mapMutations
(
"
user
"
,
[
"
SET_USERDATA
"
]),
...
mapMutations
(
"
user
"
,
[
"
SET_USERDATA
"
]),
...
@@ -169,12 +177,9 @@ export default {
...
@@ -169,12 +177,9 @@ export default {
title
:
"
您是否确定退出登录?
"
,
title
:
"
您是否确定退出登录?
"
,
onOk
()
{
onOk
()
{
LogoutInterface
({}).
then
((
res
)
=>
{
LogoutInterface
({}).
then
((
res
)
=>
{
// this.$message.success(res.msg);
this
.
$message
.
success
(
"
退出成功
"
);
_this
.
$Storage
.
remove
(
2
,
"
Authorization
"
);
_this
.
$Storage
.
clear
(
2
);
_this
.
$Storage
.
remove
(
2
,
"
siteId
"
);
_this
.
$Storage
.
clear
(
1
);
_this
.
$Storage
.
remove
(
2
,
"
siteName
"
);
_this
.
$Storage
.
remove
(
2
,
"
userInfo
"
);
sessionStorage
.
removeItem
(
"
routeInfo
"
);
_this
.
SET_USERDATA
({});
_this
.
SET_USERDATA
({});
setTimeout
(()
=>
{
setTimeout
(()
=>
{
_this
.
$router
.
replace
({
path
:
"
/
"
});
_this
.
$router
.
replace
({
path
:
"
/
"
});
...
...
portal-manager-ui/admin/src/views/signIn/signIn.vue
View file @
21ed51e4
...
@@ -62,6 +62,7 @@
...
@@ -62,6 +62,7 @@
// import { mapMutations, mapActions } from "vuex";
// import { mapMutations, mapActions } from "vuex";
import
{
LoginInterface
}
from
"
@/api/user.js
"
;
import
{
LoginInterface
}
from
"
@/api/user.js
"
;
// import { changeAccount, changePassWord } from "@/utils/js/validate";
// import { changeAccount, changePassWord } from "@/utils/js/validate";
import
{
encrypt
}
from
"
@/utils
"
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -71,6 +72,7 @@ export default {
...
@@ -71,6 +72,7 @@ export default {
loginName
:
""
,
loginName
:
""
,
password
:
""
,
password
:
""
,
securityCode
:
""
,
securityCode
:
""
,
type
:
2
,
mark
:
""
,
mark
:
""
,
},
},
rules
:
{
rules
:
{
...
@@ -103,7 +105,11 @@ export default {
...
@@ -103,7 +105,11 @@ export default {
handleSubmit
()
{
handleSubmit
()
{
this
.
$refs
.
formData
.
validate
(
async
(
valid
)
=>
{
this
.
$refs
.
formData
.
validate
(
async
(
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
let
res
=
await
LoginInterface
(
this
.
form
);
let
res
=
await
LoginInterface
({
...
this
.
form
,
loginName
:
encrypt
(
this
.
form
.
loginName
),
password
:
encrypt
(
this
.
form
.
password
),
});
if
(
res
.
code
==
1
)
{
if
(
res
.
code
==
1
)
{
let
{
siteList
,
user
}
=
res
.
data
;
let
{
siteList
,
user
}
=
res
.
data
;
this
.
$Storage
.
set
(
2
,
"
siteList
"
,
siteList
);
this
.
$Storage
.
set
(
2
,
"
siteList
"
,
siteList
);
...
...
portal-manager-ui/admin/src/views/siteArrange/siteArrange.vue
View file @
21ed51e4
...
@@ -5,7 +5,13 @@
...
@@ -5,7 +5,13 @@
autoplay
autoplay
:autoplaySpeed=
"2000"
:autoplaySpeed=
"2000"
:dots=
"false"
:dots=
"false"
style=
"width: 100%; height: 100%; overflow: hidden"
style=
"
width: 100%;
height: calc(100% - 72px);
overflow: hidden;
position: absolute;
left: 0;
"
>
>
<div
class=
"img_box img1"
></div>
<div
class=
"img_box img1"
></div>
<!-- style="
<!-- style="
...
@@ -122,7 +128,7 @@ export default {
...
@@ -122,7 +128,7 @@ export default {
overflow: hidden;
overflow: hidden;
.img_box {
.img_box {
width: 100%;
width: 100%;
height:
92.1vh
;
height:
calc(100vh - 72px)
;
overflow: hidden;
overflow: hidden;
background-size: cover;
background-size: cover;
}
}
...
@@ -203,7 +209,7 @@ export default {
...
@@ -203,7 +209,7 @@ export default {
font-size: 16px;
font-size: 16px;
color: #ffffff;
color: #ffffff;
padding-top: 5px;
padding-top: 5px;
text-align:
left
;
text-align:
center
;
line-height: 20px;
line-height: 20px;
display: -webkit-box;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-box-orient: vertical;
...
...
portal-manager-ui/admin/src/views/thePlatformIsSet/components/permissionsModel/components/EditPwd.vue
View file @
21ed51e4
...
@@ -36,7 +36,9 @@
...
@@ -36,7 +36,9 @@
<div
slot=
"footer"
>
<div
slot=
"footer"
>
<a-button
style=
"margin-left: 10px"
@
click=
"handleClose"
>
取消
</a-button>
<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>
</div>
</a-modal>
</a-modal>
</div>
</div>
...
@@ -45,6 +47,7 @@
...
@@ -45,6 +47,7 @@
<
script
>
<
script
>
import
{
changeAccount
,
changePassWord
}
from
"
@/utils/js/validate
"
;
import
{
changeAccount
,
changePassWord
}
from
"
@/utils/js/validate
"
;
import
{
editPassword
}
from
"
@/api/user
"
;
import
{
editPassword
}
from
"
@/api/user
"
;
import
{
encrypt
}
from
"
@/utils
"
;
export
default
{
export
default
{
props
:
{
props
:
{
visibleEditPwd
:
{
visibleEditPwd
:
{
...
@@ -98,7 +101,11 @@ export default {
...
@@ -98,7 +101,11 @@ export default {
handleOk
()
{
handleOk
()
{
this
.
$refs
.
formData
.
validate
(
async
(
valid
)
=>
{
this
.
$refs
.
formData
.
validate
(
async
(
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
let
res
=
await
editPassword
(
this
.
form
);
let
res
=
await
editPassword
({
...
this
.
form
,
loginName
:
encrypt
(
this
.
form
.
loginName
),
newPwd
:
encrypt
(
this
.
form
.
newPwd
),
});
if
(
res
.
code
===
1
)
{
if
(
res
.
code
===
1
)
{
this
.
$message
.
success
(
"
密码修改成功
"
);
this
.
$message
.
success
(
"
密码修改成功
"
);
this
.
handleClose
();
this
.
handleClose
();
...
...
portal-manager-ui/admin/src/views/thePlatformIsSet/components/permissionsModel/components/EditUser.vue
View file @
21ed51e4
...
@@ -56,7 +56,9 @@
...
@@ -56,7 +56,9 @@
</a-form-model>
</a-form-model>
<div
slot=
"footer"
>
<div
slot=
"footer"
>
<a-button
style=
"margin-left: 10px"
@
click=
"resetForm"
>
重置
</a-button>
<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>
</div>
</a-modal>
</a-modal>
</div>
</div>
...
@@ -66,6 +68,7 @@
...
@@ -66,6 +68,7 @@
import
{
getListByParentId
}
from
"
@/api/area.js
"
;
import
{
getListByParentId
}
from
"
@/api/area.js
"
;
import
{
userSave
}
from
"
@/api/userManagement.js
"
;
import
{
userSave
}
from
"
@/api/userManagement.js
"
;
import
{
TreeSelect
}
from
"
ant-design-vue
"
;
import
{
TreeSelect
}
from
"
ant-design-vue
"
;
import
{
encrypt
}
from
"
@/utils
"
;
const
SHOW_PARENT
=
TreeSelect
.
SHOW_PARENT
;
//SHOW_ALL, SHOW_PARENT, SHOW_CHILD
const
SHOW_PARENT
=
TreeSelect
.
SHOW_PARENT
;
//SHOW_ALL, SHOW_PARENT, SHOW_CHILD
export
default
{
export
default
{
data
()
{
data
()
{
...
@@ -178,6 +181,8 @@ export default {
...
@@ -178,6 +181,8 @@ export default {
...
this
.
form
,
...
this
.
form
,
areaNames
:
JSON
.
stringify
(
this
.
form
.
areaNames
),
areaNames
:
JSON
.
stringify
(
this
.
form
.
areaNames
),
areaCodes
:
this
.
form
.
areaNames
.
map
((
v
)
=>
v
.
areaCode
).
join
(
"
,
"
),
areaCodes
:
this
.
form
.
areaNames
.
map
((
v
)
=>
v
.
areaCode
).
join
(
"
,
"
),
loginName
:
encrypt
(
this
.
form
.
loginName
),
loginPwd
:
encrypt
(
this
.
form
.
loginPwd
),
});
});
let
{
code
,
msg
}
=
res
;
let
{
code
,
msg
}
=
res
;
if
(
code
===
1
)
{
if
(
code
===
1
)
{
...
...
portal-manager-ui/admin/src/views/thePlatformIsSet/components/permissionsModel/components/addUser.vue
View file @
21ed51e4
...
@@ -80,7 +80,9 @@
...
@@ -80,7 +80,9 @@
</a-form-model>
</a-form-model>
<div
slot=
"footer"
>
<div
slot=
"footer"
>
<a-button
style=
"margin-left: 10px"
@
click=
"resetForm"
>
重置
</a-button>
<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>
</div>
</a-modal>
</a-modal>
</div>
</div>
...
@@ -91,6 +93,7 @@ import { changeAccount, changePassWord } from "@/utils/js/validate";
...
@@ -91,6 +93,7 @@ import { changeAccount, changePassWord } from "@/utils/js/validate";
import
{
getListByParentId
}
from
"
@/api/area.js
"
;
import
{
getListByParentId
}
from
"
@/api/area.js
"
;
import
{
userSave
}
from
"
@/api/userManagement.js
"
;
import
{
userSave
}
from
"
@/api/userManagement.js
"
;
import
{
TreeSelect
}
from
"
ant-design-vue
"
;
import
{
TreeSelect
}
from
"
ant-design-vue
"
;
import
{
encrypt
}
from
"
@/utils
"
;
const
SHOW_PARENT
=
TreeSelect
.
SHOW_PARENT
;
//SHOW_ALL, SHOW_PARENT, SHOW_CHILD
const
SHOW_PARENT
=
TreeSelect
.
SHOW_PARENT
;
//SHOW_ALL, SHOW_PARENT, SHOW_CHILD
export
default
{
export
default
{
data
()
{
data
()
{
...
@@ -189,6 +192,8 @@ export default {
...
@@ -189,6 +192,8 @@ export default {
...
this
.
form
,
...
this
.
form
,
areaCodes
:
this
.
form
.
areaCodes
.
join
(
"
,
"
),
areaCodes
:
this
.
form
.
areaCodes
.
join
(
"
,
"
),
areaNames
:
JSON
.
stringify
(
this
.
changeSelect
),
areaNames
:
JSON
.
stringify
(
this
.
changeSelect
),
loginName
:
encrypt
(
this
.
form
.
loginName
),
loginPwd
:
encrypt
(
this
.
form
.
loginPwd
),
});
});
let
{
code
,
msg
}
=
res
;
let
{
code
,
msg
}
=
res
;
if
(
code
===
1
)
{
if
(
code
===
1
)
{
...
...
portal-manager-ui/admin/yarn.lock
View file @
21ed51e4
...
@@ -2639,6 +2639,11 @@ cross-spawn@^7.0.3:
...
@@ -2639,6 +2639,11 @@ cross-spawn@^7.0.3:
shebang-command "^2.0.0"
shebang-command "^2.0.0"
which "^2.0.1"
which "^2.0.1"
crypto-js@^4.1.1:
version "4.1.1"
resolved "https://registry.npmmirror.com/crypto-js/-/crypto-js-4.1.1.tgz#9e485bcf03521041bd85844786b83fb7619736cf"
integrity sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw==
css-declaration-sorter@^6.3.1:
css-declaration-sorter@^6.3.1:
version "6.4.0"
version "6.4.0"
resolved "https://registry.npmmirror.com/css-declaration-sorter/-/css-declaration-sorter-6.4.0.tgz"
resolved "https://registry.npmmirror.com/css-declaration-sorter/-/css-declaration-sorter-6.4.0.tgz"
...
...
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