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

风险上报

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