Commit b80a7c33 authored by BlueWhite's avatar BlueWhite

列表页

parent f1b6e99e
...@@ -2,189 +2,216 @@ import request from '@/utils/axios' ...@@ -2,189 +2,216 @@ import request from '@/utils/axios'
// 隐患上报模块 // 隐患上报模块
// 请求新增表单数据信息的 // 请求新增表单数据信息的
export function getFormList(url,params) { export function getFormList(url, params) {
return request({ return request({
url: url, url: url,
method: 'get', method: 'get',
params params
}) })
} }
// 隐患类型 // 隐患类型
export function postHdTyp(url,data) { export function postHdTyp(url, data) {
return request({ return request({
url: url, url: url,
method: 'post', method: 'post',
data data
}) })
} }
// 隐患项目名称 // 隐患项目名称
export function postHdName(url,data) { export function postHdName(url, data) {
return request({ return request({
url: url, url: url,
method: 'post', method: 'post',
data data
}) })
} }
// 隐患项目编号和隐患级别 // 隐患项目编号和隐患级别
export function postHdInventories(url,data) { export function postHdInventories(url, data) {
return request({ return request({
url: url, url: url,
method: 'post', method: 'post',
data data
}) })
} }
// 风险源带出来的字段 // 风险源带出来的字段
export function postHdRiskSource(url,data) { export function postHdRiskSource(url, data) {
return request({ return request({
url: url, url: url,
method: 'post', method: 'post',
data data
}) })
} }
// 隐患整改人接口 // 隐患整改人接口
export function postHdShowPeople(url,data) { export function postHdShowPeople(url, data) {
return request({ return request({
url: url, url: url,
method: 'post', method: 'post',
data data
}) })
} }
// 隐患上报保存接口 // 隐患上报保存接口
export function postHdReportAdd(url,data) { export function postHdReportAdd(url, data) {
return request({ return request({
url: url, url: url,
method: 'post', method: 'post',
data data
}) })
} }
// 隐患上报已退回列表 // 隐患上报已退回列表
export function dangerReturn(url,data) { export function dangerReturn(url, data) {
return request({ return request({
url: url, url: url,
method: 'post', method: 'post',
data data
}) })
} }
// 隐患上报已退回删除 // 隐患上报已退回删除
export function dangerReturnDel(url,data) { export function dangerReturnDel(url, data) {
return request({ return request({
url: url, url: url,
method: 'post', method: 'post',
data data
}) })
} }
// 隐患上报已退回 回显所有数据接口 // 隐患上报已退回 回显所有数据接口
export function dangerReturnEcho(url,data) { export function dangerReturnEcho(url, data) {
return request({ return request({
url: url, url: url,
method: 'get', method: 'get',
data data
}) })
} }
// 隐患上报已退回 保存接口 // 隐患上报已退回 保存接口
export function dangerReturnAdd(url,data) { export function dangerReturnAdd(url, data) {
return request({ return request({
url: url, url: url,
method: 'get', method: 'get',
data data
}) })
} }
// 隐患确认模块 // 隐患确认模块
// 隐患确认列表 // 隐患确认列表
export function dangerConfirm(url,data) { export function dangerConfirm(url, data) {
return request({ return request({
url: url, url: url,
method: 'post', method: 'post',
data data
}) })
} }
// 隐患确认form表单列表数据 // 隐患确认form表单列表数据
export function getConfirmFormList(url,params) { export function getConfirmFormList(url, params) {
return request({ return request({
url: url, url: url,
method: 'get', method: 'get',
params params
}) })
} }
// 隐患确认提交 // 隐患确认提交
export function dangerConSub(url,data) { export function dangerConSub(url, data) {
return request({ return request({
url: url, url: url,
method: 'post', method: 'post',
data data
}) })
} }
// 隐患整改模块 // 隐患整改模块
// 隐患整改列表 // 隐患整改列表
export function dangerRect(url,data) { export function dangerRect(url, data) {
return request({ return request({
url: url, url: url,
method: 'post', method: 'post',
data data
}) })
} }
// 隐患整改 有退回原因的 // 隐患整改 有退回原因的
export function dangerRectReturn(url,params) { export function dangerRectReturn(url, params) {
return request({ return request({
url: url, url: url,
method: 'get', method: 'get',
params params
}) })
} }
// 隐患整改保存 没有退回原因 // 隐患整改保存 没有退回原因
export function dangerRectAdd(url,data) { export function dangerRectAdd(url, data) {
return request({ return request({
url: url, url: url,
method: 'post', method: 'post',
data data
}) })
} }
// 整改复查模块 // 整改复查模块
// 整改复查列表 // 整改复查列表
export function dangerReview(url,data) { export function dangerReview(url, data) {
return request({ return request({
url: url, url: url,
method: 'post', method: 'post',
data data
}) })
} }
// 整改复查保存 // 整改复查保存
export function dangerReviewAdd(url,data) { export function dangerReviewAdd(url, data) {
return request({ return request({
url: url, url: url,
method: 'post', method: 'post',
data data
}) })
} }
// 隐患历史台账模块 // 隐患历史台账模块
export function dangerStandBook(url,data) { export function dangerStandBook(url, data) {
return request({ return request({
url: url, url: url,
method: 'post', method: 'post',
data data
}) })
} }
// 隐患各种台账详情模块 // 隐患各种台账详情模块
export function standBookDetail(url,data) { export function standBookDetail(url, data) {
return request({ return request({
url: url, url: url,
method: 'post', method: 'post',
data data
}) })
}
//重大隐患台账
export function majorList(url, data) {
return request({
url: url,
method: 'post',
data
})
}
//隐患督办
export function superviseList(url, data) {
return request({
url: url,
method: 'post',
data
})
}
//经理督办
export function superviseSABList(url, data) {
return request({
url: url,
method: 'post',
data
})
} }
/*接口对接1 START*/ /*接口对接1 START*/
/*接口对接1 END*/ /*接口对接1 END*/
\ No newline at end of file
...@@ -15,21 +15,21 @@ ...@@ -15,21 +15,21 @@
> >
<van-row gutter=""> <van-row gutter="">
<van-col span="7">所属工程名称:</van-col> <van-col span="7">隐患编号:</van-col>
<van-col span="17">{{ item.proId }}</van-col> <van-col span="17">{{ item.businessId }}</van-col>
</van-row> </van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="7">隐患项目名称:</van-col> <van-col span="7">隐患项目名称:</van-col>
<van-col span="17">{{ item.subject }}</van-col> <van-col span="17">{{ item.proId }}</van-col>
</van-row> </van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="7">隐患发现时间:</van-col> <van-col span="7">隐患级别:</van-col>
<van-col span="17">{{ item.findTime }}</van-col> <van-col span="17">{{ item.hdLev }}</van-col>
</van-row> </van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="7">隐患级别:</van-col> <van-col span="7">发现时间:</van-col>
<van-col span="17">{{ item.level }}</van-col> <van-col span="17">{{ item.startDate }}</van-col>
</van-row> </van-row>
<!-- *接口对接4 END --> <!-- *接口对接4 END -->
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<script> <script>
import LHeader from "@/components/header.vue"; import LHeader from "@/components/header.vue";
import { postriskBook } from "@/service/risk"; import { majorList } from "@/service/danger";
/*接口对接2 START*/ /*接口对接2 START*/
// 例子: // 例子:
...@@ -93,7 +93,7 @@ export default { ...@@ -93,7 +93,7 @@ export default {
loadingType: "spinner", loadingType: "spinner",
duration: 0 duration: 0
}); });
postriskBook("/riskMain/doneList") majorList("/majorapprove/list")
.then(res => { .then(res => {
this.$toast.clear(); this.$toast.clear();
this.messageList = res.rows this.messageList = res.rows
......
...@@ -15,21 +15,20 @@ ...@@ -15,21 +15,20 @@
> >
<van-row gutter=""> <van-row gutter="">
<van-col span="7">所属工程名称:</van-col> <van-col span="7">隐患编号:</van-col>
<van-col span="17">{{ item.proId }}</van-col> <van-col span="17">{{ item.processInstanceId }}</van-col>
</van-row> </van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="7">隐患项目名称:</van-col> <van-col span="7">隐患项目名称:</van-col>
<van-col span="17">{{ item.subject }}</van-col> <van-col span="17">{{ item.projectName }}</van-col>
</van-row> </van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="7">隐患发现时间:</van-col> <van-col span="7">隐患级别:</van-col>
<van-col span="17">{{ item.findTime }}</van-col> <van-col span="17">{{ item.hdLev }}</van-col>
</van-row> </van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="7">隐患级别:</van-col> <van-col span="7">隐患发现时间:</van-col>
<van-col span="17">{{ item.level }}</van-col> <van-col span="17">{{ item.createTime }}</van-col>
</van-row> </van-row>
<!-- *接口对接4 END --> <!-- *接口对接4 END -->
...@@ -50,7 +49,7 @@ ...@@ -50,7 +49,7 @@
<script> <script>
import LHeader from "@/components/header.vue"; import LHeader from "@/components/header.vue";
import { postriskBook } from "@/service/risk"; import { superviseSABList } from "@/service/danger";
/*接口对接2 START*/ /*接口对接2 START*/
// 例子: // 例子:
...@@ -73,7 +72,7 @@ export default { ...@@ -73,7 +72,7 @@ export default {
}, },
data() { data() {
return { return {
text: "项目经理督", text: "项目经理督",
searchValue: "", searchValue: "",
messageList: [], messageList: [],
Loop: "", // 定时器 Loop: "", // 定时器
...@@ -93,7 +92,7 @@ export default { ...@@ -93,7 +92,7 @@ export default {
loadingType: "spinner", loadingType: "spinner",
duration: 0 duration: 0
}); });
postriskBook("/riskMain/doneList") superviseSABList("/supervise/SABlist")
.then(res => { .then(res => {
this.$toast.clear(); this.$toast.clear();
this.messageList = res.rows this.messageList = res.rows
......
...@@ -9,27 +9,25 @@ ...@@ -9,27 +9,25 @@
inset inset
v-for="(item, index) in messageList" v-for="(item, index) in messageList"
:key="index" :key="index"
@click="read(item)"
@touchstart="touchstart(index, item)" @touchstart="touchstart(index, item)"
@touchend.prevent="touchend(index)" @touchend.prevent="touchend(index)"
> >
<van-row gutter=""> <van-row gutter="">
<van-col span="7">所属工程名称:</van-col> <van-col span="7">隐患编号:</van-col>
<van-col span="17">{{ item.proId }}</van-col> <van-col span="17">{{ item.processInstanceId }}</van-col>
</van-row> </van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="7">隐患项目名称:</van-col> <van-col span="7">隐患项目名称:</van-col>
<van-col span="17">{{ item.subject }}</van-col> <van-col span="17">{{ item.projectName }}</van-col>
</van-row> </van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="7">隐患发现时间:</van-col> <van-col span="7">隐患级别:</van-col>
<van-col span="17">{{ item.findTime }}</van-col> <van-col span="17">{{ item.hdLev }}</van-col>
</van-row> </van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="7">隐患级别:</van-col> <van-col span="7">隐患发现时间:</van-col>
<van-col span="17">{{ item.level }}</van-col> <van-col span="17">{{ item.createTime }}</van-col>
</van-row> </van-row>
<!-- *接口对接4 END --> <!-- *接口对接4 END -->
...@@ -50,7 +48,7 @@ ...@@ -50,7 +48,7 @@
<script> <script>
import LHeader from "@/components/header.vue"; import LHeader from "@/components/header.vue";
import { postriskBook } from "@/service/risk"; import { superviseList } from "@/service/danger";
/*接口对接2 START*/ /*接口对接2 START*/
// 例子: // 例子:
...@@ -73,7 +71,7 @@ export default { ...@@ -73,7 +71,7 @@ export default {
}, },
data() { data() {
return { return {
text: "隐患督办", text: "隐患督办123",
searchValue: "", searchValue: "",
messageList: [], messageList: [],
Loop: "", // 定时器 Loop: "", // 定时器
...@@ -93,10 +91,10 @@ export default { ...@@ -93,10 +91,10 @@ export default {
loadingType: "spinner", loadingType: "spinner",
duration: 0 duration: 0
}); });
postriskBook("/riskMain/doneList") superviseList("/supervise/list")
.then(res => { .then(res => {
this.$toast.clear(); this.$toast.clear();
this.messageList = res.rows this.messageList = res.data
}) })
.catch(() => { .catch(() => {
......
...@@ -14,22 +14,25 @@ ...@@ -14,22 +14,25 @@
@touchend.prevent="touchend(index)" @touchend.prevent="touchend(index)"
> >
<van-row gutter="">
<van-col span="7">风险编号:</van-col>
<van-col span="17">{{ item.processInstanceId }}</van-col>
</van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="7">所属工程名称:</van-col> <van-col span="7">所属工程名称:</van-col>
<van-col span="17">{{ item.proId }}</van-col> <van-col span="17">{{ item.proId }}</van-col>
</van-row> </van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="7">隐患项目名称:</van-col> <van-col span="7">风险等级:</van-col>
<van-col span="17">{{ item.subject }}</van-col> <van-col span="17">{{ item.riskLevel }}</van-col>
</van-row> </van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="7">隐患发现时间:</van-col> <van-col span="7">风险源:</van-col>
<van-col span="17">{{ item.findTime }}</van-col> <van-col span="17">{{ item.riskSource }}</van-col>
</van-row> </van-row>
<van-row gutter=""> <van-row gutter="">
<van-col span="7">隐患级别:</van-col> <van-col span="7">创建时间:</van-col>
<van-col span="17">{{ item.level }}</van-col> <van-col span="17">{{ item.startDate }}</van-col>
</van-row> </van-row>
<!-- *接口对接4 END --> <!-- *接口对接4 END -->
......
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