Browse Source

Merge branch 'develop' of http://39.106.31.193:9211/mengff/jihe-hs into develop

wangqin
zhangzhang 9 months ago
parent
commit
6d53c13240
  1. 15
      ruoyi-ui/src/assets/styles/JiHeExpressway.scss
  2. 2
      ruoyi-ui/src/views/JiHeExpressway/components/InputSearch/index.vue
  3. 107
      ruoyi-ui/src/views/JiHeExpressway/pages/service/board/index.vue

15
ruoyi-ui/src/assets/styles/JiHeExpressway.scss

@ -1,14 +1,17 @@
.theme-jihe { .theme-jihe {
$lightBlue: #3de8ff;
$textColor: #f4f4f4; $textColor: #f4f4f4;
$inputHeight: 26px; $inputHeight: 26px;
color: $textColor; color: $textColor;
.text-center{ text-align: center;}
.tc-lb{ color: $lightBlue;}
.el-tabs__item { .el-tabs__item {
color: $textColor; color: $textColor;
} }
.el-form-item { .el-form-item {
margin-bottom: 14px; margin-bottom: 8px;
} }
.el-form-item__label { .el-form-item__label {
@ -47,11 +50,14 @@
// 多选框组 // 多选框组
.el-checkbox-group { .el-checkbox-group {
// height: $inputHeight;
.el-checkbox__label { .el-checkbox__label {
color: $textColor; color: $textColor;
padding-left: 6px;
} }
.el-checkbox { .el-checkbox {
margin-right: 16px;
.el-checkbox__inner { .el-checkbox__inner {
width: 20px; width: 20px;
height: 20px; height: 20px;
@ -92,12 +98,17 @@
color: #fff; color: #fff;
&.is-disabled { &.is-disabled {
color: #006a99; color: #096d8c;
} }
} }
.el-input { .el-input {
margin: 0; margin: 0;
.el-input__inner{
height: calc($inputHeight + 2px);
background-color: #096d8c;
padding:0 28px;
}
} }
} }
// 单选按钮 // 单选按钮

2
ruoyi-ui/src/views/JiHeExpressway/components/InputSearch/index.vue

@ -165,7 +165,7 @@ export default {
"reset" "reset"
); );
}, },
async handleSearch() { async handleSearch(value) {
if (this.types === "input") { if (this.types === "input") {
let params = {}; let params = {};
params[this.params] = this.value; params[this.params] = this.value;

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

@ -10,12 +10,14 @@
<!-- </div> --> <!-- </div> -->
<WgtTitle :title="'情报板列表'"></WgtTitle> <WgtTitle :title="'情报板列表'"></WgtTitle>
<el-form <el-form
ref="form"
:model="form" :model="form"
class="partCon" class="formSearch" size="mini"
style="display: flex; flex-direction: column"
> >
<el-form-item style="margin-bottom: 12px"> <!-- class="partCon" -->
<!-- style="display: flex; flex-direction: column" -->
<!-- ref="form" -->
<el-form-item>
<el-col :span="12">
<el-select <el-select
v-model="form.selectedDirection" v-model="form.selectedDirection"
size="medium" size="medium"
@ -27,11 +29,44 @@
:key="item.dictValue" :key="item.dictValue"
:label="item.dictLabel" :label="item.dictLabel"
:value="item.dictValue" :value="item.dictValue"
@click.native="____changeDirection(item.dictValue)"
/> />
<!-- @click.native="____changeDirection(item.dictValue)" -->
</el-select> </el-select>
</el-col>
<el-col :span="11" :offset="1">
<el-checkbox-group v-model="form.status" style="height:26px">
<el-checkbox label="1">在线</el-checkbox>
<el-checkbox label="0">离线</el-checkbox>
</el-checkbox-group>
</el-col>
</el-form-item>
<el-form-item label="开始桩号:">
<el-col :span="2" class="text-center tc-lb">K</el-col>
<el-col :span="7">
<el-input-number v-model="form.stakeFrom[0]" style="width: 100%;" :precision="0" :min="0" :max="1000"></el-input-number>
</el-col>
<el-col :span="2" class="text-center tc-lb">+</el-col>
<el-col :span="7">
<el-input-number v-model="form.stakeFrom[1]" style="width: 100%;" :precision="0" :min="0" :max="1000"></el-input-number>
</el-col>
</el-form-item>
<el-form-item label="结束桩号:">
<el-col :span="2" class="text-center tc-lb">K</el-col>
<el-col :span="7">
<el-input-number v-model="form.stakeTo[0]" style="width: 100%;" :precision="0" :min="0" :max="1000"></el-input-number>
</el-col>
<el-col :span="2" class="text-center tc-lb">+</el-col>
<el-col :span="7">
<el-input-number v-model="form.stakeTo[1]" style="width: 100%;" :precision="0" :min="0" :max="1000"></el-input-number>
</el-col>
</el-form-item> </el-form-item>
<vuescroll :ops="scrollOptions" style="flex: 1; height: 0"> <el-form-item style="display: flex; justify-content: center;">
<el-button class="btnInfoBoard" type="add" @click.native="____onSearchDevice()">搜索</el-button>
<el-button type="publish" @click.native="____onResetSearchDevice()">重置</el-button>
</el-form-item>
</el-form>
<div style="flex:1; height: 0; padding:0 10px 10px">
<vuescroll :ops="scrollOptions">
<el-collapse <el-collapse
v-model="selectedSize" v-model="selectedSize"
accordion accordion
@ -46,7 +81,7 @@
> >
<div v-if="item.list.length > 0"> <div v-if="item.list.length > 0">
<el-checkbox-group <el-checkbox-group
class="checkbox" class="deviceList"
v-model="checkedDeviceIds" v-model="checkedDeviceIds"
:max="2" :max="2"
@change="____onSelectDevices" @change="____onSelectDevices"
@ -80,7 +115,7 @@
</el-collapse-item> </el-collapse-item>
</el-collapse> </el-collapse>
</vuescroll> </vuescroll>
</el-form> </div>
</div> </div>
<!-- ++++++++++中间部分单个设备++++++++++ --> <!-- ++++++++++中间部分单个设备++++++++++ -->
<div style="width: 37.8%" class="part partMiddle"> <div style="width: 37.8%" class="part partMiddle">
@ -357,13 +392,7 @@ export default {
deviceList: [], // deviceList: [], //
checkedDeviceIds: [], // checkedDeviceIds: [], //
templateAvailable: [], templateAvailable: [],
form: { form: {},
selectedDirection: "",
company: null,
mechanism: null,
localInfo: null,
selectedPixel: null,
}, //
supplier: null, // supplier: null, //
activeNames: [], // activeNames: [], //
tplCategory: [], // tplCategory: [], //
@ -408,6 +437,7 @@ export default {
// } // }
}, },
created() { created() {
this.____resetForm();
Promise.all([ Promise.all([
this.____initDirection(), this.____initDirection(),
this.____getBoardPixel(), this.____getBoardPixel(),
@ -501,9 +531,25 @@ export default {
this.____getIotBoard(); this.____getIotBoard();
}, },
____onSearchDevice(){
this.____getIotBoard();
},
____resetForm(){
this.form = {
selectedDirection: "",
status: ["0", "1"],
stakeFrom: [55, 378],
stakeTo: [208, 153]
}
},
____onResetSearchDevice(){
this.____resetForm();
this.____initDirection();
this.____getIotBoard();
},
// //
____getIotBoard() { ____getIotBoard() {
this.checkAll = false; // this.checkAll = false;
for (let key in this.boardSizeDic) { for (let key in this.boardSizeDic) {
this.boardSizeDic[key].list = []; this.boardSizeDic[key].list = [];
} }
@ -511,6 +557,13 @@ export default {
let param = { let param = {
direction: this.form.selectedDirection, direction: this.form.selectedDirection,
}; };
let stakeFrom = this.form.stakeFrom[0] * 1000 + this.form.stakeFrom[1];
let stakeTo = this.form.stakeTo[0] * 1000 + this.form.stakeTo[1];
let statusForm = _.cloneDeep(this.form.status);
if(statusForm.includes("0")){
statusForm.push(null)
}
if (IS_TESTING) { if (IS_TESTING) {
let res = testDeviceList; let res = testDeviceList;
res.data.forEach((item) => { res.data.forEach((item) => {
@ -534,7 +587,12 @@ export default {
item.otherConfig = JSON.parse(item.otherConfig); item.otherConfig = JSON.parse(item.otherConfig);
} }
item.iotDeviceId = item.iotDeviceId || "null_" + item.id; item.iotDeviceId = item.iotDeviceId || "null_" + item.id;
let stakeThis = +item?.stakeMark?.replace(/[K\+]/g, "") || -1;
if(stakeThis >= stakeFrom && stakeThis <= stakeTo && statusForm.includes(item.deviceState)){
this.boardSizeDic[item.otherConfig.screenSize].list.push(item); this.boardSizeDic[item.otherConfig.screenSize].list.push(item);
}
if (!this.selectedSize) { if (!this.selectedSize) {
this.selectedSize = item.otherConfig.screenSize; this.selectedSize = item.otherConfig.screenSize;
} }
@ -1109,10 +1167,15 @@ export default {
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
::v-deep .formSearch{
padding: 20px 20px 0;
.el-form-item__label{ color: #fff;}
}
.direction { .direction {
::v-deep .el-input { ::v-deep .el-input {
.el-input__inner { .el-input__inner {
font-size: 16px !important; font-size: 14px !important;
padding: 8px 5px; padding: 8px 5px;
} }
} }
@ -1291,6 +1354,7 @@ export default {
padding-bottom: 0px; padding-bottom: 0px;
} }
.deviceList{
::v-deep .el-checkbox__label { ::v-deep .el-checkbox__label {
display: flex !important; display: flex !important;
justify-content: space-between; justify-content: space-between;
@ -1318,6 +1382,7 @@ export default {
padding-top: 10px; padding-top: 10px;
margin: 0; margin: 0;
} }
}
::v-deep .el-table { ::v-deep .el-table {
caret-color: rgba(0, 0, 0, 0); caret-color: rgba(0, 0, 0, 0);
@ -1383,10 +1448,6 @@ export default {
padding-left: 5px; padding-left: 5px;
} }
::v-deep .el-checkbox + .el-checkbox {
margin-left: 0px !important;
}
::v-deep .el-collapse-item__header { ::v-deep .el-collapse-item__header {
background-color: #053b4f; background-color: #053b4f;
color: #fff; color: #fff;
@ -1410,10 +1471,6 @@ export default {
border: none; border: none;
} }
::v-deep .el-checkbox__label {
color: #ff0;
}
::v-deep .el-button--medium { ::v-deep .el-button--medium {
width: 96px; width: 96px;
height: 23px; height: 23px;

Loading…
Cancel
Save