|
|
@ -34,17 +34,29 @@ |
|
|
|
<el-tabs v-model="activeTab" @tab-click="tabClickFn"> |
|
|
|
<el-tab-pane label="详情信息" name="first"> |
|
|
|
<div class="show_bottom_tab_box"> |
|
|
|
<div class="show_bottom_tab_item" v-for="item in tabDataInfoList" :key="item.id"> |
|
|
|
<div class="show_bottom_tab_item"> |
|
|
|
<div class="show_bottom_tab_item_l">设备名称</div> |
|
|
|
<div class="show_bottom_tab_item_r">{{ device.deviceName }}</div> |
|
|
|
</div> |
|
|
|
<div class="show_bottom_tab_item"> |
|
|
|
<div class="show_bottom_tab_item_l">设备桩号</div> |
|
|
|
<div class="show_bottom_tab_item_r">{{ device.stakeMarkId }}</div> |
|
|
|
</div> |
|
|
|
<div class="show_bottom_tab_item"> |
|
|
|
<div class="show_bottom_tab_item_l">屏幕像素</div> |
|
|
|
<div class="show_bottom_tab_item_r">{{ JSON.parse(device.otherConfig).screenSize }}</div> |
|
|
|
</div> |
|
|
|
<!-- <div class="show_bottom_tab_item" v-for="item in tabDataInfoList" :key="item.id"> |
|
|
|
<div class="show_bottom_tab_item_l">{{ item.tit }}: </div> |
|
|
|
<div class="show_bottom_tab_item_r" :style="{ 'color': item.col }"> {{ item.txt }}</div> |
|
|
|
</div> |
|
|
|
</div> --> |
|
|
|
</div> |
|
|
|
</el-tab-pane> |
|
|
|
<el-tab-pane label="设备参数" name="second">设备参数</el-tab-pane> |
|
|
|
</el-tabs> |
|
|
|
</div> |
|
|
|
<div class="dialogContent_bottom_btn"> |
|
|
|
<div class="show_bottom_btn_add" @click="addMoDataInfoFn(2, 2)">添加信息</div> |
|
|
|
<div class="show_bottom_btn_add" @click="____onAddDeviceItem">添加信息</div> |
|
|
|
<div class="show_bottom_btn_del" @click="InformationReleaseFn">信息发布</div> |
|
|
|
</div> |
|
|
|
<div class="sideSwitch" @click="showSidePanel"> |
|
|
@ -405,18 +417,34 @@ export default { |
|
|
|
// 新增待下发 |
|
|
|
____onAddToDevice(item) { |
|
|
|
let arr = this.selectedSize.split("*"); |
|
|
|
item.origin = { |
|
|
|
displayAreaWidth: +arr[0], |
|
|
|
displayAreaHeight: +arr[1] |
|
|
|
} |
|
|
|
this.editDialog = { |
|
|
|
visible: true, |
|
|
|
mode: "toDevice", |
|
|
|
type: "template", |
|
|
|
tpl: item, |
|
|
|
origin: { |
|
|
|
displayAreaWidth: +arr[0], |
|
|
|
displayAreaHeight: +arr[1] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
____onAddDeviceItem() { |
|
|
|
let arr = this.selectedSize.split("*"); |
|
|
|
this.editDialog = { |
|
|
|
visible: true, |
|
|
|
mode: "add", |
|
|
|
type: "device", |
|
|
|
tpl: { |
|
|
|
"textContent": "", |
|
|
|
origin : { |
|
|
|
displayAreaWidth: +arr[0], |
|
|
|
displayAreaHeight: +arr[1] |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -551,6 +579,7 @@ export default { |
|
|
|
type: 'warning' |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
return ; |
|
|
|
let loading = this.$loading({ |
|
|
|
lock: true, |
|
|
|
text: 'Loading', |
|
|
|