develop_cloud #1

Merged
dashixiong merged 234 commits from develop_cloud into main-cloud 2026-02-11 02:06:04 +00:00
107 changed files with 11859 additions and 30 deletions
Showing only changes of commit 506cf28c96 - Show all commits

View File

@ -62,6 +62,7 @@ export default {
}, },
dataUnit:{ dataUnit:{
handler(newVal,oldVal){ handler(newVal,oldVal){
if(!this.show) return
console.log('wacth到了dataUnit的变化',newVal,oldVal) console.log('wacth到了dataUnit的变化',newVal,oldVal)
this.$nextTick(()=>{ this.$nextTick(()=>{
this.$refs.dateTimeSelect.init() this.$refs.dateTimeSelect.init()

View File

@ -11,11 +11,14 @@
</div> </div>
<el-row> <el-row>
<el-col v-for="(tempDataItem,tempDataIndex) in tempData" :key="tempDataIndex+'ylTempData'" :span="8"> <el-col v-for="(tempDataItem,tempDataIndex) in tempData" :key="tempDataIndex+'ylTempData'" :span="8">
<span class="pointer" @click="showChart(tempDataItem.title,item.deviceName,item.deviceId)">
{{tempDataItem.title}}{{item[tempDataItem.attr]}}<span v-html="tempDataItem.unit"></span> {{tempDataItem.title}}{{item[tempDataItem.attr]}}<span v-html="tempDataItem.unit"></span>
</span>
</el-col> </el-col>
</el-row> </el-row>
</el-card> </el-card>
<el-empty v-show="list.length<=0" :image-size="200"></el-empty> <el-empty v-show="list.length<=0" :image-size="200"></el-empty>
<point-chart ref="pointChart" :site-id="siteId"/>
</div> </div>
</template> </template>
@ -24,9 +27,11 @@
import getQuerySiteId from "@/mixins/ems/getQuerySiteId"; import getQuerySiteId from "@/mixins/ems/getQuerySiteId";
import {getCoolingDataList} from '@/api/ems/dzjk' import {getCoolingDataList} from '@/api/ems/dzjk'
import intervalUpdate from "@/mixins/ems/intervalUpdate"; import intervalUpdate from "@/mixins/ems/intervalUpdate";
import pointChart from "./../PointChart.vue";
export default { export default {
name:'DzjkSbjkYl', name:'DzjkSbjkYl',
mixins:[getQuerySiteId,intervalUpdate], mixins:[getQuerySiteId,intervalUpdate],
components:{pointChart},
data() { data() {
return { return {
loading:false, loading:false,
@ -43,6 +48,10 @@ export default {
} }
}, },
methods:{ methods:{
showChart(pointName,deviceName,deviceId){
console.log('点击查询图表',pointName,deviceName,deviceId)
pointName && this.$refs.pointChart.showChart({pointName,deviceName,deviceId})
},
updateData(){ updateData(){
this.loading = true this.loading = true
getCoolingDataList(this.siteId).then(response => { getCoolingDataList(this.siteId).then(response => {