|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
<div class="panel bar1">
|
|
|
|
|
<div class="titleBg">
|
|
|
|
|
<h2>
|
|
|
|
|
<el-form :inline="true" :model="queryParams" ref="queryForm" label-width="1.7rem">
|
|
|
|
|
<el-form :inline="true" :model="queryParams" class="el-form1" ref="queryForm" label-width="1.7rem">
|
|
|
|
|
<el-form-item label prop="musicManage">
|
|
|
|
|
<el-select
|
|
|
|
|
class="selectNav"
|
|
|
|
@ -21,18 +21,24 @@
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
|
</h2>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 音乐管理表格数据 -->
|
|
|
|
|
<div class="musicManagement" v-show="musicShow">
|
|
|
|
|
<el-table :data="musicManagementList" style="width: 100%">
|
|
|
|
|
<el-table-column prop="location" label="位置" width="50" height="25" align="center"></el-table-column>
|
|
|
|
|
<el-table-column prop="ipAddress" label="IP地址" height="25" align="center"></el-table-column>
|
|
|
|
|
<el-table-column prop="deviceState" label="设备状态" height="25" width="80" align="center"></el-table-column>
|
|
|
|
|
<el-table-column prop="note" label="音符" width="50" height="25" align="center"></el-table-column>
|
|
|
|
|
<el-table-column prop="location" label="位置" width="140" height="25" align="center"></el-table-column>
|
|
|
|
|
<el-table-column prop="deviceIp" label="IP地址" width="130" height="25" align="center"></el-table-column>
|
|
|
|
|
<el-table-column prop="status" label="设备状态" height="25" width="80" align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span v-if="scope.row.status == '0'">正常</span>
|
|
|
|
|
<span v-else-if="scope.row.status == '1'">异常</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="note" label="音符" width="70" height="25" align="center"></el-table-column>
|
|
|
|
|
<el-table-column prop="volume" label="音量" width="50" height="25" align="center"></el-table-column>
|
|
|
|
|
<el-table-column prop="createTime" label="创建时间" height="25" align="center"></el-table-column>
|
|
|
|
|
<el-table-column prop="createTime" label="创建时间" width="160" height="25" align="center"></el-table-column>
|
|
|
|
|
<el-table-column prop="createBy" label="创建人" width="80" height="25" align="center"></el-table-column>
|
|
|
|
|
<el-table-column prop="operate" label="操作" height="25" align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
@ -51,6 +57,13 @@
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
<pagination
|
|
|
|
|
v-show="total>0"
|
|
|
|
|
:total="total"
|
|
|
|
|
:page.sync="queryParams.pageNum"
|
|
|
|
|
:limit.sync="queryParams.pageSize"
|
|
|
|
|
@pagination="getList"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- 编辑音乐管理对话框 -->
|
|
|
|
@ -111,7 +124,7 @@
|
|
|
|
|
<script>
|
|
|
|
|
import User from "@/layout/components/User";
|
|
|
|
|
import flexible from "@/layout/flexible.js";
|
|
|
|
|
|
|
|
|
|
import { listDevice } from "@/api/Device";
|
|
|
|
|
export default {
|
|
|
|
|
components: {
|
|
|
|
|
User
|
|
|
|
@ -119,35 +132,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
musicManagementList: [
|
|
|
|
|
{
|
|
|
|
|
location: "001",
|
|
|
|
|
ipAddress: "192.168.10.88",
|
|
|
|
|
deviceState: "正常",
|
|
|
|
|
note: "",
|
|
|
|
|
volume: "50%",
|
|
|
|
|
createTime: "2022-02-02",
|
|
|
|
|
createBy: "张大大"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
location: "002",
|
|
|
|
|
ipAddress: "192.168.10.88",
|
|
|
|
|
deviceState: "正常",
|
|
|
|
|
note: "",
|
|
|
|
|
volume: "40%",
|
|
|
|
|
createTime: "2022-02-02",
|
|
|
|
|
createBy: "张小小"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
location: "003",
|
|
|
|
|
ipAddress: "192.168.10.88",
|
|
|
|
|
deviceState: "正常",
|
|
|
|
|
note: "",
|
|
|
|
|
volume: "30%",
|
|
|
|
|
createTime: "2022-02-02",
|
|
|
|
|
createBy: "王小二"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
musicManagementList: [],
|
|
|
|
|
musicManageArr: [
|
|
|
|
|
{
|
|
|
|
|
value: 1,
|
|
|
|
@ -169,15 +154,27 @@ export default {
|
|
|
|
|
// 查询参数
|
|
|
|
|
queryParams: {
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 7,
|
|
|
|
|
musicManage: undefined
|
|
|
|
|
}
|
|
|
|
|
pageSize: 6,
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
// 总条数
|
|
|
|
|
total: 0,
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
created() {},
|
|
|
|
|
|
|
|
|
|
created() {
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
//查询音乐管理列表数据
|
|
|
|
|
getList() {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
listDevice(this.queryParams).then(result => {
|
|
|
|
|
this. musicManagementList= result.rows;
|
|
|
|
|
this.total = result.total;
|
|
|
|
|
this.loading = false;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 下拉菜单页面切换
|
|
|
|
|
pageShow(e) {
|
|
|
|
|
console.log(e, 8888888888888);
|
|
|
|
@ -219,9 +216,26 @@ export default {
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
|
|
|
|
::v-deep .pagination-container .el-select .el-input .el-select__caret {
|
|
|
|
|
color:#618dfa!important;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .pagination-container .el-input__suffix {
|
|
|
|
|
right: 5px !important;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .pagination-container .el-input__inner {
|
|
|
|
|
background: transparent !important;
|
|
|
|
|
border: none !important;
|
|
|
|
|
color: #618dfa !important;
|
|
|
|
|
text-align: center !important;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
.pagination-container[data-v-72233bcd]{
|
|
|
|
|
background:#111658;
|
|
|
|
|
}
|
|
|
|
|
.userManagement {
|
|
|
|
|
margin: 0.125rem 0 0.125rem;
|
|
|
|
|
border: 1px solid rgba(25, 186, 139, 0.17);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
::v-deep .el-input {
|
|
|
|
|
margin-left: 6px !important;
|
|
|
|
@ -248,17 +262,11 @@ export default {
|
|
|
|
|
text-align: center !important;
|
|
|
|
|
letter-spacing: 4px !important;
|
|
|
|
|
}
|
|
|
|
|
/* ::v-deep .el-input1 .el-input__inner {
|
|
|
|
|
border:1px solid rgba(25, 186, 139, 0.17) !important;
|
|
|
|
|
border-radius: 4px!important;
|
|
|
|
|
|
|
|
|
|
} */
|
|
|
|
|
::v-deep input::-webkit-input-placeholder {
|
|
|
|
|
::v-deep .el-form1 input::-webkit-input-placeholder {
|
|
|
|
|
color: white !important ;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .el-input1::-webkit-input-placeholder {
|
|
|
|
|
color: gray !important ;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::v-deep .el-dialog {
|
|
|
|
|
background: #111658 !important;
|
|
|
|
|
border:1px solid gray;
|
|
|
|
|