Commit 7e30b74e authored by 13841799530's avatar 13841799530

接口联通

解润东
20220510
parent 00eead50
Pipeline #8292 passed with stage
in 5 minutes and 5 seconds
...@@ -92,7 +92,7 @@ export default { ...@@ -92,7 +92,7 @@ export default {
text: "执行巡查", text: "执行巡查",
messageList: [], messageList: [],
active: 0, active: 0,
postType:'', hdType:'',
tabs: [ tabs: [
// { // {
// title: "安全管理类", // title: "安全管理类",
...@@ -119,16 +119,16 @@ export default { ...@@ -119,16 +119,16 @@ export default {
}, },
methods: { methods: {
onClick(name,title){ onClick(name,title){
this.postType=title this.hdType=title
this.postList() this.postList()
}, },
loadingTabs(){ loadingTabs(){
postWork("patrol/running/dict").then(res => { postWork("patrol/running/hdType").then(res => {
this.postType=res.data[0].dictLabel this.hdType=res.data[0].hdType
res.data.forEach((i)=>{ res.data.forEach((i)=>{
this.tabs.push({ this.tabs.push({
title:i.dictLabel, title:i.hdType,
api:i.dictValue api:i.id
}) })
}) })
this.postList(); this.postList();
...@@ -152,9 +152,9 @@ export default { ...@@ -152,9 +152,9 @@ export default {
}); });
let obj = { let obj = {
cycle: this.id, cycle: this.id,
postType:this.postType hdType:this.hdType
}; };
postFun("patrol/running/list?cycle="+this.id+'&postType='+this.postType) postFun("patrol/running/list?cycle="+this.id+'&hdType='+this.hdType)
.then(res => { .then(res => {
this.messageList = res.data; this.messageList = res.data;
this.$toast.clear(); this.$toast.clear();
......
...@@ -48,37 +48,37 @@ export default { ...@@ -48,37 +48,37 @@ export default {
{ {
title: "1", title: "1",
imgUrl: require("@/assets/dangerPatrol/patrol-icon.png"), imgUrl: require("@/assets/dangerPatrol/patrol-icon.png"),
content: "日查清单" content: "日查记录"
}, },
{ {
title: "2", title: "2",
imgUrl: require("@/assets/dangerPatrol/patrol-icon.png"), imgUrl: require("@/assets/dangerPatrol/patrol-icon.png"),
content: "周查清单" content: "周查记录"
}, },
{ {
title: "3", title: "3",
imgUrl: require("@/assets/dangerPatrol/patrol-icon.png"), imgUrl: require("@/assets/dangerPatrol/patrol-icon.png"),
content: "半月查清单" content: "半月查记录"
}, },
{ {
title: "4", title: "4",
imgUrl: require("@/assets/dangerPatrol/patrol-icon.png"), imgUrl: require("@/assets/dangerPatrol/patrol-icon.png"),
content: "月查清单" content: "月查记录"
}, },
{ {
title: "5", title: "5",
imgUrl: require("@/assets/dangerPatrol/patrol-icon.png"), imgUrl: require("@/assets/dangerPatrol/patrol-icon.png"),
content: "季查清单" content: "季查记录"
}, },
{ {
title: "6", title: "6",
imgUrl: require("@/assets/dangerPatrol/patrol-icon.png"), imgUrl: require("@/assets/dangerPatrol/patrol-icon.png"),
content: "半年查清单" content: "半年查记录"
}, },
{ {
title: "7", title: "7",
imgUrl: require("@/assets/dangerPatrol/patrol-icon.png"), imgUrl: require("@/assets/dangerPatrol/patrol-icon.png"),
content: "年查清单" content: "年查记录"
} }
] ]
}; };
......
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