1078-添加接口的前端UI

This commit is contained in:
panlinlin
2024-06-10 00:48:18 +08:00
parent f564ff0aba
commit c0dea69839
2 changed files with 51 additions and 2 deletions

View File

@@ -74,6 +74,8 @@
设备录像</el-dropdown-item>
<el-dropdown-item command="cloudRecords" v-bind:disabled="device == null || device.online === 0" >
云端录像</el-dropdown-item>
<el-dropdown-item command="shooting" v-bind:disabled="device == null || device.online === 0" >
立即拍摄</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</template>
@@ -225,6 +227,8 @@ export default {
this.queryRecords(itemData)
}else if (command === "cloudRecords") {
this.queryCloudRecords(itemData)
}else {
this.$message.info("尚不支持");
}
},
queryRecords: function (itemData) {

View File

@@ -52,7 +52,7 @@
</div>
</template>
</el-table-column>
<el-table-column label="操作" min-width="280" fixed="right">
<el-table-column label="操作" min-width="340" fixed="right">
<template slot-scope="scope">
<el-divider direction="vertical"></el-divider>
<el-button type="text" size="medium" icon="el-icon-video-camera"
@@ -64,6 +64,42 @@
<el-button size="medium" icon="el-icon-delete" type="text" @click="deleteDevice(scope.row)"
style="color: #f56c6c">删除
</el-button>
<el-divider direction="vertical"></el-divider>
<el-dropdown @command="(command)=>{moreClick(command, scope.row)}">
<el-button size="medium" type="text" >
更多功能<i class="el-icon-arrow-down el-icon--right"></i>
</el-button>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item command="params" v-bind:disabled="!scope.row.status">
终端参数</el-dropdown-item>
<el-dropdown-item command="attribute" v-bind:disabled="!scope.row.status">
终端属性</el-dropdown-item>
<el-dropdown-item command="connection" v-bind:disabled="!scope.row.status" >
终端连接</el-dropdown-item>
<el-dropdown-item command="linkDetection" v-bind:disabled="!scope.row.status" >
链路检测</el-dropdown-item>
<el-dropdown-item command="position" v-bind:disabled="!scope.row.status" >
位置信息</el-dropdown-item>
<el-dropdown-item command="textMsg" v-bind:disabled="!scope.row.status" >
文本信息</el-dropdown-item>
<el-dropdown-item command="telephoneCallback" v-bind:disabled="!scope.row.status" >
电话回拨</el-dropdown-item>
<el-dropdown-item command="setPhoneBook" v-bind:disabled="!scope.row.status" >
设置电话本</el-dropdown-item>
<el-dropdown-item command="tempPositionTracking" v-bind:disabled="!scope.row.status" >
临时跟踪</el-dropdown-item>
<el-dropdown-item command="reset" v-bind:disabled="!scope.row.status" >
终端复位</el-dropdown-item>
<el-dropdown-item command="factoryReset" v-bind:disabled="!scope.row.status" >
恢复出厂</el-dropdown-item>
<el-dropdown-item command="door" v-bind:disabled="!scope.row.status" >
车门控制</el-dropdown-item>
<el-dropdown-item command="driverInfo" v-bind:disabled="!scope.row.status" >
驾驶员信息</el-dropdown-item>
<el-dropdown-item command="mediaAttribute" v-bind:disabled="!scope.row.status" >
音视频属性</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</template>
</el-table-column>
</el-table>
@@ -181,7 +217,16 @@ export default {
setTimeout(this.getList, 200)
})
}
},
moreClick: function (command, itemData) {
if (command === "params") {
this.queryRecords(itemData)
}else if (command === "connection") {
this.queryCloudRecords(itemData)
}else {
this.$message.info("尚不支持");
}
},
}