Commit cbded969 authored by 李苏's avatar 李苏 💬

修改&&三维轮播

parent a2fe40c1
......@@ -95,4 +95,12 @@ export function doPunish(query) {
}
// 曝光附件
export function queryBglxFile(query) {
return request({
url: '/aqgl/swgl/swjl/queryBglxFile',
method: 'post',
data: query||{}
})
}
......@@ -410,6 +410,19 @@ export const powerRoutes=[
redirect: 'maintainTV',
meta: {title: "三违管理", icon: "fa-cog", noCache: false, link: null,mkid:904000000},
children: [
{
component:'threeViolations/homePage/index',
hidden:false,
meta:{
"title": "首页",
"icon": "",
"noCache": false,
"link": null,
"mkid":'test',
},
name:'homePage',
path:"homePage"
},
{
component:'threeViolations/maintainTV/index',
hidden:false,
......
......@@ -74,7 +74,9 @@ const permission = {
if((e.mkid==item.meta.mkid)||(item.meta.mkid=='test')){
console.log(item,e)
item.meta.icon=e.icon
item.meta.title=e.mkmc
if(item.meta.mkid!='test'){
item.meta.title=e.mkmc
}
/* 额外参数*/
e.mkid&&(item.mkid=e.mkid)
e.menusBizType&&(item.menusBizType=e.menusBizType)
......
<template>
<div class="min_full homePage" style="margin: 0;border: 0;">
<!-- 数据展示-->
<div class="lbt">
<el-carousel height='calc(100vh - 84px)' >
<el-carousel-item v-for="(item,index) in showList" :key="item.id">
<!-- 轮播图all-->
<div class="lbtAll">
<!-- 说明-->
<div class="sm">
<el-tooltip :content="`${item.gsName}/${item.bzName}:${item.wzr}:${item.wzxw}`" placement="top">
<span class='infor' >
{{`${item.gsName}/${item.bzName}的${item.wzr}做出违章行为:${item.wzxw}`}}
</span>
</el-tooltip>
</div>
<el-image
style="width: 100%; height: 100%"
:src=" `${baseurl}/api/file/${item.filePath}`"
fit="fit"></el-image>
</div>
</el-carousel-item>
</el-carousel>
</div>
<!-- 轮播图-->
</div>
</template>
<script>
const baseurl=process.env.VUE_APP_BASE_API
import {
queryBglxFile
} from '@/api/threeViolations/enterTV.js';
export default{
mounted(){
queryBglxFile({}).then(res=>{
this.showList=res.data.records||[]
})
},
data(){
return{
baseurl:baseurl,
showList:[]
}
},
methods:{
}
}
</script>
<style lang="scss" scope>
.homePage{
}
.lbt{
position: relative;
// height: 60%;
width: 100%;
.lbtAll{
height: 100%;
width: 100%;
.sm{
padding-top: 16px;
padding-bottom: 26px;
display: flex;
justify-content: center;
align-items: center;
position: absolute;
height:117px;
width:100%;
background-color: rgba(0,0,0,0.7);
z-index: 999;
bottom:0;
overflow: hidden;
text-overflow: ellipsis;
.infor{
color: #fff;
line-height: 25px;
font-size: 14px;
}
}
}
}
.el-carousel__item:nth-child(2n) {
background-color: #99a9bf;
}
.el-carousel__item:nth-child(2n+1) {
background-color: #d3dce6;
}
</style>
......@@ -2,7 +2,7 @@
<div class="form-detail">
<el-row class="tool-bar">
<AttachFileButton :params="{childPath:'BGLX'}" :app='vMain'></AttachFileButton>
<AttachFileShow :params="{childPath:'BGLX'}" :app='vMain'></AttachFileShow>
<el-button size='mini' @click.native="readonly=false;$success('开启编辑')" type="primary">编辑</el-button>
<el-button size='mini' @click.native="save()" type="primary">保存</el-button>
<!-- 额外按钮-->
......
......@@ -2,7 +2,7 @@
<div class="form-detail">
<el-row class="tool-bar">
<AttachFileButton :params="{childPath:'LDTH'}" :app='vMain'></AttachFileButton>
<AttachFileShow :params="{childPath:'LDTH'}" :app='vMain'></AttachFileShow>
<el-button size='mini' @click.native="readonly=false;$success('开启编辑')" type="primary">编辑</el-button>
<el-button size='mini' @click.native="save()" type="primary">保存</el-button>
<!-- 额外按钮-->
......
......@@ -2,7 +2,7 @@
<div class="form-detail">
<el-row class="tool-bar">
<AttachFileButton :params="{childPath:'FSJC'}" :app='vMain'></AttachFileButton>
<AttachFileShow :params="{childPath:'FSJC'}" :app='vMain'></AttachFileShow>
<el-button size='mini' @click.native="readonly=false;$success('开启编辑')" type="primary">编辑</el-button>
<el-button size='mini' @click.native="save()" type="primary">保存</el-button>
<!-- 额外按钮-->
......
......@@ -2,7 +2,7 @@
<div class="form-detail">
<el-row class="tool-bar">
<AttachFileButton :params="{childPath:'AQBK'}" :app='vMain'></AttachFileButton>
<AttachFileShow :params="{childPath:'AQBK'}" :app='vMain'></AttachFileShow>
<el-button size='mini' @click.native="readonly=false;$success('开启编辑')" type="primary">编辑</el-button>
<el-button size='mini' @click.native="save()" type="primary">保存</el-button>
<!-- 额外按钮-->
......
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