Commit c1dc4d83 authored by co_dengxiongwen's avatar co_dengxiongwen

tj

parent 858dcd71
......@@ -84,7 +84,7 @@ export default {
// 人工模式
currentMode: {
type: Number,
default: null
default: 0
}
},
data() {
......@@ -131,13 +131,13 @@ export default {
color: #32a5ea !important;
background-color: red !important;
}
.table-row-mode{
.table-row-mode {
background: rgb(245, 214, 155);
}
.table-row-mechanical{
.table-row-mechanical {
background: #71e6e6;
}
.table-row-natural{
.table-row-natural {
background: #b5f096;
}
}
......
......@@ -149,7 +149,7 @@
:showOpr="true"
:opNum="3"
:showStateColor="true"
:currentMode="curModel"
:currentMode="currentModel"
>
<template v-slot:operation="scope">
<el-button
......@@ -381,24 +381,26 @@ export default {
}
},
deep: true
},
currentModel: {
handler(n, o) {
if (n) {
this.setModel()
}
},
deep: true
}
// currentModel: {
// handler(n, o) {
// if (n) {
// this.setModel()
// }
// },
// deep: true
// }
},
mounted() {
this.getDataList()
this.getAllHcdt()
// this.setModel()
},
methods: {
setModel() {
this.curModel = this.currentModel
},
// setModel() {
// this.curModel = this.currentModel
// console.log('curModel:', this.curModel)
// },
// 获取数据列表
getDataList(page, size) {
this.$http({
......
......@@ -18,7 +18,7 @@
:showOpr="true"
:opNum="3"
:showStateColor="true"
:currentMode="curModel"
:currentMode="currentModel"
>
<template v-slot:operation="scope">
<el-button type="text" @click="statusHandle">开启</el-button>
......@@ -177,23 +177,23 @@ export default {
}
},
deep: true
},
currentModel: {
handler(n, o) {
if (n) {
this.setModel()
}
},
deep: true
}
// currentModel: {
// handler(n, o) {
// if (n) {
// this.setModel()
// }
// },
// deep: true
// }
},
mounted() {
this.getDataList()
},
methods: {
setModel() {
this.curModel = this.currentModel
},
// setModel() {
// this.curModel = this.currentModel
// },
// 获取数据列表
getDataList(page, size) {
this.$http({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment