Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety-progress
Project
Project
Details
Activity
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
耿迪迪
gassafety-progress
Commits
9eac4df9
Commit
9eac4df9
authored
Feb 14, 2022
by
耿迪迪
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://111.61.77.35:15/gengdidi/gassafety-progress
parents
5ef36e23
0937891a
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
552 additions
and
549 deletions
+552
-549
TSafeEquipmentStandingBook.java
.../com/zehong/system/domain/TSafeEquipmentStandingBook.java
+2
-2
TTroubleStandingBook.java
...n/java/com/zehong/system/domain/TTroubleStandingBook.java
+15
-1
TTroubleStandingBookForm.java
...m/zehong/system/domain/form/TTroubleStandingBookForm.java
+8
-0
TTroubleStandingBookMapper.xml
...in/resources/mapper/system/TTroubleStandingBookMapper.xml
+7
-1
login.vue
gassafetyprogress-web/src/views/login.vue
+82
-36
index.vue
...typrogress-web/src/views/standingBook/equipment/index.vue
+95
-27
index.vue
...ress-web/src/views/standingBook/equipmentDetail/index.vue
+0
-103
index.vue
...afetyprogress-web/src/views/standingBook/hidden/index.vue
+197
-113
index.vue
...rogress-web/src/views/standingBook/hiddenDetail/index.vue
+0
-108
index.vue
...fetyprogress-web/src/views/standingBook/trouble/index.vue
+146
-41
index.vue
...ogress-web/src/views/standingBook/troubleDetail/index.vue
+0
-117
No files found.
gassafetyprogress-system/src/main/java/com/zehong/system/domain/TSafeEquipmentStandingBook.java
View file @
9eac4df9
...
@@ -41,8 +41,8 @@ public class TSafeEquipmentStandingBook extends BaseEntity
...
@@ -41,8 +41,8 @@ public class TSafeEquipmentStandingBook extends BaseEntity
private
String
linkMobile
;
private
String
linkMobile
;
/** 安装时间 */
/** 安装时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd
HH:mm:ss
"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"安装时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd
HH:mm:ss
"
)
@Excel
(
name
=
"安装时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
installTime
;
private
Date
installTime
;
/** 品牌名称 */
/** 品牌名称 */
...
...
gassafetyprogress-system/src/main/java/com/zehong/system/domain/TTroubleStandingBook.java
View file @
9eac4df9
...
@@ -59,6 +59,11 @@ public class TTroubleStandingBook extends BaseEntity
...
@@ -59,6 +59,11 @@ public class TTroubleStandingBook extends BaseEntity
@Excel
(
name
=
"是否处理:1.已处理 2.未处理"
)
@Excel
(
name
=
"是否处理:1.已处理 2.未处理"
)
private
String
isDeal
;
private
String
isDeal
;
/** 事故发生时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@Excel
(
name
=
"事故发生时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
happenDate
;
/** 处理完成时间 */
/** 处理完成时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@Excel
(
name
=
"处理完成时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd HH:mm:ss"
)
@Excel
(
name
=
"处理完成时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd HH:mm:ss"
)
...
@@ -170,6 +175,15 @@ public class TTroubleStandingBook extends BaseEntity
...
@@ -170,6 +175,15 @@ public class TTroubleStandingBook extends BaseEntity
{
{
return
isDeal
;
return
isDeal
;
}
}
public
Date
getHappenDate
()
{
return
happenDate
;
}
public
void
setHappenDate
(
Date
happenDate
)
{
this
.
happenDate
=
happenDate
;
}
public
void
setDealDate
(
Date
dealDate
)
public
void
setDealDate
(
Date
dealDate
)
{
{
this
.
dealDate
=
dealDate
;
this
.
dealDate
=
dealDate
;
...
...
gassafetyprogress-system/src/main/java/com/zehong/system/domain/form/TTroubleStandingBookForm.java
View file @
9eac4df9
...
@@ -28,6 +28,14 @@ public class TTroubleStandingBookForm
...
@@ -28,6 +28,14 @@ public class TTroubleStandingBookForm
/** 是否处理:1.已处理 2.未处理 */
/** 是否处理:1.已处理 2.未处理 */
private
String
isDeal
;
private
String
isDeal
;
/** 事故发生起始时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
happenDateStart
;
/** 事故发生截止时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
happenDateEnd
;
/** 处理完成起始时间 */
/** 处理完成起始时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
dealDateStart
;
private
Date
dealDateStart
;
...
...
gassafetyprogress-system/src/main/resources/mapper/system/TTroubleStandingBookMapper.xml
View file @
9eac4df9
...
@@ -16,6 +16,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -16,6 +16,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"responsibleUnit"
column=
"responsible_unit"
/>
<result
property=
"responsibleUnit"
column=
"responsible_unit"
/>
<result
property=
"responsiblePeople"
column=
"responsible_people"
/>
<result
property=
"responsiblePeople"
column=
"responsible_people"
/>
<result
property=
"isDeal"
column=
"is_deal"
/>
<result
property=
"isDeal"
column=
"is_deal"
/>
<result
property=
"happenDate"
column=
"happen_date"
/>
<result
property=
"dealDate"
column=
"deal_date"
/>
<result
property=
"dealDate"
column=
"deal_date"
/>
<result
property=
"createBy"
column=
"create_by"
/>
<result
property=
"createBy"
column=
"create_by"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"createTime"
column=
"create_time"
/>
...
@@ -26,7 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -26,7 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
</resultMap>
<sql
id=
"selectTTroubleStandingBookVo"
>
<sql
id=
"selectTTroubleStandingBookVo"
>
select trouble_id, trouble_name, trouble_location, longitude, latitude, trouble_type, brief_process, trouble_reason, responsible_unit, responsible_people, is_deal, deal_date, create_by, create_time, update_by, update_time, is_del, remarks from t_trouble_standing_book
select trouble_id, trouble_name, trouble_location, longitude, latitude, trouble_type, brief_process, trouble_reason, responsible_unit, responsible_people, is_deal,
happen_date,
deal_date, create_by, create_time, update_by, update_time, is_del, remarks from t_trouble_standing_book
</sql>
</sql>
<select
id=
"selectTTroubleStandingBookList"
parameterType=
"TTroubleStandingBookForm"
resultMap=
"TTroubleStandingBookResult"
>
<select
id=
"selectTTroubleStandingBookList"
parameterType=
"TTroubleStandingBookForm"
resultMap=
"TTroubleStandingBookResult"
>
...
@@ -35,6 +36,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -35,6 +36,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"troubleName != null and troubleName != ''"
>
and trouble_name like concat('%', #{troubleName}, '%')
</if>
<if
test=
"troubleName != null and troubleName != ''"
>
and trouble_name like concat('%', #{troubleName}, '%')
</if>
<if
test=
"troubleType != null and troubleType != ''"
>
and trouble_type = #{troubleType}
</if>
<if
test=
"troubleType != null and troubleType != ''"
>
and trouble_type = #{troubleType}
</if>
<if
test=
"isDeal != null and isDeal != ''"
>
and is_deal = #{isDeal}
</if>
<if
test=
"isDeal != null and isDeal != ''"
>
and is_deal = #{isDeal}
</if>
<if
test=
"happenDateStart != null "
>
and happen_date
>
= #{happenDateStart}
</if>
<if
test=
"happenDateEnd != null "
>
and happen_date
<
= #{happenDateEnd}
</if>
<if
test=
"dealDateStart != null "
>
and deal_date
>
= #{dealDateStart}
</if>
<if
test=
"dealDateStart != null "
>
and deal_date
>
= #{dealDateStart}
</if>
<if
test=
"dealDateEnd != null "
>
and deal_date
<
= #{dealDateEnd}
</if>
<if
test=
"dealDateEnd != null "
>
and deal_date
<
= #{dealDateEnd}
</if>
</where>
</where>
...
@@ -58,6 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -58,6 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"responsibleUnit != null"
>
responsible_unit,
</if>
<if
test=
"responsibleUnit != null"
>
responsible_unit,
</if>
<if
test=
"responsiblePeople != null"
>
responsible_people,
</if>
<if
test=
"responsiblePeople != null"
>
responsible_people,
</if>
<if
test=
"isDeal != null"
>
is_deal,
</if>
<if
test=
"isDeal != null"
>
is_deal,
</if>
<if
test=
"happenDate != null"
>
happen_date,
</if>
<if
test=
"dealDate != null"
>
deal_date,
</if>
<if
test=
"dealDate != null"
>
deal_date,
</if>
<if
test=
"createBy != null"
>
create_by,
</if>
<if
test=
"createBy != null"
>
create_by,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
...
@@ -77,6 +81,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -77,6 +81,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"responsibleUnit != null"
>
#{responsibleUnit},
</if>
<if
test=
"responsibleUnit != null"
>
#{responsibleUnit},
</if>
<if
test=
"responsiblePeople != null"
>
#{responsiblePeople},
</if>
<if
test=
"responsiblePeople != null"
>
#{responsiblePeople},
</if>
<if
test=
"isDeal != null"
>
#{isDeal},
</if>
<if
test=
"isDeal != null"
>
#{isDeal},
</if>
<if
test=
"happenDate != null"
>
#{happenDate},
</if>
<if
test=
"dealDate != null"
>
#{dealDate},
</if>
<if
test=
"dealDate != null"
>
#{dealDate},
</if>
<if
test=
"createBy != null"
>
#{createBy},
</if>
<if
test=
"createBy != null"
>
#{createBy},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
...
@@ -100,6 +105,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -100,6 +105,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"responsibleUnit != null"
>
responsible_unit = #{responsibleUnit},
</if>
<if
test=
"responsibleUnit != null"
>
responsible_unit = #{responsibleUnit},
</if>
<if
test=
"responsiblePeople != null"
>
responsible_people = #{responsiblePeople},
</if>
<if
test=
"responsiblePeople != null"
>
responsible_people = #{responsiblePeople},
</if>
<if
test=
"isDeal != null"
>
is_deal = #{isDeal},
</if>
<if
test=
"isDeal != null"
>
is_deal = #{isDeal},
</if>
<if
test=
"happenDate != null"
>
happen_date = #{happenDate},
</if>
<if
test=
"dealDate != null"
>
deal_date = #{dealDate},
</if>
<if
test=
"dealDate != null"
>
deal_date = #{dealDate},
</if>
<if
test=
"createBy != null"
>
create_by = #{createBy},
</if>
<if
test=
"createBy != null"
>
create_by = #{createBy},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
...
...
gassafetyprogress-web/src/views/login.vue
View file @
9eac4df9
<
template
>
<
template
>
<div
class=
"login"
>
<div
class=
"login"
>
<el-form
ref=
"loginForm"
:model=
"loginForm"
:rules=
"loginRules"
class=
"login-form"
>
<el-form
ref=
"loginForm"
:model=
"loginForm"
:rules=
"loginRules"
class=
"login-form"
>
<h3
class=
"title"
>
泽宏后台管理系统
</h3>
<h3
class=
"title"
>
泽宏后台管理系统
</h3>
<el-form-item
prop=
"username"
>
<el-form-item
prop=
"username"
>
<el-input
v-model=
"loginForm.username"
type=
"text"
auto-complete=
"off"
placeholder=
"账号"
>
<el-input
<svg-icon
slot=
"prefix"
icon-class=
"user"
class=
"el-input__icon input-icon"
/>
v-model=
"loginForm.username"
type=
"text"
auto-complete=
"off"
placeholder=
"账号"
>
<svg-icon
slot=
"prefix"
icon-class=
"user"
class=
"el-input__icon input-icon"
/>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
prop=
"password"
>
<el-form-item
prop=
"password"
>
...
@@ -15,7 +29,11 @@
...
@@ -15,7 +29,11 @@
placeholder=
"密码"
placeholder=
"密码"
@
keyup
.
enter
.
native=
"handleLogin"
@
keyup
.
enter
.
native=
"handleLogin"
>
>
<svg-icon
slot=
"prefix"
icon-class=
"password"
class=
"el-input__icon input-icon"
/>
<svg-icon
slot=
"prefix"
icon-class=
"password"
class=
"el-input__icon input-icon"
/>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
prop=
"code"
>
<el-form-item
prop=
"code"
>
...
@@ -26,19 +44,27 @@
...
@@ -26,19 +44,27 @@
style=
"width: 63%"
style=
"width: 63%"
@
keyup
.
enter
.
native=
"handleLogin"
@
keyup
.
enter
.
native=
"handleLogin"
>
>
<svg-icon
slot=
"prefix"
icon-class=
"validCode"
class=
"el-input__icon input-icon"
/>
<svg-icon
slot=
"prefix"
icon-class=
"validCode"
class=
"el-input__icon input-icon"
/>
</el-input>
</el-input>
<div
class=
"login-code"
>
<div
class=
"login-code"
>
<img
:src=
"codeUrl"
@
click=
"getCode"
class=
"login-code-img"
/>
<img
:src=
"codeUrl"
@
click=
"getCode"
class=
"login-code-img"
/>
</div>
</div>
</el-form-item>
</el-form-item>
<el-checkbox
v-model=
"loginForm.rememberMe"
style=
"margin:0px 0px 25px 0px;"
>
记住密码
</el-checkbox>
<el-checkbox
<el-form-item
style=
"width:100%;"
>
v-model=
"loginForm.rememberMe"
style=
"margin: 0px 0px 25px 0px"
>
记住密码
</el-checkbox
>
<el-form-item
style=
"width: 100%"
>
<el-button
<el-button
:loading=
"loading"
:loading=
"loading"
size=
"medium"
size=
"medium"
type=
"primary"
type=
"primary"
style=
"width:
100%;
"
style=
"width:
100%
"
@
click
.
native
.
prevent=
"handleLogin"
@
click
.
native
.
prevent=
"handleLogin"
>
>
<span
v-if=
"!loading"
>
登 录
</span>
<span
v-if=
"!loading"
>
登 录
</span>
...
@@ -54,9 +80,9 @@
...
@@ -54,9 +80,9 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
getCodeImg
}
from
"@/api/login"
;
import
{
getCodeImg
,
getInfo
}
from
"@/api/login"
;
import
Cookies
from
"js-cookie"
;
import
Cookies
from
"js-cookie"
;
import
{
encrypt
,
decrypt
}
from
'@/utils/jsencrypt'
import
{
encrypt
,
decrypt
}
from
"@/utils/jsencrypt"
;
export
default
{
export
default
{
name
:
"Login"
,
name
:
"Login"
,
...
@@ -69,29 +95,30 @@ export default {
...
@@ -69,29 +95,30 @@ export default {
password
:
"admin123"
,
password
:
"admin123"
,
rememberMe
:
false
,
rememberMe
:
false
,
code
:
""
,
code
:
""
,
uuid
:
""
uuid
:
""
,
},
},
loginRules
:
{
loginRules
:
{
username
:
[
username
:
[
{
required
:
true
,
trigger
:
"blur"
,
message
:
"用户名不能为空"
}
{
required
:
true
,
trigger
:
"blur"
,
message
:
"用户名不能为空"
}
,
],
],
password
:
[
password
:
[
{
required
:
true
,
trigger
:
"blur"
,
message
:
"密码不能为空"
}
{
required
:
true
,
trigger
:
"blur"
,
message
:
"密码不能为空"
},
],
code
:
[
{
required
:
true
,
trigger
:
"change"
,
message
:
"验证码不能为空"
},
],
],
code
:
[{
required
:
true
,
trigger
:
"change"
,
message
:
"验证码不能为空"
}]
},
},
loading
:
false
,
loading
:
false
,
redirect
:
undefined
redirect
:
undefined
,
};
};
},
},
watch
:
{
watch
:
{
$route
:
{
$route
:
{
handler
:
function
(
route
)
{
handler
:
function
(
route
)
{
this
.
redirect
=
route
.
query
&&
route
.
query
.
redirect
;
this
.
redirect
=
route
.
query
&&
route
.
query
.
redirect
;
},
},
immediate
:
true
immediate
:
true
,
}
}
,
},
},
created
()
{
created
()
{
this
.
getCode
();
this
.
getCode
();
...
@@ -99,7 +126,7 @@ export default {
...
@@ -99,7 +126,7 @@ export default {
},
},
methods
:
{
methods
:
{
getCode
()
{
getCode
()
{
getCodeImg
().
then
(
res
=>
{
getCodeImg
().
then
(
(
res
)
=>
{
this
.
codeUrl
=
"data:image/gif;base64,"
+
res
.
img
;
this
.
codeUrl
=
"data:image/gif;base64,"
+
res
.
img
;
this
.
loginForm
.
uuid
=
res
.
uuid
;
this
.
loginForm
.
uuid
=
res
.
uuid
;
});
});
...
@@ -107,36 +134,55 @@ export default {
...
@@ -107,36 +134,55 @@ export default {
getCookie
()
{
getCookie
()
{
const
username
=
Cookies
.
get
(
"username"
);
const
username
=
Cookies
.
get
(
"username"
);
const
password
=
Cookies
.
get
(
"password"
);
const
password
=
Cookies
.
get
(
"password"
);
const
rememberMe
=
Cookies
.
get
(
'rememberMe'
)
const
rememberMe
=
Cookies
.
get
(
"rememberMe"
);
this
.
loginForm
=
{
this
.
loginForm
=
{
username
:
username
===
undefined
?
this
.
loginForm
.
username
:
username
,
username
:
username
===
undefined
?
this
.
loginForm
.
username
:
username
,
password
:
password
===
undefined
?
this
.
loginForm
.
password
:
decrypt
(
password
),
password
:
rememberMe
:
rememberMe
===
undefined
?
false
:
Boolean
(
rememberMe
)
password
===
undefined
?
this
.
loginForm
.
password
:
decrypt
(
password
),
rememberMe
:
rememberMe
===
undefined
?
false
:
Boolean
(
rememberMe
),
};
};
},
},
handleLogin
()
{
handleLogin
()
{
this
.
$refs
.
loginForm
.
validate
(
valid
=>
{
this
.
$refs
.
loginForm
.
validate
(
(
valid
)
=>
{
if
(
valid
)
{
if
(
valid
)
{
this
.
loading
=
true
;
this
.
loading
=
true
;
if
(
this
.
loginForm
.
rememberMe
)
{
if
(
this
.
loginForm
.
rememberMe
)
{
Cookies
.
set
(
"username"
,
this
.
loginForm
.
username
,
{
expires
:
30
});
Cookies
.
set
(
"username"
,
this
.
loginForm
.
username
,
{
expires
:
30
});
Cookies
.
set
(
"password"
,
encrypt
(
this
.
loginForm
.
password
),
{
expires
:
30
});
Cookies
.
set
(
"password"
,
encrypt
(
this
.
loginForm
.
password
),
{
Cookies
.
set
(
'rememberMe'
,
this
.
loginForm
.
rememberMe
,
{
expires
:
30
});
expires
:
30
,
});
Cookies
.
set
(
"rememberMe"
,
this
.
loginForm
.
rememberMe
,
{
expires
:
30
,
});
}
else
{
}
else
{
Cookies
.
remove
(
"username"
);
Cookies
.
remove
(
"username"
);
Cookies
.
remove
(
"password"
);
Cookies
.
remove
(
"password"
);
Cookies
.
remove
(
'rememberMe'
);
Cookies
.
remove
(
"rememberMe"
);
}
this
.
$store
.
dispatch
(
"Login"
,
this
.
loginForm
)
.
then
((
res
)
=>
{
console
.
log
(
"登录"
,
res
);
// 获取权限
return
getInfo
();
})
.
then
((
res
)
=>
{
const
roles
=
res
.
user
.
deptId
;
let
path
=
"/"
;
// 如果是最高权限,就进入大屏
if
(
roles
==
-
2
)
{
path
=
"/bigWindow"
;
}
}
this
.
$store
.
dispatch
(
"Login"
,
this
.
loginForm
).
then
(()
=>
{
this
.
$router
.
push
({
path
}).
catch
(()
=>
{});
this
.
$router
.
push
({
path
:
"/bigWindow"
||
"/"
}).
catch
(()
=>
{});
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
this
.
getCode
();
this
.
getCode
();
});
});
}
}
});
});
}
}
,
}
}
,
};
};
</
script
>
</
script
>
...
...
gassafetyprogress-web/src/views/standingBook/equipment/index.vue
View file @
9eac4df9
...
@@ -31,14 +31,14 @@
...
@@ -31,14 +31,14 @@
<el-form-item
label=
"安装时间"
prop=
"installTime"
>
<el-form-item
label=
"安装时间"
prop=
"installTime"
>
<el-date-picker
clearable
size=
"small"
<el-date-picker
clearable
size=
"small"
v-model=
"queryParams.installTimeStart"
v-model=
"queryParams.installTimeStart"
type=
"date
time
"
type=
"date"
value-format=
"yyyy-MM-dd
HH:mm:ss
"
value-format=
"yyyy-MM-dd"
placeholder=
"请选择起始时间"
>
placeholder=
"请选择起始时间"
>
</el-date-picker><span
style=
"color: #bebfc3"
>
-
</span>
</el-date-picker><span
style=
"color: #bebfc3"
>
-
</span>
<el-date-picker
clearable
size=
"small"
<el-date-picker
clearable
size=
"small"
v-model=
"queryParams.installTimeEnd"
v-model=
"queryParams.installTimeEnd"
type=
"date
time
"
type=
"date"
value-format=
"yyyy-MM-dd
HH:mm:ss
"
value-format=
"yyyy-MM-dd"
placeholder=
"请选择截止时间"
>
placeholder=
"请选择截止时间"
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
...
@@ -116,7 +116,7 @@
...
@@ -116,7 +116,7 @@
/>
/>
<!-- 添加或修改用户加装安全装置台账对话框 -->
<!-- 添加或修改用户加装安全装置台账对话框 -->
<el-dialog
:title=
"title
"
:visible
.
sync=
"open"
width=
"800px"
append-to-body
@
cancel=
"cancel
"
>
<el-dialog
:title=
"title
1"
:visible
.
sync=
"open1"
width=
"800px"
append-to-body
@
cancel=
"cancel1
"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"120px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"120px"
>
<el-row>
<el-row>
<el-col
:span=
"11"
>
<el-col
:span=
"11"
>
...
@@ -159,8 +159,8 @@
...
@@ -159,8 +159,8 @@
<el-form-item
label=
"安装时间"
prop=
"installTime"
>
<el-form-item
label=
"安装时间"
prop=
"installTime"
>
<el-date-picker
clearable
size=
"small"
<el-date-picker
clearable
size=
"small"
v-model=
"form.installTime"
v-model=
"form.installTime"
type=
"date
time
"
type=
"date"
value-format=
"yyyy-MM-dd
HH:mm:ss
"
value-format=
"yyyy-MM-dd"
placeholder=
"请选择安装时间"
placeholder=
"请选择安装时间"
style=
"width: 100%"
>
style=
"width: 100%"
>
</el-date-picker>
</el-date-picker>
...
@@ -175,11 +175,54 @@
...
@@ -175,11 +175,54 @@
</el-col>
</el-col>
</el-row>
</el-row>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
<el-button
@
click=
"cancel
1
"
>
取 消
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
<el-dialog
:title=
"title2"
:visible
.
sync=
"open2"
width=
"800px"
append-to-body
@
cancel=
"cancel2"
>
<el-form
ref=
"detailForm"
:model=
"detailForm"
label-width=
"120px"
>
<el-row>
<el-col
:span=
"11"
>
<el-form-item
label=
"用户名称:"
>
<font>
{{detailForm.userName}}
</font>
</el-form-item>
<el-form-item
label=
"身份证号:"
>
<font>
{{detailForm.idCard}}
</font>
</el-form-item>
<el-form-item
label=
"品牌名称:"
>
<font
v-if=
"detailForm.brandName != '' && detailForm.brandName != null"
>
{{detailForm.brandName}}
</font>
<font
v-else
>
-
</font>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"用户编号:"
>
<font
v-if=
"detailForm.userNo != '' && detailForm.userNo != null"
>
{{detailForm.userNo}}
</font>
<font
v-else
>
-
</font>
</el-form-item>
<el-form-item
label=
"联系电话:"
>
<font>
{{detailForm.linkMobile}}
</font>
</el-form-item>
<el-form-item
label=
"安装时间:"
>
<font>
{{detailForm.installTime}}
</font>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-form-item
label=
"详细地址:"
>
<font>
{{detailForm.userAddress}}
</font>
</el-form-item>
</el-row>
<el-row>
<el-form-item
label=
"备注信息:"
>
<font
v-if=
"detailForm.remarks != '' && detailForm.remarks != null"
>
{{detailForm.remarks}}
</font>
<font
v-else
>
-
</font>
</el-form-item>
</el-row>
</el-form>
</el-dialog>
</div>
</div>
</template>
</template>
...
@@ -209,9 +252,11 @@ export default {
...
@@ -209,9 +252,11 @@ export default {
// 用户加装安全装置台账表格数据
// 用户加装安全装置台账表格数据
equipmentList
:
[],
equipmentList
:
[],
// 弹出层标题
// 弹出层标题
title
:
""
,
title1
:
""
,
title2
:
""
,
// 是否显示弹出层
// 是否显示弹出层
open
:
false
,
open1
:
false
,
open2
:
false
,
// 查询参数
// 查询参数
queryParams
:
{
queryParams
:
{
pageNum
:
1
,
pageNum
:
1
,
...
@@ -224,6 +269,7 @@ export default {
...
@@ -224,6 +269,7 @@ export default {
},
},
// 表单参数
// 表单参数
form
:
{},
form
:
{},
detailForm
:
{},
// 表单校验
// 表单校验
rules
:
{
rules
:
{
userName
:
[
userName
:
[
...
@@ -260,12 +306,16 @@ export default {
...
@@ -260,12 +306,16 @@ export default {
});
});
},
},
// 取消按钮
// 取消按钮
cancel
()
{
cancel1
()
{
this
.
open
=
false
;
this
.
open1
=
false
;
this
.
reset
();
this
.
reset1
();
},
cancel2
()
{
this
.
open2
=
false
;
this
.
reset2
();
},
},
// 表单重置
// 表单重置
reset
()
{
reset
1
()
{
this
.
form
=
{
this
.
form
=
{
safeEquipmentId
:
null
,
safeEquipmentId
:
null
,
userName
:
null
,
userName
:
null
,
...
@@ -284,6 +334,25 @@ export default {
...
@@ -284,6 +334,25 @@ export default {
};
};
this
.
resetForm
(
"form"
);
this
.
resetForm
(
"form"
);
},
},
reset2
()
{
this
.
detailForm
=
{
safeEquipmentId
:
null
,
userName
:
null
,
userNo
:
null
,
userAddress
:
null
,
idCard
:
null
,
linkMobile
:
null
,
installTime
:
null
,
brandName
:
null
,
createBy
:
null
,
createTime
:
null
,
updateBy
:
null
,
updateTime
:
null
,
isDel
:
null
,
remarks
:
null
};
this
.
resetForm
(
"detailForm"
);
},
/** 搜索按钮操作 */
/** 搜索按钮操作 */
handleQuery
()
{
handleQuery
()
{
this
.
queryParams
.
pageNum
=
1
;
this
.
queryParams
.
pageNum
=
1
;
...
@@ -296,18 +365,17 @@ export default {
...
@@ -296,18 +365,17 @@ export default {
},
},
/** 新增按钮操作 */
/** 新增按钮操作 */
handleAdd
()
{
handleAdd
()
{
this
.
reset
();
this
.
reset
1
();
this
.
open
=
true
;
this
.
open
1
=
true
;
this
.
title
=
"添加用户加装安全装置台账"
;
this
.
title
1
=
"添加用户加装安全装置台账"
;
},
},
/** 修改按钮操作 */
/** 修改按钮操作 */
handleUpdate
(
row
)
{
handleUpdate
(
row
)
{
this
.
reset
();
this
.
reset
1
();
getEquipment
(
row
.
safeEquipmentId
).
then
(
response
=>
{
getEquipment
(
row
.
safeEquipmentId
).
then
(
response
=>
{
console
.
log
(
"data"
,
response
.
data
);
this
.
form
=
response
.
data
;
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
open
1
=
true
;
this
.
title
=
"修改用户加装安全装置台账"
;
this
.
title
1
=
"修改用户加装安全装置台账"
;
});
});
},
},
/** 提交按钮 */
/** 提交按钮 */
...
@@ -362,12 +430,12 @@ export default {
...
@@ -362,12 +430,12 @@ export default {
},
},
/** 详细信息跳转 */
/** 详细信息跳转 */
showDetail
(
row
)
{
showDetail
(
row
)
{
this
.
$router
.
push
({
this
.
reset2
();
path
:
'/standingBook/equipmentDetail'
,
getEquipment
(
row
.
safeEquipmentId
).
then
(
response
=>
{
query
:
{
this
.
detailForm
=
response
.
data
;
safeEquipmentId
:
row
.
safeEquipmentId
this
.
open2
=
true
;
}
this
.
title2
=
"用户加装安全装置台账详情"
;
})
})
;
},
},
}
}
};
};
...
...
gassafetyprogress-web/src/views/standingBook/equipmentDetail/index.vue
deleted
100644 → 0
View file @
5ef36e23
<
template
>
<div
class=
"app-container"
>
<!--
<el-row>
<el-col
:span=
"24"
style=
"padding-left: 15px;margin-bottom: -10px;"
>
<div
style=
"height: 45px;"
@
click=
"$router.go(-1)"
>
<el-button
size=
"medium"
type=
"text"
style=
"font-size: 18px; color: rgb(7, 63, 112);float: left;"
>
返回
</el-button>
</div>
</el-col>
</el-row>
-->
<el-row
style=
"width: 100%;height: 40px;"
>
<el-col
:span=
"24"
>
<div
style=
""
>
<ul>
<li
style=
"list-style: none;font-weight: 900;font-size: 20px;color: #053b6a;"
>
燃气用户加装安全装置台账详情
</li>
</ul>
</div>
</el-col>
</el-row>
<el-row
style=
"width: 100%;padding: 20px;"
>
<el-form
ref=
"form"
v-model=
"form"
label-width=
"100px"
style=
"width: 100%;"
>
<el-row>
<el-col
:span=
"6"
>
<el-form-item
label=
"用户名称:"
prop=
"userName"
>
<font>
{{
form
.
userName
}}
</font>
</el-form-item>
<el-form-item
label=
"身份证号:"
prop=
"idCard"
>
<font>
{{
form
.
idCard
}}
</font>
</el-form-item>
<el-form-item
label=
"品牌名称:"
prop=
"brandName"
>
<font
v-if=
"form.brandName != '' && form.brandName != null"
>
{{
form
.
brandName
}}
</font>
<font
v-else
>
-
</font>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"用户编号:"
prop=
"userNo"
>
<font
v-if=
"form.userNo != '' && form.userNo != null"
>
{{
form
.
userNo
}}
</font>
<font
v-else
>
-
</font>
</el-form-item>
<el-form-item
label=
"联系电话:"
prop=
"linkMobile"
>
<font>
{{
form
.
linkMobile
}}
</font>
</el-form-item>
<el-form-item
label=
"安装时间:"
prop=
"installTime"
>
<font>
{{
form
.
installTime
}}
</font>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-form-item
label=
"详细地址:"
prop=
"userAddress"
>
<font>
{{
form
.
userAddress
}}
</font>
</el-form-item>
</el-row>
<el-row>
<el-form-item
label=
"备注信息:"
prop=
"remarks"
>
<font
v-if=
"form.remarks != '' && form.remarks != null"
>
{{
form
.
remarks
}}
</font>
<font
v-else
>
-
</font>
</el-form-item>
</el-row>
</el-form>
</el-row>
</div>
</
template
>
<
script
>
import
{
getEquipment
}
from
"@/api/standingBook/equipment"
;
export
default
{
name
:
"equipmentDetail"
,
components
:
{
},
data
()
{
return
{
// 弹出层标题
title
:
""
,
// 是否显示弹出层
open
:
false
,
// 表单参数
form
:
{},
// 表单校验
rules
:
{
}
};
},
created
()
{
// 如果是跳转来的,则接受初始化参数
this
.
safeEquipmentId
=
this
.
$route
.
query
.
safeEquipmentId
;
},
mounted
()
{
this
.
getDetail
();
},
methods
:
{
getDetail
()
{
getEquipment
(
this
.
safeEquipmentId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
console
.
log
(
this
.
form
,
"this.form"
)
const
obj
=
this
.
form
;
});
},
}
}
</
script
>
gassafetyprogress-web/src/views/standingBook/hidden/index.vue
View file @
9eac4df9
...
@@ -131,7 +131,7 @@
...
@@ -131,7 +131,7 @@
/>
/>
<!-- 添加或修改隐患整治台账对话框 -->
<!-- 添加或修改隐患整治台账对话框 -->
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"800px"
append-to-body
@
cancel=
"cancel
"
>
<el-dialog
:title=
"title1"
:visible
.
sync=
"open1"
width=
"800px"
append-to-body
@
cancel=
"cancel1
"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"120px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"120px"
>
<el-row>
<el-row>
<el-col
:span=
"11"
>
<el-col
:span=
"11"
>
...
@@ -169,7 +169,6 @@
...
@@ -169,7 +169,6 @@
<el-row>
<el-row>
<el-col
:span=
"23"
>
<el-col
:span=
"23"
>
<el-form-item
label=
"经纬度坐标"
prop=
"longitude"
>
<el-form-item
label=
"经纬度坐标"
prop=
"longitude"
>
<el-row>
<el-col
:span=
"9"
>
<el-col
:span=
"9"
>
<el-input
v-model=
"form.longitude"
placeholder=
"请输入经度"
/>
<el-input
v-model=
"form.longitude"
placeholder=
"请输入经度"
/>
</el-col>
</el-col>
...
@@ -179,7 +178,6 @@
...
@@ -179,7 +178,6 @@
<el-col
:span=
"3"
style=
"margin-left: 30px"
>
<el-col
:span=
"3"
style=
"margin-left: 30px"
>
<el-button
type=
"primary"
plain
@
click=
"MapdialogFun"
>
选择经纬度
</el-button>
<el-button
type=
"primary"
plain
@
click=
"MapdialogFun"
>
选择经纬度
</el-button>
</el-col>
</el-col>
</el-row>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -231,10 +229,65 @@
...
@@ -231,10 +229,65 @@
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
@
click=
"cancel
"
>
取 消
</el-button>
<el-button
@
click=
"cancel1
"
>
取 消
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
<el-dialog
:title=
"title2"
:visible
.
sync=
"open2"
width=
"800px"
append-to-body
@
cancel=
"cancel2"
>
<el-form
ref=
"detailForm"
:model=
"detailForm"
label-width=
"120px"
>
<el-row>
<el-col
:span=
"11"
>
<el-form-item
label=
"隐患名称:"
>
<font>
{{detailForm.hiddenTitle}}
</font>
</el-form-item>
<el-form-item
label=
"隐患发现人员:"
>
<font>
{{detailForm.hiddenFindPeople}}
</font>
</el-form-item>
<el-form-item
label=
"隐患位置:"
>
<font>
{{detailForm.hiddenLocation}}
</font>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"隐患等级:"
>
<font
v-if=
"detailForm.hiddenType == '1'"
>
一级隐患
</font>
<font
v-if=
"detailForm.hiddenType == '2'"
>
二级隐患
</font>
<font
v-if=
"detailForm.hiddenType == '3'"
>
三级隐患
</font>
</el-form-item>
<el-form-item
label=
"发现时间:"
>
<font>
{{detailForm.hiddenFindDate}}
</font>
</el-form-item>
<el-form-item
label=
"处理方案:"
>
<span
class=
"dbtn"
@
click=
"checkFile(detailForm.dealPlanUrl)"
v-if=
"detailForm.dealPlan != ''"
>
<i
class=
"el-icon el-icon-view"
></i>
查看/下载
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-form-item
label=
"隐患内容:"
>
<font>
{{detailForm.hiddenContent}}
</font>
</el-form-item>
</el-row>
<el-row>
<el-form-item
label=
"整治情况:"
>
<font
v-if=
"detailForm.remediation != '' && detailForm.remediation != null"
>
{{detailForm.remediation}}
</font>
<font
v-else
>
-
</font>
</el-form-item>
</el-row>
<el-row>
<el-form-item
label=
"备注信息:"
>
<font
v-if=
"detailForm.remarks != '' && detailForm.remarks != null"
>
{{detailForm.remarks}}
</font>
<font
v-else
>
-
</font>
</el-form-item>
</el-row>
</el-form>
</el-dialog>
<GetPos
<GetPos
:dialogVisible
.
sync=
"dialogTableVisible"
:dialogVisible
.
sync=
"dialogTableVisible"
device=
""
device=
""
...
@@ -279,9 +332,11 @@ export default {
...
@@ -279,9 +332,11 @@ export default {
// 隐患整治台账表格数据
// 隐患整治台账表格数据
hiddenList
:
[],
hiddenList
:
[],
// 弹出层标题
// 弹出层标题
title
:
""
,
title1
:
""
,
title2
:
""
,
// 是否显示弹出层
// 是否显示弹出层
open
:
false
,
open1
:
false
,
open2
:
false
,
// 隐患类型字典
// 隐患类型字典
typeOptions
:
[],
typeOptions
:
[],
// 上传文件列表
// 上传文件列表
...
@@ -300,6 +355,7 @@ export default {
...
@@ -300,6 +355,7 @@ export default {
},
},
// 表单参数
// 表单参数
form
:
{},
form
:
{},
detailForm
:
{},
// 表单校验
// 表单校验
rules
:
{
rules
:
{
hiddenTitle
:
[
hiddenTitle
:
[
...
@@ -346,19 +402,25 @@ export default {
...
@@ -346,19 +402,25 @@ export default {
});
});
},
},
// 取消按钮
// 取消按钮
cancel
()
{
cancel
1
()
{
this
.
open
=
false
;
this
.
open
1
=
false
;
this
.
reset
();
this
.
reset
1
();
this
.
fileList
=
[];
this
.
fileList
=
[];
this
.
devicePos
=
[];
this
.
devicePos
=
[];
},
},
cancel2
()
{
this
.
open2
=
false
;
this
.
reset2
();
},
// 表单重置
// 表单重置
reset
()
{
reset
1
()
{
this
.
form
=
{
this
.
form
=
{
hiddenId
:
null
,
hiddenId
:
null
,
hiddenTitle
:
null
,
hiddenTitle
:
null
,
hiddenContent
:
null
,
hiddenContent
:
null
,
hiddenLocation
:
null
,
hiddenLocation
:
null
,
longitude
:
null
,
latitude
:
null
,
hiddenType
:
null
,
hiddenType
:
null
,
hiddenFindPeople
:
null
,
hiddenFindPeople
:
null
,
hiddenFindDate
:
null
,
hiddenFindDate
:
null
,
...
@@ -375,6 +437,28 @@ export default {
...
@@ -375,6 +437,28 @@ export default {
this
.
fileList
=
[];
this
.
fileList
=
[];
this
.
devicePos
=
[];
this
.
devicePos
=
[];
},
},
reset2
()
{
this
.
detailForm
=
{
hiddenId
:
null
,
hiddenTitle
:
null
,
hiddenContent
:
null
,
hiddenLocation
:
null
,
longitude
:
null
,
latitude
:
null
,
hiddenType
:
null
,
hiddenFindPeople
:
null
,
hiddenFindDate
:
null
,
dealPlan
:
null
,
remediation
:
null
,
createBy
:
null
,
createTime
:
null
,
updateBy
:
null
,
updateTime
:
null
,
isDel
:
null
,
remarks
:
null
};
this
.
resetForm
(
"detailForm"
);
},
/** 搜索按钮操作 */
/** 搜索按钮操作 */
handleQuery
()
{
handleQuery
()
{
this
.
queryParams
.
pageNum
=
1
;
this
.
queryParams
.
pageNum
=
1
;
...
@@ -387,15 +471,14 @@ export default {
...
@@ -387,15 +471,14 @@ export default {
},
},
/** 新增按钮操作 */
/** 新增按钮操作 */
handleAdd
()
{
handleAdd
()
{
this
.
reset
();
this
.
reset
1
();
this
.
open
=
true
;
this
.
open
1
=
true
;
this
.
title
=
"添加隐患整治台账"
;
this
.
title
1
=
"添加隐患整治台账"
;
},
},
/** 修改按钮操作 */
/** 修改按钮操作 */
handleUpdate
(
row
)
{
handleUpdate
(
row
)
{
this
.
reset
();
this
.
reset1
();
const
hiddenId
=
row
.
hiddenId
||
this
.
ids
getHidden
(
row
.
hiddenId
).
then
(
response
=>
{
getHidden
(
hiddenId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
form
=
response
.
data
;
if
(
this
.
form
.
dealPlan
)
{
if
(
this
.
form
.
dealPlan
)
{
this
.
fileList
.
push
({
this
.
fileList
.
push
({
...
@@ -404,8 +487,8 @@ export default {
...
@@ -404,8 +487,8 @@ export default {
});
});
}
}
this
.
devicePos
=
[
this
.
form
.
longitude
,
this
.
form
.
latitude
];
this
.
devicePos
=
[
this
.
form
.
longitude
,
this
.
form
.
latitude
];
this
.
open
=
true
;
this
.
open
1
=
true
;
this
.
title
=
"修改隐患整治台账"
;
this
.
title
1
=
"修改隐患整治台账"
;
});
});
},
},
/** 提交按钮 */
/** 提交按钮 */
...
@@ -415,13 +498,13 @@ export default {
...
@@ -415,13 +498,13 @@ export default {
if
(
this
.
form
.
hiddenId
!=
null
)
{
if
(
this
.
form
.
hiddenId
!=
null
)
{
updateHidden
(
this
.
form
).
then
(
response
=>
{
updateHidden
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
"修改成功"
);
this
.
msgSuccess
(
"修改成功"
);
this
.
open
=
false
;
this
.
open
1
=
false
;
this
.
getList
();
this
.
getList
();
});
});
}
else
{
}
else
{
addHidden
(
this
.
form
).
then
(
response
=>
{
addHidden
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
"新增成功"
);
this
.
msgSuccess
(
"新增成功"
);
this
.
open
=
false
;
this
.
open
1
=
false
;
this
.
getList
();
this
.
getList
();
});
});
}
}
...
@@ -460,12 +543,12 @@ export default {
...
@@ -460,12 +543,12 @@ export default {
},
},
/** 详细信息跳转 */
/** 详细信息跳转 */
showDetail
(
row
)
{
showDetail
(
row
)
{
this
.
$router
.
push
({
this
.
reset2
();
path
:
'/standingBook/hiddenDetail'
,
getHidden
(
row
.
hiddenId
).
then
(
response
=>
{
query
:
{
this
.
detailForm
=
response
.
data
;
hiddenId
:
row
.
hiddenId
this
.
open2
=
true
;
}
this
.
title2
=
"隐患整治台账详情"
;
})
})
;
},
},
checkFile
(
url
)
{
checkFile
(
url
)
{
window
.
open
(
url
,
'_blank'
);
window
.
open
(
url
,
'_blank'
);
...
@@ -503,13 +586,14 @@ export default {
...
@@ -503,13 +586,14 @@ export default {
<
style
>
<
style
>
.dbtn
{
.dbtn
{
display
:
inline-block
;
display
:
inline-block
;
padding
:
2px
5px
;
line-height
:
normal
;
padding-left
:
2px
;
padding-right
:
2px
;
cursor
:
pointer
;
cursor
:
pointer
;
border-radius
:
3px
;
border-radius
:
3px
;
border-style
:
solid
;
border-style
:
solid
;
border-width
:
0
;
border-width
:
0
;
color
:
rgb
(
48
,
180
,
107
);
color
:
rgb
(
48
,
180
,
107
);
font-size
:
9px
;
}
}
.dbtn
:hover
{
.dbtn
:hover
{
border-width
:
1px
;
border-width
:
1px
;
...
...
gassafetyprogress-web/src/views/standingBook/hiddenDetail/index.vue
deleted
100644 → 0
View file @
5ef36e23
<
template
>
<div
class=
"app-container"
>
<!--
<el-row>
<el-col
:span=
"24"
style=
"padding-left: 15px;margin-bottom: -10px;"
>
<div
style=
"height: 45px;"
@
click=
"$router.go(-1)"
>
<el-button
size=
"medium"
type=
"text"
style=
"font-size: 18px; color: rgb(7, 63, 112);float: left;"
>
返回
</el-button>
</div>
</el-col>
</el-row>
-->
<el-row
style=
"width: 100%;height: 40px;"
>
<el-col
:span=
"24"
>
<div
style=
""
>
<ul>
<li
style=
"list-style: none;font-weight: 900;font-size: 20px;color: #053b6a;"
>
隐患整治台账详情
</li>
</ul>
</div>
</el-col>
</el-row>
<el-row
style=
"width: 100%;padding: 20px;"
>
<el-form
ref=
"form"
v-model=
"form"
label-width=
"120px"
style=
"width: 100%;"
>
<el-row>
<el-col
:span=
"6"
>
<el-form-item
label=
"隐患名称:"
prop=
"hiddenTitle"
>
<font>
{{
form
.
hiddenTitle
}}
</font>
</el-form-item>
<el-form-item
label=
"隐患发现人员:"
prop=
"hiddenFindPeople"
>
<font>
{{
form
.
hiddenFindPeople
}}
</font>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"隐患等级:"
prop=
"hiddenType"
>
<font
v-if=
"form.hiddenType == '1'"
>
一级隐患
</font>
<font
v-if=
"form.hiddenType == '2'"
>
二级隐患
</font>
<font
v-if=
"form.hiddenType == '3'"
>
三级隐患
</font>
</el-form-item>
<el-form-item
label=
"发现时间:"
prop=
"hiddenFindDate"
>
<font>
{{
form
.
hiddenFindDate
}}
</font>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-form-item
label=
"隐患位置:"
prop=
"hiddenLocation"
>
<font>
{{
form
.
hiddenLocation
}}
</font>
</el-form-item>
</el-row>
<el-row>
<el-form-item
label=
"隐患内容:"
prop=
"hiddenContent"
>
<font>
{{
form
.
hiddenContent
}}
</font>
</el-form-item>
</el-row>
<el-row>
<el-form-item
label=
"整治情况:"
prop=
"remediation"
>
<font
v-if=
"form.remediation != '' && form.remediation != null"
>
{{
form
.
remediation
}}
</font>
<font
v-else
>
-
</font>
</el-form-item>
</el-row>
<el-row>
<el-form-item
label=
"备注信息:"
prop=
"remarks"
>
<font
v-if=
"form.remarks != '' && form.remarks != null"
>
{{
form
.
remarks
}}
</font>
<font
v-else
>
-
</font>
</el-form-item>
</el-row>
</el-form>
</el-row>
</div>
</
template
>
<
script
>
import
{
getHidden
}
from
"@/api/standingBook/hidden"
;
export
default
{
name
:
"hiddenDetail"
,
components
:
{
},
data
()
{
return
{
// 弹出层标题
title
:
""
,
// 是否显示弹出层
open
:
false
,
// 表单参数
form
:
{},
// 表单校验
rules
:
{
}
};
},
created
()
{
// 如果是跳转来的,则接受初始化参数
this
.
hiddenId
=
this
.
$route
.
query
.
hiddenId
;
},
mounted
()
{
this
.
getDetail
();
},
methods
:
{
getDetail
()
{
getHidden
(
this
.
hiddenId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
console
.
log
(
this
.
form
,
"this.form"
)
const
obj
=
this
.
form
;
});
},
}
}
</
script
>
gassafetyprogress-web/src/views/standingBook/trouble/index.vue
View file @
9eac4df9
This diff is collapsed.
Click to expand it.
gassafetyprogress-web/src/views/standingBook/troubleDetail/index.vue
deleted
100644 → 0
View file @
5ef36e23
<
template
>
<div
class=
"app-container"
>
<!--
<el-row>
<el-col
:span=
"24"
style=
"padding-left: 15px;margin-bottom: -10px;"
>
<div
style=
"height: 45px;"
@
click=
"$router.go(-1)"
>
<el-button
size=
"medium"
type=
"text"
style=
"font-size: 18px; color: rgb(7, 63, 112);float: left;"
>
返回
</el-button>
</div>
</el-col>
</el-row>
-->
<el-row
style=
"width: 100%;height: 40px;"
>
<el-col
:span=
"24"
>
<div
style=
""
>
<ul>
<li
style=
"list-style: none;font-weight: 900;font-size: 20px;color: #053b6a;"
>
燃气事故台账详情
</li>
</ul>
</div>
</el-col>
</el-row>
<el-row
style=
"width: 100%;padding: 20px;"
>
<el-form
ref=
"form"
v-model=
"form"
label-width=
"120px"
style=
"width: 100%;"
>
<el-row>
<el-col
:span=
"6"
>
<el-form-item
label=
"事故名称:"
prop=
"troubleName"
>
<font>
{{
form
.
troubleName
}}
</font>
</el-form-item>
<el-form-item
label=
"事故原因:"
prop=
"troubleReason"
>
<font>
{{
form
.
troubleReason
}}
</font>
</el-form-item>
<el-form-item
label=
"责任单位:"
prop=
"responsibleUnit"
>
<font
v-if=
"form.responsibleUnit != '' && form.responsibleUnit != null"
>
{{
form
.
responsibleUnit
}}
</font>
<font
v-else
>
-
</font>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"事故类型:"
prop=
"troubleType"
>
<font
v-if=
"form.troubleType == '1'"
>
安全生产事故
</font>
<font
v-if=
"form.troubleType == '2'"
>
非生产安全事故
</font>
</el-form-item>
<el-form-item
label=
"事故地点:"
prop=
"troubleLocation"
>
<font>
{{
form
.
troubleLocation
}}
</font>
</el-form-item>
<el-form-item
label=
"责任人员:"
prop=
"responsiblePeople"
>
<font
v-if=
"form.responsiblePeople != '' && form.responsiblePeople != null"
>
{{
form
.
responsiblePeople
}}
</font>
<font
v-else
>
-
</font>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-form-item
label=
"简要经过:"
prop=
"briefProcess"
>
<font
v-if=
"form.briefProcess != '' && form.briefProcess != null"
>
{{
form
.
briefProcess
}}
</font>
<font
v-else
>
-
</font>
</el-form-item>
</el-row>
<el-row>
<el-col
:span=
"6"
>
<el-form-item
label=
"是否处理:"
prop=
"isDeal"
>
<font>
{{
form
.
isDeal
}}
</font>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"处理完成时间:"
prop=
"dealDate"
>
<font>
{{
form
.
dealDate
}}
</font>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-form-item
label=
"备注信息:"
prop=
"remarks"
>
<font
v-if=
"form.remarks != '' && form.remarks != null"
>
{{
form
.
remarks
}}
</font>
<font
v-else
>
-
</font>
</el-form-item>
</el-row>
</el-form>
</el-row>
</div>
</
template
>
<
script
>
import
{
getTrouble
}
from
"@/api/standingBook/trouble"
;
export
default
{
name
:
"troubleDetail"
,
components
:
{
},
data
()
{
return
{
// 弹出层标题
title
:
""
,
// 是否显示弹出层
open
:
false
,
// 表单参数
form
:
{},
// 表单校验
rules
:
{
}
};
},
created
()
{
// 如果是跳转来的,则接受初始化参数
this
.
troubleId
=
this
.
$route
.
query
.
troubleId
;
},
mounted
()
{
this
.
getDetail
();
},
methods
:
{
getDetail
()
{
getTrouble
(
this
.
troubleId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
console
.
log
(
this
.
form
,
"this.form"
)
const
obj
=
this
.
form
;
});
},
}
}
</
script
>
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