轮播图居左,添加装置信息

master
fanluyan 2 years ago
parent 53e6536ad9
commit 0566418f1b

@ -37,3 +37,8 @@
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
} }
//弹窗
.el-dialog__body {
padding: 8px 20px;
}

@ -135,14 +135,14 @@ export default {
}, },
swiperOptionThumbs: { swiperOptionThumbs: {
spaceBetween: 10, spaceBetween: 10,
centeredSlides: true, centeredSlides: false,
slidesPerView: "auto", slidesPerView: "auto",
touchRatio: 0.2, touchRatio: 0.2,
lazyLoading: true, // lazyLoading: true, //
slideToClickedSlide: true, slideToClickedSlide: true,
lazy: { lazy: {
loadPrevNext: true, loadPrevNext: true,
loadPrevNextAmount: 3, loadPrevNextAmount: 5,
loadOnTransitionStart: true, loadOnTransitionStart: true,
//loadOnTransitionStart: true, //loadOnTransitionStart: true,
}, },

@ -315,7 +315,7 @@ export default {
position: absolute; position: absolute;
bottom: 28px; bottom: 28px;
left: 0px; left: 0px;
font-size: 15px; font-size: 14px;
background-color: #3a87ad !important; background-color: #3a87ad !important;
color: @color-white; color: @color-white;
font-weight: normal; font-weight: normal;
@ -328,7 +328,7 @@ export default {
bottom: 4px; bottom: 4px;
color: @color-white; color: @color-white;
left: 0px; left: 0px;
font-size: 15px; font-size: 14px;
background-color: #51b17c !important; background-color: #51b17c !important;
font-weight: normal; font-weight: normal;
margin-top: 2px; margin-top: 2px;

@ -0,0 +1,74 @@
<template>
<el-dialog
class="infoDialog"
title="装置信息"
:visible.sync="isShow"
:close-on-click-modal="false"
width="50%"
>
<div class="infoTable">
<el-descriptions class="margin-top" :column="3" border>
<el-descriptions-item>
<template slot="label"> 图像监测装置 ID </template>
XYIGQ10C230300104
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 装置名称 </template>
XYIGQ10C230300104
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 装置型号 </template>
xxx
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 装置基本信息版本号 </template>
xxxxxxxxxxxx
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 生产厂家 </template>
xxxxxxxxxxxxxxxxxxxxxxxx
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 生产日期 </template>
xxxxxxxxxxxxxxxxxxxxx
</el-descriptions-item>
<el-descriptions-item>
<template slot="label"> 出厂编号 </template>
xxxxxxxxxxxxxxxxxx
</el-descriptions-item>
</el-descriptions>
</div>
<div slot="footer" class="dialog-footer">
<!-- <el-button @click="isShow = false"> </el-button> -->
<el-button type="primary" @click="isShow = false"> </el-button>
</div>
</el-dialog>
</template>
<script>
import { getChannelListJoggle } from "@/utils/api/index";
export default {
props: {
title: String,
},
data() {
return {
loading: true,
isShow: false,
};
},
mounted() {},
methods: {
display() {
this.isShow = true;
},
hide() {
this.isShow = false;
},
},
};
</script>
<style lang="less">
.infoDialog {
}
</style>

@ -83,7 +83,7 @@
<el-button type="primary" @click="handleShowGPS" <el-button type="primary" @click="handleShowGPS"
>获取GPS位置</el-button >获取GPS位置</el-button
> >
<el-button type="primary" @click="handleShowErr"> <el-button type="primary" @click="handleShowInfo">
装置信息</el-button 装置信息</el-button
> >
<el-dropdown <el-dropdown
@ -99,9 +99,9 @@
<el-dropdown-item command="close">关闭GPS</el-dropdown-item> <el-dropdown-item command="close">关闭GPS</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
<el-button type="primary" @click="handleShowErr" <!-- <el-button type="primary" @click="handleShowErr"
>声光报警</el-button >声光报警</el-button
> > -->
<el-button type="primary" @click="handlehistoryPic" <el-button type="primary" @click="handlehistoryPic"
>历史图片</el-button >历史图片</el-button
> >
@ -123,6 +123,7 @@
<!-- <deviceUpgrade ref="deviceupgrade_ref"></deviceUpgrade> --> <!-- <deviceUpgrade ref="deviceupgrade_ref"></deviceUpgrade> -->
<!-- 绘制图片 --> <!-- 绘制图片 -->
<pictureTags ref="pictureTags_ref"></pictureTags> <pictureTags ref="pictureTags_ref"></pictureTags>
<info-dialog ref="infodialog_ref"></info-dialog>
</div> </div>
</div> </div>
</template> </template>
@ -140,12 +141,14 @@ import carouselChart from "../components/carouselChart.vue";
import setschedule from "./components/setschedule.vue"; import setschedule from "./components/setschedule.vue";
import deviceUpgrade from "./components/deviceUpgrade.vue"; import deviceUpgrade from "./components/deviceUpgrade.vue";
import pictureTags from "./components/pictureTags.vue"; import pictureTags from "./components/pictureTags.vue";
import infoDialog from "./components/infoDialog.vue";
export default { export default {
components: { components: {
carouselChart, carouselChart,
setschedule, setschedule,
deviceUpgrade, deviceUpgrade,
pictureTags, pictureTags,
infoDialog,
}, },
data() { data() {
return { return {
@ -327,6 +330,10 @@ export default {
this.$refs.setschedule_ref.getSingleAccess(this.channelId); this.$refs.setschedule_ref.getSingleAccess(this.channelId);
this.$refs.setschedule_ref.deviceList(); this.$refs.setschedule_ref.deviceList();
}, },
//
handleShowInfo() {
this.$refs.infodialog_ref.display();
},
handleShowErr() { handleShowErr() {
this.$message({ this.$message({
message: "该功能暂未开发,敬请期待", message: "该功能暂未开发,敬请期待",
@ -402,8 +409,17 @@ export default {
}) })
.then((res) => { .then((res) => {
console.log(res); console.log(res);
this.$message({
message: "手动拍照请求成功",
type: "success",
});
}) })
.catch((err) => { .catch((err) => {
this.$message({
message: "手动拍照请求成失败",
type: "error",
});
console.log(err); // console.log(err); //
}); });
}, },

@ -5,27 +5,52 @@
<el-form :inline="true" :model="formdata" class="demo-form-inline"> <el-form :inline="true" :model="formdata" class="demo-form-inline">
<el-form-item label="电压名称"> <el-form-item label="电压名称">
<el-select v-model="formdata.dyVal" @change="getSearchxl"> <el-select v-model="formdata.dyVal" @change="getSearchxl">
<el-option v-for="item in dyOptions" :key="item.id" :label="item.name" :value="item.id"></el-option> <el-option
v-for="item in dyOptions"
:key="item.id"
:label="item.name"
:value="item.id"
></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="线路名称"> <el-form-item label="线路名称">
<el-select v-model="formdata.xlVal" @change="getSearchgt"> <el-select v-model="formdata.xlVal" @change="getSearchgt">
<el-option v-for="item in xlOptions" :key="item.id" :label="item.name" :value="item.id"></el-option> <el-option
v-for="item in xlOptions"
:key="item.id"
:label="item.name"
:value="item.id"
></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="杆塔名称"> <el-form-item label="杆塔名称">
<el-select v-model="formdata.gtVal" @change="getSearchtd"> <el-select v-model="formdata.gtVal" @change="getSearchtd">
<el-option v-for="item in gtOptions" :key="item.id" :label="item.name" :value="item.id"></el-option> <el-option
v-for="item in gtOptions"
:key="item.id"
:label="item.name"
:value="item.id"
></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="通道监拍点"> <el-form-item label="通道监拍点">
<el-select v-model="formdata.tdVal"> <el-select v-model="formdata.tdVal">
<el-option v-for="item in tdOptions" :key="item.id" :label="item.name" :value="item.id"></el-option> <el-option
v-for="item in tdOptions"
:key="item.id"
:label="item.name"
:value="item.id"
></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="日期"> <el-form-item label="日期">
<el-date-picker v-model="formdata.timeVal" type="datetimerange" start-placeholder="" end-placeholder="" <el-date-picker
value-format="timestamp"></el-date-picker> v-model="formdata.timeVal"
type="datetimerange"
start-placeholder="开始日期"
end-placeholder="结束日期"
value-format="timestamp"
></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit"></el-button> <el-button type="primary" @click="onSubmit"></el-button>
@ -78,60 +103,71 @@ import { getSearchInfo, getPictureList } from "@/utils/api/index";
export default { export default {
data() { data() {
return { return {
dyOptions: [],// dyOptions: [], //
xlOptions: [],//线 xlOptions: [], //线
gtOptions: [],// gtOptions: [], //
tdOptions: [],// tdOptions: [], //
formdata: { formdata: {
dyVal:'', dyVal: "",
xlVal:'', xlVal: "",
gtVal: '', gtVal: "",
tdVal: '', tdVal: "",
timeVal: '', timeVal: "",
}, },
picList: [], picList: [],
page: 1, // page: 1, //
pageSize: 10, // pageSize: 30, //
total: 0, // total: 0, //
loading: false, loading: false,
}; };
}, },
mounted(){ mounted() {
this.$set(this.formdata, "timeVal", [new Date(new Date().toLocaleDateString()).getTime(), new Date().getTime()]); this.$set(this.formdata, "timeVal", [
this.getSearchdy() new Date(new Date().toLocaleDateString()).getTime(),
this.getPicData() new Date().getTime(),
]);
this.getSearchdy();
this.getPicData();
}, },
methods: { methods: {
// //
getSearchdy(){ getSearchdy() {
getSearchInfo({ type:1 }).then((res) => { getSearchInfo({ type: 1 })
.then((res) => {
this.dyOptions = res.data.list; this.dyOptions = res.data.list;
this.formdata.dyVal = res.data.list[0].id this.formdata.dyVal = res.data.list[0].id;
this.getSearchxl() this.getSearchxl();
}).catch((err) => {}); })
.catch((err) => {});
}, },
//线 //线
getSearchxl(){ getSearchxl() {
getSearchInfo({ type: 2, id: this.formdata.dyVal }).then((res) => { getSearchInfo({ type: 2, id: this.formdata.dyVal })
.then((res) => {
this.xlOptions = res.data.list; this.xlOptions = res.data.list;
this.formdata.xlVal = res.data.list[0].id this.formdata.xlVal = res.data.list[0].id;
this.getSearchgt() this.getSearchgt();
}).catch((err) => {}); })
.catch((err) => {});
}, },
// //
getSearchgt(){ getSearchgt() {
getSearchInfo({ type: 3, id: this.formdata.xlVal }).then((res) => { getSearchInfo({ type: 3, id: this.formdata.xlVal })
.then((res) => {
this.gtOptions = res.data.list; this.gtOptions = res.data.list;
this.formdata.gtVal = res.data.list[0].id this.formdata.gtVal = res.data.list[0].id;
this.getSearchtd() this.getSearchtd();
}).catch((err) => {}); })
.catch((err) => {});
}, },
// //
getSearchtd(){ getSearchtd() {
getSearchInfo({ type: 4, id: this.formdata.gtVal }).then((res) => { getSearchInfo({ type: 4, id: this.formdata.gtVal })
.then((res) => {
this.tdOptions = res.data.list; this.tdOptions = res.data.list;
this.formdata.tdVal = res.data.list[0].id this.formdata.tdVal = res.data.list[0].id;
}).catch((err) => {}); })
.catch((err) => {});
}, },
// //
getPicData() { getPicData() {
@ -152,18 +188,18 @@ export default {
}, },
// //
onSubmit() { onSubmit() {
this.getPicData() this.getPicData();
}, },
// //
handleCurrentChange(val) { handleCurrentChange(val) {
this.page = val; this.page = val;
this.getPicData() this.getPicData();
}, },
// //
handleSizeChange(val){ handleSizeChange(val) {
this.pageSize = val; this.pageSize = val;
this.getPicData() this.getPicData();
} },
}, },
}; };
</script> </script>

@ -361,7 +361,7 @@ export default {
padding: 8px; padding: 8px;
h3 { h3 {
margin-bottom: 8px; margin-bottom: 8px;
font-size: 15px; font-size: 14px;
} }
} }
.strRightTop, .strRightTop,
@ -375,7 +375,7 @@ export default {
padding: 8px; padding: 8px;
h3 { h3 {
margin-bottom: 8px; margin-bottom: 8px;
font-size: 15px; font-size: 14px;
} }
} }
.strRightTop { .strRightTop {
@ -397,7 +397,7 @@ export default {
.strRightBottom { .strRightBottom {
h3 { h3 {
margin-bottom: 8px; margin-bottom: 8px;
font-size: 15px; font-size: 14px;
} }
.suggest { .suggest {
.attention { .attention {

Loading…
Cancel
Save