1 line
34 KiB
Plaintext
1 line
34 KiB
Plaintext
{"version":3,"sources":["webpack:///./src/views/manager/threshold.vue?3827","webpack:///./src/views/manager/threshold.vue?982e","webpack:///./src/views/manager/threshold.vue?1aed","webpack:///./src/api/threshold.js","webpack:///./src/api/dictionary.js","webpack:///src/views/manager/threshold.vue","webpack:///./src/views/manager/threshold.vue?261f","webpack:///./src/views/manager/threshold.vue","webpack:///./node_modules/core-js/modules/es.json.stringify.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","on","handleClick","model","value","callback","$$v","typeCode","expression","_l","item","key","typeId","typeName","$event","getTabList","slot","class","getIcon","_v","_s","$t","dictionaryId","handleSelect","signName","_e","ref","form","rules","$set","paramType","onOff","staticStyle","updateData","staticRenderFns","getThresholdByDictionary","data","request","url","method","params","updateThreshold","headers","getDictionaryByCode","getDictionaryType","validateLimitValue","tabList","menuList","paramData","signId","paramName","maxVal","minVal","timeGap","alarmLevel","alarmInfo","required","message","trigger","validator","created","getMenuList","methods","val","getList","res","code","console","e","tab","label","toString","$refs","validate","valid","JSON","parse","stringify","status","title","type","duration","component","$","global","getBuiltIn","apply","uncurryThis","fails","Array","$stringify","exec","charAt","charCodeAt","replace","numberToString","tester","low","hi","fix","match","offset","string","prev","next","FORCED","target","stat","forced","it","replacer","space","i","l","arguments","length","args","result"],"mappings":"kHAAA,W,6DCAA,W,2CCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,iBAAiB,CAACF,EAAG,MAAM,CAACE,YAAY,aAAaF,EAAG,UAAU,CAACE,YAAY,SAASC,MAAM,CAAC,eAAe,QAAQC,GAAG,CAAC,YAAYR,EAAIS,aAAaC,MAAM,CAACC,MAAOX,EAAY,SAAEY,SAAS,SAAUC,GAAMb,EAAIc,SAASD,GAAKE,WAAW,aAAaf,EAAIgB,GAAIhB,E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/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./threshold.vue?vue&type=style&index=0&id=f86f1f4a&scoped=true&lang=scss&\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--9-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--9-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--9-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--9-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./threshold.vue?vue&type=style&index=1&rel=stylesheet%2Fscss&lang=scss&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"app-container\"},[_c('div',{staticClass:\"decorate\"}),_c('el-tabs',{staticClass:\"tabBox\",attrs:{\"tab-position\":\"left\"},on:{\"tab-click\":_vm.handleClick},model:{value:(_vm.typeCode),callback:function ($$v) {_vm.typeCode=$$v},expression:\"typeCode\"}},_vm._l((_vm.tabList),function(item){return _c('el-tab-pane',{key:item.typeId,attrs:{\"label\":item.typeName,\"name\":item.typeCode + ''}},[_c('span',{staticClass:\"cover\",attrs:{\"slot\":\"label\"},on:{\"click\":function($event){return _vm.getTabList(item.typeCode)}},slot:\"label\"},[_c('i',{staticClass:\"iconfont\",class:(\"icon-\" + (_vm.getIcon(item.typeCode)))}),_c('span',[_vm._v(\" \"+_vm._s(item.typeName))])])])}),1),_c('div',{staticClass:\"contentBox\"},[_c('div',{staticClass:\"menu-top-btn\"},[_vm._v(_vm._s(_vm.$t(\"threshold.parameterName\")))]),_c('div',{staticClass:\"menuBox\"},[_c('div',{staticClass:\"bar\"},[(_vm.menuList)?_c('el-menu',{staticClass:\"menu\",attrs:{\"default-active\":_vm.dictionaryId,\"collapse-transition\":false}},_vm._l((_vm.menuList),function(item){return _c('el-menu-item',{key:item.dictionaryId,attrs:{\"index\":item.dictionaryId + ''},on:{\"click\":function($event){return _vm.handleSelect(item)}}},[_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(_vm._s(item.signName))])])}),1):_vm._e()],1)]),_c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"breadcrumb\"},[_c('el-breadcrumb',{attrs:{\"separator\":\"/\"}},[_c('el-breadcrumb-item',[_vm._v(_vm._s(_vm.typeName))]),_c('el-breadcrumb-item',[_vm._v(_vm._s(_vm.signName))]),_c('el-breadcrumb-item',[_vm._v(_vm._s(_vm.$t(\"threshold.setting\")))])],1)],1),_c('div',{staticClass:\"dataBox\"},[_c('el-form',{ref:\"form\",attrs:{\"model\":_vm.form,\"rules\":_vm.rules,\"label-width\":\"130px\"}},[_c('el-form-item',{attrs:{\"label\":_vm.$t('threshold.paramType')}},[_c('el-radio-group',{model:{value:(_vm.form.paramType),callback:function ($$v) {_vm.$set(_vm.form, \"paramType\", $$v)},expression:\"form.paramType\"}},[_c('el-radio',{attrs:{\"label\":1}},[_vm._v(_vm._s(_vm.$t(\"threshold.paramType1\")))]),_c('el-radio',{attrs:{\"label\":2}},[_vm._v(_vm._s(_vm.$t(\"threshold.paramType2\")))])],1)],1),(_vm.form.paramType == 1)?_c('el-form-item',{attrs:{\"label\":_vm.$t('threshold.maxVal'),\"prop\":\"maxVal\"}},[_c('el-input-number',{attrs:{\"placeholder\":_vm.$t('pEnter'),\"controls-position\":\"right\"},model:{value:(_vm.form.maxVal),callback:function ($$v) {_vm.$set(_vm.form, \"maxVal\", $$v)},expression:\"form.maxVal\"}})],1):_vm._e(),(_vm.form.paramType == 1)?_c('el-form-item',{attrs:{\"label\":_vm.$t('threshold.minVal'),\"prop\":\"minVal\"}},[_c('el-input-number',{attrs:{\"placeholder\":_vm.$t('pEnter'),\"controls-position\":\"right\"},model:{value:(_vm.form.minVal),callback:function ($$v) {_vm.$set(_vm.form, \"minVal\", $$v)},expression:\"form.minVal\"}})],1):_vm._e(),(_vm.form.paramType != 1)?_c('el-form-item',{attrs:{\"label\":_vm.$t('threshold.alarm')}},[_c('el-radio-group',{model:{value:(_vm.onOff),callback:function ($$v) {_vm.onOff=$$v},expression:\"onOff\"}},[_c('el-radio',{attrs:{\"label\":1}},[_vm._v(_vm._s(_vm.$t(\"type.open\")))]),_c('el-radio',{attrs:{\"label\":0}},[_vm._v(_vm._s(_vm.$t(\"type.close\")))])],1)],1):_vm._e(),_c('el-form-item',{attrs:{\"label\":_vm.$t('threshold.timeGap')}},[_c('el-input-number',{attrs:{\"placeholder\":_vm.$t('pEnter'),\"controls-position\":\"right\"},model:{value:(_vm.form.timeGap),callback:function ($$v) {_vm.$set(_vm.form, \"timeGap\", $$v)},expression:\"form.timeGap\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('threshold.alarmLevel')}},[_c('el-radio-group',{model:{value:(_vm.form.alarmLevel),callback:function ($$v) {_vm.$set(_vm.form, \"alarmLevel\", $$v)},expression:\"form.alarmLevel\"}},[_c('el-radio',{attrs:{\"label\":1}},[_vm._v(_vm._s(_vm.$t(\"threshold.one\")))]),_c('el-radio',{attrs:{\"label\":2}},[_vm._v(_vm._s(_vm.$t(\"threshold.two\")))]),_c('el-radio',{attrs:{\"label\":3}},[_vm._v(_vm._s(_vm.$t(\"threshold.three\")))])],1)],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('threshold.alarmInfo'),\"prop\":\"alarmInfo\"}},[_c('el-input',{attrs:{\"placeholder\":_vm.$t('pEnter'),\"type\":\"textarea\"},model:{value:(_vm.form.alarmInfo),callback:function ($$v) {_vm.$set(_vm.form, \"alarmInfo\", $$v)},expression:\"form.alarmInfo\"}})],1),_c('el-form-item',{staticStyle:{\"margin-left\":\"394px\"}},[_c('span',{staticClass:\"btn-item long\",on:{\"click\":_vm.updateData}},[_vm._v(_vm._s(_vm.$t(\"btn.save\")))])])],1)],1)])])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import request from '@/utils/request'\r\n// import qs from 'qs'\r\n/*\r\n 系统管理-菜单管理 权限操作api\r\n*/\r\n\r\n\r\n// 根据thresholdId查询阀值信息\r\nexport function getThresholdById(data) {\r\n return request({\r\n url: 'alarm-service/threshold/getThresholdById',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 根据设备参数查询阀值信息\r\nexport function getThresholdByDictionary(data) {\r\n return request({\r\n url: 'alarm-service/threshold/getThresholdByDictionary',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 修改阀值信息\r\nexport function updateThreshold(data) {\r\n return request({\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n url: 'alarm-service/threshold/updateThreshold',\r\n method: 'put',\r\n data\r\n })\r\n}","import request from '@/utils/request'\r\n// import qs from 'qs'\r\n/*\r\n 管理台-综合柜设备参数 权限操作api\r\n*/\r\n\r\n// 根据typeCode查询综合柜内设备的参数名称信息\r\nexport function getDictionaryByCode(data) {\r\n return request({\r\n url: 'device-service/dictionary/getDictionaryByCode',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 查询综合柜内设备的类型数据\r\nexport function getDictionaryType(data) {\r\n return request({\r\n url: 'device-service/dictionary/getDictionaryType',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n","<!-- 阀值管理 -->\r\n<template>\r\n <div class=\"app-container\">\r\n <div class=\"decorate\"></div>\r\n <el-tabs\r\n tab-position=\"left\"\r\n class=\"tabBox\"\r\n v-model=\"typeCode\"\r\n @tab-click=\"handleClick\"\r\n >\r\n <el-tab-pane\r\n v-for=\"item in tabList\"\r\n :key=\"item.typeId\"\r\n :label=\"item.typeName\"\r\n :name=\"item.typeCode + ''\"\r\n >\r\n <span slot=\"label\" @click=\"getTabList(item.typeCode)\" class=\"cover\">\r\n <i class=\"iconfont\" :class=\"`icon-${getIcon(item.typeCode)}`\"></i>\r\n <span> {{ item.typeName }}</span>\r\n </span>\r\n </el-tab-pane>\r\n </el-tabs>\r\n <div class=\"contentBox\">\r\n <div class=\"menu-top-btn\">{{ $t(\"threshold.parameterName\") }}</div>\r\n <div class=\"menuBox\">\r\n <div class=\"bar\">\r\n <el-menu\r\n v-if=\"menuList\"\r\n class=\"menu\"\r\n :default-active=\"dictionaryId\"\r\n :collapse-transition=\"false\"\r\n >\r\n <el-menu-item\r\n v-for=\"item in menuList\"\r\n :key=\"item.dictionaryId\"\r\n :index=\"item.dictionaryId + ''\"\r\n @click=\"handleSelect(item)\"\r\n >\r\n <span slot=\"title\">{{ item.signName }}</span>\r\n </el-menu-item>\r\n </el-menu>\r\n </div>\r\n </div>\r\n <div class=\"content\">\r\n <div class=\"breadcrumb\">\r\n <el-breadcrumb separator=\"/\">\r\n <el-breadcrumb-item>{{ typeName }}</el-breadcrumb-item>\r\n <el-breadcrumb-item>{{ signName }}</el-breadcrumb-item>\r\n <el-breadcrumb-item>{{\r\n $t(\"threshold.setting\")\r\n }}</el-breadcrumb-item>\r\n </el-breadcrumb>\r\n </div>\r\n <div class=\"dataBox\">\r\n <el-form ref=\"form\" :model=\"form\" :rules=\"rules\" label-width=\"130px\">\r\n <el-form-item :label=\"$t('threshold.paramType')\">\r\n <el-radio-group v-model=\"form.paramType\">\r\n <el-radio :label=\"1\">{{ $t(\"threshold.paramType1\") }}</el-radio>\r\n <el-radio :label=\"2\">{{ $t(\"threshold.paramType2\") }}</el-radio>\r\n </el-radio-group>\r\n </el-form-item>\r\n <el-form-item\r\n v-if=\"form.paramType == 1\"\r\n :label=\"$t('threshold.maxVal')\"\r\n prop=\"maxVal\"\r\n >\r\n <el-input-number\r\n :placeholder=\"$t('pEnter')\"\r\n v-model=\"form.maxVal\"\r\n controls-position=\"right\"\r\n ></el-input-number>\r\n </el-form-item>\r\n <el-form-item\r\n v-if=\"form.paramType == 1\"\r\n :label=\"$t('threshold.minVal')\"\r\n prop=\"minVal\"\r\n >\r\n <el-input-number\r\n :placeholder=\"$t('pEnter')\"\r\n v-model=\"form.minVal\"\r\n controls-position=\"right\"\r\n ></el-input-number>\r\n </el-form-item>\r\n <el-form-item\r\n v-if=\"form.paramType != 1\"\r\n :label=\"$t('threshold.alarm')\"\r\n >\r\n <el-radio-group v-model=\"onOff\">\r\n <el-radio :label=\"1\">{{ $t(\"type.open\") }}</el-radio>\r\n <el-radio :label=\"0\">{{ $t(\"type.close\") }}</el-radio>\r\n </el-radio-group>\r\n </el-form-item>\r\n <el-form-item :label=\"$t('threshold.timeGap')\">\r\n <el-input-number\r\n :placeholder=\"$t('pEnter')\"\r\n v-model=\"form.timeGap\"\r\n controls-position=\"right\"\r\n ></el-input-number>\r\n </el-form-item>\r\n <el-form-item :label=\"$t('threshold.alarmLevel')\">\r\n <el-radio-group v-model=\"form.alarmLevel\">\r\n <el-radio :label=\"1\">{{ $t(\"threshold.one\") }}</el-radio>\r\n <el-radio :label=\"2\">{{ $t(\"threshold.two\") }}</el-radio>\r\n <el-radio :label=\"3\">{{ $t(\"threshold.three\") }}</el-radio>\r\n </el-radio-group>\r\n </el-form-item>\r\n <el-form-item :label=\"$t('threshold.alarmInfo')\" prop=\"alarmInfo\">\r\n <el-input\r\n :placeholder=\"$t('pEnter')\"\r\n type=\"textarea\"\r\n v-model=\"form.alarmInfo\"\r\n ></el-input>\r\n </el-form-item>\r\n <el-form-item style=\"margin-left: 394px\">\r\n <span class=\"btn-item long\" @click=\"updateData\">{{\r\n $t(\"btn.save\")\r\n }}</span>\r\n </el-form-item>\r\n </el-form>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n<script>\r\nimport { getThresholdByDictionary, updateThreshold } from \"@/api/threshold\"\r\nimport { getDictionaryType, getDictionaryByCode } from \"@/api/dictionary\"\r\nexport default {\r\n data() {\r\n var validateLimitValue = (rule, value, callback) => {\r\n if (!value) {\r\n callback(this.$t(\"validate.limitValue\"))\r\n } else if (this.form.maxVal < this.form.minVal) {\r\n callback(this.$t(\"validate.limitValueFormat\"))\r\n } else {\r\n callback()\r\n }\r\n }\r\n return {\r\n typeCode: null,\r\n typeName: null,\r\n dictionaryId: null,\r\n signName: null,\r\n tabList: [],\r\n menuList: [],\r\n onOff: 1,\r\n paramData: {\r\n signId: null,\r\n typeCode: null,\r\n paramName: null\r\n },\r\n form: {\r\n paramType: 1,\r\n maxVal: null,\r\n minVal: null,\r\n timeGap: null,\r\n alarmLevel: 3,\r\n alarmInfo: null\r\n },\r\n rules: {\r\n maxVal: [\r\n {\r\n required: true,\r\n message: this.$t(\"pEnter\") + this.$t(\"threshold.maxVal\"),\r\n trigger: \"blur\"\r\n }\r\n ],\r\n minVal: [\r\n {\r\n required: true,\r\n trigger: \"blur\",\r\n validator: validateLimitValue\r\n }\r\n ],\r\n\r\n alarmInfo: [\r\n {\r\n required: true,\r\n message: this.$t(\"pEnter\") + this.$t(\"threshold.alarmInfo\"),\r\n trigger: \"blur\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n created() {\r\n this.getMenuList()\r\n },\r\n methods: {\r\n getIcon(val) {\r\n switch (val) {\r\n case \"TEMP\":\r\n return \"wenshidu\"\r\n case \"SOURCE\":\r\n return \"dianyuan\"\r\n case \"CABINET\":\r\n return \"danguiti\"\r\n case \"GF\":\r\n return \"guangfu\"\r\n case \"AIR\":\r\n return \"kongtiao\"\r\n case \"WATER\":\r\n return \"shuijin\"\r\n case \"BATTERY\":\r\n return \"dianchi\"\r\n case \"UPS\":\r\n return \"UPS\"\r\n case \"PD\":\r\n return \"peidian\"\r\n case \"FAN\":\r\n return \"fengjifengshan\"\r\n case \"SMOKE\":\r\n return \"yangan\"\r\n case \"DOOR\":\r\n return \"menjin\"\r\n case \"video\":\r\n return \"shipin\"\r\n case \"fire\":\r\n return \"xiaofang\"\r\n case \"fanglei\":\r\n return \"fanglei\"\r\n\r\n default:\r\n return \"wenshidu\"\r\n }\r\n },\r\n getList(params) {\r\n getThresholdByDictionary(params).then((res) => {\r\n if (res.data === null) {\r\n this.onOff = 1\r\n this.form = {\r\n paramType: 1,\r\n maxVal: null,\r\n minVal: null,\r\n timeGap: null,\r\n alarmLevel: 3,\r\n alarmInfo: null\r\n }\r\n } else {\r\n this.form.threshold = res.data.threshold\r\n if (res.data.paramType == 2) {\r\n this.onOff = res.data.maxVal == 1 && res.data.minVal == 1 ? 1 : 0\r\n }\r\n this.form.tdId = res.data.tdId\r\n this.form.paramType = res.data.paramType\r\n this.form.maxVal = res.data.maxVal\r\n this.form.minVal = res.data.minVal\r\n this.form.timeGap = res.data.timeGap\r\n this.form.alarmLevel = res.data.alarmLevel\r\n this.form.alarmInfo = res.data.alarmInfo\r\n }\r\n })\r\n },\r\n getMenuList() {\r\n getDictionaryType().then((res) => {\r\n this.tabList = res.data\r\n this.typeName = res.data[0].typeName\r\n this.getTabList(res.data[0].typeCode)\r\n this.typeCode = res.data[0].typeCode.toString()\r\n })\r\n },\r\n getTabList(code) {\r\n if (this.typeCode === code) {\r\n return\r\n }\r\n this.menuList = []\r\n getDictionaryByCode({ typeCode: code }).then((res) => {\r\n console.log(res)\r\n this.menuList = res.data.map((e) => {\r\n if (this.$i18n.locale == \"en\") {\r\n e.signName = e.enSignName\r\n }\r\n return e\r\n })\r\n this.dictionaryId = res.data[0].dictionaryId.toString()\r\n this.signName = res.data[0].signName.toString()\r\n this.paramData = {\r\n signId: res.data[0].signId,\r\n typeCode: res.data[0].typeCode,\r\n paramName: res.data[0].signName\r\n }\r\n\r\n this.getList(this.paramData)\r\n })\r\n },\r\n handleClick(tab) {\r\n this.typeName = tab.label\r\n console.log(tab)\r\n },\r\n handleSelect(item) {\r\n console.log(item)\r\n this.dictionaryId = item.dictionaryId.toString()\r\n this.signName = item.signName\r\n this.paramData = {\r\n signId: item.signId,\r\n typeCode: item.typeCode,\r\n paramName: item.signName\r\n }\r\n this.getList(this.paramData)\r\n },\r\n updateData() {\r\n this.$refs.form.validate((valid) => {\r\n if (valid) {\r\n var params = JSON.parse(JSON.stringify(this.form))\r\n if (this.form.paramType == 2) {\r\n if (this.onOff == 1) {\r\n params.maxVal = 1\r\n params.minVal = 1\r\n } else {\r\n params.maxVal = 0\r\n params.minVal = 0\r\n }\r\n }\r\n params.signId = this.paramData.signId\r\n params.typeCode = this.paramData.typeCode\r\n params.paramName = this.paramData.paramName\r\n updateThreshold(params).then((res) => {\r\n if (res.status == 200) {\r\n this.$notify({\r\n title: this.$t(\"title.success\"),\r\n message: this.$t(\"title.updateSuccess\"),\r\n type: \"success\",\r\n duration: 3000\r\n })\r\n }\r\n })\r\n }\r\n })\r\n }\r\n }\r\n}\r\n</script>\r\n<style scoped lang=\"scss\">\r\n.app-container {\r\n padding: 48px 24px;\r\n}\r\n.cover {\r\n display: block;\r\n width: 100%;\r\n padding: 0 10px 0 20px;\r\n position: absolute;\r\n display: flex;\r\n align-items: center;\r\n span {\r\n display: block;\r\n line-height: 16px;\r\n white-space: normal;\r\n }\r\n}\r\n</style>\r\n<!-- -->\r\n<style rel=\"stylesheet/scss\" lang=\"scss\">\r\n.tabBox {\r\n height: 670px;\r\n overflow-y: auto;\r\n .el-tabs--left .el-tabs__header.is-left {\r\n overflow: hidden;\r\n }\r\n .el-tabs__active-bar {\r\n display: none;\r\n }\r\n .el-tabs__item {\r\n padding: 0;\r\n width: 200px;\r\n height: 50px;\r\n line-height: 50px;\r\n margin: 3px 0px;\r\n font-size: 15px;\r\n font-family: Microsoft YaHei;\r\n font-weight: 400;\r\n color: #d2ffff;\r\n background-image: url(\"../../assets/images/threshold/default.png\");\r\n background-repeat: no-repeat;\r\n background-size: 100% 100%;\r\n &:hover {\r\n color: #01ffe9;\r\n background-image: url(\"../../assets/images/threshold/hover.png\");\r\n }\r\n &.is-active {\r\n width: 214px;\r\n color: #01ffe9;\r\n background-image: url(\"../../assets/images/threshold/active.png\");\r\n .cover {\r\n padding-right: 22px;\r\n }\r\n }\r\n &.is-left {\r\n text-align: left;\r\n }\r\n .iconfont {\r\n font-size: 20px;\r\n margin-right: 12px;\r\n }\r\n }\r\n .el-tabs__nav-wrap::after {\r\n width: 0px !important;\r\n }\r\n .el-tabs__header {\r\n padding: 0;\r\n }\r\n}\r\n\r\n.contentBox {\r\n width: calc(100% - 300px);\r\n height: 670px;\r\n position: absolute;\r\n top: 48px;\r\n right: 54px;\r\n border: 1px solid #00a696;\r\n .menu-top-btn {\r\n position: absolute;\r\n display: inline-block;\r\n width: 250px;\r\n height: 60px;\r\n line-height: 60px;\r\n font-family: Microsoft YaHei;\r\n font-weight: 400;\r\n font-size: 14px;\r\n padding: 0 20px;\r\n background-color: transparent;\r\n border-right: 1px solid #00a696;\r\n color: #00bfad;\r\n cursor: default;\r\n }\r\n // 菜单\r\n .menuBox {\r\n width: 250px;\r\n height: calc(100% - 60px);\r\n position: absolute;\r\n left: 0px;\r\n top: 60px;\r\n display: inline-block;\r\n overflow-y: auto;\r\n border-right: 1px solid #00a696;\r\n .menu {\r\n border: none;\r\n .el-menu-item {\r\n color: #99bdbc;\r\n white-space: normal;\r\n line-height: 18px;\r\n min-height: 48px;\r\n height: auto;\r\n display: flex;\r\n align-items: center;\r\n padding: 5px 20px;\r\n &.is-active {\r\n color: #01ffe9;\r\n border: none;\r\n }\r\n &:hover {\r\n color: #00bfad;\r\n }\r\n }\r\n }\r\n }\r\n .content {\r\n width: calc(100% - 160px);\r\n height: 100%;\r\n display: inline-block;\r\n border: 1px solid #164d56;\r\n padding-left: 258px;\r\n // 面包屑\r\n .breadcrumb {\r\n padding: 48px 0;\r\n .el-breadcrumb__inner.is-link,\r\n .el-breadcrumb__inner a,\r\n .el-breadcrumb__inner,\r\n .el-breadcrumb__separator {\r\n font-size: 16px;\r\n font-family: Microsoft YaHei;\r\n font-weight: 400;\r\n color: #01ffe9;\r\n }\r\n }\r\n // 变化的数据\r\n .dataBox {\r\n .el-input,\r\n .el-input-number {\r\n width: 200px;\r\n }\r\n .el-textarea {\r\n width: 500px;\r\n }\r\n .btn-item {\r\n margin-top: 20px;\r\n }\r\n }\r\n }\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./threshold.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./threshold.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./threshold.vue?vue&type=template&id=f86f1f4a&scoped=true&\"\nimport script from \"./threshold.vue?vue&type=script&lang=js&\"\nexport * from \"./threshold.vue?vue&type=script&lang=js&\"\nimport style0 from \"./threshold.vue?vue&type=style&index=0&id=f86f1f4a&scoped=true&lang=scss&\"\nimport style1 from \"./threshold.vue?vue&type=style&index=1&rel=stylesheet%2Fscss&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"f86f1f4a\",\n null\n \n)\n\nexport default component.exports","var $ = require('../internals/export');\nvar global = require('../internals/global');\nvar getBuiltIn = require('../internals/get-built-in');\nvar apply = require('../internals/function-apply');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\n\nvar Array = global.Array;\nvar $stringify = getBuiltIn('JSON', 'stringify');\nvar exec = uncurryThis(/./.exec);\nvar charAt = uncurryThis(''.charAt);\nvar charCodeAt = uncurryThis(''.charCodeAt);\nvar replace = uncurryThis(''.replace);\nvar numberToString = uncurryThis(1.0.toString);\n\nvar tester = /[\\uD800-\\uDFFF]/g;\nvar low = /^[\\uD800-\\uDBFF]$/;\nvar hi = /^[\\uDC00-\\uDFFF]$/;\n\nvar fix = function (match, offset, string) {\n var prev = charAt(string, offset - 1);\n var next = charAt(string, offset + 1);\n if ((exec(low, match) && !exec(hi, next)) || (exec(hi, match) && !exec(low, prev))) {\n return '\\\\u' + numberToString(charCodeAt(match, 0), 16);\n } return match;\n};\n\nvar FORCED = fails(function () {\n return $stringify('\\uDF06\\uD834') !== '\"\\\\udf06\\\\ud834\"'\n || $stringify('\\uDEAD') !== '\"\\\\udead\"';\n});\n\nif ($stringify) {\n // `JSON.stringify` method\n // https://tc39.es/ecma262/#sec-json.stringify\n // https://github.com/tc39/proposal-well-formed-stringify\n $({ target: 'JSON', stat: true, forced: FORCED }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n stringify: function stringify(it, replacer, space) {\n for (var i = 0, l = arguments.length, args = Array(l); i < l; i++) args[i] = arguments[i];\n var result = apply($stringify, null, args);\n return typeof result == 'string' ? replace(result, tester, fix) : result;\n }\n });\n}\n"],"sourceRoot":""} |