|
@@ -2,15 +2,25 @@
|
|
<div class="video-page">
|
|
<div class="video-page">
|
|
<header></header>
|
|
<header></header>
|
|
<div class="tab">
|
|
<div class="tab">
|
|
- <div :class="activetab===item.id?'active item':'item'" v-for="item in tabs" :key="item.id" @click="changeTab(item)">{{ item.name }}</div>
|
|
|
|
|
|
+ <el-select v-model="conditions.goafOrebelt" placeholder="矿带" @change="changeArea(1)" style="width:120px" clearable>
|
|
|
|
+ <el-option v-for="(item,index) in goafOrebelts" :key="index" :value="item" :label="item" />
|
|
|
|
+ </el-select>
|
|
|
|
+ <el-select v-model="conditions.goafOrebody" placeholder="矿体" @change="changeArea(2)" style="width:120px;margin:0 12px;">
|
|
|
|
+ <el-option v-for="(item,index) in goafOrebodys" :key="index" :value="item.goafOrebody" :label="item.goafOrebody" />
|
|
|
|
+ </el-select>
|
|
|
|
+ <el-select v-model="conditions.goafOreheight" placeholder="中段" @change="changeArea(3)" style="width:120px">
|
|
|
|
+ <el-option v-for="(item,index) in goafOreheights" :key="index" :value="item.goafOreheight" :label="item.goafOreheight" />
|
|
|
|
+ </el-select>
|
|
</div>
|
|
</div>
|
|
<div class="container">
|
|
<div class="container">
|
|
<div class="lf">
|
|
<div class="lf">
|
|
- <!-- <div class="search-container">
|
|
|
|
- <el-input v-model="search.code" class="input" placeholder="请输入采空区编号" />
|
|
|
|
|
|
+ <div class="search-container">
|
|
|
|
+ <el-select v-model="conditions.goafId" placeholder="采空区编号" @change="changeArea(4)" style="width:210px;margin:0 12px;">
|
|
|
|
+ <el-option v-for="item in goafNames" :key="item.goafId" :value="item.goafId" :label="item.goafName" />
|
|
|
|
+ </el-select>
|
|
<div class="bt search" @click="searchSubmit">查询</div>
|
|
<div class="bt search" @click="searchSubmit">查询</div>
|
|
<div class="bt" @click="resetSubmit">重置</div>
|
|
<div class="bt" @click="resetSubmit">重置</div>
|
|
- </div> -->
|
|
|
|
|
|
+ </div>
|
|
<div class="lf-container">
|
|
<div class="lf-container">
|
|
<div class="video-container">
|
|
<div class="video-container">
|
|
<div class="item" v-for="(item,index) in 10" :key="index" @click="showVideo(item)">
|
|
<div class="item" v-for="(item,index) in 10" :key="index" @click="showVideo(item)">
|
|
@@ -38,6 +48,7 @@
|
|
<script>
|
|
<script>
|
|
import AlertChart from './components/AlertChart.vue'
|
|
import AlertChart from './components/AlertChart.vue'
|
|
import WarnChart from './components/WarnChart.vue'
|
|
import WarnChart from './components/WarnChart.vue'
|
|
|
|
+import { getGoafBaseInfo } from '@/api/goaf/info'
|
|
export default {
|
|
export default {
|
|
name:"particulars_video",
|
|
name:"particulars_video",
|
|
components:{
|
|
components:{
|
|
@@ -58,9 +69,21 @@ import WarnChart from './components/WarnChart.vue'
|
|
{name:"770",id:"2"},
|
|
{name:"770",id:"2"},
|
|
{name:"32001",id:"3"},
|
|
{name:"32001",id:"3"},
|
|
],
|
|
],
|
|
- search:{
|
|
|
|
- code:""
|
|
|
|
- }
|
|
|
|
|
|
+ conditions: {
|
|
|
|
+ page: 1,
|
|
|
|
+ limit: 10,
|
|
|
|
+ goafId: '',
|
|
|
|
+ goafOrebelt: '',
|
|
|
|
+ goafOrebody: '',
|
|
|
|
+ goafOreheight: '',
|
|
|
|
+ goafName:"",
|
|
|
|
+ goafDevName:""
|
|
|
|
+ },
|
|
|
|
+ goafList: [],
|
|
|
|
+ goafOrebelts: [],
|
|
|
|
+ goafOrebodys: [],
|
|
|
|
+ goafOreheights: [],
|
|
|
|
+ goafNames: [],
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created(){
|
|
created(){
|
|
@@ -68,21 +91,36 @@ import WarnChart from './components/WarnChart.vue'
|
|
},
|
|
},
|
|
methods:{
|
|
methods:{
|
|
init(){
|
|
init(){
|
|
-
|
|
|
|
|
|
+ getGoafBaseInfo().then((res) => {
|
|
|
|
+ const goafOrebelts = res.data.map(item => item.goafOrebelt)
|
|
|
|
+ this.goafOrebelts = [...new Set(goafOrebelts)]
|
|
|
|
+ this.goafList = res.data
|
|
|
|
+ })
|
|
},
|
|
},
|
|
changeHead(item){
|
|
changeHead(item){
|
|
this.activeId=item.id
|
|
this.activeId=item.id
|
|
},
|
|
},
|
|
- changeTab(item){
|
|
|
|
- this.activetab=item.id
|
|
|
|
- },
|
|
|
|
searchSubmit(){
|
|
searchSubmit(){
|
|
-
|
|
|
|
|
|
+ this.getData()
|
|
},
|
|
},
|
|
resetSubmit(){
|
|
resetSubmit(){
|
|
- this.search={
|
|
|
|
- code:""
|
|
|
|
|
|
+ this.conditions={
|
|
|
|
+ page: 1,
|
|
|
|
+ limit: 10,
|
|
|
|
+ goafId: '',
|
|
|
|
+ goafOrebelt: '',
|
|
|
|
+ goafOrebody: '',
|
|
|
|
+ goafOreheight: '',
|
|
|
|
+ goafName:"",
|
|
|
|
+ goafDevName:""
|
|
}
|
|
}
|
|
|
|
+ this.goafOrebodys=[]
|
|
|
|
+ this.goafOreheights=[]
|
|
|
|
+ this.goafNames=[]
|
|
|
|
+ this.getData()
|
|
|
|
+ },
|
|
|
|
+ getData(){
|
|
|
|
+
|
|
},
|
|
},
|
|
showVideo(item){
|
|
showVideo(item){
|
|
this.video={
|
|
this.video={
|
|
@@ -90,12 +128,77 @@ import WarnChart from './components/WarnChart.vue'
|
|
name:"{Ⅲ号-770-32008}:封堵口"
|
|
name:"{Ⅲ号-770-32008}:封堵口"
|
|
}
|
|
}
|
|
this.videoDialogVisible=true;
|
|
this.videoDialogVisible=true;
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ changeArea(type) {
|
|
|
|
+ const goafs = this.deeepClone(this.goafList)
|
|
|
|
+ let goafOrebodys = this.deeepClone(this.goafOrebodys)
|
|
|
|
+ let goafOreheights = this.deeepClone(this.goafOreheights)
|
|
|
|
+ let goafNames = this.deeepClone(this.goafNames)
|
|
|
|
+ if (type === 1) {
|
|
|
|
+ goafOrebodys = goafs.filter(item => item.goafOrebelt === this.conditions.goafOrebelt)
|
|
|
|
+ this.goafOrebodys = goafOrebodys
|
|
|
|
+ this.goafOreheights = []
|
|
|
|
+ this.goafNames = []
|
|
|
|
+ this.conditions.goafOrebody = ''
|
|
|
|
+ this.conditions.goafOreheight = ''
|
|
|
|
+ this.conditions.goafName = ''
|
|
|
|
+ this.conditions.goafId = ''
|
|
|
|
+ } else if (type === 2) {
|
|
|
|
+ goafOreheights = goafs.filter(item => (item.goafOrebody === this.conditions.goafOrebody) && (item.goafOrebelt === this.conditions.goafOrebelt))
|
|
|
|
+ this.goafOreheights = goafOreheights
|
|
|
|
+ this.goafNames = []
|
|
|
|
+ this.conditions.goafOreheight = ''
|
|
|
|
+ this.conditions.goafName = ''
|
|
|
|
+ this.conditions.goafId = ''
|
|
|
|
+ } else if (type === 3) {
|
|
|
|
+ goafNames = goafs.filter(item => (item.goafOreheight === this.conditions.goafOreheight) && (item.goafOrebody === this.conditions.goafOrebody) && (item.goafOrebelt === this.conditions.goafOrebelt))
|
|
|
|
+ this.goafNames = goafNames
|
|
|
|
+ this.conditions.goafName = ''
|
|
|
|
+ this.conditions.goafId = ''
|
|
|
|
+ } else {
|
|
|
|
+ for (let i = 0; i < goafNames.length; i++) {
|
|
|
|
+ if (this.conditions.goafId === goafNames[i].goafId) {
|
|
|
|
+ this.conditions.goafName = goafNames[i].goafName
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ this.$forceUpdate()
|
|
|
|
+ },
|
|
|
|
+ deeepClone(params) {
|
|
|
|
+ return JSON.parse(JSON.stringify(params))
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
.video-page{
|
|
.video-page{
|
|
|
|
+ .search-item{
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: center;
|
|
|
|
+ align-items: center;
|
|
|
|
+ margin-bottom: 14px;
|
|
|
|
+ span{
|
|
|
|
+ font-family: 'Ping Hei';
|
|
|
|
+ font-size: 14px;
|
|
|
|
+ line-height: 1;
|
|
|
|
+ color: rgba(255, 255, 255, 0.7);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ .input,.select,.el-date-editor{
|
|
|
|
+ width: 180px;
|
|
|
|
+ margin-right:16px;
|
|
|
|
+ color: #fff;
|
|
|
|
+ }
|
|
|
|
+ ::v-deep{
|
|
|
|
+ .el-input__wrapper{
|
|
|
|
+ background-color: rgba(8, 128, 255, 0.2);
|
|
|
|
+ border: 0;
|
|
|
|
+ box-shadow: none;
|
|
|
|
+ }
|
|
|
|
+ .el-input__inner{
|
|
|
|
+ color: #fff;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
.video-dialog{
|
|
.video-dialog{
|
|
position: fixed;
|
|
position: fixed;
|
|
z-index: 999;
|
|
z-index: 999;
|