Commit 597da313 authored by xinzhedeai's avatar xinzhedeai

隐患详情api

parent d92b4366
......@@ -80,9 +80,30 @@ window.addEventListener("load", function() {
}
},
mounted() {},
mounted() {
this.detail()
},
methods: {
detail(){
var hdId = getParameter('companyId')
http.get('/api/thHiddenDanger',{
page: 0,// 每次请求增加下一页
size: 1,
companyId: getParameter('companyId'),
hdId: getParameter('hdId'),
sort: 'hdId,asc',
}).then((res)=>{
console.log('响应结果', res.content)
this.form = res.content[0]
this.form.hdLevel = this.form.hdLevel+''
this.form.curSelectSecType = this.form.type // 安全类别
this.form.curSelectSecCheckTypeReplace = this.form.category // 安全检查类别
this.form.curSelectCheckContent = this.form.inspectionContent // 安全检查内容
this.form.hdName = this.form.hdName // 安全发现问题
})
},
submit() {
if (!this.form.hdInspectDate) {
vant.Dialog.alert({
......
......@@ -42,8 +42,8 @@
<van-tag type="danger">审核未通过</van-tag>
</p>
<div class="list-function-btn-wrapper pd-01rem">
<van-button type="info" size="mini">查看</van-button>
<van-button type="info" size="mini">编辑</van-button>
<van-button type="info" size="mini" @click="detail(item)">查看</van-button>
<van-button type="info" size="mini" @click="edit(item)">编辑</van-button>
<van-button type="info" size="mini">删除</van-button>
<van-button type="info" size="mini">导出</van-button>
</div>
......
......@@ -26,6 +26,12 @@ window.addEventListener("load", function() {
add(){
location.href='./yh-list-detail.html?companyId='+getParameter('companyId')
},
detail(item){
location.href='./yh-list-detail.html?companyId='+getParameter('companyId')+'&hdId='+item.hdId
},
edit(item){
location.href='./yh-list-detail.html?companyId='+getParameter('companyId')+'&hdId='+item.hdId+'&type=edit'
},
getList(){
http.get('/api/thHiddenDanger',{
page: this.page++,// 每次请求增加下一页
......
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