Browse Source

调整情报板

wangqin
hui 11 months ago
parent
commit
4b61af83e9
  1. 3
      ruoyi-ui/src/views/JiHeExpressway/components/HeaderMenu/CustomMenu.vue
  2. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/service/board/addinfo.vue
  3. 43
      ruoyi-ui/src/views/JiHeExpressway/pages/service/board/index.vue

3
ruoyi-ui/src/views/JiHeExpressway/components/HeaderMenu/CustomMenu.vue

@ -136,6 +136,7 @@ export default {
&:hover { &:hover {
@include activeBtnBg; @include activeBtnBg;
color: #fff !important; color: #fff !important;
border: none !important;
::v-deep .el-submenu__title{ ::v-deep .el-submenu__title{
color: #fff; color: #fff;
} }
@ -145,10 +146,12 @@ export default {
@include activeBtnBg; @include activeBtnBg;
::v-deep .el-submenu__title{ ::v-deep .el-submenu__title{
color: #fff !important; color: #fff !important;
border:none !important;
} }
} }
::v-deep &:focus .el-submenu__title{ ::v-deep &:focus .el-submenu__title{
color: #fff !important; color: #fff !important;
border:none !important;
} }
} }

2
ruoyi-ui/src/views/JiHeExpressway/pages/service/board/addinfo.vue

@ -1,7 +1,7 @@
<template> <template>
<div class="container infoBoardDialog"> <div class="container infoBoardDialog">
<!-- 添加信息弹窗 --> <!-- 添加信息弹窗 -->
<el-dialog title="新增" :visible.sync="dialogVisible" width="43%" :before-close="handleClose" :close-on-click-modal="false"> <el-dialog title="新增" :visible.sync="dialogVisible" width="43%" :before-close="handleClose" :close-on-click-modal="false" append-to-body>
<div class="dialogStyleBox"> <div class="dialogStyleBox">
<div class="dialogLine"></div> <div class="dialogLine"></div>
<div class="dialogCloseButton"></div> <div class="dialogCloseButton"></div>

43
ruoyi-ui/src/views/JiHeExpressway/pages/service/board/index.vue

