大屏设计

This commit is contained in:
yanran200730
2021-12-24 17:42:43 +08:00
parent 4a7895b0e2
commit ce8be993fe
3 changed files with 5 additions and 4 deletions

View File

@@ -169,6 +169,7 @@
<el-select size="mini" v-model="currLayout.monitorType" placeholder="请选择" clearable>
<el-option label="中国移动" value="cmcc"></el-option>
<el-option label="海康威视" value="hik"></el-option>
<el-option label="大华" value="dahua"></el-option>
</el-select>
</div>
</div>

View File

@@ -16,7 +16,7 @@
</vue-json-editor>
</div>
</ai-dialog>
<div class="layout-config__group" v-if="options.monitorType !== 'hik'">
<div class="layout-config__group" v-if="options.monitorType !== 'hik' && options.monitorType !== 'dahua'">
<h2>基础设置</h2>
<div class="layout-config__item">
<label>数据类型</label>
@@ -64,10 +64,10 @@
</div>
</template>
</div>
<div class="layout-config__group" v-if="options.monitorType === 'hik'">
<div class="layout-config__group" v-if="options.monitorType === 'hik' || options.monitorType === 'dahua'">
<h2>基础设置</h2>
<div class="layout-config__item">
<label>视频ID</label>
<label>视频地址</label>
<div class="layout-config__item--right">
<el-input size="mini" v-model="options.src"></el-input>
</div>

View File

@@ -82,7 +82,7 @@
if (item.dataType !== 'staticData' && ((item.type.indexOf('Chart') > -1) || item.type === 'table' || item.type === 'summary')) {
this.getSourceData(item, index)
}
if (item.type === 'monitor' && item.monitorType !== 'hik') {
if (item.type === 'monitor' && item.monitorType !== 'hik' && item.monitorType !== 'dahua') {
this.instance.post(`${this.urlPrefix}/appzyvideoequipment/getWebSdkUrl?deviceId=${item.moniterId}`).then(res => {
if (res.code == 0) {
this.$set(this.componentList[index], 'src', JSON.parse(res.data).url)