Commit ad432c74 authored by 高超凡's avatar 高超凡

tj

parent dddbd2ae
...@@ -94,7 +94,7 @@ export default { ...@@ -94,7 +94,7 @@ export default {
// 不同状态颜色 // 不同状态颜色
differentStateColor({ row, rowIndex }) { differentStateColor({ row, rowIndex }) {
if (this.showStateColor == false) return if (this.showStateColor == false) return
if (row.modeTypes === null || this.currentMode === null) { if (row.modeTypes === null || this.currentMode === 0) {
// 原有 // 原有
return '' return ''
} else if (row.modeTypes.includes(1) && this.currentMode == '1') { } else if (row.modeTypes.includes(1) && this.currentMode == '1') {
......
...@@ -102,7 +102,8 @@ ...@@ -102,7 +102,8 @@
</div> </div>
</div> </div>
<!-- table --> <!-- table -->
<table-list :tableColums='tableColums' :tableData='tableData' :showOpr='true' :opNum='3' :showStateColor='true' :currentMode='currentId && active ? currentId : null'> <!-- <table-list :tableColums='tableColums' :tableData='tableData' :showOpr='true' :opNum='3' :showStateColor='true' :currentMode='currentId && active ? currentId : null'> -->
<table-list :tableColums='tableColums' :tableData='tableData' :showOpr='true' :opNum='3' :showStateColor='true' :currentMode='currentId && active ? currentId : 0'>
<template v-slot:operation="scope"> <template v-slot:operation="scope">
<el-button <el-button
type="text" type="text"
...@@ -291,6 +292,7 @@ export default { ...@@ -291,6 +292,7 @@ export default {
tableColums: tableColumsOne, tableColums: tableColumsOne,
isSaving: 1, //节能 isSaving: 1, //节能
isOpen: 2, //定时开关 isOpen: 2, //定时开关
currentModel: this.$store.state.d2admin.paramsList.list.syBean.currentModel, //人工模式
formData: { formData: {
temperature: '', temperature: '',
taskId: '', taskId: '',
...@@ -577,6 +579,8 @@ export default { ...@@ -577,6 +579,8 @@ export default {
this.currentId = id this.currentId = id
} }
}) })
console.log('currentModel'+this.currentModel);
}, },
statusHandle() {}, statusHandle() {},
// 人工节能 // 人工节能
......
...@@ -12,7 +12,13 @@ ...@@ -12,7 +12,13 @@
></el-tab-pane> ></el-tab-pane>
</el-tabs> </el-tabs>
<div style="margin-top: 20px"></div> <div style="margin-top: 20px"></div>
<en-table <table-list :tableColums='tableColums' :tableData='tableData' :showOpr='true' :opNum='3' :showStateColor='true' :currentMode='currentModel'>
<template v-slot:operation="scope">
<el-button type="text" @click="statusHandle">开启</el-button>
<el-button type="text" @click="statusHandle">关闭</el-button>
</template>
</table-list>
<!-- <en-table
:tableData="tableData" :tableData="tableData"
:tableColums="tableColums" :tableColums="tableColums"
:isShowOp="true" :isShowOp="true"
...@@ -22,7 +28,7 @@ ...@@ -22,7 +28,7 @@
<el-button type="text" @click="statusHandle">开启</el-button> <el-button type="text" @click="statusHandle">开启</el-button>
<el-button type="text" @click="statusHandle">关闭</el-button> <el-button type="text" @click="statusHandle">关闭</el-button>
</template> </template>
</en-table> </en-table> -->
</div> </div>
</cardList> </cardList>
<table-pagination <table-pagination
...@@ -38,13 +44,17 @@ import enTabs from '../../components/enTabs' ...@@ -38,13 +44,17 @@ import enTabs from '../../components/enTabs'
import enTable from '../../components/enTable' import enTable from '../../components/enTable'
import { tableColumsOne, tableColumsTwo } from './config' import { tableColumsOne, tableColumsTwo } from './config'
import tablePagination from '@/pages/components/tablePagination' import tablePagination from '@/pages/components/tablePagination'
import tableList from '@/pages/components/tableList'
export default { export default {
name: 'officeAreaControl', name: 'officeAreaControl',
components: { components: {
cardList, cardList,
enTabs, enTabs,
enTable, enTable,
tablePagination tablePagination,
tableList,
}, },
data() { data() {
...@@ -55,6 +65,7 @@ export default { ...@@ -55,6 +65,7 @@ export default {
activeTab: 'b6af764f2a6e454490a6b1b3c9057e57', activeTab: 'b6af764f2a6e454490a6b1b3c9057e57',
tableData: [], tableData: [],
tableColums: tableColumsOne, tableColums: tableColumsOne,
currentModel: this.$store.state.d2admin.paramsList.list.syBean.currentModel, //人工模式
officeTabList: [ officeTabList: [
{ {
id: 'b6af764f2a6e454490a6b1b3c9057e57', id: 'b6af764f2a6e454490a6b1b3c9057e57',
...@@ -121,6 +132,7 @@ export default { ...@@ -121,6 +132,7 @@ export default {
}, },
mounted() { mounted() {
this.getDataList() this.getDataList()
console.log(this.currentModel);
}, },
methods: { methods: {
// 获取数据列表 // 获取数据列表
......
...@@ -386,6 +386,7 @@ export default { ...@@ -386,6 +386,7 @@ export default {
text: new Text({ text: new Text({
text: name, // 添加文字描述 text: name, // 添加文字描述
font: 'bold 14px font-size', // 设置字体大小 font: 'bold 14px font-size', // 设置字体大小
// padding: 'left',
fill: new Fill({ fill: new Fill({
// 设置字体颜色 // 设置字体颜色
color: 'black', color: 'black',
......
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