Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zh-baseversion-project
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
王浩
zh-baseversion-project
Commits
c58dfda2
Commit
c58dfda2
authored
Jul 22, 2024
by
wanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 新增加模块 上报时态显示调整。
2 测试-重要风险点管控 对数据修改后,界面查不到,及导出回显bug修复。
parent
f225b791
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
353 additions
and
101 deletions
+353
-101
TRiskDevMajInforController.java
...ehong/web/controller/risk/TRiskDevMajInforController.java
+11
-1
TRiskDevMajInfor.java
.../main/java/com/zehong/system/domain/TRiskDevMajInfor.java
+37
-8
TRiskDevMajInforMapper.java
...java/com/zehong/system/mapper/TRiskDevMajInforMapper.java
+9
-0
ITRiskDevMajInforService.java
...a/com/zehong/system/service/ITRiskDevMajInforService.java
+9
-0
TRiskDevMajInforServiceImpl.java
...hong/system/service/impl/TRiskDevMajInforServiceImpl.java
+17
-5
TRiskDevMajInforMapper.xml
...c/main/resources/mapper/system/TRiskDevMajInforMapper.xml
+9
-4
info.js
zh-baseversion-web/src/api/risk/info.js
+7
-0
DetailInfo.vue
...src/views/oldpipesystem/process/components/DetailInfo.vue
+9
-4
index.vue
zh-baseversion-web/src/views/oldpipesystem/process/index.vue
+8
-2
DetailInfo.vue
zh-baseversion-web/src/views/risk/components/DetailInfo.vue
+22
-11
index.vue
zh-baseversion-web/src/views/risk/index.vue
+29
-10
DetailInfo.vue
...web/src/views/supplybalance/day/components/DetailInfo.vue
+49
-14
index.vue
zh-baseversion-web/src/views/supplybalance/day/index.vue
+2
-2
DetailInfo.vue
...web/src/views/supplybalance/gas/components/DetailInfo.vue
+49
-13
index.vue
zh-baseversion-web/src/views/supplybalance/gas/index.vue
+2
-2
DetailInfo.vue
...eb/src/views/supplybalance/stop/components/DetailInfo.vue
+48
-13
index.vue
zh-baseversion-web/src/views/supplybalance/stop/index.vue
+4
-4
DetailInfo.vue
...b/src/views/thirdbuild/accident/components/DetailInfo.vue
+8
-2
index.vue
zh-baseversion-web/src/views/thirdbuild/accident/index.vue
+8
-2
DetailInfo.vue
...eb/src/views/thirdbuild/project/components/DetailInfo.vue
+8
-2
index.vue
zh-baseversion-web/src/views/thirdbuild/project/index.vue
+8
-2
No files found.
zh-baseversion-admin/src/main/java/com/zehong/web/controller/risk/TRiskDevMajInforController.java
View file @
c58dfda2
...
@@ -46,7 +46,9 @@ public class TRiskDevMajInforController extends BaseController
...
@@ -46,7 +46,9 @@ public class TRiskDevMajInforController extends BaseController
{
{
List
<
TRiskDevMajInfor
>
list
=
tRiskDevMajInforService
.
exportRiskDevMajInforList
(
tRiskDevMajInfor
);
List
<
TRiskDevMajInfor
>
list
=
tRiskDevMajInforService
.
exportRiskDevMajInforList
(
tRiskDevMajInfor
);
ExcelUtil
<
TRiskDevMajInfor
>
util
=
new
ExcelUtil
<
TRiskDevMajInfor
>(
TRiskDevMajInfor
.
class
);
ExcelUtil
<
TRiskDevMajInfor
>
util
=
new
ExcelUtil
<
TRiskDevMajInfor
>(
TRiskDevMajInfor
.
class
);
return
util
.
exportExcel
(
list
,
"重要风险点管控数据"
);
AjaxResult
ajaxResult
=
util
.
exportExcel
(
list
,
"重要风险点管控数据"
);
ExcelUtil
.
hiddencolumns
.
clear
();
return
ajaxResult
;
}
}
/**
/**
...
@@ -58,6 +60,14 @@ public class TRiskDevMajInforController extends BaseController
...
@@ -58,6 +60,14 @@ public class TRiskDevMajInforController extends BaseController
return
AjaxResult
.
success
(
tRiskDevMajInforService
.
selectTRiskDevMajInforById
(
fRiskDevMajInforId
));
return
AjaxResult
.
success
(
tRiskDevMajInforService
.
selectTRiskDevMajInforById
(
fRiskDevMajInforId
));
}
}
/**
* 获取重要风险点管控详细信息
*/
@GetMapping
(
value
=
"/getInfoForDetail/{fRiskDevMajInforId}"
)
public
AjaxResult
getInfoForDetail
(
@PathVariable
(
"fRiskDevMajInforId"
)
Long
fRiskDevMajInforId
)
{
return
AjaxResult
.
success
(
tRiskDevMajInforService
.
selectTRiskDevMajInforByIdForDetail
(
fRiskDevMajInforId
));
}
/**
/**
* 新增重要风险点管控
* 新增重要风险点管控
*/
*/
...
...
zh-baseversion-system/src/main/java/com/zehong/system/domain/TRiskDevMajInfor.java
View file @
c58dfda2
...
@@ -30,12 +30,22 @@ public class TRiskDevMajInfor extends BaseEntity
...
@@ -30,12 +30,22 @@ public class TRiskDevMajInfor extends BaseEntity
private
String
fRiskName
;
private
String
fRiskName
;
/** 重要风险点涉及燃气企业编码 */
/** 重要风险点涉及燃气企业编码 */
@Excel
(
name
=
"重要风险点涉及燃气企业编码"
)
private
String
fCompanyId
;
private
String
fCompanyId
;
/**
* 企业名称
*/
@Excel
(
name
=
"燃气企业"
)
private
String
companyName
;
/** 县级行政区ID */
/** 县级行政区ID */
@Excel
(
name
=
"县级行政区ID"
)
private
Long
fRegionId
;
private
String
fRegionId
;
/**
* 行政区名称
*/
@Excel
(
name
=
"县级行政区"
)
private
String
regionName
;
/** 重要风险点类型,1 密闭空间,2 人员密集场
/** 重要风险点类型,1 密闭空间,2 人员密集场
...
@@ -77,24 +87,26 @@ public class TRiskDevMajInfor extends BaseEntity
...
@@ -77,24 +87,26 @@ public class TRiskDevMajInfor extends BaseEntity
/**
/**
* 企业端上传状态 0-未上传,1-已上传,Excel 企业和政府通用
* 企业端上传状态 0-未上传,1-已上传,Excel 企业和政府通用
*/
*/
@Excel
(
name
=
"上
传状态"
,
readConverterExp
=
"1=已上传,0=未上传
"
)
@Excel
(
name
=
"上
报状态"
,
readConverterExp
=
"1=已上报,0=未上报
"
)
private
String
entUploadState
;
private
String
entUploadState
;
/**
/**
* 企业端上传时间 Excel 企业和政府通用
* 企业端上传时间 Excel 企业和政府通用
*/
*/
@Excel
(
name
=
"上
传
时间"
,
dateFormat
=
"yyyy-MM-dd HH:mm:ss"
)
@Excel
(
name
=
"上
报
时间"
,
dateFormat
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
entUploadTime
;
private
Date
entUploadTime
;
/**
/**
* 政府端上传 状态
* 政府端上传 状态
*/
*/
@Excel
(
name
=
"上报省厅状态"
,
readConverterExp
=
"1=已上报,0=未上报"
)
private
String
govUploadState
;
private
String
govUploadState
;
/**
/**
* 政府端上传 时间
* 政府端上传 时间
*/
*/
@Excel
(
name
=
"上报省厅时间"
,
dateFormat
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
govUploadTime
;
private
Date
govUploadTime
;
...
@@ -106,7 +118,24 @@ public class TRiskDevMajInfor extends BaseEntity
...
@@ -106,7 +118,24 @@ public class TRiskDevMajInfor extends BaseEntity
this
.
entUploadTime
=
null
;
this
.
entUploadTime
=
null
;
}
}
}
}
public
void
setfRiskDevMajInforId
(
Long
fRiskDevMajInforId
)
public
String
getCompanyName
()
{
return
companyName
;
}
public
void
setCompanyName
(
String
companyName
)
{
this
.
companyName
=
companyName
;
}
public
String
getRegionName
()
{
return
regionName
;
}
public
void
setRegionName
(
String
regionName
)
{
this
.
regionName
=
regionName
;
}
public
void
setfRiskDevMajInforId
(
Long
fRiskDevMajInforId
)
{
{
this
.
fRiskDevMajInforId
=
fRiskDevMajInforId
;
this
.
fRiskDevMajInforId
=
fRiskDevMajInforId
;
}
}
...
@@ -142,12 +171,12 @@ public class TRiskDevMajInfor extends BaseEntity
...
@@ -142,12 +171,12 @@ public class TRiskDevMajInfor extends BaseEntity
{
{
return
fCompanyId
;
return
fCompanyId
;
}
}
public
void
setfRegionId
(
Stri
ng
fRegionId
)
public
void
setfRegionId
(
Lo
ng
fRegionId
)
{
{
this
.
fRegionId
=
fRegionId
;
this
.
fRegionId
=
fRegionId
;
}
}
public
Stri
ng
getfRegionId
()
public
Lo
ng
getfRegionId
()
{
{
return
fRegionId
;
return
fRegionId
;
}
}
...
...
zh-baseversion-system/src/main/java/com/zehong/system/mapper/TRiskDevMajInforMapper.java
View file @
c58dfda2
...
@@ -21,6 +21,15 @@ public interface TRiskDevMajInforMapper
...
@@ -21,6 +21,15 @@ public interface TRiskDevMajInforMapper
*/
*/
public
TRiskDevMajInfor
selectTRiskDevMajInforById
(
Long
fRiskDevMajInforId
);
public
TRiskDevMajInfor
selectTRiskDevMajInforById
(
Long
fRiskDevMajInforId
);
/**
* 查询重要风险点管控
*
* @param fRiskDevMajInforId 重要风险点管控ID - 详情用
* @return 重要风险点管控
*/
public
TRiskDevMajInfor
selectTRiskDevMajInforByIdForDetail
(
Long
fRiskDevMajInforId
);
/**
/**
* 企业端上传数据
* 企业端上传数据
* @return
* @return
...
...
zh-baseversion-system/src/main/java/com/zehong/system/service/ITRiskDevMajInforService.java
View file @
c58dfda2
...
@@ -19,6 +19,15 @@ public interface ITRiskDevMajInforService
...
@@ -19,6 +19,15 @@ public interface ITRiskDevMajInforService
*/
*/
public
TRiskDevMajInfor
selectTRiskDevMajInforById
(
Long
fRiskDevMajInforId
);
public
TRiskDevMajInfor
selectTRiskDevMajInforById
(
Long
fRiskDevMajInforId
);
/**
* 查询重要风险点管控
*
* @param fRiskDevMajInforId 重要风险点管控ID - 详情用
* @return 重要风险点管控
*/
public
TRiskDevMajInfor
selectTRiskDevMajInforByIdForDetail
(
Long
fRiskDevMajInforId
);
/**
/**
* 查询重要风险点管控列表
* 查询重要风险点管控列表
*
*
...
...
zh-baseversion-system/src/main/java/com/zehong/system/service/impl/TRiskDevMajInforServiceImpl.java
View file @
c58dfda2
...
@@ -7,6 +7,7 @@ import com.zehong.common.utils.GovernmentDataCopyUtil;
...
@@ -7,6 +7,7 @@ import com.zehong.common.utils.GovernmentDataCopyUtil;
import
com.zehong.common.utils.GovernmentDataUtil
;
import
com.zehong.common.utils.GovernmentDataUtil
;
import
com.zehong.common.utils.SecurityUtils
;
import
com.zehong.common.utils.SecurityUtils
;
import
com.zehong.common.utils.StringUtils
;
import
com.zehong.common.utils.StringUtils
;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.system.domain.TConGasProInfor
;
import
com.zehong.system.domain.TConGasProInfor
;
import
com.zehong.system.domain.TRiskDevMajInfor
;
import
com.zehong.system.domain.TRiskDevMajInfor
;
import
com.zehong.system.domain.vo.TRiskDevMajInfoVo
;
import
com.zehong.system.domain.vo.TRiskDevMajInfoVo
;
...
@@ -58,6 +59,17 @@ public class TRiskDevMajInforServiceImpl implements ITRiskDevMajInforService
...
@@ -58,6 +59,17 @@ public class TRiskDevMajInforServiceImpl implements ITRiskDevMajInforService
return
tRiskDevMajInforMapper
.
selectTRiskDevMajInforById
(
fRiskDevMajInforId
);
return
tRiskDevMajInforMapper
.
selectTRiskDevMajInforById
(
fRiskDevMajInforId
);
}
}
/**
* 查询重要风险点管控 - 详情使用
*
* @param fRiskDevMajInforId 重要风险点管控ID
* @return 重要风险点管控
*/
@Override
public
TRiskDevMajInfor
selectTRiskDevMajInforByIdForDetail
(
Long
fRiskDevMajInforId
)
{
return
tRiskDevMajInforMapper
.
selectTRiskDevMajInforByIdForDetail
(
fRiskDevMajInforId
);
}
/**
/**
* 查询重要风险点管控列表
* 查询重要风险点管控列表
*
*
...
@@ -89,12 +101,12 @@ public class TRiskDevMajInforServiceImpl implements ITRiskDevMajInforService
...
@@ -89,12 +101,12 @@ public class TRiskDevMajInforServiceImpl implements ITRiskDevMajInforService
tRiskDevMajInfor
.
setEntUploadState
(
"1"
);
tRiskDevMajInfor
.
setEntUploadState
(
"1"
);
}
}
List
<
TRiskDevMajInfor
>
tRiskDevMajInfors
=
tRiskDevMajInforMapper
.
exportRiskDevMajInforList
(
tRiskDevMajInfor
);
if
(
sysRole
.
getRoleId
()==
3
){
if
(
sysRole
.
getRoleId
()==
3
){
if
(
tRiskDevMajInfors
.
size
()
>
0
)
{
ExcelUtil
.
hiddencolumns
.
add
(
11
);
return
tRiskDevMajInfors
.
stream
().
peek
(
TRiskDevMajInfor:
:
updateFields
).
collect
(
Collectors
.
toList
());
ExcelUtil
.
hiddencolumns
.
add
(
12
);
}
}
else
{
ExcelUtil
.
hiddencolumns
.
add
(
13
);
ExcelUtil
.
hiddencolumns
.
add
(
14
);
}
}
return
tRiskDevMajInforMapper
.
exportRiskDevMajInforList
(
tRiskDevMajInfor
);
return
tRiskDevMajInforMapper
.
exportRiskDevMajInforList
(
tRiskDevMajInfor
);
...
...
zh-baseversion-system/src/main/resources/mapper/system/TRiskDevMajInforMapper.xml
View file @
c58dfda2
...
@@ -50,8 +50,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -50,8 +50,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select f_risk_dev_maj_infor_id,
select f_risk_dev_maj_infor_id,
f_risk_code,
f_risk_code,
f_risk_name,
f_risk_name,
enterprise.enterprise_name as
f_company_id
,
enterprise.enterprise_name as
companyName
,
region.f_name as
f_region_id
,
region.f_name as
regionName
,
f_risk_type,
f_risk_type,
f_risk_place_detail,
f_risk_place_detail,
f_lon,
f_lon,
...
@@ -71,7 +71,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -71,7 +71,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</sql>
</sql>
<select
id=
"selectTRiskDevMajInforList"
parameterType=
"TRiskDevMajInfor"
resultMap=
"TRiskDevMajInforResult"
>
<select
id=
"selectTRiskDevMajInforList"
parameterType=
"TRiskDevMajInfor"
resultMap=
"TRiskDevMajInforResult"
>
<include
refid=
"
export
RiskDevMajInforVo"
/>
<include
refid=
"
selectT
RiskDevMajInforVo"
/>
<where>
<where>
<if
test=
"fRiskCode != null and fRiskCode != ''"
>
and f_risk_code like concat('%', #{fRiskCode}, '%')
</if>
<if
test=
"fRiskCode != null and fRiskCode != ''"
>
and f_risk_code like concat('%', #{fRiskCode}, '%')
</if>
<if
test=
"fRiskName != null and fRiskName != ''"
>
and f_risk_name like concat('%', #{fRiskName}, '%')
</if>
<if
test=
"fRiskName != null and fRiskName != ''"
>
and f_risk_name like concat('%', #{fRiskName}, '%')
</if>
...
@@ -80,7 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -80,7 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"fCompanyId != null and fCompanyId != '' "
>
and f_company_id = #{fCompanyId}
</if>
<if
test=
"fCompanyId != null and fCompanyId != '' "
>
and f_company_id = #{fCompanyId}
</if>
<if
test=
"govUploadState != null and govUploadState !='' "
>
and f_gov_upload_state = #{govUploadState}
</if>
<if
test=
"govUploadState != null and govUploadState !='' "
>
and f_gov_upload_state = #{govUploadState}
</if>
</where>
</where>
order by
riskInfor.
f_update_time desc
order by f_update_time desc
</select>
</select>
<select
id=
"exportRiskDevMajInforList"
parameterType=
"TRiskDevMajInfor"
resultMap=
"TRiskDevMajInforResult"
>
<select
id=
"exportRiskDevMajInforList"
parameterType=
"TRiskDevMajInfor"
resultMap=
"TRiskDevMajInforResult"
>
...
@@ -97,6 +97,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -97,6 +97,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
</select>
<select
id=
"selectTRiskDevMajInforById"
parameterType=
"Long"
resultMap=
"TRiskDevMajInforResult"
>
<select
id=
"selectTRiskDevMajInforById"
parameterType=
"Long"
resultMap=
"TRiskDevMajInforResult"
>
<include
refid=
"selectTRiskDevMajInforVo"
/>
where f_risk_dev_maj_infor_id = #{fRiskDevMajInforId}
</select>
<select
id=
"selectTRiskDevMajInforByIdForDetail"
parameterType=
"Long"
resultMap=
"TRiskDevMajInforResult"
>
<include
refid=
"exportRiskDevMajInforVo"
/>
<include
refid=
"exportRiskDevMajInforVo"
/>
where f_risk_dev_maj_infor_id = #{fRiskDevMajInforId}
where f_risk_dev_maj_infor_id = #{fRiskDevMajInforId}
</select>
</select>
...
...
zh-baseversion-web/src/api/risk/info.js
View file @
c58dfda2
...
@@ -17,6 +17,13 @@ export function getInfor(fRiskDevMajInforId) {
...
@@ -17,6 +17,13 @@ export function getInfor(fRiskDevMajInforId) {
})
})
}
}
// 查询重要风险点管控详细
export
function
getInforForDetail
(
fRiskDevMajInforId
)
{
return
request
({
url
:
'/risk/info/getInfoForDetail/'
+
fRiskDevMajInforId
,
method
:
'get'
})
}
// 新增重要风险点管控
// 新增重要风险点管控
export
function
addInfor
(
data
)
{
export
function
addInfor
(
data
)
{
return
request
({
return
request
({
...
...
zh-baseversion-web/src/views/oldpipesystem/process/components/DetailInfo.vue
View file @
c58dfda2
...
@@ -113,13 +113,13 @@
...
@@ -113,13 +113,13 @@
<el-form
label-width=
"170px"
>
<el-form
label-width=
"170px"
>
<el-row
class=
"el-row-table"
>
<el-row
class=
"el-row-table"
>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"上报状态
"
>
<el-form-item
:label=
"fUploadTypeLable
"
>
<span>
{{
fUploadType
}}
</span>
<span>
{{
fUploadType
}}
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"上报时间
"
>
<el-form-item
:label=
"fUploadTimeLable
"
>
<span>
{{
fUploadTime
}}
</span>
<span>
{{
fUploadTime
}}
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -150,6 +150,7 @@
...
@@ -150,6 +150,7 @@
detailInfo
:
{},
detailInfo
:
{},
enterpriseName
:
""
,
enterpriseName
:
""
,
detailOpen
:
false
,
detailOpen
:
false
,
fUploadTypeLable
:
""
,
fUploadType
:
""
,
fUploadType
:
""
,
fUploadTime
:
null
fUploadTime
:
null
}
}
...
@@ -165,9 +166,11 @@
...
@@ -165,9 +166,11 @@
console
.
log
(
"roleId == 3"
+
(
roleId
==
3
))
console
.
log
(
"roleId == 3"
+
(
roleId
==
3
))
if
(
roleId
==
3
)
{
if
(
roleId
==
3
)
{
this
.
fUploadType
=
this
.
detailInfo
.
govUploadState
this
.
fUploadType
=
this
.
detailInfo
.
govUploadState
this
.
fUploadTypeLable
=
"上报省厅状态"
}
}
if
(
roleId
==
5
)
{
if
(
roleId
==
5
)
{
this
.
fUploadType
=
this
.
detailInfo
.
fUploadType
this
.
fUploadType
=
this
.
detailInfo
.
fUploadType
this
.
fUploadTypeLable
=
"上报状态"
}
}
if
(
this
.
fUploadType
==
'0'
)
{
if
(
this
.
fUploadType
==
'0'
)
{
...
@@ -181,10 +184,12 @@
...
@@ -181,10 +184,12 @@
let
roleId
=
this
.
$store
.
state
.
user
.
roleId
;
let
roleId
=
this
.
$store
.
state
.
user
.
roleId
;
if
(
roleId
==
3
)
{
if
(
roleId
==
3
)
{
this
.
fUploadTime
=
this
.
detailInfo
.
govUploadTime
this
.
fUploadTime
=
this
.
detailInfo
.
govUploadTime
this
.
fUploadTimeLable
=
"上报省厅时间"
}
}
if
(
roleId
==
5
)
{
if
(
roleId
==
5
)
{
this
.
fUploadTime
=
this
.
detailInfo
.
fUploadTime
this
.
fUploadTime
=
this
.
detailInfo
.
fUploadTime
this
.
fUploadTimeLable
=
"上报时间"
}
}
},
},
//获取县级
//获取县级
...
...
zh-baseversion-web/src/views/oldpipesystem/process/index.vue
View file @
c58dfda2
...
@@ -112,9 +112,9 @@
...
@@ -112,9 +112,9 @@
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"上报状态
"
align=
"center"
prop=
"fUploadType"
:formatter=
"uploadStateFormat"
>
<el-table-column
:label=
"fUploadTypeLable
"
align=
"center"
prop=
"fUploadType"
:formatter=
"uploadStateFormat"
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"上报时间
"
align=
"center"
prop=
"fUploadTime"
width=
"150"
:formatter=
"uploadTimeFormat"
>
<el-table-column
:label=
"fUploadTimeLable
"
align=
"center"
prop=
"fUploadTime"
width=
"150"
:formatter=
"uploadTimeFormat"
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
width=
"180"
>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
...
@@ -339,6 +339,8 @@ export default {
...
@@ -339,6 +339,8 @@ export default {
isDisabledEnterprise
:
false
,
isDisabledEnterprise
:
false
,
enterprises
:
[],
enterprises
:
[],
countyInfo
:
[],
countyInfo
:
[],
fUploadTypeLable
:
""
,
fUploadTimeLable
:
""
,
// 遮罩层
// 遮罩层
loading
:
true
,
loading
:
true
,
// 导出遮罩层
// 导出遮罩层
...
@@ -495,12 +497,14 @@ export default {
...
@@ -495,12 +497,14 @@ export default {
//角色 1 超级管理员 5 企业
//角色 1 超级管理员 5 企业
let
roleId
=
this
.
user
.
roleId
;
let
roleId
=
this
.
user
.
roleId
;
if
(
roleId
==
5
)
{
if
(
roleId
==
5
)
{
this
.
fUploadTypeLable
=
"上报状态"
if
(
row
.
fUploadType
==
'0'
)
{
if
(
row
.
fUploadType
==
'0'
)
{
return
"未上报"
return
"未上报"
}
else
{
}
else
{
return
"已上报"
return
"已上报"
}
}
}
else
{
}
else
{
this
.
fUploadTypeLable
=
"上报省厅状态"
if
(
row
.
govUploadState
==
'0'
)
{
if
(
row
.
govUploadState
==
'0'
)
{
return
"未上报"
return
"未上报"
}
else
{
}
else
{
...
@@ -513,8 +517,10 @@ export default {
...
@@ -513,8 +517,10 @@ export default {
//角色 1 超级管理员 5 企业
//角色 1 超级管理员 5 企业
let
roleId
=
this
.
user
.
roleId
;
let
roleId
=
this
.
user
.
roleId
;
if
(
roleId
==
5
)
{
if
(
roleId
==
5
)
{
this
.
fUploadTimeLable
=
"上报时间"
return
row
.
fUploadTime
;
return
row
.
fUploadTime
;
}
else
{
}
else
{
this
.
fUploadTimeLable
=
"上报省厅时间"
return
row
.
govUploadTime
;
return
row
.
govUploadTime
;
}
}
...
...
zh-baseversion-web/src/views/risk/components/DetailInfo.vue
View file @
c58dfda2
...
@@ -18,14 +18,14 @@
...
@@ -18,14 +18,14 @@
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"燃气企业"
>
<el-form-item
label=
"燃气企业"
>
<span
v-if=
"detailInfo.
fCompanyId"
>
{{
detailInfo
.
fCompanyId
}}
</span>
<span
v-if=
"detailInfo.
companyName"
>
{{
detailInfo
.
companyName
}}
</span>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"县级行政区"
>
<el-form-item
label=
"县级行政区"
>
<span
v-if=
"detailInfo.
fRegionId"
>
{{
detailInfo
.
fRegionId
}}
</span>
<span
v-if=
"detailInfo.
regionName"
>
{{
detailInfo
.
regionName
}}
</span>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -77,13 +77,13 @@
...
@@ -77,13 +77,13 @@
<el-form
label-width=
"170px"
>
<el-form
label-width=
"170px"
>
<el-row
class=
"el-row-table"
>
<el-row
class=
"el-row-table"
>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"上报状态
"
>
<el-form-item
:label=
"fUploadTypeLable
"
>
<span>
{{
fUploadType
}}
</span>
<span>
{{
fUploadType
}}
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"上报时间
"
>
<el-form-item
:label=
"fUploadTimeLabel
"
>
<span>
{{
fUploadTime
}}
</span>
<span>
{{
fUploadTime
}}
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -101,12 +101,16 @@
...
@@ -101,12 +101,16 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
getInfor
}
from
"@/api/risk/info"
;
import
{
getInfor
ForDetail
}
from
"@/api/risk/info"
;
import
{
EditorMap
}
from
"@/utils/mapClass/getPath.js"
;
import
{
EditorMap
}
from
"@/utils/mapClass/getPath.js"
;
import
{
getDefaultCountyList
}
from
"@/api/area/county"
;
import
{
enterpriseLists
}
from
"@/api/regulation/info"
;
export
default
{
export
default
{
name
:
"detail-info"
,
name
:
"detail-info"
,
data
(){
data
(){
return
{
return
{
fUploadTypeLable
:
""
,
fUploadTimeLabel
:
""
,
enterprises
:
[],
enterprises
:
[],
countyInfo
:
[],
countyInfo
:
[],
detailInfo
:
{},
detailInfo
:
{},
...
@@ -123,6 +127,8 @@
...
@@ -123,6 +127,8 @@
}
}
}
}
},
},
created
(){
},
methods
:{
methods
:{
//获取县级
//获取县级
getCountyInfo
(){
getCountyInfo
(){
...
@@ -134,9 +140,10 @@
...
@@ -134,9 +140,10 @@
},
},
//所属单位
//所属单位
getEnterpriseLists
(){
getEnterpriseLists
(){
queryAllEnterprise
().
then
(
response
=>
{
const
param
=
{};
this
.
enterprises
=
response
;
enterpriseLists
(
param
).
then
(
response
=>
{
});
this
.
enterprises
=
response
.
rows
;
});
},
},
beyondCountyFormat
(
row
){
beyondCountyFormat
(
row
){
let
info
=
this
.
countyInfo
.
find
(
item
=>
item
.
fId
==
row
.
fRegionId
);
let
info
=
this
.
countyInfo
.
find
(
item
=>
item
.
fId
==
row
.
fRegionId
);
...
@@ -151,9 +158,11 @@
...
@@ -151,9 +158,11 @@
let
roleId
=
this
.
$store
.
state
.
user
.
roleId
;
let
roleId
=
this
.
$store
.
state
.
user
.
roleId
;
console
.
log
(
"roleId == 3"
+
(
roleId
==
3
))
console
.
log
(
"roleId == 3"
+
(
roleId
==
3
))
if
(
roleId
==
3
)
{
if
(
roleId
==
3
)
{
this
.
fUploadTypeLable
=
"上报省厅状态"
this
.
fUploadType
=
this
.
detailInfo
.
govUploadState
this
.
fUploadType
=
this
.
detailInfo
.
govUploadState
}
}
if
(
roleId
==
5
)
{
if
(
roleId
==
5
)
{
this
.
fUploadTypeLable
=
"上报状态"
this
.
fUploadType
=
this
.
detailInfo
.
entUploadState
this
.
fUploadType
=
this
.
detailInfo
.
entUploadState
}
}
...
@@ -169,15 +178,17 @@
...
@@ -169,15 +178,17 @@
let
roleId
=
this
.
$store
.
state
.
user
.
roleId
;
let
roleId
=
this
.
$store
.
state
.
user
.
roleId
;
if
(
roleId
==
3
)
{
if
(
roleId
==
3
)
{
this
.
fUploadTime
=
this
.
detailInfo
.
govUploadTime
this
.
fUploadTime
=
this
.
detailInfo
.
govUploadTime
this
.
fUploadTimeLabel
=
"上报省厅时间"
}
}
if
(
roleId
==
5
)
{
if
(
roleId
==
5
)
{
this
.
fUploadTime
=
this
.
detailInfo
.
entUploadTime
this
.
fUploadTime
=
this
.
detailInfo
.
entUploadTime
this
.
fUploadTimeLabel
=
"上报时间"
}
}
},
},
getDetailInfo
(
id
){
getDetailInfo
(
id
){
getInfor
(
id
).
then
(
res
=>
{
getInfor
ForDetail
(
id
).
then
(
res
=>
{
if
(
res
.
code
==
200
&&
res
.
data
){
if
(
res
.
code
==
200
&&
res
.
data
){
this
.
detailInfo
=
res
.
data
;
this
.
detailInfo
=
res
.
data
;
this
.
showUploadType
();
this
.
showUploadType
();
this
.
showUploadTime
();
this
.
showUploadTime
();
this
.
detailOpen
=
true
;
this
.
detailOpen
=
true
;
...
...
zh-baseversion-web/src/views/risk/index.vue
View file @
c58dfda2
...
@@ -92,13 +92,13 @@
...
@@ -92,13 +92,13 @@
<el-table
v-loading=
"loading"
:data=
"inforList"
@
selection-change=
"handleSelectionChange"
>
<el-table
v-loading=
"loading"
:data=
"inforList"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
label=
"重要风险点编码"
align=
"center"
prop=
"fRiskCode"
/>
<el-table-column
label=
"重要风险点编码"
align=
"center"
prop=
"fRiskCode"
/>
<el-table-column
label=
"重要风险点名称"
align=
"center"
prop=
"fRiskName"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"重要风险点名称"
align=
"center"
prop=
"fRiskName"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"燃气企业"
align=
"center"
prop=
"fCompanyId"
width=
"250"
/>
<el-table-column
label=
"燃气企业"
align=
"center"
prop=
"fCompanyId"
width=
"250"
:formatter=
"fCompanyIdFormat"
/>
<el-table-column
label=
"县级行政区"
align=
"center"
prop=
"fRegionId"
/>
<el-table-column
label=
"县级行政区"
align=
"center"
prop=
"fRegionId"
:formatter=
"fRegionIdFormat"
/>
<el-table-column
label=
"重要风险点类型"
align=
"center"
prop=
"fRiskType"
:formatter=
"fRiskTypeFormat"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"重要风险点类型"
align=
"center"
prop=
"fRiskType"
:formatter=
"fRiskTypeFormat"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"备注"
align=
"center"
prop=
"fRemark"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"备注"
align=
"center"
prop=
"fRemark"
:show-overflow-tooltip=
"true"
/>
<el-table-column
label=
"上报状态
"
align=
"center"
prop=
"fUploadType"
:formatter=
"uploadStateFormat"
>
<el-table-column
:label=
"uploadStateLabel
"
align=
"center"
prop=
"fUploadType"
:formatter=
"uploadStateFormat"
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"上报时间
"
align=
"center"
prop=
"fUploadTime"
width=
"150"
:formatter=
"uploadTimeFormat"
>
<el-table-column
:label=
"uploadTimeLabel
"
align=
"center"
prop=
"fUploadTime"
width=
"150"
:formatter=
"uploadTimeFormat"
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
...
@@ -169,11 +169,7 @@
...
@@ -169,11 +169,7 @@
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"县级行政区"
prop=
"fRegionId"
>
<el-form-item
label=
"县级行政区"
prop=
"fRegionId"
>
<el-select
<el-select
v-model=
"form.fRegionId"
placeholder=
"请选择县级行政区"
style=
"width: 100%"
>
v-model=
"form.fRegionId"
placeholder=
"请选择县级行政区"
style=
"width: 100%"
>
<el-option
<el-option
v-for=
"county in countyInfo"
v-for=
"county in countyInfo"
:key=
"county.fId"
:key=
"county.fId"
...
@@ -271,6 +267,8 @@ export default {
...
@@ -271,6 +267,8 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
uploadStateLabel
:
""
,
uploadTimeLabel
:
""
,
// 遮罩层
// 遮罩层
loading
:
true
,
loading
:
true
,
user
:{},
user
:{},
...
@@ -356,7 +354,7 @@ export default {
...
@@ -356,7 +354,7 @@ export default {
//判断 上报是否需要显示,上报分为企业上报 和 政府端上报
//判断 上报是否需要显示,上报分为企业上报 和 政府端上报
judgeUploadIsShow
(
row
)
{
judgeUploadIsShow
(
row
)
{
//角色
1 超级管理员 5 企业
//角色
3 政府角色 5 企业角色
let
roleId
=
this
.
user
.
roleId
;
let
roleId
=
this
.
user
.
roleId
;
// 企业端 上报状态 0-未上报,1-已上报
// 企业端 上报状态 0-未上报,1-已上报
...
@@ -373,8 +371,12 @@ export default {
...
@@ -373,8 +371,12 @@ export default {
// 如果企业端上报了,则企业端就不能显示了,政府端和 超级管理员能显示
// 如果企业端上报了,则企业端就不能显示了,政府端和 超级管理员能显示
if
(
entUploadState
===
'1'
&&
govUploadState
===
'0'
)
{
if
(
entUploadState
===
'1'
&&
govUploadState
===
'0'
)
{
if
(
roleId
===
5
)
{
if
(
roleId
===
5
)
{
this
.
uploadStateLabel
=
"上报状态"
this
.
uploadTimeLabel
=
"上报时间"
return
false
;
return
false
;
}
else
{
}
else
{
this
.
uploadStateLabel
=
"上报省厅状态"
this
.
uploadTimeLabel
=
"上报省厅时间"
return
true
;
return
true
;
}
}
}
}
...
@@ -422,6 +424,18 @@ export default {
...
@@ -422,6 +424,18 @@ export default {
this
.
loading
=
false
;
this
.
loading
=
false
;
});
});
},
},
// 燃气企业
fCompanyIdFormat
(
row
,
column
)
{
let
info
=
this
.
enterprises
.
find
(
item
=>
item
.
enterpriseId
==
row
.
fCompanyId
);
return
info
?
info
.
enterpriseName
:
"-"
;
},
// 行政区
fRegionIdFormat
(
row
,
column
)
{
let
info
=
this
.
countyInfo
.
find
(
item
=>
item
.
fId
==
row
.
fRegionId
);
return
info
?
info
.
fName
:
"-"
;
},
// 重要风险点类型,1 密闭空间,2 人员密集场
// 重要风险点类型,1 密闭空间,2 人员密集场
fRiskTypeFormat
(
row
,
column
)
{
fRiskTypeFormat
(
row
,
column
)
{
const
riskType
=
this
.
selectDictLabel
(
this
.
fRiskTypeOptions
,
row
.
fRiskType
);
const
riskType
=
this
.
selectDictLabel
(
this
.
fRiskTypeOptions
,
row
.
fRiskType
);
...
@@ -488,6 +502,11 @@ export default {
...
@@ -488,6 +502,11 @@ export default {
getInfor
(
fRiskDevMajInforId
).
then
(
response
=>
{
getInfor
(
fRiskDevMajInforId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
open
=
true
;
// 说明是 企业在新增,直接赋值显示就行了。
if
(
this
.
enterprises
.
length
==
1
)
{
this
.
form
.
fCompanyId
=
this
.
enterprises
[
0
].
enterpriseId
this
.
isDisabledEnterprise
=
true
;
}
this
.
title
=
"修改重要风险点管控"
;
this
.
title
=
"修改重要风险点管控"
;
});
});
},
},
...
...
zh-baseversion-web/src/views/supplybalance/day/components/DetailInfo.vue
View file @
c58dfda2
...
@@ -162,22 +162,26 @@
...
@@ -162,22 +162,26 @@
<el-divider
content-position=
"left"
>
上报时态
</el-divider>
<el-divider
content-position=
"left"
>
上报时态
</el-divider>
<el-form
label-width=
"170px"
>
<el-form
label-width=
"170px"
>
<el-row
class=
"el-row-table"
>
<el-row
class=
"el-row-table"
>
<el-col
:span=
"12"
v-if=
"-2 == $store.state.user.enterpriseId"
>
<el-form-item
label=
"政府端上报时间"
>
<span
v-if=
"detailInfo.fGovUploadTime"
>
{{
detailInfo
.
fGovUploadTime
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"企业端上报时间"
>
<el-form-item
label=
"上报省厅状态"
>
<span
v-if=
"detailInfo.fReportTime"
>
{{
detailInfo
.
fReportTime
}}
</span>
<span>
{{
fUploadType
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"上报省厅时间"
>
<span>
{{
fUploadTime
}}
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
v-if=
"this.$store.state.user.roleId == 3"
label=
"企业端上报时间"
>
<span>
{{
detailInfo
.
fReportTime
}}
</span>
</el-form-item>
</el-col>
</el-row>
</el-row>
</el-form>
</el-form>
...
@@ -192,6 +196,8 @@
...
@@ -192,6 +196,8 @@
name
:
"detail-info"
,
name
:
"detail-info"
,
data
(){
data
(){
return
{
return
{
fUploadType
:
""
,
fUploadTime
:
null
,
detailInfo
:
{
detailInfo
:
{
fDeleteFlag
:
0
fDeleteFlag
:
0
},
},
...
@@ -199,10 +205,39 @@
...
@@ -199,10 +205,39 @@
}
}
},
},
methods
:{
methods
:{
//根据不同角色显示不同字段
showUploadType
()
{
let
roleId
=
this
.
$store
.
state
.
user
.
roleId
;
if
(
roleId
==
3
)
{
this
.
fUploadType
=
this
.
detailInfo
.
fGovUploadStatus
}
if
(
roleId
==
5
)
{
this
.
fUploadType
=
this
.
detailInfo
.
fRepStatus
}
if
(
this
.
fUploadType
==
'0'
)
{
this
.
fUploadType
=
"未上报"
}
if
(
this
.
fUploadType
==
'1'
)
{
this
.
fUploadType
=
"已上报"
}
},
showUploadTime
()
{
let
roleId
=
this
.
$store
.
state
.
user
.
roleId
;
if
(
roleId
==
3
)
{
this
.
fUploadTime
=
this
.
detailInfo
.
fGovUploadTime
}
if
(
roleId
==
5
)
{
this
.
fUploadTime
=
this
.
detailInfo
.
entRepTime
}
},
getDetailInfo
(
id
){
getDetailInfo
(
id
){
getDay
(
id
).
then
(
res
=>
{
getDay
(
id
).
then
(
res
=>
{
if
(
res
.
code
==
200
&&
res
.
data
){
if
(
res
.
code
==
200
&&
res
.
data
){
this
.
detailInfo
=
res
.
data
;
this
.
detailInfo
=
res
.
data
;
this
.
showUploadType
();
this
.
showUploadTime
();
this
.
detailOpen
=
true
;
this
.
detailOpen
=
true
;
}
}
})
})
...
...
zh-baseversion-web/src/views/supplybalance/day/index.vue
View file @
c58dfda2
...
@@ -104,14 +104,14 @@
...
@@ -104,14 +104,14 @@
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"上报状态"
align=
"center"
prop=
"fGovUploadStatus"
>
<el-table-column
label=
"上报
省厅
状态"
align=
"center"
prop=
"fGovUploadStatus"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.fGovUploadStatus == '0'"
>
未上报
</span>
<span
v-if=
"scope.row.fGovUploadStatus == '0'"
>
未上报
</span>
<span
v-else-if=
"scope.row.fGovUploadStatus == '1'"
>
已上报
</span>
<span
v-else-if=
"scope.row.fGovUploadStatus == '1'"
>
已上报
</span>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"上报日期"
align=
"center"
prop=
"fGovUploadTime"
width=
"180"
>
<el-table-column
label=
"上报
省厅
日期"
align=
"center"
prop=
"fGovUploadTime"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.fGovUploadTime"
>
{{
parseTime
(
scope
.
row
.
fGovUploadTime
,
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
:{s
}
'
)
}}
<
/span
>
<span
v-if=
"scope.row.fGovUploadTime"
>
{{
parseTime
(
scope
.
row
.
fGovUploadTime
,
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
:{s
}
'
)
}}
<
/span
>
<
span
v
-
else
>-<
/span
>
<
span
v
-
else
>-<
/span
>
...
...
zh-baseversion-web/src/views/supplybalance/gas/components/DetailInfo.vue
View file @
c58dfda2
...
@@ -70,21 +70,26 @@
...
@@ -70,21 +70,26 @@
<el-divider
content-position=
"left"
>
上报时态
</el-divider>
<el-divider
content-position=
"left"
>
上报时态
</el-divider>
<el-form
label-width=
"170px"
>
<el-form
label-width=
"170px"
>
<el-row
class=
"el-row-table"
>
<el-row
class=
"el-row-table"
>
<el-col
:span=
"12"
v-if=
"-2 == $store.state.user.enterpriseId"
>
<el-form-item
label=
"政府端上报时间"
>
<span
v-if=
"detailInfo.fGovUploadTime"
>
{{
detailInfo
.
fGovUploadTime
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"企业端上报时间"
>
<el-form-item
label=
"上报省厅状态"
>
<span
v-if=
"detailInfo.fRepDate"
>
{{
detailInfo
.
fRepDate
}}
</span>
<span>
{{
fUploadType
}}
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"上报省厅时间"
>
<span>
{{
fUploadTime
}}
</span>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
v-if=
"this.$store.state.user.roleId == 3"
label=
"企业端上报时间"
>
<span>
{{
detailInfo
.
fRepDate
}}
</span>
</el-form-item>
</el-col>
</el-row>
</el-row>
</el-form>
</el-form>
...
@@ -99,6 +104,8 @@
...
@@ -99,6 +104,8 @@
name
:
"detail-info"
,
name
:
"detail-info"
,
data
(){
data
(){
return
{
return
{
fUploadType
:
""
,
fUploadTime
:
null
,
detailInfo
:
{
detailInfo
:
{
fDeleteFlag
:
0
fDeleteFlag
:
0
},
},
...
@@ -106,10 +113,39 @@
...
@@ -106,10 +113,39 @@
}
}
},
},
methods
:{
methods
:{
//根据不同角色显示不同字段
showUploadType
()
{
let
roleId
=
this
.
$store
.
state
.
user
.
roleId
;
if
(
roleId
==
3
)
{
this
.
fUploadType
=
this
.
detailInfo
.
fGovUploadStatus
}
if
(
roleId
==
5
)
{
this
.
fUploadType
=
this
.
detailInfo
.
fRepStatus
}
if
(
this
.
fUploadType
==
'0'
)
{
this
.
fUploadType
=
"未上报"
}
if
(
this
.
fUploadType
==
'1'
)
{
this
.
fUploadType
=
"已上报"
}
},
showUploadTime
()
{
let
roleId
=
this
.
$store
.
state
.
user
.
roleId
;
if
(
roleId
==
3
)
{
this
.
fUploadTime
=
this
.
detailInfo
.
fGovUploadTime
}
if
(
roleId
==
5
)
{
this
.
fUploadTime
=
this
.
detailInfo
.
entRepTime
}
},
getDetailInfo
(
id
){
getDetailInfo
(
id
){
getSup
(
id
).
then
(
res
=>
{
getSup
(
id
).
then
(
res
=>
{
if
(
res
.
code
==
200
&&
res
.
data
){
if
(
res
.
code
==
200
&&
res
.
data
){
this
.
detailInfo
=
res
.
data
;
this
.
detailInfo
=
res
.
data
;
this
.
showUploadType
();
this
.
showUploadTime
();
this
.
detailOpen
=
true
;
this
.
detailOpen
=
true
;
}
}
})
})
...
...
zh-baseversion-web/src/views/supplybalance/gas/index.vue
View file @
c58dfda2
...
@@ -80,14 +80,14 @@
...
@@ -80,14 +80,14 @@
<el-table-column
label=
"供气量/wm³"
align=
"center"
prop=
"fSupGasVol"
/>
<el-table-column
label=
"供气量/wm³"
align=
"center"
prop=
"fSupGasVol"
/>
<el-table-column
label=
"存储量/wm³"
align=
"center"
prop=
"fStorageVol"
/>
<el-table-column
label=
"存储量/wm³"
align=
"center"
prop=
"fStorageVol"
/>
<el-table-column
label=
"监管气量日期"
align=
"center"
prop=
"fSupDate"
/>
<el-table-column
label=
"监管气量日期"
align=
"center"
prop=
"fSupDate"
/>
<el-table-column
label=
"上报状态"
align=
"center"
prop=
"fGovUploadStatus"
>
<el-table-column
label=
"上报
省厅
状态"
align=
"center"
prop=
"fGovUploadStatus"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.fGovUploadStatus == '0'"
>
未上报
</span>
<span
v-if=
"scope.row.fGovUploadStatus == '0'"
>
未上报
</span>
<span
v-else-if=
"scope.row.fGovUploadStatus == '1'"
>
已上报
</span>
<span
v-else-if=
"scope.row.fGovUploadStatus == '1'"
>
已上报
</span>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"上报
日期
"
align=
"center"
prop=
"fGovUploadTime"
width=
"180"
>
<el-table-column
label=
"上报
省厅时间
"
align=
"center"
prop=
"fGovUploadTime"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.fGovUploadTime"
>
{{
parseTime
(
scope
.
row
.
fGovUploadTime
,
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
:{s
}
'
)
}}
<
/span
>
<span
v-if=
"scope.row.fGovUploadTime"
>
{{
parseTime
(
scope
.
row
.
fGovUploadTime
,
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
:{s
}
'
)
}}
<
/span
>
<
span
v
-
else
>-<
/span
>
<
span
v
-
else
>-<
/span
>
...
...
zh-baseversion-web/src/views/supplybalance/stop/components/DetailInfo.vue
View file @
c58dfda2
...
@@ -103,20 +103,24 @@
...
@@ -103,20 +103,24 @@
<
el
-
form
label
-
width
=
"170px"
>
<
el
-
form
label
-
width
=
"170px"
>
<
el
-
row
class
=
"el-row-table"
>
<
el
-
row
class
=
"el-row-table"
>
<
el
-
col
:
span
=
"12"
>
<
el
-
form
-
item
label
=
"上报省厅状态"
>
<
span
>
{{
fUploadType
}}
<
/span>
<
/el-form-item
>
<
/el-col
>
<
el
-
col
:
span
=
"12"
>
<
el
-
form
-
item
label
=
"上报省厅时间"
>
<
span
>
{{
fUploadTime
}}
<
/span>
<
/el-form-item
>
<
/el-col
>
<
el
-
col
:
span
=
"12"
>
<
el
-
form
-
item
v
-
if
=
"this.$store.state.user.roleId == 3"
label
=
"企业端上报时间"
>
<
span
>
{{
detailInfo
.
entRepTime
}}
<
/span
>
<
/el-form-item
>
<
/el-col>
<
el
-
col
:
span
=
"12"
v
-
if
=
"-2 == $store.state.user.enterpriseId"
>
<
el
-
form
-
item
label
=
"政府端上报时间"
>
<
span
v
-
if
=
"detailInfo.fGovUploadTime"
>
{{
detailInfo
.
fGovUploadTime
}}
<
/span
>
<
span
v
-
else
>-<
/span
>
<
/el-form-item
>
<
/el-col
>
<
el
-
col
:
span
=
"12"
>
<
el
-
form
-
item
label
=
"企业端上报时间"
>
<
span
v
-
if
=
"detailInfo.entRepTime"
>
{{
detailInfo
.
entRepTime
}}
<
/span
>
<
span
v
-
else
>-<
/span
>
<
/el-form-item
>
<
/el-col
>
<
/el-row
>
<
/el-row
>
<
/el-form
>
<
/el-form
>
...
@@ -137,6 +141,8 @@
...
@@ -137,6 +141,8 @@
detailOpen
:
false
,
detailOpen
:
false
,
stopLog
:
[],
stopLog
:
[],
total
:
0
,
total
:
0
,
fUploadType
:
""
,
fUploadTime
:
null
,
queryParams
:
{
queryParams
:
{
pageNum
:
1
,
pageNum
:
1
,
pageSize
:
5
,
pageSize
:
5
,
...
@@ -156,11 +162,40 @@
...
@@ -156,11 +162,40 @@
}
}
}
,
}
,
methods
:{
methods
:{
//根据不同角色显示不同字段
showUploadType
()
{
let
roleId
=
this
.
$store
.
state
.
user
.
roleId
;
if
(
roleId
==
3
)
{
this
.
fUploadType
=
this
.
detailInfo
.
fGovUploadStatus
}
if
(
roleId
==
5
)
{
this
.
fUploadType
=
this
.
detailInfo
.
fRepStatus
}
if
(
this
.
fUploadType
==
'0'
)
{
this
.
fUploadType
=
"未上报"
}
if
(
this
.
fUploadType
==
'1'
)
{
this
.
fUploadType
=
"已上报"
}
}
,
showUploadTime
()
{
let
roleId
=
this
.
$store
.
state
.
user
.
roleId
;
if
(
roleId
==
3
)
{
this
.
fUploadTime
=
this
.
detailInfo
.
fGovUploadTime
}
if
(
roleId
==
5
)
{
this
.
fUploadTime
=
this
.
detailInfo
.
entRepTime
}
}
,
getDetailInfo
(
id
){
getDetailInfo
(
id
){
this
.
queryParams
.
fGasStopId
=
id
;
this
.
queryParams
.
fGasStopId
=
id
;
getSup
(
id
).
then
(
res
=>
{
getSup
(
id
).
then
(
res
=>
{
if
(
res
.
code
==
200
&&
res
.
data
){
if
(
res
.
code
==
200
&&
res
.
data
){
this
.
detailInfo
=
res
.
data
;
this
.
detailInfo
=
res
.
data
;
this
.
showUploadType
();
this
.
showUploadTime
();
this
.
detailOpen
=
true
;
this
.
detailOpen
=
true
;
}
}
}
)
}
)
...
...
zh-baseversion-web/src/views/supplybalance/stop/index.vue
View file @
c58dfda2
...
@@ -114,27 +114,27 @@
...
@@ -114,27 +114,27 @@
<
span
v
-
else
>-<
/span
>
<
span
v
-
else
>-<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"上报状态"
align
=
"center"
prop
=
"fRepStatus"
v
-
if
=
"
-2 != $store.state.user.enterpriseId
"
>
<
el
-
table
-
column
label
=
"上报状态"
align
=
"center"
prop
=
"fRepStatus"
v
-
if
=
"
this.$store.state.user.roleId == 5
"
>
<
template
slot
-
scope
=
"scope"
>
<
template
slot
-
scope
=
"scope"
>
<
span
v
-
if
=
"scope.row.fRepStatus == '0'"
>
未上报
<
/span
>
<
span
v
-
if
=
"scope.row.fRepStatus == '0'"
>
未上报
<
/span
>
<
span
v
-
else
-
if
=
"scope.row.fRepStatus == '1'"
>
已上报
<
/span
>
<
span
v
-
else
-
if
=
"scope.row.fRepStatus == '1'"
>
已上报
<
/span
>
<
span
v
-
else
>-<
/span
>
<
span
v
-
else
>-<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"上报时间"
align
=
"center"
prop
=
"entRepTime"
width
=
"150"
v
-
if
=
"
-2 != $store.state.user.enterpriseId
"
>
<
el
-
table
-
column
label
=
"上报时间"
align
=
"center"
prop
=
"entRepTime"
width
=
"150"
v
-
if
=
"
this.$store.state.user.roleId == 5
"
>
<
template
slot
-
scope
=
"scope"
>
<
template
slot
-
scope
=
"scope"
>
<
span
v
-
if
=
"scope.row.entRepTime"
>
{{
parseTime
(
scope
.
row
.
entRepTime
,
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
:{s
}
'
)
}}
<
/span
>
<
span
v
-
if
=
"scope.row.entRepTime"
>
{{
parseTime
(
scope
.
row
.
entRepTime
,
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
:{s
}
'
)
}}
<
/span
>
<
span
v
-
else
>-<
/span
>
<
span
v
-
else
>-<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"上报
状态"
align
=
"center"
prop
=
"fGovUploadStatus"
v
-
if
=
"-2 == $store.state.user.enterpriseId
"
>
<
el
-
table
-
column
label
=
"上报
省厅状态"
align
=
"center"
prop
=
"fGovUploadStatus"
v
-
if
=
"this.$store.state.user.roleId == 3
"
>
<
template
slot
-
scope
=
"scope"
>
<
template
slot
-
scope
=
"scope"
>
<
span
v
-
if
=
"scope.row.fGovUploadStatus == '0'"
>
未上报
<
/span
>
<
span
v
-
if
=
"scope.row.fGovUploadStatus == '0'"
>
未上报
<
/span
>
<
span
v
-
else
-
if
=
"scope.row.fGovUploadStatus == '1'"
>
已上报
<
/span
>
<
span
v
-
else
-
if
=
"scope.row.fGovUploadStatus == '1'"
>
已上报
<
/span
>
<
span
v
-
else
>-<
/span
>
<
span
v
-
else
>-<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"上报
时间"
align
=
"center"
prop
=
"fRecoveryGasTime"
width
=
"150"
v
-
if
=
"-2 == $store.state.user.enterpriseId
"
>
<
el
-
table
-
column
label
=
"上报
省厅时间"
align
=
"center"
prop
=
"fRecoveryGasTime"
width
=
"150"
v
-
if
=
"this.$store.state.user.roleId == 3
"
>
<
template
slot
-
scope
=
"scope"
>
<
template
slot
-
scope
=
"scope"
>
<
span
v
-
if
=
"scope.row.fGovUploadTime"
>
{{
parseTime
(
scope
.
row
.
fGovUploadTime
,
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
:{s
}
'
)
}}
<
/span
>
<
span
v
-
if
=
"scope.row.fGovUploadTime"
>
{{
parseTime
(
scope
.
row
.
fGovUploadTime
,
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
:{s
}
'
)
}}
<
/span
>
<
span
v
-
else
>-<
/span
>
<
span
v
-
else
>-<
/span
>
...
...
zh-baseversion-web/src/views/thirdbuild/accident/components/DetailInfo.vue
View file @
c58dfda2
...
@@ -56,13 +56,13 @@
...
@@ -56,13 +56,13 @@
<el-form
label-width=
"170px"
>
<el-form
label-width=
"170px"
>
<el-row
class=
"el-row-table"
>
<el-row
class=
"el-row-table"
>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"上报状态
"
>
<el-form-item
:label=
"fUploadTypeLable
"
>
<span>
{{
fUploadType
}}
</span>
<span>
{{
fUploadType
}}
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"上报时间
"
>
<el-form-item
:label=
"fUploadTimeLabel
"
>
<span>
{{
fUploadTime
}}
</span>
<span>
{{
fUploadTime
}}
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -86,6 +86,8 @@
...
@@ -86,6 +86,8 @@
data
(){
data
(){
return
{
return
{
detailInfo
:
{},
detailInfo
:
{},
fUploadTypeLable
:
""
,
fUploadTimeLabel
:
""
,
detailOpen
:
false
,
detailOpen
:
false
,
fUploadType
:
""
,
fUploadType
:
""
,
fUploadTime
:
null
fUploadTime
:
null
...
@@ -97,9 +99,11 @@
...
@@ -97,9 +99,11 @@
let
roleId
=
this
.
$store
.
state
.
user
.
roleId
;
let
roleId
=
this
.
$store
.
state
.
user
.
roleId
;
if
(
roleId
==
3
)
{
if
(
roleId
==
3
)
{
this
.
fUploadType
=
this
.
detailInfo
.
govUploadState
this
.
fUploadType
=
this
.
detailInfo
.
govUploadState
this
.
fUploadTypeLable
=
"上报省厅状态"
}
}
if
(
roleId
==
5
)
{
if
(
roleId
==
5
)
{
this
.
fUploadType
=
this
.
detailInfo
.
entUploadState
this
.
fUploadType
=
this
.
detailInfo
.
entUploadState
this
.
fUploadTypeLable
=
"上报状态"
}
}
if
(
this
.
fUploadType
==
'0'
)
{
if
(
this
.
fUploadType
==
'0'
)
{
...
@@ -114,9 +118,11 @@
...
@@ -114,9 +118,11 @@
let
roleId
=
this
.
$store
.
state
.
user
.
roleId
;
let
roleId
=
this
.
$store
.
state
.
user
.
roleId
;
if
(
roleId
==
3
)
{
if
(
roleId
==
3
)
{
this
.
fUploadTime
=
this
.
detailInfo
.
govUploadTime
this
.
fUploadTime
=
this
.
detailInfo
.
govUploadTime
this
.
fUploadTimeLabel
=
"上报省厅时间"
}
}
if
(
roleId
==
5
)
{
if
(
roleId
==
5
)
{
this
.
fUploadTime
=
this
.
detailInfo
.
entUploadTime
this
.
fUploadTime
=
this
.
detailInfo
.
entUploadTime
this
.
fUploadTimeLabel
=
"上报时间"
}
}
},
},
getDetailInfo
(
id
){
getDetailInfo
(
id
){
...
...
zh-baseversion-web/src/views/thirdbuild/accident/index.vue
View file @
c58dfda2
...
@@ -104,8 +104,8 @@
...
@@ -104,8 +104,8 @@
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"上报状态
"
align=
"center"
prop=
"uploadState"
:formatter=
"uploadStateFormat"
/>
<el-table-column
:label=
"uploadStateLabel
"
align=
"center"
prop=
"uploadState"
:formatter=
"uploadStateFormat"
/>
<el-table-column
label=
"上报时间
"
align=
"center"
prop=
"uploadTime"
:formatter=
"uploadTimeFormat"
/>
<el-table-column
:label=
"uploadTimeLabel
"
align=
"center"
prop=
"uploadTime"
:formatter=
"uploadTimeFormat"
/>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
<el-button
...
@@ -240,6 +240,8 @@ export default {
...
@@ -240,6 +240,8 @@ export default {
data
()
{
data
()
{
return
{
return
{
user
:{},
user
:{},
uploadStateLabel
:
""
,
uploadTimeLabel
:
""
,
enterprises
:
[],
enterprises
:
[],
// 遮罩层
// 遮罩层
loading
:
true
,
loading
:
true
,
...
@@ -329,12 +331,14 @@ export default {
...
@@ -329,12 +331,14 @@ export default {
//角色 1 超级管理员 5 企业
//角色 1 超级管理员 5 企业
let
roleId
=
this
.
user
.
roleId
;
let
roleId
=
this
.
user
.
roleId
;
if
(
roleId
==
5
)
{
if
(
roleId
==
5
)
{
this
.
uploadStateLabel
=
"上报状态"
if
(
row
.
entUploadState
==
'0'
)
{
if
(
row
.
entUploadState
==
'0'
)
{
return
"未上报"
return
"未上报"
}
else
{
}
else
{
return
"已上报"
return
"已上报"
}
}
}
else
{
}
else
{
this
.
uploadStateLabel
=
"上报省厅状态"
if
(
row
.
govUploadState
==
'0'
)
{
if
(
row
.
govUploadState
==
'0'
)
{
return
"未上报"
return
"未上报"
}
else
{
}
else
{
...
@@ -347,8 +351,10 @@ export default {
...
@@ -347,8 +351,10 @@ export default {
//角色 1 超级管理员 5 企业
//角色 1 超级管理员 5 企业
let
roleId
=
this
.
user
.
roleId
;
let
roleId
=
this
.
user
.
roleId
;
if
(
roleId
==
5
)
{
if
(
roleId
==
5
)
{
this
.
uploadTimeLabel
=
"上报时间"
return
row
.
entUploadTime
;
return
row
.
entUploadTime
;
}
else
{
}
else
{
this
.
uploadTimeLabel
=
"上报省厅时间"
return
row
.
govUploadTime
;
return
row
.
govUploadTime
;
}
}
...
...
zh-baseversion-web/src/views/thirdbuild/project/components/DetailInfo.vue
View file @
c58dfda2
...
@@ -251,13 +251,13 @@
...
@@ -251,13 +251,13 @@
<el-form
label-width=
"170px"
>
<el-form
label-width=
"170px"
>
<el-row
class=
"el-row-table"
>
<el-row
class=
"el-row-table"
>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"上报状态
"
>
<el-form-item
:label=
"fUploadTypeLable
"
>
<span>
{{
fUploadType
}}
</span>
<span>
{{
fUploadType
}}
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"上报时间
"
>
<el-form-item
:label=
"fUploadTimeLabel
"
>
<span>
{{
fUploadTime
}}
</span>
<span>
{{
fUploadTime
}}
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -284,6 +284,8 @@
...
@@ -284,6 +284,8 @@
return
{
return
{
enterprises
:
[],
enterprises
:
[],
countyInfo
:
[],
countyInfo
:
[],
fUploadTypeLable
:
""
,
fUploadTimeLabel
:
""
,
enterpriseName
:
""
,
enterpriseName
:
""
,
detailInfo
:
{},
detailInfo
:
{},
detailOpen
:
false
,
detailOpen
:
false
,
...
@@ -302,9 +304,11 @@
...
@@ -302,9 +304,11 @@
let
roleId
=
this
.
$store
.
state
.
user
.
roleId
;
let
roleId
=
this
.
$store
.
state
.
user
.
roleId
;
if
(
roleId
==
3
)
{
if
(
roleId
==
3
)
{
this
.
fUploadType
=
this
.
detailInfo
.
govUploadState
this
.
fUploadType
=
this
.
detailInfo
.
govUploadState
this
.
fUploadTypeLable
=
"上报省厅状态"
}
}
if
(
roleId
==
5
)
{
if
(
roleId
==
5
)
{
this
.
fUploadType
=
this
.
detailInfo
.
entUploadState
this
.
fUploadType
=
this
.
detailInfo
.
entUploadState
this
.
fUploadTypeLable
=
"上报状态"
}
}
if
(
this
.
fUploadType
==
'0'
)
{
if
(
this
.
fUploadType
==
'0'
)
{
...
@@ -319,9 +323,11 @@
...
@@ -319,9 +323,11 @@
let
roleId
=
this
.
$store
.
state
.
user
.
roleId
;
let
roleId
=
this
.
$store
.
state
.
user
.
roleId
;
if
(
roleId
==
3
)
{
if
(
roleId
==
3
)
{
this
.
fUploadTime
=
this
.
detailInfo
.
govUploadTime
this
.
fUploadTime
=
this
.
detailInfo
.
govUploadTime
this
.
fUploadTimeLabel
=
"上报省厅时间"
}
}
if
(
roleId
==
5
)
{
if
(
roleId
==
5
)
{
this
.
fUploadTime
=
this
.
detailInfo
.
entUploadTime
this
.
fUploadTime
=
this
.
detailInfo
.
entUploadTime
this
.
fUploadTimeLabel
=
"上报时间"
}
}
},
},
//获取县级
//获取县级
...
...
zh-baseversion-web/src/views/thirdbuild/project/index.vue
View file @
c58dfda2
...
@@ -106,8 +106,8 @@
...
@@ -106,8 +106,8 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"管道压力等级分类"
align=
"center"
prop=
"fPipePress"
:formatter=
"fPipePressFormat"
/>
<el-table-column
label=
"管道压力等级分类"
align=
"center"
prop=
"fPipePress"
:formatter=
"fPipePressFormat"
/>
<el-table-column
label=
"上报状态
"
align=
"center"
prop=
"uploadState"
:formatter=
"uploadStateFormat"
/>
<el-table-column
:label=
"uploadStateLabel
"
align=
"center"
prop=
"uploadState"
:formatter=
"uploadStateFormat"
/>
<el-table-column
label=
"上报时间
"
align=
"center"
prop=
"uploadTime"
:formatter=
"uploadTimeFormat"
/>
<el-table-column
:label=
"uploadTimeLabel
"
align=
"center"
prop=
"uploadTime"
:formatter=
"uploadTimeFormat"
/>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
width=
"210"
>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
width=
"210"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
<el-button
...
@@ -498,6 +498,8 @@ export default {
...
@@ -498,6 +498,8 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
uploadStateLabel
:
""
,
uploadTimeLabel
:
""
,
enterpriseName
:
""
,
enterpriseName
:
""
,
enterprises
:
[],
enterprises
:
[],
user
:{},
user
:{},
...
@@ -642,12 +644,14 @@ export default {
...
@@ -642,12 +644,14 @@ export default {
//角色 1 超级管理员 5 企业
//角色 1 超级管理员 5 企业
let
roleId
=
this
.
user
.
roleId
;
let
roleId
=
this
.
user
.
roleId
;
if
(
roleId
==
5
)
{
if
(
roleId
==
5
)
{
this
.
uploadStateLabel
=
"上报状态"
if
(
row
.
entUploadState
==
'0'
)
{
if
(
row
.
entUploadState
==
'0'
)
{
return
"未上报"
return
"未上报"
}
else
{
}
else
{
return
"已上报"
return
"已上报"
}
}
}
else
{
}
else
{
this
.
uploadStateLabel
=
"上报省厅状态"
if
(
row
.
govUploadState
==
'0'
)
{
if
(
row
.
govUploadState
==
'0'
)
{
return
"未上报"
return
"未上报"
}
else
{
}
else
{
...
@@ -660,8 +664,10 @@ export default {
...
@@ -660,8 +664,10 @@ export default {
//角色 1 超级管理员 5 企业
//角色 1 超级管理员 5 企业
let
roleId
=
this
.
user
.
roleId
;
let
roleId
=
this
.
user
.
roleId
;
if
(
roleId
==
5
)
{
if
(
roleId
==
5
)
{
this
.
uploadTimeLabel
=
"上报时间"
return
row
.
entUploadTime
;
return
row
.
entUploadTime
;
}
else
{
}
else
{
this
.
uploadTimeLabel
=
"上报省厅时间"
return
row
.
govUploadTime
;
return
row
.
govUploadTime
;
}
}
...
...
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