| | |
| | | </div>
|
| | | <div class="bar-group">
|
| | | <div
|
| | | class="bar"
|
| | | class="general-bar"
|
| | | v-for="(item, i) in soundList"
|
| | | :key="i"
|
| | | @click="clickSound(item, i)"
|
| | |
| | | <div class="left-part">
|
| | | <span class="name">{{ item.name }}</span>
|
| | | </div>
|
| | | <div class="btns">
|
| | | <div class="sound-btns">
|
| | | <span @click="togglePlay(item, i)">
|
| | | <span
|
| | | class="iconfont"
|
| | |
| | | style="cursor: pointer"
|
| | | >{{ playSpan }}</span
|
| | | >
|
| | | <span class="iconfont" v-else style="cursor: pointer">{{
|
| | | <!-- <span class="iconfont" v-else style="cursor: pointer">{{
|
| | | playSpan2
|
| | | }}</span>
|
| | | }}</span> -->
|
| | |
|
| | | <img v-else src="/images/settings/暂停.png" alt="" style="width:16px;hight:16px;cursor: pointer;margin-top:15px;">
|
| | | <!--
|
| | | <i
|
| | | v-if="!item.isPlay"
|
| | |
| | | <div
|
| | | v-for="(item,index) in colorList"
|
| | | :key="index"
|
| | | style="border:none;"
|
| | | >
|
| | | <div class="color-option"
|
| | | v-if="universalColor != index"
|
| | | :style="{cursor: pointer,backgroundColor:item.color}"
|
| | | :style="{cursor: 'pointer',backgroundColor:item.color}"
|
| | | @click="colorCard(item.color,index)"
|
| | | />
|
| | |
|
| | | <div class="color-option color-option-active"
|
| | | v-else
|
| | | :style="{cursor: pointer,border:`2px solid ${item.color}`}"
|
| | | :style="{cursor: 'pointer',border:`2px solid ${item.color}`}"
|
| | | @click="colorCard(item.color,index)">
|
| | | <div
|
| | | :style="{backgroundColor:item.color}"
|
| | |
| | | <script>
|
| | | import { saveAlarmConfig, getDevInfo } from "@/api/system";
|
| | | import { uploadSound, getSoundList, deleteSound } from "@/api/event";
|
| | |
|
| | | import {
|
| | | updateUser,
|
| | | } from "@/api/user";
|
| | | export default {
|
| | | data() {
|
| | | return {
|
| | | playSpan: "\ue6e8",
|
| | | playSpan2: "\ue6e8",
|
| | | delspan: "\ue6e8",
|
| | | playSpan: "\ue75e",
|
| | | playSpan2: "\ue75f",
|
| | | delspan: "\ue715",
|
| | | warnSpn: "\ue71c",
|
| | | curPlayingIndex: null,
|
| | | showUpload: false,
|
| | |
| | | },
|
| | | menuArr: [
|
| | | // { name: "设备信息", icon: "\ue933" ,size:18},
|
| | | { name: "事件录像时长", icon: "\ue6f3", size: 20 },
|
| | | { name: "事件声音", icon: "\ue6e1", size: 16 },
|
| | | { name: "个性化设置", icon: "\ue756", size: 18 },
|
| | | { name: "事件录像时长", icon: "\ue74f", size: 20 },
|
| | | { name: "事件声音", icon: "\ueb5e", size: 16 },
|
| | | { name: "个性化设置", icon: "\ue750", size: 18 },
|
| | | ],
|
| | | soundList: [],
|
| | | activePage: 0,
|
| | |
| | | { url: "/images/settings/系统设置.png" },
|
| | | ],
|
| | | tableBGList: [
|
| | | { name: "background", url: "/images/settings/background.png" },
|
| | | { name: "message", url: "/images/settings/数据推送.png" },
|
| | | { name: "weather", url: "/images/settings/系统设置.png" },
|
| | | { name: "background", url: "/images/desktop/background.png" },
|
| | | { name: "message", url: "/images/desktop/message.png" },
|
| | | { name: "weather", url: "/images/desktop/weather.png" },
|
| | | ],
|
| | | universalColor:'',
|
| | | colorList: [
|
| | |
| | | _this.curPlayingIndex = null;
|
| | | }
|
| | | });
|
| | | const url = localStorage.getItem("backgroundPic");
|
| | | const url = this.curUser.backgroundpic;
|
| | | this.activeIcons = this.curUser.useIconType-1
|
| | | if (url) {
|
| | | const arr = url.split("/");
|
| | | // const arr = url.split("/");
|
| | | this.activeBg = this.tableBGList.findIndex((x) => {
|
| | | return x.url.includes(arr[arr.length - 1]);
|
| | | return x.url == url;
|
| | | });
|
| | | } else {
|
| | | this.activeBg = 0;
|
| | |
| | | max_video_len() {
|
| | | return Math.round(this.fakeObj.max * 1.2);
|
| | | },
|
| | | curUser() {
|
| | | const info = JSON.parse(sessionStorage.getItem("userInfo"));
|
| | | return info;
|
| | | },
|
| | | },
|
| | | methods: {
|
| | | formatTooltip(v) {
|
| | |
| | | pickBg(item, i) {
|
| | | this.activeBg = i;
|
| | | let message = "changeBackground?" + item.name;
|
| | | window.parent.postMessage(
|
| | | {
|
| | | msg: message,
|
| | | },
|
| | | "*"
|
| | | );
|
| | | window.parent.postMessage( {msg: message, }, "*" );
|
| | | updateUser({
|
| | | id: this.curUser.id,
|
| | | backgroundpic: item.url,
|
| | | }).then((res) => {
|
| | | if (res.success) {
|
| | | sessionStorage.setItem("userInfo", JSON.stringify(res.data))
|
| | | this.$message.success(res.msg);
|
| | | }
|
| | | });
|
| | | this.$forceUpdate()
|
| | | },
|
| | | togglePlay(item, i) {
|
| | |
| | | },
|
| | | selectIcons(i) {
|
| | | this.activeIcons = i;
|
| | | updateUser({
|
| | | id: this.curUser.id,
|
| | | iconType: i+1,
|
| | | }).then((res) => {
|
| | | if (res.success) {
|
| | | window.parent.postMessage({ msg: "AppUpdate" }, "*");
|
| | | sessionStorage.setItem("userInfo", JSON.stringify(res.data))
|
| | | this.$message.success(res.msg);
|
| | | }
|
| | | });
|
| | | },
|
| | | removeSound(item) {
|
| | | const h = this.$createElement;
|
| | |
| | | this.universalColor = index
|
| | | document.documentElement.style.setProperty('--colorCard',`${color}`)
|
| | | localStorage.setItem('--colorCard',`${color}`)
|
| | | window.parent.postMessage({msg:'changeColor',color},'*')
|
| | | }
|
| | | },
|
| | | };
|
| | |
| | | flex: 1;
|
| | | flex-basis: auto;
|
| | | box-sizing: border-box;
|
| | | .el-input__inner {
|
| | | height: 24px !important;
|
| | | }
|
| | | .general-center {
|
| | | height: 100%;
|
| | | width: 300px;
|
| | | overflow: auto;
|
| | | box-sizing: border-box;
|
| | | flex-shrink: 0;
|
| | | padding: 24px 10px;
|
| | | padding: 10px 10px;
|
| | | padding-top: 6px;
|
| | | border-right: 4px solid #f2f2f7;
|
| | | border-top: 4px solid #f2f2f7;
|
| | | border-left: 4px solid #f2f2f7;
|
| | | background-color: #fbfaff;
|
| | |
|
| | | .menu-item {
|
| | | height: 56px;
|
| | | margin-bottom: 4px;
|
| | |
| | | overflow: auto;
|
| | | box-sizing: border-box;
|
| | | background-color: rgb(251, 250, 255);
|
| | | border-top: 4px solid #f2f2f7;
|
| | |
|
| | | padding: 10px 18px 10px 10px;
|
| | | padding: 6px 18px 10px 10px;
|
| | | .el-form-item.is-required:not(.is-no-asterisk)
|
| | | > .el-form-item__label:before,
|
| | | .el-form-item.is-required:not(.is-no-asterisk)
|
| | |
| | | .el-form-item {
|
| | | margin-bottom: 10px;
|
| | | height: 50px;
|
| | | background: #f8f8f8;
|
| | | background: #F2F2F7;
|
| | | padding: 4px 20px;
|
| | | -webkit-box-sizing: border-box;
|
| | | box-sizing: border-box;
|
| | |
| | | text-align: left;
|
| | | margin-bottom: 5px;
|
| | | }
|
| | | .voice-title {
|
| | | .bar.title.voice-title {
|
| | | justify-content: center !important;
|
| | | text-align: center;
|
| | | font-weight: 700;
|
| | | }
|
| | | border: none;
|
| | | background: #F2F2F7;
|
| | | border-radius: 8px;
|
| | | height: 48px;
|
| | | margin-bottom: 4px;
|
| | | border:2px solid #F2F2F7 !important; |
| | | }
|
| | | .bar-group {
|
| | | overflow: auto;
|
| | | height: 400px;
|
| | | }
|
| | | .bar {
|
| | | height: 48px;
|
| | | background-color: #f8f8f8;
|
| | | border-radius: 10px;
|
| | | line-height: 48px;
|
| | | box-sizing: border-box;
|
| | | padding: 0 20px 0 20px;
|
| | | font-weight: 700;
|
| | | display: flex;
|
| | | justify-content: space-between;
|
| | | margin-bottom: 2px;
|
| | | border: 2px solid #fff;
|
| | | .name {
|
| | | font-size: 14px;
|
| | | }
|
| | | .btns {
|
| | | width: 52px;
|
| | | height: calc(100% - 100px);
|
| | | .general-bar {
|
| | | height: 48px;
|
| | | background: #F2F2F7;
|
| | | border-radius: 10px;
|
| | | line-height: 48px;
|
| | | box-sizing: border-box;
|
| | | padding: 0 20px 0 20px;
|
| | | font-weight: 700;
|
| | | display: flex;
|
| | | justify-content: space-between;
|
| | | color: rgba(191, 191, 191, 1);
|
| | | /* .el-icon-video-pause {
|
| | | margin-bottom: 2px;
|
| | | border:2px solid #F2F2F7;
|
| | | margin-bottom: 4px;
|
| | | .name {
|
| | | font-size: 14px;
|
| | | }
|
| | | .sound-btns {
|
| | | width: 52px;
|
| | | display: flex;
|
| | | justify-content: space-between;
|
| | | color: rgba(191, 191, 191, 1);
|
| | | /* .el-icon-video-pause {
|
| | | cursor: pointer;
|
| | | font-size: 23px;
|
| | | vertical-align: middle;
|
| | |
| | | vertical-align: middle;
|
| | | color: #409eff;
|
| | | } */
|
| | | span {
|
| | | color: #333;
|
| | | span {
|
| | | color: #333;
|
| | | }
|
| | | .del:hover {
|
| | | color: #fc4958;
|
| | | }
|
| | | }
|
| | | .del:hover {
|
| | | color: #fc4958;
|
| | | .desc {
|
| | | font-size: 14px;
|
| | | color: rgba(134, 134, 134, 1);
|
| | | }
|
| | | }
|
| | | .desc {
|
| | | font-size: 14px;
|
| | | color: rgba(134, 134, 134, 1);
|
| | | }
|
| | | }
|
| | |
|
| | | /* .bar:hover {
|
| | | border: 2px solid #4E94FF !important;
|
| | | } */
|
| | |
| | | height: 30px;
|
| | | border-radius:50% ;
|
| | | background-color: #fff;
|
| | | padding: 3px;
|
| | | padding: 4px;
|
| | | .color-option-content {
|
| | | width: 100%;
|
| | | height: 100%;
|
| | |
| | | font-size: 16px;
|
| | | font-weight: 700;
|
| | | }
|
| | | &:hover {
|
| | | border: 1px solid var(--colorCard) !important;
|
| | | }
|
| | | }
|
| | | button:first-child {
|
| | | background-color: #e0e0e0;
|
| | |
| | | }
|
| | | button:last-child {
|
| | | background-color: var(--colorCard) !important;
|
| | | border: 1px solid var(--colorCard) !important;
|
| | | span {
|
| | | color: #fff;
|
| | | }
|
| | |
| | | .videoTime .el-slider__button {
|
| | | margin-top: -25px !important;
|
| | | border: none !important;
|
| | | background-image: url(/images/gengeralSettings/刻度标.png);
|
| | | |
| | | }
|
| | |
|
| | | .videoTime .el-slider__button::after {
|
| | | display: block;
|
| | | position: relative;
|
| | | content: "\e75d";
|
| | | color: var(--colorCard);
|
| | | font-family: "iconfont" !important;
|
| | | font-size: 16px;
|
| | | font-style: normal;
|
| | | -webkit-font-smoothing: antialiased;
|
| | | -moz-osx-font-smoothing: grayscale;
|
| | | }
|
| | |
|
| | | .videoTime .el-tooltip {
|
| | |
| | |
|
| | | .videoTime .el-input-number.el-input-number--small {
|
| | | width: 90px;
|
| | | height: 24px;
|
| | | height: 24px !important;
|
| | | border-radius: 4px;
|
| | | line-height: 24px !important;
|
| | | font-weight: 700 !important;
|
| | |
| | |
|
| | | .videoTime .el-input-number.el-input-number--small .el-input__inner {
|
| | | font-size: 12px !important;
|
| | | height: 24px !important;
|
| | | }
|
| | |
|
| | | .el-input-number__decrease {
|
| | |
| | | color: #4E94FF;
|
| | | }
|
| | |
|
| | | .el-input__inner {
|
| | | height: 24px !important;
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | | /* .el-tooltip__popper {
|