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
5683888a
Commit
5683888a
authored
Jul 09, 2024
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
隐患分类标准
parent
96adfa04
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
GovermentData.js
zh-baseversion-web/src/api/govermentdata/GovermentData.js
+9
-0
index.vue
zh-baseversion-web/src/views/supervision/hideType/index.vue
+23
-0
No files found.
zh-baseversion-web/src/api/govermentdata/GovermentData.js
View file @
5683888a
...
...
@@ -8,3 +8,12 @@ export function getTask(query) {
params
:
query
})
}
//获取隐患分类标准
export
function
getStandard
(
query
)
{
return
request
({
url
:
'/government/supervision/getStandard'
,
method
:
'get'
,
params
:
query
})
}
zh-baseversion-web/src/views/supervision/hideType/index.vue
View file @
5683888a
...
...
@@ -84,6 +84,14 @@
@
click=
"handleExport"
>
导出
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
plain
size=
"mini"
type=
"info"
@
click=
"getGovernmentHiddenInfo"
>
从省平台获取数据
</el-button>
</el-col>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
...
...
@@ -351,6 +359,8 @@
<
script
>
import
{
listInfor
,
getInfor
,
delInfor
,
addInfor
,
updateInfor
,
exportInfor
}
from
"@/api/supervision/hideType"
;
import
DetailInfo
from
"./components/DetailInfo"
;
import
{
getStandard
}
from
"@/api/govermentdata/GovermentData"
;
import
moment
from
"moment"
;
export
default
{
name
:
"Infor"
,
components
:
{
...
...
@@ -571,6 +581,19 @@ export default {
handleDetail
(
row
){
this
.
$refs
.
detail
.
getDetailInfo
(
row
.
fInsStaInforId
);
},
//获取数据
getGovernmentHiddenInfo
(){
this
.
$confirm
(
'是否确认从省平台获取数据?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
()
{
return
getStandard
({
updateTime
:
moment
().
format
(
'YYYY-MM-DD HH:mm:ss'
),
pageIndex
:
1
,
pageSize
:
1000
});
}).
then
(()
=>
{
this
.
getList
();
this
.
msgSuccess
(
"从省平台获取数据成功"
);
}).
catch
(()
=>
{});
}
}
};
</
script
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment