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