Commit 5683888a authored by 耿迪迪's avatar 耿迪迪

隐患分类标准

parent 96adfa04
...@@ -8,3 +8,12 @@ export function getTask(query) { ...@@ -8,3 +8,12 @@ export function getTask(query) {
params: query params: query
}) })
} }
//获取隐患分类标准
export function getStandard(query) {
return request({
url: '/government/supervision/getStandard',
method: 'get',
params: query
})
}
...@@ -84,6 +84,14 @@ ...@@ -84,6 +84,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="getGovernmentHiddenInfo"
>从省平台获取数据</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>
...@@ -351,6 +359,8 @@ ...@@ -351,6 +359,8 @@
<script> <script>
import { listInfor, getInfor, delInfor, addInfor, updateInfor, exportInfor } from "@/api/supervision/hideType"; import { listInfor, getInfor, delInfor, addInfor, updateInfor, exportInfor } from "@/api/supervision/hideType";
import DetailInfo from "./components/DetailInfo"; import DetailInfo from "./components/DetailInfo";
import { getStandard } from "@/api/govermentdata/GovermentData";
import moment from "moment";
export default { export default {
name: "Infor", name: "Infor",
components: { components: {
...@@ -571,6 +581,19 @@ export default { ...@@ -571,6 +581,19 @@ export default {
handleDetail(row){ handleDetail(row){
this.$refs.detail.getDetailInfo(row.fInsStaInforId); 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> </script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment