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
Show 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>
...
...
@@ -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
...
...
@@ -16,7 +16,8 @@
</div>
<van-field
readonly
required
name=
"userName"
:value=
"form.userName"
label=
"评估人"
placeholder=
"请输入"
/>
<van-field
readonly
required
name=
"projectName"
:value=
"form.projectName"
label=
"所属项目"
placeholder=
"请输入"
/>
<van-field
readonly
required
name=
"buildingName"
:value=
"form.buildingName"
label=
"所属建筑物"
placeholder=
"请输入 "
/>
<van-field
readonly
required
name=
"buildingName"
:value=
"form.buildingName"
label=
"所属建筑物"
placeholder=
"请输入 "
/>
<div
style=
"display: flex"
>
<van-field
required
clickable
name=
"floorName"
:value=
"form.floorName"
label=
"所属楼层"
placeholder=
"请选择"
...
...
@@ -34,8 +35,9 @@
<van-field
required
clickable
name=
"name"
v-model=
"form.name"
label=
"危险源名称"
placeholder=
"请输入"
:rules=
"[
{ required: true, message: '危险源名称不能为空' }]" />
<!-- 单选 -->
<van-field
readonly
required
clickable
name=
"pointType"
v-model=
"form.pointType"
label=
"风险点类型"
placeholder=
"请选择"
@
click=
"selectData('pointType', true)"
:rules=
"[
{ required: true, message: '风险点类型不能为空' }]" />
<van-field
readonly
required
clickable
name=
"pointType"
v-model=
"form.pointType"
label=
"风险点类型"
placeholder=
"请选择"
@
click=
"selectData('pointType', true)"
:rules=
"[
{ required: true, message: '风险点类型不能为空' }]" />
<van-field
required
label=
"是否为特种设备"
v-show=
"form.pointType == '设备设施类'"
>
<template
#input
>
<van-radio-group
v-model=
"form.specialEquipment"
direction=
"horizontal"
>
...
...
@@ -76,8 +78,8 @@
</div>
<van-field
name=
"hdPicture1"
label=
"风险图片"
>
<
template
#input
>
<van-uploader
@
delete=
"deleteFile(...arguments, 'pictureFile')"
multiple
:max-count=
"5"
upload-text=
"最多上传五个"
v-model=
"uploaderImg"
>
<van-uploader
@
delete=
"deleteFile(...arguments, 'pictureFile')"
multiple
:max-count=
"5"
upload-text=
"最多上传五个"
v-model=
"uploaderImg"
>
<template
slot=
"default"
>
<!-- 11111111111 -->
<div
style=
"
...
...
@@ -108,8 +110,8 @@
</div>
<van-field
label=
"技术措施"
>
<
template
#input
>
<van-field
v-model=
"form.measuresProject"
name=
"measuresProject"
label=
""
type=
"textarea"
rows=
"3"
autosize
placeholder=
"请输入"
style=
"padding-left: 0; padding-top: 0"
/>
<van-field
v-model=
"form.measuresProject"
name=
"measuresProject"
label=
""
type=
"textarea"
rows=
"3"
autosize
placeholder=
"请输入"
style=
"padding-left: 0; padding-top: 0"
/>
</
template
>
</van-field>
<van-field
name=
"measuresProjectFile[]"
label=
"技术措施附件"
>
...
...
@@ -192,12 +194,14 @@
<van-field
v-model=
"form.measuresDeptName"
name=
"measuresDeptName"
label=
"管控责任单位 "
type=
"input"
rows=
"1"
autosize
placeholder=
"请输入"
list=
"measure-deptname"
@
input=
"measuresDeptNameChange"
/>
<datalist
id=
"measure-deptname"
>
<option
:value=
"item.measuresDeptName"
v-for=
"item in measureDeptList"
:key=
"item.measuresDeptName"
></option>
<option
:value=
"item.measuresDeptName"
v-for=
"item in measureDeptList"
:key=
"item.measuresDeptName"
>
</option>
</datalist>
<van-field
v-model=
"form.measuresUserName"
name=
"measuresUserName"
label=
"管控责任人 "
type=
"input"
rows=
"1"
autosize
placeholder=
"请输入"
list=
"measure-name"
@
input=
"measuresUserNameChange"
/>
<van-field
v-model=
"form.measuresUserName"
name=
"measuresUserName"
label=
"管控责任人 "
type=
"input"
rows=
"1"
autosize
placeholder=
"请输入"
list=
"measure-name"
@
input=
"measuresUserNameChange"
/>
<datalist
id=
"measure-name"
>
<option
v-for=
"item in measureNameList"
:key=
"item.measuresUserName"
:value=
"item.measuresUserName"
></option>
<option
v-for=
"item in measureNameList"
:key=
"item.measuresUserName"
:value=
"item.measuresUserName"
>
</option>
</datalist>
<van-field
v-model=
"form.measuresUserPhone"
name=
"measuresUserPhone"
label=
"管控责任人联系方式"
type=
"input"
rows=
"1"
autosize
placeholder=
"请输入"
maxlength=
"11"
/>
...
...
@@ -291,13 +295,14 @@
<!-- 楼层弹出层 -->
<van-popup
v-model=
"ShowfloorList"
position=
"bottom"
:style=
"{ height: '100%' }"
>
<selectFloor
v-if=
"ShowfloorList"
:listdata=
"floorSource"
@
closeSlect=
"closeSlectfloor"
@
saveSlect=
"saveSlectfloor"
></selectFloor>
@
saveSlect=
"saveSlectfloor"
>
</selectFloor>
</van-popup>
<!-- 单选弹出层 -->
<van-popup
v-model=
"showSelect"
position=
"bottom"
>
<van-picker
v-if=
"showSelect"
show-toolbar
value-key=
"dictValue"
:columns=
"columnsData"
@
confirm=
"saveSelect"
@
cancel=
"showSelect = false"
/>
<van-picker
v-if=
"showSelect"
show-toolbar
value-key=
"dictValue"
:columns=
"columnsData"
@
c
onfirm=
"saveSelect"
@
c
ancel=
"showSelect = false"
/>
</van-popup>
<!-- 复选弹出层 -->
<van-popup
v-model=
"showCheckSelect"
position=
"bottom"
:style=
"{ height: '100%' }"
>
...
...
@@ -479,7 +484,6 @@ export default {
activated
()
{
console
.
log
(
'
activated
'
)
this
.
showSetRank
=
false
;
// 再次关闭弹出层 以防万一
debugger
;
this
.
showGradeDialog
=
false
;
this
.
$set
(
this
.
form
,
'
level
'
,
sessionStorage
.
getItem
(
"
level
"
));
},
...
...
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>
...
...
@@ -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