Commit c1dc4d83 authored by co_dengxiongwen's avatar co_dengxiongwen

tj

parent 858dcd71
...@@ -84,7 +84,7 @@ export default { ...@@ -84,7 +84,7 @@ export default {
// 人工模式 // 人工模式
currentMode: { currentMode: {
type: Number, type: Number,
default: null default: 0
} }
}, },
data() { data() {
...@@ -131,13 +131,13 @@ export default { ...@@ -131,13 +131,13 @@ export default {
color: #32a5ea !important; color: #32a5ea !important;
background-color: red !important; background-color: red !important;
} }
.table-row-mode{ .table-row-mode {
background: rgb(245, 214, 155); background: rgb(245, 214, 155);
} }
.table-row-mechanical{ .table-row-mechanical {
background: #71e6e6; background: #71e6e6;
} }
.table-row-natural{ .table-row-natural {
background: #b5f096; background: #b5f096;
} }
} }
......
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
:showOpr="true" :showOpr="true"
:opNum="3" :opNum="3"
:showStateColor="true" :showStateColor="true"
:currentMode="curModel" :currentMode="currentModel"
> >
<template v-slot:operation="scope"> <template v-slot:operation="scope">
<el-button <el-button
...@@ -381,24 +381,26 @@ export default { ...@@ -381,24 +381,26 @@ export default {
} }
}, },
deep: true deep: true
},
currentModel: {
handler(n, o) {
if (n) {
this.setModel()
}
},
deep: true
} }
// currentModel: {
// handler(n, o) {
// if (n) {
// this.setModel()
// }
// },
// deep: true
// }
}, },
mounted() { mounted() {
this.getDataList() this.getDataList()
this.getAllHcdt() this.getAllHcdt()
// this.setModel()
}, },
methods: { methods: {
setModel() { // setModel() {
this.curModel = this.currentModel // this.curModel = this.currentModel
}, // console.log('curModel:', this.curModel)
// },
// 获取数据列表 // 获取数据列表
getDataList(page, size) { getDataList(page, size) {
this.$http({ this.$http({
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
:showOpr="true" :showOpr="true"
:opNum="3" :opNum="3"
:showStateColor="true" :showStateColor="true"
:currentMode="curModel" :currentMode="currentModel"
> >
<template v-slot:operation="scope"> <template v-slot:operation="scope">
<el-button type="text" @click="statusHandle">开启</el-button> <el-button type="text" @click="statusHandle">开启</el-button>
...@@ -177,23 +177,23 @@ export default { ...@@ -177,23 +177,23 @@ export default {
} }
}, },
deep: true deep: true
},
currentModel: {
handler(n, o) {
if (n) {
this.setModel()
}
},
deep: true
} }
// currentModel: {
// handler(n, o) {
// if (n) {
// this.setModel()
// }
// },
// deep: true
// }
}, },
mounted() { mounted() {
this.getDataList() this.getDataList()
}, },
methods: { methods: {
setModel() { // setModel() {
this.curModel = this.currentModel // this.curModel = this.currentModel
}, // },
// 获取数据列表 // 获取数据列表
getDataList(page, size) { getDataList(page, size) {
this.$http({ 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