mirror of
https://github.com/kerwincui/FastBee.git
synced 2025-10-14 20:25:58 +08:00
添加新闻的分类Id查询
This commit is contained in:
@@ -34,6 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<if test="isTop != null "> and is_top = #{isTop}</if>
|
<if test="isTop != null "> and is_top = #{isTop}</if>
|
||||||
<if test="isBanner != null "> and is_banner = #{isBanner}</if>
|
<if test="isBanner != null "> and is_banner = #{isBanner}</if>
|
||||||
<if test="categoryName != null and categoryName != ''"> and category_name like concat('%', #{categoryName}, '%')</if>
|
<if test="categoryName != null and categoryName != ''"> and category_name like concat('%', #{categoryName}, '%')</if>
|
||||||
|
<if test="categoryId != null"> and category_Id = #{categoryId})</if>
|
||||||
<if test="status != null "> and status = #{status}</if>
|
<if test="status != null "> and status = #{status}</if>
|
||||||
</where>
|
</where>
|
||||||
order by create_time desc
|
order by create_time desc
|
||||||
|
@@ -92,7 +92,7 @@
|
|||||||
<!---设备状态(影子模式,value值不会更新)-->
|
<!---设备状态(影子模式,value值不会更新)-->
|
||||||
<el-descriptions :column="1" border size="mini" v-if="deviceInfo.isShadow==1 && deviceInfo.status!=3">
|
<el-descriptions :column="1" border size="mini" v-if="deviceInfo.isShadow==1 && deviceInfo.status!=3">
|
||||||
<template slot="title">
|
<template slot="title">
|
||||||
<span style="font-size:14px;color:#606266;">设备处于离线状态</span>
|
<span style="font-size:14px;color:#606266;">设备离线时状态</span>
|
||||||
</template>
|
</template>
|
||||||
<!-- bool类型-->
|
<!-- bool类型-->
|
||||||
<el-descriptions-item v-for="(item,index) in deviceInfo.boolList" :key="index">
|
<el-descriptions-item v-for="(item,index) in deviceInfo.boolList" :key="index">
|
||||||
@@ -180,7 +180,6 @@ import mqttClient from './mqtt-client.vue'
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "running-status",
|
name: "running-status",
|
||||||
dicts: ['iot_yes_no'],
|
|
||||||
components: {
|
components: {
|
||||||
mqttClient
|
mqttClient
|
||||||
},
|
},
|
||||||
@@ -242,7 +241,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
/** 发布物模型 类型(1=属性,2=功能) */
|
/** 发布物模型 类型(1=属性,2=功能) */
|
||||||
publishThingsModel(device, model) {
|
publishThingsModel(device, model) {
|
||||||
// 获取缓存的Json物模型
|
// TODO 创建的时候过去一次即可。 获取缓存的Json物模型
|
||||||
cacheJsonThingsModel(device.productId).then(response => {
|
cacheJsonThingsModel(device.productId).then(response => {
|
||||||
let thingsModel = JSON.parse(response.data);
|
let thingsModel = JSON.parse(response.data);
|
||||||
let type = 0;
|
let type = 0;
|
||||||
|
Reference in New Issue
Block a user