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
ad663a87
Commit
ad663a87
authored
Jul 19, 2024
by
wanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1 涉及到上传的调整成 上报
parent
e387c854
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
171 additions
and
156 deletions
+171
-156
DetailInfo.vue
...src/views/oldpipesystem/process/components/DetailInfo.vue
+5
-5
index.vue
zh-baseversion-web/src/views/oldpipesystem/process/index.vue
+24
-24
DetailInfo.vue
zh-baseversion-web/src/views/risk/components/DetailInfo.vue
+3
-3
index.vue
zh-baseversion-web/src/views/risk/index.vue
+25
-25
DetailInfo.vue
.../src/views/supervision/findings/components/DetailInfo.vue
+1
-1
index.vue
zh-baseversion-web/src/views/supervision/findings/index.vue
+12
-12
InspectInfo.vue
...b/src/views/supervision/record/components/InspectInfo.vue
+1
-1
index.vue
zh-baseversion-web/src/views/supervision/record/index.vue
+17
-24
index.vue
zh-baseversion-web/src/views/supervision/spot/index.vue
+22
-0
DetailInfo.vue
...b/src/views/thirdbuild/accident/components/DetailInfo.vue
+5
-5
index.vue
zh-baseversion-web/src/views/thirdbuild/accident/index.vue
+26
-26
DetailInfo.vue
...eb/src/views/thirdbuild/project/components/DetailInfo.vue
+5
-5
index.vue
zh-baseversion-web/src/views/thirdbuild/project/index.vue
+25
-25
No files found.
zh-baseversion-web/src/views/oldpipesystem/process/components/DetailInfo.vue
View file @
ad663a87
...
@@ -108,19 +108,19 @@
...
@@ -108,19 +108,19 @@
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"上
传
状态"
>
<el-form-item
label=
"上
报
状态"
>
<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=
"上
报
时间"
>
<span>
{{
fUploadTime
}}
</span>
<span>
{{
fUploadTime
}}
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
v-if=
"this.$store.state.user.roleId == 3"
label=
"企业端上
传
时间"
>
<el-form-item
v-if=
"this.$store.state.user.roleId == 3"
label=
"企业端上
报
时间"
>
<span>
{{
detailInfo
.
fUploadTime
}}
</span>
<span>
{{
detailInfo
.
fUploadTime
}}
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -164,10 +164,10 @@
...
@@ -164,10 +164,10 @@
}
}
if
(
this
.
fUploadType
==
'0'
)
{
if
(
this
.
fUploadType
==
'0'
)
{
this
.
fUploadType
=
"未上
传
"
this
.
fUploadType
=
"未上
报
"
}
}
if
(
this
.
fUploadType
==
'1'
)
{
if
(
this
.
fUploadType
==
'1'
)
{
this
.
fUploadType
=
"已上
传
"
this
.
fUploadType
=
"已上
报
"
}
}
},
},
showUploadTime
()
{
showUploadTime
()
{
...
...
zh-baseversion-web/src/views/oldpipesystem/process/index.vue
View file @
ad663a87
...
@@ -20,10 +20,10 @@
...
@@ -20,10 +20,10 @@
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"上
传
状态"
prop=
"fUploadType"
>
<el-form-item
label=
"上
报
状态"
prop=
"fUploadType"
>
<el-select
v-model=
"queryParams.fUploadType"
placeholder=
"请选择上
传
状态"
clearable
size=
"small"
>
<el-select
v-model=
"queryParams.fUploadType"
placeholder=
"请选择上
报
状态"
clearable
size=
"small"
>
<el-option
label=
"未上
传
"
value=
"0"
/>
<el-option
label=
"未上
报
"
value=
"0"
/>
<el-option
label=
"已上
传
"
value=
"1"
/>
<el-option
label=
"已上
报
"
value=
"1"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
...
@@ -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=
"上
报
状态"
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=
"上
报
时间"
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"
>
...
@@ -143,7 +143,7 @@
...
@@ -143,7 +143,7 @@
type=
"text"
type=
"text"
@
click=
"handleReport(scope.row)"
@
click=
"handleReport(scope.row)"
v-if=
"judgeUploadIsShow((scope.row))"
v-if=
"judgeUploadIsShow((scope.row))"
>
上
传
</el-button>
>
上
报
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -460,24 +460,24 @@ export default {
...
@@ -460,24 +460,24 @@ export default {
this
.
reset
();
this
.
reset
();
},
},
//判断 上
传是否需要显示,上传分为企业上传 和 政府端上传
//判断 上
报是否需要显示,上报分为企业上报 和 政府端上报
judgeUploadIsShow
(
row
)
{
judgeUploadIsShow
(
row
)
{
//角色 1 超级管理员 5 企业
//角色 1 超级管理员 5 企业
let
roleId
=
this
.
user
.
roleId
;
let
roleId
=
this
.
user
.
roleId
;
// 企业端 上
传状态 0-未上传,1-已上传
// 企业端 上
报状态 0-未上报,1-已上报
let
entUploadState
=
row
.
fUploadType
;
let
entUploadState
=
row
.
fUploadType
;
// 政府端 上
传状态 0-未上传,1-已上传
// 政府端 上
报状态 0-未上报,1-已上报
let
govUploadState
=
row
.
govUploadState
;
let
govUploadState
=
row
.
govUploadState
;
// 如果政府端都已经上
传
,那就不能显示了。
// 如果政府端都已经上
报
,那就不能显示了。
if
(
govUploadState
===
'1'
)
{
if
(
govUploadState
===
'1'
)
{
return
false
;
return
false
;
}
}
// 如果企业端上
传
了,则企业端就不能显示了,政府端和 超级管理员能显示
// 如果企业端上
报
了,则企业端就不能显示了,政府端和 超级管理员能显示
if
(
entUploadState
===
'1'
&&
govUploadState
===
'0'
)
{
if
(
entUploadState
===
'1'
&&
govUploadState
===
'0'
)
{
if
(
roleId
===
5
)
{
if
(
roleId
===
5
)
{
return
false
;
return
false
;
...
@@ -490,25 +490,25 @@ export default {
...
@@ -490,25 +490,25 @@ export default {
return
true
;
return
true
;
},
},
//上
传
状态动态展示
//上
报
状态动态展示
uploadStateFormat
(
row
,
column
)
{
uploadStateFormat
(
row
,
column
)
{
//角色 1 超级管理员 5 企业
//角色 1 超级管理员 5 企业
let
roleId
=
this
.
user
.
roleId
;
let
roleId
=
this
.
user
.
roleId
;
if
(
roleId
==
5
)
{
if
(
roleId
==
5
)
{
if
(
row
.
fUploadType
==
'0'
)
{
if
(
row
.
fUploadType
==
'0'
)
{
return
"未上
传
"
return
"未上
报
"
}
else
{
}
else
{
return
"已上
传
"
return
"已上
报
"
}
}
}
else
{
}
else
{
if
(
row
.
govUploadState
==
'0'
)
{
if
(
row
.
govUploadState
==
'0'
)
{
return
"未上
传
"
return
"未上
报
"
}
else
{
}
else
{
return
"已上
传
"
return
"已上
报
"
}
}
}
}
},
},
//上
传
时间动态展示
//上
报
时间动态展示
uploadTimeFormat
(
row
,
column
)
{
uploadTimeFormat
(
row
,
column
)
{
//角色 1 超级管理员 5 企业
//角色 1 超级管理员 5 企业
let
roleId
=
this
.
user
.
roleId
;
let
roleId
=
this
.
user
.
roleId
;
...
@@ -655,9 +655,9 @@ export default {
...
@@ -655,9 +655,9 @@ export default {
this
.
$refs
.
detail
.
getDetailInfo
(
row
.
fOldPlanProcessId
);
this
.
$refs
.
detail
.
getDetailInfo
(
row
.
fOldPlanProcessId
);
},
},
handleReport
(
row
){
handleReport
(
row
){
// 如果是 超级管理员或者 企业,并且 企业端上
传
状态为0
// 如果是 超级管理员或者 企业,并且 企业端上
报
状态为0
if
(
this
.
user
.
roleId
==
5
&&
row
.
fUploadType
==
'0'
)
{
if
(
this
.
user
.
roleId
==
5
&&
row
.
fUploadType
==
'0'
)
{
this
.
$confirm
(
'是否确认上
传
老旧管网改造计划项目名称为"'
+
row
.
fProjectName
+
'"的数据项?'
,
"警告"
,
{
this
.
$confirm
(
'是否确认上
报
老旧管网改造计划项目名称为"'
+
row
.
fProjectName
+
'"的数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
type
:
"warning"
...
@@ -665,14 +665,14 @@ export default {
...
@@ -665,14 +665,14 @@ export default {
return
entReportPipeOldPlanProcess
({
fOldPlanProcessId
:
row
.
fOldPlanProcessId
});
return
entReportPipeOldPlanProcess
({
fOldPlanProcessId
:
row
.
fOldPlanProcessId
});
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
this
.
msgSuccess
(
"上
传
成功"
);
this
.
msgSuccess
(
"上
报
成功"
);
}).
catch
(()
=>
{});
}).
catch
(()
=>
{});
}
}
// 如果是 超级管理员或者 政府,并且 政府端上
传
状态为0
// 如果是 超级管理员或者 政府,并且 政府端上
报
状态为0
if
(
this
.
user
.
roleId
==
3
&&
row
.
govUploadState
==
'0'
)
{
if
(
this
.
user
.
roleId
==
3
&&
row
.
govUploadState
==
'0'
)
{
this
.
$confirm
(
'是否确认上
传
老旧管网改造计划项目名称为"'
+
row
.
fProjectName
+
'"的数据项?'
,
"警告"
,
{
this
.
$confirm
(
'是否确认上
报
老旧管网改造计划项目名称为"'
+
row
.
fProjectName
+
'"的数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
type
:
"warning"
...
@@ -680,7 +680,7 @@ export default {
...
@@ -680,7 +680,7 @@ export default {
return
reportPipeOldPlanProcess
({
fOldPlanProcessId
:
row
.
fOldPlanProcessId
});
return
reportPipeOldPlanProcess
({
fOldPlanProcessId
:
row
.
fOldPlanProcessId
});
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
this
.
msgSuccess
(
"上
传
成功"
);
this
.
msgSuccess
(
"上
报
成功"
);
}).
catch
(()
=>
{});
}).
catch
(()
=>
{});
}
}
},
},
...
...
zh-baseversion-web/src/views/risk/components/DetailInfo.vue
View file @
ad663a87
...
@@ -66,19 +66,19 @@
...
@@ -66,19 +66,19 @@
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"上
传
状态"
>
<el-form-item
label=
"上
报
状态"
>
<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=
"上
报
时间"
>
<span>
{{
fUploadTime
}}
</span>
<span>
{{
fUploadTime
}}
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
v-if=
"this.$store.state.user.roleId == 3"
label=
"企业端上
传
时间"
>
<el-form-item
v-if=
"this.$store.state.user.roleId == 3"
label=
"企业端上
报
时间"
>
<span>
{{
detailInfo
.
entUploadTime
}}
</span>
<span>
{{
detailInfo
.
entUploadTime
}}
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
...
zh-baseversion-web/src/views/risk/index.vue
View file @
ad663a87
...
@@ -30,10 +30,10 @@
...
@@ -30,10 +30,10 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"上
传
状态"
prop=
"entUploadState"
>
<el-form-item
label=
"上
报
状态"
prop=
"entUploadState"
>
<el-select
v-model=
"queryParams.entUploadState"
placeholder=
"请选择上
传
状态"
clearable
size=
"small"
>
<el-select
v-model=
"queryParams.entUploadState"
placeholder=
"请选择上
报
状态"
clearable
size=
"small"
>
<el-option
label=
"未上
传
"
value=
"0"
/>
<el-option
label=
"未上
报
"
value=
"0"
/>
<el-option
label=
"已上
传
"
value=
"1"
/>
<el-option
label=
"已上
报
"
value=
"1"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
@@ -96,9 +96,9 @@
...
@@ -96,9 +96,9 @@
<el-table-column
label=
"县级行政区"
align=
"center"
prop=
"fRegionId"
/>
<el-table-column
label=
"县级行政区"
align=
"center"
prop=
"fRegionId"
/>
<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=
"上
报
状态"
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=
"上
报
时间"
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"
>
...
@@ -128,7 +128,7 @@
...
@@ -128,7 +128,7 @@
type=
"text"
type=
"text"
@
click=
"handleReport(scope.row)"
@
click=
"handleReport(scope.row)"
v-if=
"judgeUploadIsShow((scope.row))"
v-if=
"judgeUploadIsShow((scope.row))"
>
上
传
</el-button>
>
上
报
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -353,24 +353,24 @@ export default {
...
@@ -353,24 +353,24 @@ export default {
this
.
getCountyInfo
();
this
.
getCountyInfo
();
},
},
methods
:
{
methods
:
{
//判断 上
传是否需要显示,上传分为企业上传 和 政府端上传
//判断 上
报是否需要显示,上报分为企业上报 和 政府端上报
judgeUploadIsShow
(
row
)
{
judgeUploadIsShow
(
row
)
{
//角色 1 超级管理员 5 企业
//角色 1 超级管理员 5 企业
let
roleId
=
this
.
user
.
roleId
;
let
roleId
=
this
.
user
.
roleId
;
// 企业端 上
传状态 0-未上传,1-已上传
// 企业端 上
报状态 0-未上报,1-已上报
let
entUploadState
=
row
.
entUploadState
;
let
entUploadState
=
row
.
entUploadState
;
// 政府端 上
传状态 0-未上传,1-已上传
// 政府端 上
报状态 0-未上报,1-已上报
let
govUploadState
=
row
.
govUploadState
;
let
govUploadState
=
row
.
govUploadState
;
// 如果政府端都已经上
传
,那就不能显示了。
// 如果政府端都已经上
报
,那就不能显示了。
if
(
govUploadState
===
'1'
)
{
if
(
govUploadState
===
'1'
)
{
return
false
;
return
false
;
}
}
// 如果企业端上
传
了,则企业端就不能显示了,政府端和 超级管理员能显示
// 如果企业端上
报
了,则企业端就不能显示了,政府端和 超级管理员能显示
if
(
entUploadState
===
'1'
&&
govUploadState
===
'0'
)
{
if
(
entUploadState
===
'1'
&&
govUploadState
===
'0'
)
{
if
(
roleId
===
5
)
{
if
(
roleId
===
5
)
{
return
false
;
return
false
;
...
@@ -576,25 +576,25 @@ export default {
...
@@ -576,25 +576,25 @@ export default {
this
.
$refs
.
detail
.
getDetailInfo
(
row
.
fRiskDevMajInforId
);
this
.
$refs
.
detail
.
getDetailInfo
(
row
.
fRiskDevMajInforId
);
},
},
//上
传
状态动态展示
//上
报
状态动态展示
uploadStateFormat
(
row
,
column
)
{
uploadStateFormat
(
row
,
column
)
{
//角色 1 超级管理员 5 企业
//角色 1 超级管理员 5 企业
let
roleId
=
this
.
user
.
roleId
;
let
roleId
=
this
.
user
.
roleId
;
if
(
roleId
==
5
)
{
if
(
roleId
==
5
)
{
if
(
row
.
entUploadState
==
'0'
)
{
if
(
row
.
entUploadState
==
'0'
)
{
return
"未上
传
"
return
"未上
报
"
}
else
{
}
else
{
return
"已上
传
"
return
"已上
报
"
}
}
}
else
{
}
else
{
if
(
row
.
govUploadState
==
'0'
)
{
if
(
row
.
govUploadState
==
'0'
)
{
return
"未上
传
"
return
"未上
报
"
}
else
{
}
else
{
return
"已上
传
"
return
"已上
报
"
}
}
}
}
},
},
//上
传
时间动态展示
//上
报
时间动态展示
uploadTimeFormat
(
row
,
column
)
{
uploadTimeFormat
(
row
,
column
)
{
//角色 1 超级管理员 5 企业
//角色 1 超级管理员 5 企业
let
roleId
=
this
.
user
.
roleId
;
let
roleId
=
this
.
user
.
roleId
;
...
@@ -605,11 +605,11 @@ export default {
...
@@ -605,11 +605,11 @@ export default {
}
}
},
},
/** 上
传
按钮操作 */
/** 上
报
按钮操作 */
handleReport
(
row
)
{
handleReport
(
row
)
{
// 如果是 企业,并且 企业端上
传
状态为0
// 如果是 企业,并且 企业端上
报
状态为0
if
(
this
.
user
.
roleId
==
5
&&
row
.
entUploadState
==
'0'
)
{
if
(
this
.
user
.
roleId
==
5
&&
row
.
entUploadState
==
'0'
)
{
this
.
$confirm
(
'是否确认上
传
重要风险点编码为"'
+
row
.
fRiskCode
+
'"的数据项?'
,
"警告"
,
{
this
.
$confirm
(
'是否确认上
报
重要风险点编码为"'
+
row
.
fRiskCode
+
'"的数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
type
:
"warning"
...
@@ -617,14 +617,14 @@ export default {
...
@@ -617,14 +617,14 @@ export default {
return
entReportRiskInfo
({
fRiskDevMajInforId
:
row
.
fRiskDevMajInforId
});
return
entReportRiskInfo
({
fRiskDevMajInforId
:
row
.
fRiskDevMajInforId
});
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
this
.
msgSuccess
(
"上
传
成功"
);
this
.
msgSuccess
(
"上
报
成功"
);
}).
catch
(()
=>
{});
}).
catch
(()
=>
{});
}
}
// 如果是 政府,并且 政府端上
传
状态为0
// 如果是 政府,并且 政府端上
报
状态为0
if
(
this
.
user
.
roleId
==
3
&&
row
.
govUploadState
==
'0'
)
{
if
(
this
.
user
.
roleId
==
3
&&
row
.
govUploadState
==
'0'
)
{
this
.
$confirm
(
'是否确认上
传
重要风险点编码为"'
+
row
.
fRiskCode
+
'"的数据项?'
,
"警告"
,
{
this
.
$confirm
(
'是否确认上
报
重要风险点编码为"'
+
row
.
fRiskCode
+
'"的数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
type
:
"warning"
...
@@ -632,7 +632,7 @@ export default {
...
@@ -632,7 +632,7 @@ export default {
return
reportRiskInfo
({
fRiskDevMajInforId
:
row
.
fRiskDevMajInforId
});
return
reportRiskInfo
({
fRiskDevMajInforId
:
row
.
fRiskDevMajInforId
});
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
this
.
msgSuccess
(
"上
传
成功"
);
this
.
msgSuccess
(
"上
报
成功"
);
}).
catch
(()
=>
{});
}).
catch
(()
=>
{});
}
}
},
},
...
...
zh-baseversion-web/src/views/supervision/findings/components/DetailInfo.vue
View file @
ad663a87
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"上
传
时间"
>
<el-form-item
label=
"上
报
时间"
>
<span
v-if=
"detailInfo.govUploadTime"
>
{{
detailInfo
.
govUploadTime
}}
</span>
<span
v-if=
"detailInfo.govUploadTime"
>
{{
detailInfo
.
govUploadTime
}}
</span>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-form-item>
...
...
zh-baseversion-web/src/views/supervision/findings/index.vue
View file @
ad663a87
...
@@ -29,10 +29,10 @@
...
@@ -29,10 +29,10 @@
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"上
传
状态"
prop=
"govUploadState"
>
<el-form-item
label=
"上
报
状态"
prop=
"govUploadState"
>
<el-select
v-model=
"queryParams.govUploadState"
placeholder=
"请选择上
传
状态"
>
<el-select
v-model=
"queryParams.govUploadState"
placeholder=
"请选择上
报
状态"
>
<el-option
label=
"未上
传
"
value=
"0"
/>
<el-option
label=
"未上
报
"
value=
"0"
/>
<el-option
label=
"已上
传
"
value=
"1"
/>
<el-option
label=
"已上
报
"
value=
"1"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
...
@@ -108,14 +108,14 @@
...
@@ -108,14 +108,14 @@
<span>
{{
parseTime
(
scope
.
row
.
fUpdateTime
,
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
:{s
}
'
)
}}
<
/span
>
<span>
{{
parseTime
(
scope
.
row
.
fUpdateTime
,
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
:{s
}
'
)
}}
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"上
传
状态"
align
=
"center"
prop
=
"govUploadState"
>
<
el
-
table
-
column
label
=
"上
报
状态"
align
=
"center"
prop
=
"govUploadState"
>
<
template
slot
-
scope
=
"scope"
>
<
template
slot
-
scope
=
"scope"
>
<
span
v
-
if
=
"scope.row.govUploadState == '1'"
>
已上
传
<
/span
>
<
span
v
-
if
=
"scope.row.govUploadState == '1'"
>
已上
报
<
/span
>
<
span
v
-
else
-
if
=
"scope.row.govUploadState == '0'"
>
未上
传
<
/span
>
<
span
v
-
else
-
if
=
"scope.row.govUploadState == '0'"
>
未上
报
<
/span
>
<
span
v
-
else
>-<
/span
>
<
span
v
-
else
>-<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"上
传
时间"
align
=
"center"
prop
=
"govUploadTime"
width
=
"180"
>
<
el
-
table
-
column
label
=
"上
报
时间"
align
=
"center"
prop
=
"govUploadTime"
width
=
"180"
>
<
template
slot
-
scope
=
"scope"
>
<
template
slot
-
scope
=
"scope"
>
<
span
v
-
if
=
"scope.row.govUploadTime"
>
{{
parseTime
(
scope
.
row
.
govUploadTime
,
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
:{s
}
'
)
}}
<
/span
>
<
span
v
-
if
=
"scope.row.govUploadTime"
>
{{
parseTime
(
scope
.
row
.
govUploadTime
,
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
:{s
}
'
)
}}
<
/span
>
<
span
v
-
else
>-<
/span
>
<
span
v
-
else
>-<
/span
>
...
@@ -145,7 +145,7 @@
...
@@ -145,7 +145,7 @@
size
=
"mini"
size
=
"mini"
type
=
"text"
type
=
"text"
@
click
=
"handleReport(scope.row)"
@
click
=
"handleReport(scope.row)"
>
上
传
<
/el-button
>
>
上
报
<
/el-button
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
/el-table
>
<
/el-table
>
...
@@ -425,9 +425,9 @@ export default {
...
@@ -425,9 +425,9 @@ export default {
handleDetail
(
row
){
handleDetail
(
row
){
this
.
$refs
.
detail
.
getDetailInfo
(
row
.
fInsSpotRecInforId
);
this
.
$refs
.
detail
.
getDetailInfo
(
row
.
fInsSpotRecInforId
);
}
,
}
,
//上
传
//上
报
handleReport
(
row
)
{
handleReport
(
row
)
{
this
.
$confirm
(
'是否确认上
传
调查结果名称为"'
+
row
.
fName
+
'"的数据项?'
,
"警告"
,
{
this
.
$confirm
(
'是否确认上
报
调查结果名称为"'
+
row
.
fName
+
'"的数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
type
:
"warning"
...
@@ -435,7 +435,7 @@ export default {
...
@@ -435,7 +435,7 @@ export default {
return
reportSpotRecInfo
({
fInsSpotRecInforId
:
row
.
fInsSpotRecInforId
}
);
return
reportSpotRecInfo
({
fInsSpotRecInforId
:
row
.
fInsSpotRecInforId
}
);
}
).
then
(()
=>
{
}
).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
this
.
msgSuccess
(
"上
传
成功"
);
this
.
msgSuccess
(
"上
报
成功"
);
}
).
catch
(()
=>
{
}
);
}
).
catch
(()
=>
{
}
);
}
,
}
,
}
}
...
...
zh-baseversion-web/src/views/supervision/record/components/InspectInfo.vue
View file @
ad663a87
...
@@ -89,7 +89,7 @@
...
@@ -89,7 +89,7 @@
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"上
传
时间"
>
<el-form-item
label=
"上
报
时间"
>
<span
v-if=
"detailInfo.govUploadTime"
>
{{
detailInfo
.
govUploadTime
}}
</span>
<span
v-if=
"detailInfo.govUploadTime"
>
{{
detailInfo
.
govUploadTime
}}
</span>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-form-item>
...
...
zh-baseversion-web/src/views/supervision/record/index.vue
View file @
ad663a87
...
@@ -39,10 +39,10 @@
...
@@ -39,10 +39,10 @@
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"上
传
状态"
prop=
"govUploadState"
>
<el-form-item
label=
"上
报
状态"
prop=
"govUploadState"
>
<el-select
v-model=
"queryParams.govUploadState"
placeholder=
"请选择上
传
状态"
>
<el-select
v-model=
"queryParams.govUploadState"
placeholder=
"请选择上
报
状态"
>
<el-option
label=
"未上
传
"
value=
"0"
/>
<el-option
label=
"未上
报
"
value=
"0"
/>
<el-option
label=
"已上
传
"
value=
"1"
/>
<el-option
label=
"已上
报
"
value=
"1"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
...
@@ -134,14 +134,14 @@
...
@@ -134,14 +134,14 @@
<span v-else>-</span>
<span v-else>-</span>
</template>
</template>
</el-table-column>-->
</el-table-column>-->
<el-table-column
label=
"上
传
状态"
align=
"center"
prop=
"govUploadState"
>
<el-table-column
label=
"上
报
状态"
align=
"center"
prop=
"govUploadState"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.govUploadState == '1'"
>
已上
传
</span>
<span
v-if=
"scope.row.govUploadState == '1'"
>
已上
报
</span>
<span
v-else-if=
"scope.row.govUploadState == '0'"
>
未上
传
</span>
<span
v-else-if=
"scope.row.govUploadState == '0'"
>
未上
报
</span>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"上
传
时间"
align=
"center"
prop=
"govUploadTime"
width=
"180"
>
<el-table-column
label=
"上
报
时间"
align=
"center"
prop=
"govUploadTime"
width=
"180"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.govUploadTime"
>
{{
parseTime
(
scope
.
row
.
govUploadTime
,
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
:{s
}
'
)
}}
<
/span
>
<span
v-if=
"scope.row.govUploadTime"
>
{{
parseTime
(
scope
.
row
.
govUploadTime
,
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
:{s
}
'
)
}}
<
/span
>
<
span
v
-
else
>-<
/span
>
<
span
v
-
else
>-<
/span
>
...
@@ -171,12 +171,12 @@
...
@@ -171,12 +171,12 @@
size
=
"mini"
size
=
"mini"
type
=
"text"
type
=
"text"
@
click
=
"handleReport(scope.row)"
@
click
=
"handleReport(scope.row)"
>
上
传
记录
<
/el-button
>
>
上
报
记录
<
/el-button
>
<
el
-
button
<
el
-
button
size
=
"mini"
size
=
"mini"
type
=
"text"
type
=
"text"
@
click
=
"handleReportHidden(scope.row)"
@
click
=
"handleReportHidden(scope.row)"
>
上
传
隐患
<
/el-button
>
>
上
报
隐患
<
/el-button
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
/el-table
>
<
/el-table
>
...
@@ -322,13 +322,6 @@
...
@@ -322,13 +322,6 @@
<
imageUpload
v
-
model
=
"form.fAnnex"
/>
<
imageUpload
v
-
model
=
"form.fAnnex"
/>
<
/el-form-item
>
<
/el-form-item
>
<
/el-col>
<
/el-col>
<!--
<
el
-
col
:
span
=
"24"
>
<
el
-
form
-
item
label
=
"描述"
prop
=
"fRemark"
>
<
el
-
input
type
=
"textarea"
v
-
model
=
"form.fRemark"
placeholder
=
"请输入描述"
/>
<
/el-form-item
>
<
/el-col>--
>
<
/el-row
>
<
/el-row
>
<!--
隐患管理
-->
<!--
隐患管理
-->
...
@@ -582,9 +575,9 @@ export default {
...
@@ -582,9 +575,9 @@ export default {
handleDetail
(
row
){
handleDetail
(
row
){
this
.
$refs
.
detail
.
getDetailInfo
(
row
.
fInsRecInforId
);
this
.
$refs
.
detail
.
getDetailInfo
(
row
.
fInsRecInforId
);
}
,
}
,
//上
传
//上
报
handleReport
(
row
)
{
handleReport
(
row
)
{
this
.
$confirm
(
'是否确认上
传
检查记录编码为"'
+
row
.
fCheckCode
+
'"的数据项?'
,
"警告"
,
{
this
.
$confirm
(
'是否确认上
报
检查记录编码为"'
+
row
.
fCheckCode
+
'"的数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
type
:
"warning"
...
@@ -592,12 +585,12 @@ export default {
...
@@ -592,12 +585,12 @@ export default {
return
reportRecInfo
({
fInsRecInforId
:
row
.
fInsRecInforId
}
);
return
reportRecInfo
({
fInsRecInforId
:
row
.
fInsRecInforId
}
);
}
).
then
(()
=>
{
}
).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
this
.
msgSuccess
(
"上
传
成功"
);
this
.
msgSuccess
(
"上
报
成功"
);
}
).
catch
(()
=>
{
}
);
}
).
catch
(()
=>
{
}
);
}
,
}
,
//上
传
隐患
//上
报
隐患
handleReportHidden
(
row
){
handleReportHidden
(
row
){
this
.
$confirm
(
'是否确认上
传
检查记录编码为"'
+
row
.
fCheckCode
+
'"的数据项?'
,
"警告"
,
{
this
.
$confirm
(
'是否确认上
报
检查记录编码为"'
+
row
.
fCheckCode
+
'"的数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
type
:
"warning"
...
@@ -605,7 +598,7 @@ export default {
...
@@ -605,7 +598,7 @@ export default {
return
reportHazRefInfoByCheckCode
({
checkCode
:
row
.
fCheckCode
}
);
return
reportHazRefInfoByCheckCode
({
checkCode
:
row
.
fCheckCode
}
);
}
).
then
(()
=>
{
}
).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
this
.
msgSuccess
(
"上
传
隐患成功"
);
this
.
msgSuccess
(
"上
报
隐患成功"
);
}
).
catch
(()
=>
{
}
);
}
).
catch
(()
=>
{
}
);
}
,
}
,
taskChange
(
val
){
taskChange
(
val
){
...
...
zh-baseversion-web/src/views/supervision/spot/index.vue
View file @
ad663a87
...
@@ -72,6 +72,14 @@
...
@@ -72,6 +72,14 @@
@
click=
"handleExport"
@
click=
"handleExport"
>
导出
</el-button>
>
导出
</el-button>
</el-col>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
plain
size=
"mini"
type=
"info"
@
click=
"getGovermentTaskInfo"
>
从省平台获取数据
</el-button>
</el-col>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
</el-row>
...
@@ -315,6 +323,7 @@
...
@@ -315,6 +323,7 @@
import
{
listRef
,
getRef
,
delRef
,
addRef
,
updateRef
,
exportRef
}
from
"@/api/supervision/spot"
;
import
{
listRef
,
getRef
,
delRef
,
addRef
,
updateRef
,
exportRef
}
from
"@/api/supervision/spot"
;
import
ImageUpload
from
'@/components/ImageUpload'
;
import
ImageUpload
from
'@/components/ImageUpload'
;
import
DetailInfo
from
"./components/DetailInfo"
;
import
DetailInfo
from
"./components/DetailInfo"
;
import
{
getTask
}
from
"@/api/govermentdata/GovermentData"
;
import
{
getDefaultCountyList
}
from
"@/api/area/county"
;
import
{
getDefaultCountyList
}
from
"@/api/area/county"
;
import
{
enterpriseListInfo
}
from
"@/api/regulation/info"
;
import
{
enterpriseListInfo
}
from
"@/api/regulation/info"
;
import
{
hiddenList
}
from
"@/api/supervision/hideType"
;
import
{
hiddenList
}
from
"@/api/supervision/hideType"
;
...
@@ -382,6 +391,19 @@ export default {
...
@@ -382,6 +391,19 @@ export default {
});
});
},
},
methods
:
{
methods
:
{
//获取数据 // 等正式有接口了,后台要重新一套 拿数据部分
getGovermentTaskInfo
(){
this
.
$confirm
(
'是否确认从省平台获取数据?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
()
{
return
getTask
({
updateTime
:
moment
().
format
(
'YYYY-MM-DD HH:mm:ss'
),
pageIndex
:
1
,
pageSize
:
1000
});
}).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"从省平台获取数据成功"
);
}).
catch
(()
=>
{});
},
/** 查询抽查隐患列表 */
/** 查询抽查隐患列表 */
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
...
...
zh-baseversion-web/src/views/thirdbuild/accident/components/DetailInfo.vue
View file @
ad663a87
...
@@ -52,19 +52,19 @@
...
@@ -52,19 +52,19 @@
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"上
传
状态"
>
<el-form-item
label=
"上
报
状态"
>
<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=
"上
报
时间"
>
<span>
{{
fUploadTime
}}
</span>
<span>
{{
fUploadTime
}}
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
v-if=
"this.$store.state.user.roleId == 3"
label=
"企业端上
传
时间"
>
<el-form-item
v-if=
"this.$store.state.user.roleId == 3"
label=
"企业端上
报
时间"
>
<span>
{{
detailInfo
.
entUploadTime
}}
</span>
<span>
{{
detailInfo
.
entUploadTime
}}
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -99,10 +99,10 @@
...
@@ -99,10 +99,10 @@
}
}
if
(
this
.
fUploadType
==
'0'
)
{
if
(
this
.
fUploadType
==
'0'
)
{
this
.
fUploadType
=
"未上
传
"
this
.
fUploadType
=
"未上
报
"
}
}
if
(
this
.
fUploadType
==
'1'
)
{
if
(
this
.
fUploadType
==
'1'
)
{
this
.
fUploadType
=
"已上
传
"
this
.
fUploadType
=
"已上
报
"
}
}
},
},
showUploadTime
()
{
showUploadTime
()
{
...
...
zh-baseversion-web/src/views/thirdbuild/accident/index.vue
View file @
ad663a87
...
@@ -20,10 +20,10 @@
...
@@ -20,10 +20,10 @@
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"上
传
状态"
prop=
"fUploadType"
>
<el-form-item
label=
"上
报
状态"
prop=
"fUploadType"
>
<el-select
v-model=
"queryParams.fUploadType"
placeholder=
"请选择上
传
状态"
clearable
size=
"small"
>
<el-select
v-model=
"queryParams.fUploadType"
placeholder=
"请选择上
报
状态"
clearable
size=
"small"
>
<el-option
label=
"未上
传
"
value=
"0"
/>
<el-option
label=
"未上
报
"
value=
"0"
/>
<el-option
label=
"已上
传
"
value=
"1"
/>
<el-option
label=
"已上
报
"
value=
"1"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
@@ -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=
"上
报
状态"
align=
"center"
prop=
"uploadState"
:formatter=
"uploadStateFormat"
/>
<el-table-column
label=
"上
传
时间"
align=
"center"
prop=
"uploadTime"
:formatter=
"uploadTimeFormat"
/>
<el-table-column
label=
"上
报
时间"
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
...
@@ -133,7 +133,7 @@
...
@@ -133,7 +133,7 @@
type=
"text"
type=
"text"
@
click=
"handleReport(scope.row)"
@
click=
"handleReport(scope.row)"
v-if=
"judgeUploadIsShow((scope.row))"
v-if=
"judgeUploadIsShow((scope.row))"
>
上
传
</el-button>
>
上
报
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -324,25 +324,25 @@ export default {
...
@@ -324,25 +324,25 @@ export default {
});
});
},
},
//上
传
状态动态展示
//上
报
状态动态展示
uploadStateFormat
(
row
,
column
)
{
uploadStateFormat
(
row
,
column
)
{
//角色 1 超级管理员 5 企业
//角色 1 超级管理员 5 企业
let
roleId
=
this
.
user
.
roleId
;
let
roleId
=
this
.
user
.
roleId
;
if
(
roleId
==
5
)
{
if
(
roleId
==
5
)
{
if
(
row
.
entUploadState
==
'0'
)
{
if
(
row
.
entUploadState
==
'0'
)
{
return
"未上
传
"
return
"未上
报
"
}
else
{
}
else
{
return
"已上
传
"
return
"已上
报
"
}
}
}
else
{
}
else
{
if
(
row
.
govUploadState
==
'0'
)
{
if
(
row
.
govUploadState
==
'0'
)
{
return
"未上
传
"
return
"未上
报
"
}
else
{
}
else
{
return
"已上
传
"
return
"已上
报
"
}
}
}
}
},
},
//上
传
时间动态展示
//上
报
时间动态展示
uploadTimeFormat
(
row
,
column
)
{
uploadTimeFormat
(
row
,
column
)
{
//角色 1 超级管理员 5 企业
//角色 1 超级管理员 5 企业
let
roleId
=
this
.
user
.
roleId
;
let
roleId
=
this
.
user
.
roleId
;
...
@@ -372,24 +372,24 @@ export default {
...
@@ -372,24 +372,24 @@ export default {
});
});
},
},
//判断 上
传是否需要显示,上传分为企业上传 和 政府端上传
//判断 上
报是否需要显示,上报分为企业上报 和 政府端上报
judgeUploadIsShow
(
row
)
{
judgeUploadIsShow
(
row
)
{
//角色 1 超级管理员 5 企业
//角色 1 超级管理员 5 企业
let
roleId
=
this
.
user
.
roleId
;
let
roleId
=
this
.
user
.
roleId
;
// 企业端 上
传状态 0-未上传,1-已上传
// 企业端 上
报状态 0-未上报,1-已上报
let
entUploadState
=
row
.
entUploadState
;
let
entUploadState
=
row
.
entUploadState
;
// 政府端 上
传状态 0-未上传,1-已上传
// 政府端 上
报状态 0-未上报,1-已上报
let
govUploadState
=
row
.
govUploadState
;
let
govUploadState
=
row
.
govUploadState
;
// 如果政府端都已经上
传
,那就不能显示了。
// 如果政府端都已经上
报
,那就不能显示了。
if
(
govUploadState
===
'1'
)
{
if
(
govUploadState
===
'1'
)
{
return
false
;
return
false
;
}
}
// 如果企业端上
传
了,则企业端就不能显示了,政府端和 超级管理员能显示
// 如果企业端上
报
了,则企业端就不能显示了,政府端和 超级管理员能显示
if
(
entUploadState
===
'1'
&&
govUploadState
===
'0'
)
{
if
(
entUploadState
===
'1'
&&
govUploadState
===
'0'
)
{
if
(
roleId
===
5
)
{
if
(
roleId
===
5
)
{
return
false
;
return
false
;
...
@@ -530,7 +530,7 @@ export default {
...
@@ -530,7 +530,7 @@ export default {
}
}
})
})
},
},
//上
传
//上
报
getFileInfo
(
res
){
getFileInfo
(
res
){
this
.
form
.
fAttachment
=
res
.
url
;
this
.
form
.
fAttachment
=
res
.
url
;
this
.
fileList
.
push
({
this
.
fileList
.
push
({
...
@@ -549,12 +549,12 @@ export default {
...
@@ -549,12 +549,12 @@ export default {
handleDetail
(
row
){
handleDetail
(
row
){
this
.
$refs
.
detail
.
getDetailInfo
(
row
.
fConGasProIncId
);
this
.
$refs
.
detail
.
getDetailInfo
(
row
.
fConGasProIncId
);
},
},
/** 上
传
按钮操作 */
/** 上
报
按钮操作 */
handleReport
(
row
)
{
handleReport
(
row
)
{
// 如果是 超级管理员 或这企业,并且 企业端上
传
状态为0
// 如果是 超级管理员 或这企业,并且 企业端上
报
状态为0
if
((
this
.
user
.
roleId
==
5
||
this
.
user
.
roleId
==
1
)
&&
row
.
entUploadState
==
'0'
)
{
if
((
this
.
user
.
roleId
==
5
||
this
.
user
.
roleId
==
1
)
&&
row
.
entUploadState
==
'0'
)
{
this
.
$confirm
(
'是否确认上
传
项目编号为"'
+
row
.
projectCode
+
'"的数据项?'
,
"警告"
,
{
this
.
$confirm
(
'是否确认上
报
项目编号为"'
+
row
.
projectCode
+
'"的数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
type
:
"warning"
...
@@ -562,13 +562,13 @@ export default {
...
@@ -562,13 +562,13 @@ export default {
return
entReportConGasProInfo
({
fConGasProIncId
:
row
.
fConGasProIncId
});
return
entReportConGasProInfo
({
fConGasProIncId
:
row
.
fConGasProIncId
});
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
this
.
msgSuccess
(
"上
传
成功"
);
this
.
msgSuccess
(
"上
报
成功"
);
}).
catch
(()
=>
{});
}).
catch
(()
=>
{});
}
}
// 如果是 超级管理员 或这政府,并且 政府端上
传
状态为0
// 如果是 超级管理员 或这政府,并且 政府端上
报
状态为0
if
((
this
.
user
.
roleId
==
3
||
this
.
user
.
roleId
==
1
)
&&
row
.
govUploadState
==
'0'
)
{
if
((
this
.
user
.
roleId
==
3
||
this
.
user
.
roleId
==
1
)
&&
row
.
govUploadState
==
'0'
)
{
this
.
$confirm
(
'是否确认上
传
项目编号为"'
+
row
.
projectCode
+
'"的数据项?'
,
"警告"
,
{
this
.
$confirm
(
'是否确认上
报
项目编号为"'
+
row
.
projectCode
+
'"的数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
type
:
"warning"
...
@@ -576,7 +576,7 @@ export default {
...
@@ -576,7 +576,7 @@ export default {
return
reportAccidentInfo
({
fConGasProIncId
:
row
.
fConGasProIncId
});
return
reportAccidentInfo
({
fConGasProIncId
:
row
.
fConGasProIncId
});
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
this
.
msgSuccess
(
"上
传
成功"
);
this
.
msgSuccess
(
"上
报
成功"
);
}).
catch
(()
=>
{});
}).
catch
(()
=>
{});
}
}
},
},
...
...
zh-baseversion-web/src/views/thirdbuild/project/components/DetailInfo.vue
View file @
ad663a87
...
@@ -245,19 +245,19 @@
...
@@ -245,19 +245,19 @@
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"上
传
状态"
>
<el-form-item
label=
"上
报
状态"
>
<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=
"上
报
时间"
>
<span>
{{
fUploadTime
}}
</span>
<span>
{{
fUploadTime
}}
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
v-if=
"this.$store.state.user.roleId == 3"
label=
"企业端上
传
时间"
>
<el-form-item
v-if=
"this.$store.state.user.roleId == 3"
label=
"企业端上
报
时间"
>
<span>
{{
detailInfo
.
entUploadTime
}}
</span>
<span>
{{
detailInfo
.
entUploadTime
}}
</span>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -302,10 +302,10 @@
...
@@ -302,10 +302,10 @@
}
}
if
(
this
.
fUploadType
==
'0'
)
{
if
(
this
.
fUploadType
==
'0'
)
{
this
.
fUploadType
=
"未上
传
"
this
.
fUploadType
=
"未上
报
"
}
}
if
(
this
.
fUploadType
==
'1'
)
{
if
(
this
.
fUploadType
==
'1'
)
{
this
.
fUploadType
=
"已上
传
"
this
.
fUploadType
=
"已上
报
"
}
}
},
},
showUploadTime
()
{
showUploadTime
()
{
...
...
zh-baseversion-web/src/views/thirdbuild/project/index.vue
View file @
ad663a87
...
@@ -32,10 +32,10 @@
...
@@ -32,10 +32,10 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"上
传
状态"
prop=
"fUploadType"
>
<el-form-item
label=
"上
报
状态"
prop=
"fUploadType"
>
<el-select
v-model=
"queryParams.fUploadType"
placeholder=
"请选择上
传
状态"
clearable
size=
"small"
>
<el-select
v-model=
"queryParams.fUploadType"
placeholder=
"请选择上
报
状态"
clearable
size=
"small"
>
<el-option
label=
"未上
传
"
value=
"0"
/>
<el-option
label=
"未上
报
"
value=
"0"
/>
<el-option
label=
"已上
传
"
value=
"1"
/>
<el-option
label=
"已上
报
"
value=
"1"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
@@ -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=
"上
报
状态"
align=
"center"
prop=
"uploadState"
:formatter=
"uploadStateFormat"
/>
<el-table-column
label=
"上
传
时间"
align=
"center"
prop=
"uploadTime"
:formatter=
"uploadTimeFormat"
/>
<el-table-column
label=
"上
报
时间"
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
...
@@ -135,7 +135,7 @@
...
@@ -135,7 +135,7 @@
type=
"text"
type=
"text"
@
click=
"handleReport(scope.row)"
@
click=
"handleReport(scope.row)"
v-if=
"judgeUploadIsShow((scope.row))"
v-if=
"judgeUploadIsShow((scope.row))"
>
上
传
</el-button>
>
上
报
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -637,25 +637,25 @@ export default {
...
@@ -637,25 +637,25 @@ export default {
fPipePressFormat
(
row
,
column
)
{
fPipePressFormat
(
row
,
column
)
{
return
this
.
selectDictLabel
(
this
.
fPipePressOptions
,
row
.
fPipePress
);
return
this
.
selectDictLabel
(
this
.
fPipePressOptions
,
row
.
fPipePress
);
},
},
//上
传
状态动态展示
//上
报
状态动态展示
uploadStateFormat
(
row
,
column
)
{
uploadStateFormat
(
row
,
column
)
{
//角色 1 超级管理员 5 企业
//角色 1 超级管理员 5 企业
let
roleId
=
this
.
user
.
roleId
;
let
roleId
=
this
.
user
.
roleId
;
if
(
roleId
==
5
)
{
if
(
roleId
==
5
)
{
if
(
row
.
entUploadState
==
'0'
)
{
if
(
row
.
entUploadState
==
'0'
)
{
return
"未上
传
"
return
"未上
报
"
}
else
{
}
else
{
return
"已上
传
"
return
"已上
报
"
}
}
}
else
{
}
else
{
if
(
row
.
govUploadState
==
'0'
)
{
if
(
row
.
govUploadState
==
'0'
)
{
return
"未上
传
"
return
"未上
报
"
}
else
{
}
else
{
return
"已上
传
"
return
"已上
报
"
}
}
}
}
},
},
//上
传
时间动态展示
//上
报
时间动态展示
uploadTimeFormat
(
row
,
column
)
{
uploadTimeFormat
(
row
,
column
)
{
//角色 1 超级管理员 5 企业
//角色 1 超级管理员 5 企业
let
roleId
=
this
.
user
.
roleId
;
let
roleId
=
this
.
user
.
roleId
;
...
@@ -750,24 +750,24 @@ export default {
...
@@ -750,24 +750,24 @@ export default {
this
.
title
=
"修改涉气第三方施工项目档案"
;
this
.
title
=
"修改涉气第三方施工项目档案"
;
});
});
},
},
//判断 上
传是否需要显示,上传分为企业上传 和 政府端上传
//判断 上
报是否需要显示,上报分为企业上报 和 政府端上报
judgeUploadIsShow
(
row
)
{
judgeUploadIsShow
(
row
)
{
//角色 1 超级管理员 5 企业
//角色 1 超级管理员 5 企业
let
roleId
=
this
.
user
.
roleId
;
let
roleId
=
this
.
user
.
roleId
;
// 企业端 上
传状态 0-未上传,1-已上传
// 企业端 上
报状态 0-未上报,1-已上报
let
entUploadState
=
row
.
entUploadState
;
let
entUploadState
=
row
.
entUploadState
;
// 政府端 上
传状态 0-未上传,1-已上传
// 政府端 上
报状态 0-未上报,1-已上报
let
govUploadState
=
row
.
govUploadState
;
let
govUploadState
=
row
.
govUploadState
;
// 如果政府端都已经上
传
,那就不能显示了。
// 如果政府端都已经上
报
,那就不能显示了。
if
(
govUploadState
===
'1'
)
{
if
(
govUploadState
===
'1'
)
{
return
false
;
return
false
;
}
}
// 如果企业端上
传
了,则企业端就不能显示了,政府端和 超级管理员能显示
// 如果企业端上
报
了,则企业端就不能显示了,政府端和 超级管理员能显示
if
(
entUploadState
===
'1'
&&
govUploadState
===
'0'
)
{
if
(
entUploadState
===
'1'
&&
govUploadState
===
'0'
)
{
if
(
roleId
===
5
)
{
if
(
roleId
===
5
)
{
return
false
;
return
false
;
...
@@ -872,12 +872,12 @@ export default {
...
@@ -872,12 +872,12 @@ export default {
handleDetail
(
row
){
handleDetail
(
row
){
this
.
$refs
.
detail
.
getDetailInfo
(
row
.
fConGasProInforId
);
this
.
$refs
.
detail
.
getDetailInfo
(
row
.
fConGasProInforId
);
},
},
/** 上
传
按钮操作 */
/** 上
报
按钮操作 */
handleReport
(
row
)
{
handleReport
(
row
)
{
// 如果是 超级管理员 或这企业,并且 企业端上
传
状态为0
// 如果是 超级管理员 或这企业,并且 企业端上
报
状态为0
if
((
this
.
user
.
roleId
==
5
||
this
.
user
.
roleId
==
1
)
&&
row
.
entUploadState
==
'0'
)
{
if
((
this
.
user
.
roleId
==
5
||
this
.
user
.
roleId
==
1
)
&&
row
.
entUploadState
==
'0'
)
{
this
.
$confirm
(
'是否确认上
传
涉气第三方施工项目档案名称为"'
+
row
.
fProjectName
+
'"的数据项?'
,
"警告"
,
{
this
.
$confirm
(
'是否确认上
报
涉气第三方施工项目档案名称为"'
+
row
.
fProjectName
+
'"的数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
type
:
"warning"
...
@@ -885,13 +885,13 @@ export default {
...
@@ -885,13 +885,13 @@ export default {
return
entReportConGasProInfo
({
fConGasProInforId
:
row
.
fConGasProInforId
});
return
entReportConGasProInfo
({
fConGasProInforId
:
row
.
fConGasProInforId
});
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
this
.
msgSuccess
(
"上
传
成功"
);
this
.
msgSuccess
(
"上
报
成功"
);
}).
catch
(()
=>
{});
}).
catch
(()
=>
{});
}
}
// 如果是 超级管理员 或这政府,并且 政府端上
传
状态为0
// 如果是 超级管理员 或这政府,并且 政府端上
报
状态为0
if
((
this
.
user
.
roleId
==
3
||
this
.
user
.
roleId
==
1
)
&&
row
.
govUploadState
==
'0'
)
{
if
((
this
.
user
.
roleId
==
3
||
this
.
user
.
roleId
==
1
)
&&
row
.
govUploadState
==
'0'
)
{
this
.
$confirm
(
'是否确认上
传
涉气第三方施工项目档案名称为"'
+
row
.
fProjectName
+
'"的数据项?'
,
"警告"
,
{
this
.
$confirm
(
'是否确认上
报
涉气第三方施工项目档案名称为"'
+
row
.
fProjectName
+
'"的数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
type
:
"warning"
...
@@ -899,7 +899,7 @@ export default {
...
@@ -899,7 +899,7 @@ export default {
return
reportConGasProInfo
({
fConGasProInforId
:
row
.
fConGasProInforId
});
return
reportConGasProInfo
({
fConGasProInforId
:
row
.
fConGasProInforId
});
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
this
.
msgSuccess
(
"上
传
成功"
);
this
.
msgSuccess
(
"上
报
成功"
);
}).
catch
(()
=>
{});
}).
catch
(()
=>
{});
}
}
},
},
...
...
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