1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/.cache/babel-loader/56eebb05fcf3032921eb7262fd5...

1 line
27 KiB
JSON

{"remainingRequest":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\equipmentManage\\access-config.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\equipmentManage\\access-config.vue","mtime":1614735254000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\babel-loader\\lib\\index.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.object.keys\";\nimport _defineProperty from \"C:\\\\Users\\\\27446\\\\Desktop\\\\up\\\\front\\\\dkha-web-sz-main\\\\node_modules\\\\@babel\\\\runtime-corejs2/helpers/esm/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport { getDictLabel } from \"@/utils\";\nimport debounce from 'lodash/debounce';\nexport default {\n filters: {\n typeFilter: function typeFilter(value) {\n return getDictLabel(\"accessEquipType\", value);\n }\n },\n data: function data() {\n return {\n dialogVisible: false,\n loading: false,\n dataForm: {},\n rules: {\n deviceName: [{\n required: true,\n message: '请输入',\n trigger: ['blur', 'change']\n }],\n devicePassword: [{\n required: true,\n message: '请输入',\n trigger: ['blur', 'change']\n }, {\n max: 30,\n message: '最多30个字符',\n trigger: ['blur', 'change']\n }],\n threshold: [{\n required: true,\n message: '请输入',\n trigger: ['blur', 'change']\n }],\n openDelay: [{\n required: true,\n message: '请输入',\n trigger: ['blur', 'change']\n }],\n interval: [{\n required: true,\n message: '请输入',\n trigger: ['blur', 'change']\n }],\n successRetryDelay: [{\n required: true,\n message: '请输入',\n trigger: ['blur', 'change']\n }],\n isOpenTemp: [{\n required: true,\n message: '请输入',\n trigger: ['blur', 'change']\n }],\n isOpenRadar: [{\n required: true,\n message: '请输入',\n trigger: ['blur', 'change']\n }],\n uploadRecordImage: [{\n required: true,\n message: '请输入',\n trigger: ['blur', 'change']\n }],\n successRetry: [{\n required: true,\n message: '请输入',\n trigger: ['blur', 'change']\n }],\n signDistance: [{\n required: true,\n message: '请选择',\n trigger: ['blur', 'change']\n }],\n voiceMode: [{\n required: true,\n message: '请选择',\n trigger: ['blur', 'change']\n }],\n displayMode: [{\n required: true,\n message: '请选择',\n trigger: ['blur', 'change']\n }],\n strangerMode: [{\n required: true,\n message: '请选择',\n trigger: ['blur', 'change']\n }],\n strangerVoiceMode: [{\n required: true,\n message: '请选择',\n trigger: ['blur', 'change']\n }],\n irLivePreview: [{\n required: true,\n message: '请选择',\n trigger: ['blur', 'change']\n }],\n rebootEveryDay: [{\n required: true,\n message: '请选择',\n trigger: ['blur', 'change']\n }],\n faceQualityThreshold: [{\n required: true,\n message: '请输入',\n trigger: ['blur', 'change']\n }],\n faceQuality: [{\n required: true,\n message: '请输入',\n trigger: ['blur', 'change']\n }],\n bottomTitle: [{\n required: true,\n message: '请输入',\n trigger: ['blur', 'change']\n }]\n }\n };\n },\n methods: {\n init: function init(id) {\n var _this = this;\n\n this.dialogVisible = true;\n this.loading = true; // 获取设备配置信息\n\n this.$http({\n url: \"/system/scaidooreight/getdoorsetting/\".concat(id),\n method: \"get\"\n }).then(function (_ref) {\n var res = _ref.data;\n\n if (res.code != 0) {\n return _this.$message.error(res.msg);\n }\n\n _this.dataForm = _objectSpread({\n aeId: id\n }, res.data);\n }).finally(function () {\n _this.loading = false;\n });\n },\n submitInfo: debounce(function () {\n var _this2 = this;\n\n this.$refs['dataForm'].validate(function (valid) {\n if (!valid) {\n return false;\n }\n\n _this2.loading = true;\n\n var submitData = _objectSpread({}, _this2.dataForm);\n\n for (var key in submitData) {\n if (submitData[key] === \"\") {\n delete submitData[key];\n }\n } // 提交配置信息\n\n\n _this2.$http({\n url: \"/system/scaidooreight/setdoorsetting\",\n method: 'post',\n data: submitData\n }).then(function (_ref2) {\n var data = _ref2.data;\n\n if (data.code != 0) {\n return _this2.$message.error(data.msg);\n }\n\n _this2.dialogVisible = false;\n\n _this2.$parent.$parent.query();\n\n _this2.$message.success(data.msg || '操作成功');\n }).finally(function () {\n _this2.loading = false;\n });\n });\n }, 1000)\n }\n};",{"version":3,"sources":["access-config.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyKA,SACA,YADA,QAEA,SAFA;AAGA,OAAA,QAAA,MAAA,iBAAA;AACA,eAAA;AACA,EAAA,OAAA,EAAA;AACA,IAAA,UADA,sBACA,KADA,EACA;AACA,aAAA,YAAA,CAAA,iBAAA,EAAA,KAAA,CAAA;AACA;AAHA,GADA;AAMA,EAAA,IANA,kBAMA;AACA,WAAA;AACA,MAAA,aAAA,EAAA,KADA;AAEA,MAAA,OAAA,EAAA,KAFA;AAGA,MAAA,QAAA,EAAA,EAHA;AAIA,MAAA,KAAA,EAAA;AACA,QAAA,UAAA,EAAA,CAAA;AACA,UAAA,QAAA,EAAA,IADA;AAEA,UAAA,OAAA,EAAA,KAFA;AAGA,UAAA,OAAA,EAAA,CAAA,MAAA,EAAA,QAAA;AAHA,SAAA,CADA;AAMA,QAAA,cAAA,EAAA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,UAAA,EAAA,QAAA,CAAA,YAAA;AAAA;;AACA,WAAA,KAAA,CAAA,UAAA,EAAA,QAAA,CAAA,UAAA,KAAA,EAAA;AACA,YAAA,CAAA,KAAA,EAAA;AACA,iBAAA,KAAA;AACA;;AACA,QAAA,MAAA,CAAA,OAAA,GAAA,IAAA;;AACA,YAAA,UAAA,qBACA,MAAA,CAAA,QADA,CAAA;;AAGA,aAAA,IAAA,GAAA,IAAA,UAAA,EAAA;AACA,cAAA,UAAA,CAAA,GAAA,CAAA,KAAA,EAAA,EAAA;AACA,mBAAA,UAAA,CAAA,GAAA,CAAA;AACA;AACA,SAZA,CAaA;;;AACA,QAAA,MAAA,CAAA,KAAA,CAAA;AACA,UAAA,GAAA,EAAA,sCADA;AAEA,UAAA,MAAA,EAAA,MAFA;AAGA,UAAA,IAAA,EAAA;AAHA,SAAA,EAIA,IAJA,CAIA,iBAEA;AAAA,cADA,IACA,SADA,IACA;;AACA,cAAA,IAAA,CAAA,IAAA,IAAA,CAAA,EAAA;AACA,mBAAA,MAAA,CAAA,QAAA,CAAA,KAAA,CAAA,IAAA,CAAA,GAAA,CAAA;AACA;;AACA,UAAA,MAAA,CAAA,aAAA,GAAA,KAAA;;AACA,UAAA,MAAA,CAAA,OAAA,CAAA,OAAA,CAAA,KAAA;;AACA,UAAA,MAAA,CAAA,QAAA,CAAA,OAAA,CAAA,IAAA,CAAA,GAAA,IAAA,MAAA;AACA,SAbA,EAaA,OAbA,CAaA,YAAA;AACA,UAAA,MAAA,CAAA,OAAA,GAAA,KAAA;AACA,SAfA;AAgBA,OA9BA;AAgCA,KAjCA,EAiCA,IAjCA;AAtBA;AAzHA,CAAA","sourcesContent":["<template>\n\t<el-dialog title=\"配置信息\" :visible.sync=\"dialogVisible\" :close-on-click-modal=\"false\" top=\"10vh\">\n\t\t<div>\n\t\t\t<el-form ref=\"dataForm\" :model=\"dataForm\" label-width=\"180px\" :rules=\"rules\">\n\t\t\t\t<el-row>\n\t\t\t\t\t<el-col :span=\"12\">\n\t\t\t\t\t\t<el-form-item label=\"设备名称\" prop=\"deviceName\">\n\t\t\t\t\t\t\t<el-input v-model=\"dataForm.deviceName\" disabled :max=\"30\"></el-input>\n\t\t\t\t\t\t</el-form-item>\n\t\t\t\t\t</el-col>\n\t\t\t\t\t<el-col :span=\"11\" :offset=\"1\">\n\t\t\t\t\t\t<el-form-item label=\"管理密码\" prop=\"devicePassword\">\n\t\t\t\t\t\t\t<el-input v-model=\"dataForm.devicePassword\" :max=\"30\"></el-input>\n\t\t\t\t\t\t</el-form-item>\n\t\t\t\t\t</el-col>\n\t\t\t\t</el-row>\n\t\t\t\t<el-row>\n\t\t\t\t\t<el-col :span=\"12\">\n\t\t\t\t\t\t<el-form-item label=\"人脸识别阈值\" prop=\"threshold\">\n\t\t\t\t\t\t\t<el-input-number v-model=\"dataForm.threshold\" :controls=\"false\" :min=\"0\" :max=\"1\" :precision=\"2\">\n\t\t\t\t\t\t\t</el-input-number>\n\t\t\t\t\t\t</el-form-item>\n\t\t\t\t\t</el-col>\n\t\t\t\t\t<el-col :span=\"11\" :offset=\"1\">\n\t\t\t\t\t\t<el-form-item label=\"关门延时\" prop=\"openDelay\">\n\t\t\t\t\t\t\t<el-input-number v-model=\"dataForm.openDelay\" :controls=\"false\" :min=\"0\" :max=\"100\" :precision=\"1\"></el-input-number>\n\t\t\t\t\t\t</el-form-item>\n\t\t\t\t\t</el-col>\n\t\t\t\t</el-row>\n\t\t\t\t<el-row>\n\t\t\t\t\t<el-col :span=\"12\">\n\t\t\t\t\t\t<el-form-item label=\"识别失败重试间隔\" prop=\"interval\">\n\t\t\t\t\t\t\t<el-input-number v-model=\"dataForm.interval\" :controls=\"false\" :min=\"1\" :max=\"10\" :precision=\"1\"></el-input-number>\n\t\t\t\t\t\t</el-form-item>\n\t\t\t\t\t</el-col>\n\t\t\t\t\t<el-col :span=\"11\" :offset=\"1\">\n\t\t\t\t\t\t<el-form-item label=\"识别成功重试间隔\" prop=\"successRetryDelay\">\n\t\t\t\t\t\t\t<el-input-number v-model=\"dataForm.successRetryDelay\" :controls=\"false\" :min=\"1\" :max=\"10\" :precision=\"1\"></el-input-number>\n\t\t\t\t\t\t</el-form-item>\n\t\t\t\t\t</el-col>\n\t\t\t\t</el-row>\n\t\t\t\t<el-row>\n\t\t\t\t\t<el-col :span=\"12\">\n\t\t\t\t\t\t<el-form-item label=\"失败语音模式\" prop=\"strangerVoiceMode\">\n\t\t\t\t\t\t\t<el-select v-model=\"dataForm.strangerVoiceMode\" placeholder=\"请选择\">\n\t\t\t\t\t\t\t\t<el-option value=\"1\" label=\"不播报\"></el-option>\n\t\t\t\t\t\t\t\t<el-option value=\"2\" label=\"播报警报音\"></el-option>\n\t\t\t\t\t\t\t\t<el-option value=\"3\" label=\"预置音-识别失败\"></el-option>\n\t\t\t\t\t\t\t\t<el-option value=\"4\" label=\"预置音-验证不通过\"></el-option>\n\t\t\t\t\t\t\t\t<!-- <el-option value=\"100\" label=\"播报自定义内容\" ></el-option> -->\n\t\t\t\t\t\t\t</el-select>\n\t\t\t\t\t\t</el-form-item>\n\t\t\t\t\t</el-col>\n\t\t\t\t\t<el-col :span=\"11\" :offset=\"1\">\n\t\t\t\t\t\t<el-form-item label=\"成功语音模式\" prop=\"voiceMode\">\n\t\t\t\t\t\t\t<el-select v-model=\"dataForm.voiceMode\" placeholder=\"请选择\">\n\t\t\t\t\t\t\t\t<el-option value=\"1\" label=\"不播报\"></el-option>\n\t\t\t\t\t\t\t\t<el-option value=\"2\" label=\"播报姓名\"></el-option>\n\t\t\t\t\t\t\t\t<el-option value=\"3\" label=\"预置音-识别成功\"></el-option>\n\t\t\t\t\t\t\t\t<el-option value=\"4\" label=\"预置音-欢迎光临\"></el-option>\n\t\t\t\t\t\t\t\t<el-option value=\"5\" label=\"预置音-门已打开\"></el-option>\n\t\t\t\t\t\t\t\t<el-option value=\"6\" label=\"预置音-门已打开,欢迎光临\"></el-option>\n\t\t\t\t\t\t\t\t<!-- <el-option value=\"100\" label=\"播报自定义内容\" ></el-option> -->\n\t\t\t\t\t\t\t</el-select>\n\t\t\t\t\t\t</el-form-item>\n\t\t\t\t\t</el-col>\n\t\t\t\t</el-row>\n\t\t\t\t<el-row>\n\t\t\t\t\t<el-col :span=\"12\">\n\t\t\t\t\t\t<el-form-item label=\"失败显示模式\" prop=\"strangerMode\">\n\t\t\t\t\t\t\t<el-select v-model=\"dataForm.strangerMode\" placeholder=\"请选择\">\n\t\t\t\t\t\t\t\t<el-option value=\"1\" label=\"默认标识\"></el-option>\n\t\t\t\t\t\t\t\t<el-option value=\"2\" label=\"不反馈\"></el-option>\n\t\t\t\t\t\t\t\t<!-- <el-option value=\"100\" label=\"显示自定义内容\" ></el-option> -->\n\t\t\t\t\t\t\t</el-select>\n\t\t\t\t\t\t</el-form-item>\n\t\t\t\t\t</el-col>\n\t\t\t\t\t<el-col :span=\"11\" :offset=\"1\">\n\t\t\t\t\t\t<el-form-item label=\"成功显示模式\" prop=\"displayMode\">\n\t\t\t\t\t\t\t<el-select v-model=\"dataForm.displayMode\" placeholder=\"请选择\">\n\t\t\t\t\t\t\t\t<el-option label=\"显示姓名\" value=\"1\"></el-option>\n\t\t\t\t\t\t\t\t<el-option label=\"隐藏姓名最后一个字符\" value=\"2\"></el-option>\n\t\t\t\t\t\t\t\t<!-- <el-option label=\"显示自定义内容\" value=\"100\"></el-option> -->\n\t\t\t\t\t\t\t</el-select>\n\t\t\t\t\t\t</el-form-item>\n\t\t\t\t\t</el-col>\n\t\t\t\t</el-row>\n\t\t\t\t<el-row>\n\t\t\t\t\t<el-col :span=\"12\">\n\t\t\t\t\t\t<el-form-item label=\"识别距离\" prop=\"signDistance\">\n\t\t\t\t\t\t\t<el-select v-model=\"dataForm.signDistance\" placeholder=\"请选择\">\n\t\t\t\t\t\t\t\t<el-option :value=\"1\" label=\"0~1米\"></el-option>\n\t\t\t\t\t\t\t\t<el-option :value=\"2\" label=\"0~1.5米\"></el-option>\n\t\t\t\t\t\t\t\t<el-option :value=\"3\" label=\"0~2米\"></el-option>\n\t\t\t\t\t\t\t\t<el-option :value=\"4\" label=\"0~2.5米\"></el-option>\n\t\t\t\t\t\t\t\t<el-option :value=\"5\" label=\"0~3.5米\"></el-option>\n\t\t\t\t\t\t\t</el-select>\n\t\t\t\t\t\t</el-form-item>\n\t\t\t\t\t</el-col>\n\t\t\t\t\t<el-col :span=\"11\" :offset=\"1\">\n\t\t\t\t\t\t<el-form-item label=\"公司名称\" prop=\"companyName\">\n\t\t\t\t\t\t\t<el-input v-model=\"dataForm.companyName\" placeholder=\"请输入\" :max=\"30\"></el-input>\n\t\t\t\t\t\t</el-form-item>\n\t\t\t\t\t</el-col>\n\t\t\t\t</el-row>\n\t\t\t\t<el-row>\n\t\t\t\t\t<el-col :span=\"12\">\n\t\t\t\t\t\t<el-form-item label=\"是否打开测温\" prop=\"isOpenTemp\">\n\t\t\t\t\t\t\t<el-switch v-model=\"dataForm.isOpenTemp\" :active-value=\"true\" :inactive-value=\"false\"></el-switch>\n\t\t\t\t\t\t</el-form-item>\n\t\t\t\t\t</el-col>\n\t\t\t\t\t<el-col :span=\"11\" :offset=\"1\">\n\t\t\t\t\t\t<el-form-item label=\"是否打开暗屏\" prop=\" isOpenRadar\">\n\t\t\t\t\t\t\t<el-switch v-model=\"dataForm.isOpenRadar\" :active-value=\"true\" :inactive-value=\"false\"></el-switch>\n\t\t\t\t\t\t</el-form-item>\n\t\t\t\t\t</el-col>\n\t\t\t\t</el-row>\n\t\t\t\t<el-row>\n\t\t\t\t\t<el-col :span=\"12\">\n\t\t\t\t\t\t<el-form-item label=\"识别记录图片上传开关\" prop=\"uploadRecordImage\">\n\t\t\t\t\t\t\t<el-switch v-model=\"dataForm.uploadRecordImage\" :active-value=\"1\" :inactive-value=\"0\"></el-switch>\n\t\t\t\t\t\t</el-form-item>\n\t\t\t\t\t</el-col>\n\t\t\t\t\t<el-col :span=\"11\" :offset=\"1\">\n\t\t\t\t\t\t<el-form-item label=\"识别成功重试开关\" prop=\"successRetry\">\n\t\t\t\t\t\t\t<el-switch v-model=\"dataForm.successRetry\" :active-value=\"1\" :inactive-value=\"0\"></el-switch>\n\t\t\t\t\t\t</el-form-item>\n\t\t\t\t\t</el-col>\n\t\t\t\t</el-row>\n\t\t\t\t<el-row>\n\t\t\t\t\t<el-col :span=\"12\">\n\t\t\t\t\t\t<el-form-item label=\"IR活体预览显示开关\" prop=\"irLivePreview\">\n\t\t\t\t\t\t\t<el-switch v-model=\"dataForm.irLivePreview\" :active-value=\"1\" :inactive-value=\"0\"></el-switch>\n\t\t\t\t\t\t</el-form-item>\n\t\t\t\t\t</el-col>\n\t\t\t\t\t<el-col :span=\"11\" :offset=\"1\">\n\t\t\t\t\t\t<el-form-item label=\"设备每日重启开关\" prop=\"rebootEveryDay\">\n\t\t\t\t\t\t\t<el-switch v-model=\"dataForm.rebootEveryDay\" :active-value=\"1\" :inactive-value=\"0\"></el-switch>\n\t\t\t\t\t\t</el-form-item>\n\t\t\t\t\t</el-col>\n\t\t\t\t</el-row>\n\t\t\t\t<el-row>\n\t\t\t\t\t<el-col :span=\"12\">\n\t\t\t\t\t\t<el-form-item label=\"人脸质量检测开关\" prop=\"faceQuality\">\n\t\t\t\t\t\t\t<el-switch v-model=\"dataForm.faceQuality\" :active-value=\"1\" :inactive-value=\"0\"></el-switch>\n\t\t\t\t\t\t</el-form-item>\n\t\t\t\t\t</el-col>\n\t\t\t\t\t<el-col :span=\"11\" :offset=\"1\">\n\t\t\t\t\t\t<el-form-item label=\"人脸质量检测阈值\" prop=\"faceQualityThreshold\">\n\t\t\t\t\t\t\t<el-input-number v-model=\"dataForm.faceQualityThreshold\" :controls=\"false\" :min=\"0\" :max=\"1\" :precision=\"2\"></el-input-number>\n\t\t\t\t\t\t</el-form-item>\n\t\t\t\t\t</el-col>\n\t\t\t\t</el-row>\n\t\t\t\t<el-row>\n\t\t\t\t\t<el-col :span=\"12\">\n\t\t\t\t\t\t<el-form-item label=\"底部右下角标题\" prop=\"bottomTitle\">\n\t\t\t\t\t\t\t<el-input v-model=\"dataForm.bottomTitle\" placeholder=\"请输入\" :max=\"30\"></el-input>\n\t\t\t\t\t\t</el-form-item>\n\t\t\t\t\t</el-col>\n\t\t\t\t</el-row>\n\t\t\t</el-form>\n\t\t</div>\n\t\t<div slot=\"footer\">\n\t\t\t<el-button @click=\"dialogVisible = false\">取 消</el-button>\n\t\t\t<el-button type=\"primary\" v-loading=\"loading\" @click=\"submitInfo\">确 定</el-button>\n\t\t</div>\n\t</el-dialog>\n</template>\n<script>\n\timport {\n\t\tgetDictLabel\n\t} from \"@/utils\";\n\timport debounce from 'lodash/debounce'\n\texport default {\n\t\tfilters: {\n\t\t\ttypeFilter(value) {\n\t\t\t\treturn getDictLabel(\"accessEquipType\", value);\n\t\t\t}\n\t\t},\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tdialogVisible: false,\n\t\t\t\tloading: false,\n\t\t\t\tdataForm: {},\n\t\t\t\trules: {\n\t\t\t\t\tdeviceName: [{\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\tmessage: '请输入',\n\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t}, ],\n\t\t\t\t\tdevicePassword: [{\n\t\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\t\tmessage: '请输入',\n\t\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmax: 30,\n\t\t\t\t\t\t\tmessage: '最多30个字符',\n\t\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t\tthreshold: [{\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\tmessage: '请输入',\n\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t}, ],\n\t\t\t\t\topenDelay: [{\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\tmessage: '请输入',\n\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t}, ],\n\t\t\t\t\tinterval: [{\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\tmessage: '请输入',\n\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t}, ],\n\t\t\t\t\tsuccessRetryDelay: [{\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\tmessage: '请输入',\n\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t}, ],\n\t\t\t\t\tisOpenTemp: [{\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\tmessage: '请输入',\n\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t}, ],\n\t\t\t\t\tisOpenRadar: [{\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\tmessage: '请输入',\n\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t}, ],\n\t\t\t\t\tuploadRecordImage: [{\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\tmessage: '请输入',\n\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t}, ],\n\t\t\t\t\tsuccessRetry: [{\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\tmessage: '请输入',\n\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t}, ],\n\t\t\t\t\tsignDistance: [{\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\tmessage: '请选择',\n\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t}, ],\n\t\t\t\t\tvoiceMode: [{\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\tmessage: '请选择',\n\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t}, ],\n\t\t\t\t\tdisplayMode: [{\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\tmessage: '请选择',\n\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t}, ],\n\t\t\t\t\tstrangerMode: [{\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\tmessage: '请选择',\n\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t}, ],\n\t\t\t\t\tstrangerVoiceMode: [{\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\tmessage: '请选择',\n\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t}, ],\n\t\t\t\t\tirLivePreview: [{\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\tmessage: '请选择',\n\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t}, ],\n\t\t\t\t\trebootEveryDay: [{\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\tmessage: '请选择',\n\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t}, ],\n\t\t\t\t\tfaceQualityThreshold: [{\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\tmessage: '请输入',\n\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t}, ],\n\t\t\t\t\tfaceQuality: [{\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\tmessage: '请输入',\n\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t}, ],\n\t\t\t\t\tbottomTitle: [{\n\t\t\t\t\t\trequired: true,\n\t\t\t\t\t\tmessage: '请输入',\n\t\t\t\t\t\ttrigger: ['blur', 'change']\n\t\t\t\t\t}, ],\n\t\t\t\t}\n\t\t\t};\n\t\t},\n\t\tmethods: {\n\t\t\tinit(id) {\n\t\t\t\tthis.dialogVisible = true;\n\t\t\t\tthis.loading = true;\n\t\t\t\t// 获取设备配置信息\n\t\t\t\tthis.$http({\n\t\t\t\t\turl: `/system/scaidooreight/getdoorsetting/${id}`,\n\t\t\t\t\tmethod: \"get\"\n\t\t\t\t}).then(({\n\t\t\t\t\tdata: res\n\t\t\t\t}) => {\n\t\t\t\t\tif (res.code != 0) {\n\t\t\t\t\t\treturn this.$message.error(res.msg)\n\t\t\t\t\t}\n\t\t\t\t\tthis.dataForm = {\n\t\t\t\t\t\taeId: id,\n\t\t\t\t\t\t...res.data\n\t\t\t\t\t}\n\t\t\t\t}).finally(() => {\n\t\t\t\t\tthis.loading = false;\n\t\t\t\t})\n\t\t\t},\n\t\t\tsubmitInfo: debounce(function() {\n\t\t\t\tthis.$refs['dataForm'].validate((valid) => {\n\t\t\t\t\tif (!valid) {\n\t\t\t\t\t\treturn false\n\t\t\t\t\t}\n\t\t\t\t\tthis.loading = true;\n\t\t\t\t\tlet submitData = {\n\t\t\t\t\t\t...this.dataForm\n\t\t\t\t\t}\n\t\t\t\t\tfor (let key in submitData) {\n\t\t\t\t\t\tif (submitData[key] === \"\") {\n\t\t\t\t\t\t\tdelete submitData[key]\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// 提交配置信息\n\t\t\t\t\tthis.$http({\n\t\t\t\t\t\turl: \"/system/scaidooreight/setdoorsetting\",\n\t\t\t\t\t\tmethod: 'post',\n\t\t\t\t\t\tdata: submitData\n\t\t\t\t\t}).then(({\n\t\t\t\t\t\tdata\n\t\t\t\t\t}) => {\n\t\t\t\t\t\tif (data.code != 0) {\n\t\t\t\t\t\t\treturn this.$message.error(data.msg)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthis.dialogVisible = false;\n\t\t\t\t\t\tthis.$parent.$parent.query();\n\t\t\t\t\t\tthis.$message.success(data.msg || '操作成功')\n\t\t\t\t\t}).finally(() => {\n\t\t\t\t\t\tthis.loading = false;\n\t\t\t\t\t})\n\t\t\t\t})\n\n\t\t\t}, 1000),\n\t\t}\n\t};\n</script>\n<style lang=\"scss\" scoped>\n\t.el-dialog {\n\t\t.el-row {\n\t\t\tcolor: #fff;\n\t\t\tline-height: 35px;\n\t\t}\n\n\t\t.el-input,\n\t\t.el-input-number,\n\t\t.el-select {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t.el-switch {\n\t\t\tmargin-left: 20px;\n\n\t\t\t/deep/.el-switch__label {\n\t\t\t\tcolor: #fff;\n\n\t\t\t\t&.is-active {\n\t\t\t\t\tcolor: #17B3A3;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n</style>\n"],"sourceRoot":"src/views/modules/equipmentManage"}]}