@ -144,7 +144,7 @@
</div> </div>
<div class="templateBox"> <div class="templateBox">
<el-collapse v-model="activeNames"> <el-collapse v-model="activeNames">
<el-collapse-item v-for="(item, index) in iotTemplateCategoryList" :key="index" :title="item.dictLabel" :name="item.dictValue"> <el-collapse-item v-for="(item, index) in tempCategory" :key="index" :title="item.dictLabel" :name="item.dictValue">
<div v-for="(itm, indx) in item.list" :key="indx" class="con" :style="{ <div v-for="(itm, indx) in item.list" :key="indx" class="con" :style="{
fontSize: getFontSize( fontSize: getFontSize(
itm.tcontents[0].fontSize, itm.tcontents[0].fontSize,
@ -210,7 +210,7 @@
<el-row> <el-row>
<el-col :span="18"> <el-col :span="18">
<el-select v-model="toRightCategory" placeholder="请选择所属类别"> <el-select v-model="toRightCategory" placeholder="请选择所属类别">
<el-option v-for="item in iotTemplateCategoryList" :key="item.dictValue" :label="item.dictLabel" :value="item.dictValue"> <el-option v-for="item in tempCategory" :key="item.dictValue" :label="item.dictLabel" :value="item.dictValue">
</el-option> </el-option>
</el-select> </el-select>
</el-col> </el-col>
@ -304,7 +304,7 @@ export default {
}, // }, //
supplier: null, // supplier: null, //
activeNames: [], // activeNames: [], //
iotTemplateCategoryList: [], // tempCategory: [], //
checkAll: false, checkAll: false,
isIndeterminate: false, isIndeterminate: false,
contentList: [], // contentList: [], //
@ -321,7 +321,7 @@ export default {
console.log(newVal, 'iotBoardActive') console.log(newVal, 'iotBoardActive')
if (newVal.length == 0) { if (newVal.length == 0) {
this.form.devicePixel = '' this.form.devicePixel = ''
this.allVmsTemplate('no') // this.allVmsTemplate('no')
} }
} }
// // // //
@ -331,7 +331,7 @@ export default {
// } // }
}, },
created() { created() {
this.getInfoMode() this.getTemplateCategory()
this.changeDirection() this.changeDirection()
this.getBoardPixel() this.getBoardPixel()
}, },
@ -341,7 +341,7 @@ export default {
}, },
methods: { methods: {
// //
getBoardPixel() { getBoardPixel() {
this.iotBoardList = [] this.iotBoardList = []
this.getDicts('iot_board_pixel').then(res => { this.getDicts('iot_board_pixel').then(res => {
@ -354,10 +354,10 @@ export default {
}) })
}) })
}, },
// //
getInfoMode() { getTemplateCategory() {
this.getDicts('iot_template_category').then(res => { this.getDicts('iot_template_category').then(res => {
this.iotTemplateCategoryList = res.data this.tempCategory = res.data
}) })
}, },
@ -396,7 +396,7 @@ export default {
this.checkAll = false this.checkAll = false
//TODO //TODO
/* let testData = [ let testData = [
{ {
devicePixel: '768*64', devicePixel: '768*64',
label: '门架板768*64', label: '门架板768*64',
@ -717,7 +717,7 @@ export default {
devicePixel: '480*48', devicePixel: '480*48',
label: '雨棚480*48', label: '雨棚480*48',
list: [ list: [
/!*{ {
searchValue: null, searchValue: null,
createBy: null, createBy: null,
createTime: null, createTime: null,
@ -778,14 +778,14 @@ export default {
lAlarmHandleStr: null, lAlarmHandleStr: null,
eqDirection: null, eqDirection: null,
iotDeviceType: null iotDeviceType: null
}*!/ }
] ]
}, },
{ {
devicePixel: '192*160', devicePixel: '192*160',
label: ' 悬臂192*160', label: ' 悬臂192*160',
list: [ list: [
/!*{ {
searchValue: null, searchValue: null,
createBy: null, createBy: null,
createTime: null, createTime: null,
@ -846,7 +846,7 @@ export default {
lAlarmHandleStr: null, lAlarmHandleStr: null,
eqDirection: null, eqDirection: null,
iotDeviceType: null iotDeviceType: null
}*!/ }
] ]
}, },
{ {
@ -921,11 +921,12 @@ export default {
this.iotBoardList = testData this.iotBoardList = testData
if (testData.length > 0) { if (testData.length > 0) {
this.iotBoardActive = testData[0].devicePixel this.iotBoardActive = testData[0].devicePixel
this.handleChange(testData[0].devicePixel) // this.handleChange(testData[0].devicePixel)
} else { } else {
this.getInfoMode() this.getTemplateCategory()
} }
this.$forceUpdate()*/ this.$forceUpdate()
return;
// TODO // TODO
let param = { let param = {
@ -945,7 +946,7 @@ export default {
this.iotBoardActive = this.iotBoardList[0].devicePixel; this.iotBoardActive = this.iotBoardList[0].devicePixel;
this.handleChange(this.iotBoardList[0].devicePixel); this.handleChange(this.iotBoardList[0].devicePixel);
} else { } else {
this.getInfoMode(); this.getTemplateCategory();
} }
}) })
@ -1131,8 +1132,8 @@ export default {
console.log(res, '情报板管理右侧查询接口') console.log(res, '情报板管理右侧查询接口')
let jArr = [] let jArr = []
for (let j = 0; j < this.iotTemplateCategoryList.length; j++) { for (let j = 0; j < this.tempCategory.length; j++) {
let arr = this.iotTemplateCategoryList[j] let arr = this.tempCategory[j]
let brr = data[j] let brr = data[j]
arr.list = brr arr.list = brr
jArr.push(j.toString()) jArr.push(j.toString())
@ -1141,7 +1142,7 @@ export default {
this.activeNames = jArr this.activeNames = jArr
} }
this.$forceUpdate() this.$forceUpdate()
console.log(this.iotTemplateCategoryList, '新模板') console.log(this.tempCategory, '新模板')
}) })
}, },

Loading…
Cancel
Save