jsmapChange&bigScreen

This commit is contained in:
shijing 2022-07-04 17:17:12 +08:00
parent 57f192e39b
commit d0fa208280
12 changed files with 1267 additions and 259 deletions

BIN
public/img/alarm_bg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

BIN
public/img/b_quiet.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 617 B

BIN
public/img/b_ring.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 319 B

BIN
public/img/car.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 714 B

BIN
public/img/rotate_line.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 803 B

BIN
public/img/round.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 B

BIN
public/img/speaker.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
public/img/user.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 742 B

File diff suppressed because one or more lines are too long

View File

@ -9,25 +9,34 @@
</div> </div>
</el-header> </el-header>
<el-main class="nopadding"> <el-main class="nopadding">
<scTable ref="table" :apiObj="apiObj" row-key="id" @selection-change="selectionChange" stripe @resetQuery="resetQuery" > <scTable ref="table" :apiObj="apiObj" row-key="id" @selection-change="selectionChange" stripe
@resetQuery="resetQuery">
<el-table-column type="selection" width="50"></el-table-column> <el-table-column type="selection" width="50"></el-table-column>
<el-table-column label="序号" type="index" width="50"></el-table-column> <el-table-column label="序号" type="index" width="50"></el-table-column>
<el-table-column label="设备编号" prop="deviceCode" min-width="100"></el-table-column> <el-table-column label="设备编号" prop="deviceCode" min-width="100"></el-table-column>
<el-table-column label="通道编号" prop="channelCode" min-width="100"></el-table-column> <el-table-column label="通道编号" prop="channelCode" min-width="100"></el-table-column>
<el-table-column label="通道名称" prop="channelName" min-width="150"></el-table-column> <el-table-column label="通道名称" prop="channelName" min-width="150"></el-table-column>
<el-table-column label="通道状态" prop="stat" min-width="150"></el-table-column> <el-table-column label="通道状态" prop="stat" min-width="150">
<el-table-column label="通道类型" min-width="100"> <template #default="scope">
<template #default="scope">{{scope.row.channelType}}</template> <span v-if="scope.row.stat===0">不启用</span>
<span v-else>启用</span>
</template>
</el-table-column> </el-table-column>
<el-table-column label="设备类型" min-width="100"> <el-table-column label="摄像头类型" min-width="100">
<template #default="scope">{{scope.row.cameraType}}</template> <template #default="scope">{{deviceTypes[scope.row.cameraType]}}</template>
</el-table-column> </el-table-column>
<el-table-column label="是否在线" prop="isOnline" min-width="180"></el-table-column> <el-table-column label="是否在线" prop="isOnline" min-width="180">
<el-table-column label="创建时间" prop="createTime" width="160"></el-table-column> <template #default="scope">
<el-table-column label="操作" fixed="right" align="center" width="160"> <span v-if="scope.row.isOnline===0">离线</span>
<span v-else>在线</span>
</template>
</el-table-column>
<el-table-column label="创建时间" prop="createTime" min-width="160"></el-table-column>
<el-table-column label="操作" fixed="right" align="center" width="260">
<template #default="scope"> <template #default="scope">
<el-button-group> <el-button-group>
<el-button text type="primary" size="small" @click="handlePosition(scope.row)">标记位置</el-button> <el-button text type="primary" size="small" @click="handlePosition(scope.row)">标记位置
</el-button>
<el-button text type="primary" size="small" @click="handleView(scope.row)">实时监控</el-button> <el-button text type="primary" size="small" @click="handleView(scope.row)">实时监控</el-button>
<el-popconfirm title="确定删除吗?" @confirm="handleDel(scope.row, scope.$index)"> <el-popconfirm title="确定删除吗?" @confirm="handleDel(scope.row, scope.$index)">
<template #reference> <template #reference>
@ -53,14 +62,16 @@
<el-button @click="limitedVisible = false">关闭</el-button> <el-button @click="limitedVisible = false">关闭</el-button>
</template> </template>
</el-dialog> </el-dialog>
<video-channel-view v-if="dialogSave" ref="saveDialog" :channelType="60" :channelCode="channelCode" :channelName="channelName" @closed="dialogSave=false"></video-channel-view> <channel-view v-if="dialogSave" ref="saveDialog" :channelType="60" :channelCode="channelCode"
:channelName="channelName" @closed="dialogSave=false"></channel-view>
</template> </template>
<script> <script>
import videoChannelView from './vchannel_view' import channelView from './vchannel_view'
export default { export default {
name: 'monitor', name: 'monitor',
components: { components: {
videoChannelView channelView
}, },
data() { data() {
return { return {
@ -83,7 +94,11 @@
}, },
code: 'video_realtime' code: 'video_realtime'
}, },
deviceTypes: {
'1': '枪机',
'2': '球机',
'3': '半球'
}
} }
}, },
created() { created() {

View File

@ -200,6 +200,7 @@
that.form.location = pixel;*/ that.form.location = pixel;*/
this.form.code = this.channelCode; this.form.code = this.channelCode;
this.form.type = this.channelType; this.form.type = this.channelType;
this.form.name = this.channelName;
that.$API.am.tdevice.labelLocation.req(that.form) that.$API.am.tdevice.labelLocation.req(that.form)
.then(res => { .then(res => {
that.isSaveing = false; that.isSaveing = false;

File diff suppressed because it is too large Load Diff