Commit 4cb6b496 authored by 胡占生's avatar 胡占生 🇨🇳

fix: 隐患上报 变更接口请求参数

parent 5daa2a78
Pipeline #9805 passed with stage
...@@ -789,7 +789,7 @@ export default { ...@@ -789,7 +789,7 @@ export default {
this.dangerNum = ""; this.dangerNum = "";
this.dangerLevel = ""; this.dangerLevel = "";
// 去请求隐患类型的数据 // 去请求隐患类型的数据
postHdTyp(`/hdreport/showHdType/${this.range}`).then((res) => { postHdTyp(`/hdreport/showHdType?hdRange=${this.range}`).then((res) => {
this.columnsType = res.data; this.columnsType = res.data;
if(this.hdType){ if(this.hdType){
this.columnsType.forEach((i)=>{ this.columnsType.forEach((i)=>{
...@@ -815,7 +815,7 @@ export default { ...@@ -815,7 +815,7 @@ export default {
this.dangerNum = ""; this.dangerNum = "";
this.dangerLevel = ""; this.dangerLevel = "";
// 请求隐患项目名称的数据 // 请求隐患项目名称的数据
postHdName(`/hdreport/showHdName/${this.range}/${this.type}`).then( postHdName(`/hdreport/showHdName?hdRange=${this.range}&hdType=${this.type}`).then(
(res) => { (res) => {
this.columnsDangerName = res.data; this.columnsDangerName = res.data;
if(this.hdName){ if(this.hdName){
...@@ -841,7 +841,7 @@ export default { ...@@ -841,7 +841,7 @@ export default {
this.showDangerName = false; this.showDangerName = false;
// 请求隐患单编号和隐患级别 // 请求隐患单编号和隐患级别
postHdInventories( postHdInventories(
`/hdreport/showHdInventories/${this.range}/${this.type}/${this.dangerName}` `/hdreport/showHdInventories?hdRange=${this.range}&hdType=${this.type}&hdName=${this.dangerName}`
).then((res) => { ).then((res) => {
this.dangerNum = res.data[0].hdId; this.dangerNum = res.data[0].hdId;
this.dangerLevel = this.dangerType(res.data[0].hdLev); this.dangerLevel = this.dangerType(res.data[0].hdLev);
......
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