|
|
|
@ -2,7 +2,13 @@
|
|
|
|
|
<div class="panel bar1">
|
|
|
|
|
<div class="titleBg">
|
|
|
|
|
<h2>
|
|
|
|
|
<el-form :inline="true" :model="queryParams" class="el-form1" 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,13 +27,12 @@
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
|
</h2>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 音乐管理表格数据 -->
|
|
|
|
|
<div class="musicManagement" v-show="musicShow">
|
|
|
|
|
<el-table :data="musicManagementList" style="width: 100%">
|
|
|
|
|
<el-table :data="musicManagementList" height="274" style="width: 100%">
|
|
|
|
|
<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">
|
|
|
|
@ -57,6 +62,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
<pagination
|
|
|
|
|
v-show="total>0"
|
|
|
|
|
:total="total"
|
|
|
|
@ -78,8 +84,8 @@
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
<el-form-item label="IP地址" prop="address">
|
|
|
|
|
<el-input placeholder="请输入IP地址" v-model="form.address" class="el-input1"></el-input>
|
|
|
|
|
<el-form-item label="IP地址" prop="deviceIp">
|
|
|
|
|
<el-input placeholder="请输入IP地址" v-model="form.deviceIp" class="el-input1"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
@ -124,7 +130,7 @@
|
|
|
|
|
<script>
|
|
|
|
|
import User from "@/layout/components/User";
|
|
|
|
|
import flexible from "@/layout/flexible.js";
|
|
|
|
|
import { listDevice } from "@/api/Device";
|
|
|
|
|
import { listMusic } from "@/api/DeviceManage";
|
|
|
|
|
export default {
|
|
|
|
|
components: {
|
|
|
|
|
User
|
|
|
|
@ -149,16 +155,23 @@ export default {
|
|
|
|
|
userShow: false,
|
|
|
|
|
//编辑对话框
|
|
|
|
|
musicHandle: false,
|
|
|
|
|
form:{},
|
|
|
|
|
//表单
|
|
|
|
|
form: {
|
|
|
|
|
location: null,
|
|
|
|
|
deviceIp: null,
|
|
|
|
|
note: null,
|
|
|
|
|
volume: null
|
|
|
|
|
},
|
|
|
|
|
rules: {},
|
|
|
|
|
// 查询参数
|
|
|
|
|
queryParams: {
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 6,
|
|
|
|
|
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
note: null,
|
|
|
|
|
volume: null
|
|
|
|
|
},
|
|
|
|
|
// 总条数
|
|
|
|
|
total: 0,
|
|
|
|
|
total: 0
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -169,7 +182,7 @@ export default {
|
|
|
|
|
//查询音乐管理列表数据
|
|
|
|
|
getList() {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
listDevice(this.queryParams).then(result => {
|
|
|
|
|
listMusic(this.queryParams).then(result => {
|
|
|
|
|
this.musicManagementList = result.rows;
|
|
|
|
|
this.total = result.total;
|
|
|
|
|
this.loading = false;
|
|
|
|
@ -191,7 +204,18 @@ export default {
|
|
|
|
|
this.open = false;
|
|
|
|
|
},
|
|
|
|
|
//确定按钮
|
|
|
|
|
submitForm() {
|
|
|
|
|
submitForm(row) {
|
|
|
|
|
var location = this.form.location;
|
|
|
|
|
var deviceIp = this.form.deviceIp;
|
|
|
|
|
var note = this.form.note;
|
|
|
|
|
var volume = this.form.volume;
|
|
|
|
|
var musicManagementList = this.musicManagementList;
|
|
|
|
|
|
|
|
|
|
musicManagementList.location = location;
|
|
|
|
|
musicManagementList.address = address;
|
|
|
|
|
musicManagementList.note = note;
|
|
|
|
|
musicManagementList.volume = volume;
|
|
|
|
|
|
|
|
|
|
this.musicHandle = false;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -201,7 +225,6 @@ export default {
|
|
|
|
|
.confirm("确认要删除吗")
|
|
|
|
|
.then(function() {
|
|
|
|
|
musicManagementList.splice(index, 1);
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
.then(() => {
|
|
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
|
@ -209,14 +232,27 @@ export default {
|
|
|
|
|
.catch(() => {});
|
|
|
|
|
},
|
|
|
|
|
//编辑按钮
|
|
|
|
|
edit() {
|
|
|
|
|
edit(row) {
|
|
|
|
|
this.musicHandle = true;
|
|
|
|
|
|
|
|
|
|
// this.form = row;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
|
|
|
|
/* 滚动条样式 */
|
|
|
|
|
::v-deep ::-webkit-scrollbar {
|
|
|
|
|
width: 7px;
|
|
|
|
|
}
|
|
|
|
|
::v-deep ::-webkit-scrollbar-thumb {
|
|
|
|
|
border-radius: 14px;
|
|
|
|
|
background: #4a6cd5;
|
|
|
|
|
}
|
|
|
|
|
::v-deep ::-webkit-scrollbar-track {
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
background: none;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .pagination-container .el-select .el-input .el-select__caret {
|
|
|
|
|
color: #618dfa !important;
|
|
|
|
|
}
|
|
|
|
@ -228,26 +264,25 @@ export default {
|
|
|
|
|
border: none !important;
|
|
|
|
|
color: #618dfa !important;
|
|
|
|
|
text-align: center !important;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
.pagination-container[data-v-72233bcd] {
|
|
|
|
|
background: #111658;
|
|
|
|
|
}
|
|
|
|
|
.userManagement {
|
|
|
|
|
margin: 0.125rem 0 0.125rem;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
::v-deep .el-input {
|
|
|
|
|
margin-left: 6px !important;
|
|
|
|
|
line-height: 0px !important;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
::v-deep .el-form-item__label {
|
|
|
|
|
color: white !important;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .el-input1 {
|
|
|
|
|
background: cornflowerblue!important;
|
|
|
|
|
background: #1c257f !important;
|
|
|
|
|
border: 1px solid rgba(25, 186, 139, 0.17) !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::v-deep .el-input__suffix {
|
|
|
|
|
right: 0.8rem !important;
|
|
|
|
|
}
|
|
|
|
@ -262,11 +297,12 @@ export default {
|
|
|
|
|
text-align: center !important;
|
|
|
|
|
letter-spacing: 4px !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::v-deep .el-input1 input::-webkit-input-placeholder {
|
|
|
|
|
color: gray !important ;
|
|
|
|
|
}
|
|
|
|
|
::v-deep .el-form1 input::-webkit-input-placeholder {
|
|
|
|
|
color: white !important ;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
::v-deep .el-dialog {
|
|
|
|
|
background: #111658 !important;
|
|
|
|
|
border: 1px solid gray;
|
|
|
|
|