Commit fb3de3d7 authored by 罗新东's avatar 罗新东

风险上报

parent f393350c
Pipeline #7297 passed with stage
in 11 seconds
......@@ -2,7 +2,7 @@
<template>
<div>
<LHeader :text="text"></LHeader>
<!-- <van-sticky offset-top="1.5rem">
<van-sticky offset-top="1.5rem">
<van-search
v-model="value"
show-action
......@@ -13,7 +13,7 @@
<div @click="onSearch">搜索</div>
</template>
</van-search>
</van-sticky> -->
</van-sticky>
<!-- 内容列表 -->
<div class="con-list" @touchmove="showIndex = null">
<van-cell-group
......@@ -46,15 +46,6 @@
<van-col span="6">工单状态:</van-col>
<van-col span="18">{{ item.taskName }}</van-col>
</van-row>
<!-- <van-row gutter="">
<van-col span="6">发现时间:</van-col>
<van-col span="18">{{ item.hdDiscoveryTime }}</van-col>
</van-row> -->
<!-- <van-row gutter="">
<van-col span="6">工单状态:</van-col>
<van-col span="18">{{ item.taskName }}</van-col>
</van-row> -->
<!-- 长按显示遮罩层 -->
<van-overlay :show="showIndex == index">
<div class="wrapper" @click.stop="showIndex = null">
......@@ -74,24 +65,20 @@
position: fixed;
top: 30%;
"
v-if="isHaveNews"
v-if="messageList['length']==0"
>
暂无数据
</div>
<tab-bar :index="1"></tab-bar>
</div>
</template>
<script>
import tabBar from "@/components/TabBar";
import LHeader from "@/components/header.vue";
import {getFun,postFun} from "@/service/table.js";
import { dangerReturnDel, myHDList } from "@/service/danger";
import { getFun, postFun } from "@/service/table.js";
export default {
components: {
LHeader,
tabBar,
},
data() {
return {
......@@ -99,7 +86,6 @@ export default {
text: "我的上报",
isHaveNews: false,
messageList: [],
Loop: "", // 定时器
showIndex: null, // 是否显示遮罩层
};
},
......@@ -107,16 +93,16 @@ export default {
this.postList();
},
methods: {
postList(select = '') {
postList(select = "") {
this.$toast.loading({
message: "加载中...",
forbidClick: true,
loadingType: "spinner",
duration: 0,
});
let formdata=new FormData();
formdata.append('select',select);
postFun('/hdreport/myHDList',formdata)
let formdata = new FormData();
formdata.append("select", select);
postFun("/hdreport/myHDList", formdata)
.then((res) => {
this.$toast.clear();
this.messageList = res.data;
......@@ -132,7 +118,6 @@ export default {
},
onSearch() {
// console.log(this.value)
this.postList(this.value);
},
touchstart(index, item) {
......@@ -144,7 +129,6 @@ export default {
},
goDetail(data) {
this.$router.push({
// name: "insert-danger-detail",
name: "normal-detail",
params: {
id: data.id,
......@@ -153,40 +137,6 @@ export default {
});
this.showIndex = null;
},
// 提交
goSubmit(data) {
this.$router.push({
name: "add-danger",
params: {
status: "退回",
taskId: data.taskId,
},
});
this.showIndex = null;
},
// 删除
goDelete(data) {
this.$toast.loading({
message: "删除中...",
forbidClick: true,
loadingType: "spinner",
duration: 0,
});
dangerReturnDel(`/hdreport/delete/${data.taskId}`)
.then((res) => {
this.$toast.clear();
this.$toast.success({
message: "删除成功",
duration: 2000,
});
this.postList();
})
.catch(() => {
this.$toast.clear();
this.$toast.fail("删除失败,请稍后再试");
});
this.showIndex = null;
},
},
};
</script>
......
......@@ -4,7 +4,7 @@
<van-sticky offset-top="0">
<LHeader :text="text"></LHeader>
</van-sticky>
<!-- <van-sticky offset-top="1.5rem">
<van-sticky offset-top="1.5rem">
<van-search
v-model="searchValue"
show-action
......@@ -15,7 +15,7 @@
<div @click="onSearch">搜索</div>
</template>
</van-search>
</van-sticky> -->
</van-sticky>
<div class="con-list" @touchmove="showIndex = null">
<van-cell-group
inset
......@@ -45,9 +45,7 @@
</van-row>
<van-row gutter="">
<van-col span="6">管控层级:</van-col>
<van-col span="18">{{
item["controlLevel"]
}}</van-col>
<van-col span="18">{{ item["controlLevel"] }}</van-col>
</van-row>
<van-row gutter="">
<van-col span="6">主责部门:</van-col>
......
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