Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rongtong-app
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
融通安全管理系统
rongtong-app
Commits
62db9c41
Commit
62db9c41
authored
Mar 11, 2024
by
kaitly205422@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加记住密码功能
parent
ce972888
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
94 additions
and
138 deletions
+94
-138
newbee-v2-server.js
newbee-v2-server.js
+2
-2
public/index.html
public/index.html
+19
-6
src/App.vue
src/App.vue
+2
-1
src/views/login.vue
src/views/login.vue
+13
-33
src/views/riskProject/add/addCurrent.vue
src/views/riskProject/add/addCurrent.vue
+42
-38
src/views/riskProject/add/inherentRisks.vue
src/views/riskProject/add/inherentRisks.vue
+15
-58
vue.config.js
vue.config.js
+1
-0
No files found.
newbee-v2-server.js
View file @
62db9c41
var
server
=
require
(
'
pushstate-server
'
);
server
.
start
({
port
:
500
0
,
port
:
500
1
,
directory
:
'
./dist
'
});
});
\ No newline at end of file
public/index.html
View file @
62db9c41
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<meta
charset=
"utf-8"
/>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"
/>
<meta
http-equiv=
"pragma"
content=
"no-cache"
/>
<meta
http-equiv=
"Cache-Control"
content=
"no-cache, must-revalidate"
/>
<meta
http-equiv=
"expires"
content=
"Wed, 26 Feb 1997 08:21:57 GMT"
/>
<meta
http-equiv=
"expires"
content=
"0"
/>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
/>
<title>
融通危险源辨识系统
</title>
<link
rel=
"stylesheet"
href=
"//at.alicdn.com/t/font_1623819_3g3arzgtlmk.css"
>
<link
rel=
"stylesheet"
href=
"//at.alicdn.com/t/font_1623819_3g3arzgtlmk.css"
/>
</head>
<body>
<noscript>
<strong>
We're sorry but vue-newbee-shop doesn't work properly without JavaScript enabled. Please enable it to continue.
</strong>
<strong
>
We're sorry but vue-newbee-shop doesn't work properly without
JavaScript enabled. Please enable it to continue.
</strong
>
</noscript>
<div
id=
"app"
></div>
<!-- built files will be auto injected -->
...
...
src/App.vue
View file @
62db9c41
...
...
@@ -130,7 +130,6 @@ export default {
},
watch
:
{
$route
(
to
,
from
)
{
console
.
log
(
this
.
cachePage
);
// 列表操作去除缓存,刷新列表页
if
(
from
.
name
==
"
confirme-danger
"
||
to
.
name
==
"
confirme-danger
"
)
{
// 隐患整改页面缓存处理
...
...
@@ -151,6 +150,8 @@ export default {
this
.
handleCache
(
"
riskTaskList
"
,
to
.
name
,
"
taskLedger
"
);
}
else
if
((
from
.
name
==
'
riskInherent
'
&&
to
.
name
===
'
addInherent
'
)
||
(
to
.
name
==
'
riskInherent
'
&&
from
.
name
==
'
addInherent
'
))
{
this
.
handleCache
(
'
addInherent
'
,
to
.
name
,
'
riskInherent
'
)
}
else
if
((
from
.
name
==
'
riskInherent
'
&&
to
.
name
===
'
addCurrent
'
)
||
(
to
.
name
==
'
riskInherent
'
&&
from
.
name
==
'
addCurrent
'
))
{
this
.
handleCache
(
'
addCurrent
'
,
to
.
name
,
'
riskInherent
'
)
}
// else if (to.name == 'riskView' || from.name == 'riskInherent') {
// this.handleCache("addInherent", to.name, "riskInherent");
...
...
src/views/login.vue
View file @
62db9c41
...
...
@@ -2,11 +2,7 @@
<div
class=
"login"
:style=
"
{ backgroundImage: `url(${bg})` }">
<div
class=
"title"
>
<div
class=
"login-logo"
>
<van-image
width=
"48"
height=
"48"
:src=
"require('@/assets/imgs/logo.png')"
/>
<van-image
width=
"48"
height=
"48"
:src=
"require('@/assets/imgs/logo.png')"
/>
<span
style=
"margin-left: 6px"
>
融通危险源辨识系统
</span>
</div>
<!--
<div
class=
"login-name"
>
Enterprise Business Data Monitoring
</div>
-->
...
...
@@ -16,44 +12,26 @@
<div
class=
"hello"
>
Hello!
</div>
<div
class=
"welcome"
>
欢迎登录
<span></span>
!
</div>
<div
class=
"login-form"
>
<van-form
@
submit=
"onSubmit"
:show-error-message=
"false"
validate-trigger=
"onSubmit"
>
<van-form
@
submit=
"onSubmit"
:show-error-message=
"false"
validate-trigger=
"onSubmit"
>
<div
class=
"username-wrap"
>
<div
class=
"username-icon"
>
<van-image
:src=
"require('@/assets/login/login-username.png')"
/>
</div>
<van-field
v-model=
"username"
name=
"username"
label=
""
placeholder=
"账号"
:rules=
"[
{ required: true, message: '请填写账号' }]"
/>
<van-field
v-model=
"username"
name=
"username"
label=
""
placeholder=
"账号"
:rules=
"[
{ required: true, message: '请填写账号' }]" />
</div>
<div
class=
"passworld-wrap"
>
<div
class=
"passworld-icon"
>
<van-image
:src=
"require('@/assets/login/login-passworld.png')"
/>
</div>
<van-field
v-model=
"password"
type=
"password"
name=
"password"
placeholder=
"密码"
:rules=
"[
{ required: true, message: '请填写密码' }]"
/>
<van-field
v-model=
"password"
type=
"password"
name=
"password"
placeholder=
"密码"
:rules=
"[
{ required: true, message: '请填写密码' }]" />
</div>
<div
style=
"margin: 16px 0"
>
<van-checkbox
v-model=
"remember"
shape=
"square"
>
记住密码
</van-checkbox
>
<van-checkbox
v-model=
"remember"
shape=
"square"
>
记住密码
</van-checkbox>
</div>
<div
style=
"margin: 16px"
>
<van-button
round
block
type=
"info"
native-type=
"submit"
>
登录
</van-button
>
<van-button
round
block
type=
"info"
native-type=
"submit"
>
登录
</van-button>
</div>
</van-form>
</div>
...
...
@@ -81,7 +59,7 @@ export default {
password
:
""
,
remember
:
localStorage
.
getItem
(
"
isRemember
"
)
&&
localStorage
.
getItem
(
"
isRemember
"
)
!==
"
false
"
localStorage
.
getItem
(
"
isRemember
"
)
!==
"
false
"
?
true
:
false
,
};
...
...
@@ -126,10 +104,11 @@ export default {
postFun
(
"
/login
"
,
values
).
then
((
Response
)
=>
{
if
(
Response
.
code
==
200
)
{
this
.
$toast
.
clear
();
setLocalUserInfo
(
{
const
localUserInfo
=
{
loginName
:
values
.
username
,
loginPassword
:
Base64
.
encode
(
values
.
password
),
});
}
// setLocalUserInfo(localUserInfo);
setToken
(
Response
.
token
);
getFun
(
"
/getInfo
"
).
then
((
Response2
)
=>
{
console
.
log
(
...
...
@@ -139,6 +118,7 @@ export default {
);
var
userInfo
=
{
...
Response2
.
user
,
...
localUserInfo
};
/* 存储用户信息 */
setUserInfo
(
userInfo
);
...
...
src/views/riskProject/add/addCurrent.vue
View file @
62db9c41
This diff is collapsed.
Click to expand it.
src/views/riskProject/add/inherentRisks.vue
View file @
62db9c41
...
...
@@ -8,32 +8,12 @@
<van-tabs
v-model=
"active"
@
change=
"tabList"
color=
"#2980f7"
animated
>
<van-tab
:title=
"buildingName"
>
<van-dropdown-menu
z-index=
"1000"
>
<van-dropdown-item
v-model=
"value0"
@
change=
"changeBuild"
:options=
"option0"
get-container=
"body"
/>
<van-dropdown-item
v-model=
"value1"
@
change=
"changeFloor"
:options=
"option1"
get-container=
"body"
/>
<van-dropdown-item
v-model=
"value2"
@
change=
"changeRoom"
:options=
"option2"
get-container=
"body"
/>
<van-dropdown-item
v-model=
"value0"
@
change=
"changeBuild"
:options=
"option0"
get-container=
"body"
/>
<van-dropdown-item
v-model=
"value1"
@
change=
"changeFloor"
:options=
"option1"
get-container=
"body"
/>
<van-dropdown-item
v-model=
"value2"
@
change=
"changeRoom"
:options=
"option2"
get-container=
"body"
/>
</van-dropdown-menu>
<div
class=
"con-list"
>
<van-cell-group
inset
v-for=
"(item, index) in messageList"
:key=
"index"
@
click=
"touchstart(index, item)"
>
<van-cell-group
inset
v-for=
"(item, index) in messageList"
:key=
"index"
@
click=
"touchstart(index, item)"
>
<div
style=
"font-size: 0.45rem; padding: 5px 0"
>
{{
item
.
name
}}
</div>
...
...
@@ -42,8 +22,8 @@
<van-row
gutter=
""
>
<van-col
span=
"9"
>
发起时间:
</van-col>
<van-col
span=
"15"
>
{{
timestampToTimes
(
item
.
createTime
)
}}
</van-col>
timestampToTimes
(
item
.
createTime
)
}}
</van-col>
</van-row>
<van-row
gutter=
""
>
<van-col
span=
"9"
>
楼层:
</van-col>
...
...
@@ -60,37 +40,25 @@
</van-row>
<van-overlay
:show=
"showIndex == index"
>
<div
class=
"wrapper"
@
click.stop=
"showIndex = null"
>
<van-button
round
type=
"primary"
@
click=
"goDetail(item)"
>
编辑
</van-button
>
<van-button
round
type=
"danger"
@
click=
"delInherent(item)"
v-show=
"active == 0"
>
删除
</van-button
>
<van-button
round
type=
"primary"
@
click=
"goDetail(item)"
>
编辑
</van-button>
<van-button
round
type=
"danger"
@
click=
"delInherent(item)"
v-show=
"active == 0"
>
删除
</van-button>
</div>
</van-overlay>
</van-cell-group>
<div
style=
"
<div
style=
"
width: 100%;
text-align: center;
font-size: 0.48rem;
position: fixed;
top: 30%;
"
v-if=
"messageList['length'] == 0"
>
"
v-if=
"messageList['length'] == 0"
>
暂无数据
</div>
</div>
</van-tab>
</van-tabs>
</div>
<div
style=
"
<div
style=
"
display: flex;
justify-content: space-around;
background-color: #fff;
...
...
@@ -100,26 +68,16 @@
text-align: center;
position: fixed;
bottom: 0;
"
>
<div
@
click=
"copyFloor"
style=
"color: #4bced0; font-size: 14px; font-weight: 600"
>
"
>
<div
@
click=
"copyFloor"
style=
"color: #4bced0; font-size: 14px; font-weight: 600"
>
<div
style=
"font-size: 22px"
><van-icon
name=
"coupon-o"
/></div>
<div>
复制楼层
</div>
</div>
<div
@
click=
"performTasks"
style=
"color: #4bced0; font-size: 14px; font-weight: 600"
>
<div
@
click=
"performTasks"
style=
"color: #4bced0; font-size: 14px; font-weight: 600"
>
<div
style=
"font-size: 22px"
><van-icon
name=
"plus"
/></div>
<div>
新增固有风险
</div>
</div>
<div
@
click=
"endTasks"
style=
"color: #d9001b; font-size: 14px; font-weight: 600"
>
<div
@
click=
"endTasks"
style=
"color: #d9001b; font-size: 14px; font-weight: 600"
>
<div
style=
"font-size: 22px"
><van-icon
name=
"cross"
/></div>
<div>
任务执行结束
</div>
</div>
...
...
@@ -354,7 +312,6 @@ export default {
let
arr
=
this
.
floorListData
.
filter
(
(
item
)
=>
item
.
name
==
this
.
value0
)[
0
].
children
;
console
.
log
(
arr
);
if
(
!
arr
)
arr
=
[];
arr
=
[{
id
:
"
-1
"
,
name
:
"
全部
"
},
...
arr
];
this
.
option1
=
this
.
changeData
(
arr
);
...
...
vue.config.js
View file @
62db9c41
const
Timestamp
=
new
Date
().
getTime
();
module
.
exports
=
{
productionSourceMap
:
false
,
devServer
:
{
...
...
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