Commit c659c63a authored by xinzhedeai's avatar xinzhedeai

冗余代码处理

parent 4472e68e
......@@ -129,21 +129,6 @@ window.addEventListener("load", function() {
}
}
})
// http.get('/api/dangerJobReport/page', {
// page: 0, // 每次请求增加下一页
// size: 1,
// // companyId: localStorage.getItem('companyId'),
// id: gemhoUtil.getParameter('dwId'),
// sort: 'id,asc',
// }).then((res) => {
// console.log('响应结果', res.content)
// this.form = res.content[0]
// this.form.filePathList = res.content[0].filePathList || []
// if(this.form.workTime && this.form.workTime.length){
// this.form.workTime1 = this.form.workTime[0]
// this.form.workTime2 = this.form.workTime[1]
// }
// })
},
submit() {
if (!this.form.name) {
......
......@@ -63,13 +63,13 @@ window.addEventListener("load", function() {
}
this.loading = true
http2.post({
serviceId: API_KEY_MAP["dw-list"]['id'],
interfacePublicKey: API_KEY_MAP["dw-list"]["publicKey"],
interfacePrivateKey: API_KEY_MAP["dw-list"]["privateKey"],
serviceId: API_KEY_MAP["emergency"]['id'],
interfacePublicKey: API_KEY_MAP["emergency"]["publicKey"],
interfacePrivateKey: API_KEY_MAP["emergency"]["privateKey"],
reqParams: {
page: this.page++,// 每次请求增加下一页
size: this.size,
sort: 'id,desc',
planName: this.planName,
}
}, (res) => {
......@@ -84,27 +84,9 @@ window.addEventListener("load", function() {
if(this.page*this.size >= this.total){
this.finished = true; // 下滑不在刷新数据
}
}
this.loading = false
})
// http.get('/api/enterpriseDrillPlans/company',{
// page: this.page++,// 每次请求增加下一页
// size: this.size,
// planName: this.planName,
// companyId: localStorage.getItem('companyId'),
// }).then((res)=>{
// this.loading = false; // 加载状态结束
// this.list.push(...res.body.content);
// this.total = res.body.totalElements
// if(this.page*this.size >= this.total){
// this.finished = true; // 下滑不在刷新数据
// }
// })
}
},
});
......
......@@ -5,11 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0, viewprot-fit:cover">
<title>危险作业备案-详情</title>
<!-- <script src="https://cdn.bootcdn.net/ajax/libs/pdf.js/2.0.193/pdf.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/pdf.js/2.0.193/pdf.worker.min.js"></script> -->
<!-- <script src="../js/pdfjs-4.2.67-dist/build/pdf.mjs"></script>
<script src="../js/pdfjs-4.2.67-dist/build/pdf.worker.mjs"></script> -->
<title>法律法规-详情</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.11.338/pdf.min.js"></script>
<script type="text/javascript" src="../sdk/includeHead.js"></script>
<style>
......
......@@ -29,21 +29,13 @@ window.addEventListener("load", function() {
lawId: gemhoUtil.getParameter('law_id')
}
}, (res) => {
if(res){
console.log('接口回调数据', JSON.parse(res))
var result = JSON.parse(res)
this.lawChapter = result.lawChapter
}
})
// http.get('/api/thLaw/findLawDetails', {
// lawId: gemhoUtil.getParameter('law_id')
// }).then((res) => {
// console.log('响应结果', res.content)
// this.lawChapter = res.thLawChapterDtoList[0].lawChapter
// })
},
},
});
});
\ No newline at end of file
......@@ -22,7 +22,6 @@ window.addEventListener("load", function() {
},
methods: {
detail(index){
debugger
this.list[index].currentUserRead = true
location.href = './law-list-detail.html?law_id='+this.list[index].lawId
},
......@@ -56,23 +55,6 @@ window.addEventListener("load", function() {
}
this.loading = false
})
// http.get('/api/thLaw',{
// page: this.page++,// 每次请求增加下一页
// size: this.size,
// county: localStorage.getItem('appCounty'),
// category_id: gemhoUtil.getParameter('category_id'),
// sort: 'lawId,desc',
// }).then((res)=>{
// this.loading = false; // 加载状态结束
// this.list.push(...res.content);
// this.total = res.totalElements
// if(this.page*this.size >= this.total){
// this.finished = true; // 下滑不在刷新数据
// }
// })
}
},
});
......
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