|
@ -31,7 +31,7 @@ |
|
|
<!-- 模板内容 --> |
|
|
<!-- 模板内容 --> |
|
|
<BoardPreview class="boardPreview" :boardWH="selectedSize" :tpl="itm"></BoardPreview> |
|
|
<BoardPreview class="boardPreview" :boardWH="selectedSize" :tpl="itm"></BoardPreview> |
|
|
<!-- 操作按钮 --> |
|
|
<!-- 操作按钮 --> |
|
|
<div class="infoBtnBox" v-hasPremi="['business:home:boardTemplate']"> |
|
|
<div class="infoBtnBox" v-if="check(['business:home:boardTemplate'])"> |
|
|
<el-tooltip content="编辑" placement="top"> |
|
|
<el-tooltip content="编辑" placement="top"> |
|
|
<p @click="____onEditBoardItem(itm, indx)" class="btn btnEdit"></p> |
|
|
<p @click="____onEditBoardItem(itm, indx)" class="btn btnEdit"></p> |
|
|
</el-tooltip> |
|
|
</el-tooltip> |
|
@ -84,8 +84,8 @@ |
|
|
</el-tabs> |
|
|
</el-tabs> |
|
|
</div> |
|
|
</div> |
|
|
<div class="dialogContent_bottom_btn"> |
|
|
<div class="dialogContent_bottom_btn"> |
|
|
<el-button v-hasPremi="['business:home:board']" class="btnInfoBoard" type="add" @click.native="____onAddDeviceItem()" >添加信息</el-button> |
|
|
<el-button v-hasPermi="['business:home:board']" class="btnInfoBoard" type="add" @click.native="____onAddDeviceItem()" >添加信息</el-button> |
|
|
<el-button v-hasPremi="['business:home:boardTemplate']" class="btnInfoBoard" type="publish" @click="____publishInfo" :disabled="selectedBdMsg.length <= 0 || |
|
|
<el-button v-hasPermi="['business:home:boardTemplate']" class="btnInfoBoard" type="publish" @click="____publishInfo" :disabled="selectedBdMsg.length <= 0 || |
|
|
(isMultiControl && selectItems.length === 0) || |
|
|
(isMultiControl && selectItems.length === 0) || |
|
|
(!isMultiControl && [undefined, null].indexOf(selectedDevice.iotDeviceId) !== -1 |
|
|
(!isMultiControl && [undefined, null].indexOf(selectedDevice.iotDeviceId) !== -1 |
|
|
) |
|
|
) |
|
@ -176,6 +176,7 @@ import CameraShower from "@screen/components/CameraShower"; |
|
|
|
|
|
|
|
|
import InfoBoard from "@screen/mixins/InfoBoard"; |
|
|
import InfoBoard from "@screen/mixins/InfoBoard"; |
|
|
import LineChart from "../LineChart/index.vue"; |
|
|
import LineChart from "../LineChart/index.vue"; |
|
|
|
|
|
import { checkPermi } from "@/utils/permission.js"; |
|
|
import { batchFunctions } from "@screen/pages/Home/components/RoadAndEvents/utils/httpList.js"; |
|
|
import { batchFunctions } from "@screen/pages/Home/components/RoadAndEvents/utils/httpList.js"; |
|
|
import { multiResultShow } from "@screen/utils/common"; |
|
|
import { multiResultShow } from "@screen/utils/common"; |
|
|
export default { |
|
|
export default { |
|
@ -282,6 +283,9 @@ export default { |
|
|
// } |
|
|
// } |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
check(arr){ |
|
|
|
|
|
return checkPermi(arr); |
|
|
|
|
|
}, |
|
|
// 获取信息模板分类 |
|
|
// 获取信息模板分类 |
|
|
async ____getTemplateCategory() { |
|
|
async ____getTemplateCategory() { |
|
|
const res = await this.getDicts("iot_template_category"); |
|
|
const res = await this.getDicts("iot_template_category"); |
|
|