|
@@ -36,8 +36,8 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div style="margin-top: 50px; height: 85%" @contextmenu="contextmenu">
|
|
<div style="margin-top: 50px; height: 85%" @contextmenu="contextmenu">
|
|
- <el-scrollbar>
|
|
|
|
- <div class="scoll">
|
|
|
|
|
|
+ <div class="scoll currentScroll">
|
|
|
|
+ <div class="currentScroll" style="height: 100%; overflow-y: scroll">
|
|
<div class="matrix" v-if="startList.length > 0">
|
|
<div class="matrix" v-if="startList.length > 0">
|
|
<div class="problemTitle">启动</div>
|
|
<div class="problemTitle">启动</div>
|
|
<MatrixBlock
|
|
<MatrixBlock
|
|
@@ -75,7 +75,7 @@
|
|
</MatrixBlock>
|
|
</MatrixBlock>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- </el-scrollbar>
|
|
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<div v-if="current == 1" class="send" @click="handleSend">发送</div>
|
|
<div v-if="current == 1" class="send" @click="handleSend">发送</div>
|
|
<!-- <div class="success" v-if="showFlag&¤t===0">指令发送成功</div> -->
|
|
<!-- <div class="success" v-if="showFlag&¤t===0">指令发送成功</div> -->
|
|
@@ -112,7 +112,7 @@ export default {
|
|
created: function () {
|
|
created: function () {
|
|
this.initData();
|
|
this.initData();
|
|
this.suggestion();
|
|
this.suggestion();
|
|
- // this.getControlType();
|
|
|
|
|
|
+ this.getControlType();
|
|
},
|
|
},
|
|
emits: ["parentRun"],
|
|
emits: ["parentRun"],
|
|
props: {
|
|
props: {
|
|
@@ -145,7 +145,7 @@ export default {
|
|
stationName: "",
|
|
stationName: "",
|
|
// 定时器
|
|
// 定时器
|
|
timer: "",
|
|
timer: "",
|
|
- // controlTypeList: [],
|
|
|
|
|
|
+ controlTypeList: [],
|
|
controlErorCodes: [
|
|
controlErorCodes: [
|
|
"控制成功",
|
|
"控制成功",
|
|
"控制命令发送失败",
|
|
"控制命令发送失败",
|
|
@@ -172,13 +172,13 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- // getControlType() {
|
|
|
|
- // api.getControlType().then((res) => {
|
|
|
|
- // if (res) {
|
|
|
|
- // this.controlTypeList = res.data;
|
|
|
|
- // }
|
|
|
|
- // });
|
|
|
|
- // },
|
|
|
|
|
|
+ getControlType() {
|
|
|
|
+ api.getControlType().then((res) => {
|
|
|
|
+ if (res) {
|
|
|
|
+ this.controlTypeList = res.data;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
control(current) {
|
|
control(current) {
|
|
this.current = current === 0 ? current : current === 1 ? current : 1;
|
|
this.current = current === 0 ? current : current === 1 ? current : 1;
|
|
this.suggestion();
|
|
this.suggestion();
|
|
@@ -769,7 +769,7 @@ export default {
|
|
"$store.getters.current": {
|
|
"$store.getters.current": {
|
|
handler: function (json) {
|
|
handler: function (json) {
|
|
this.current = json;
|
|
this.current = json;
|
|
- // this.getControlType();
|
|
|
|
|
|
+ this.getControlType();
|
|
if (json === 0) {
|
|
if (json === 0) {
|
|
let dateList = [];
|
|
let dateList = [];
|
|
this.titleList.forEach((item) => {
|
|
this.titleList.forEach((item) => {
|
|
@@ -828,6 +828,7 @@ export default {
|
|
|
|
|
|
.body .scoll {
|
|
.body .scoll {
|
|
height: 91%;
|
|
height: 91%;
|
|
|
|
+ overflow-y: scroll;
|
|
}
|
|
}
|
|
|
|
|
|
.title {
|
|
.title {
|