{"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-add-or-update.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\27446\\Desktop\\up\\front\\dkha-web-sz-main\\src\\views\\modules\\equipmentManage\\access-add-or-update.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 \"core-js/modules/es6.regexp.search\";\nimport \"core-js/modules/es6.regexp.split\";\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//\nimport { getDictDataList, treeDataTranslate } from '@/utils';\nimport { validateIP } from '@/utils/validate';\nimport debounce from 'lodash/debounce';\nexport default {\n data: function data() {\n return {\n deptList: [],\n dialogVisible: false,\n loading: false,\n type: 'post',\n addressList: [],\n dataForm: {\n aeClientip: '192.168.24.',\n dfFloorid: [],\n aeClientport: '3639',\n aeSerialnumber: 'NZ53M',\n aeDevicename: '',\n aeSigntype: '1',\n aeExpirydate: new Date(2030, 10, 10),\n aeSignkey: '123456',\n floorName: '',\n aeMainboard: '0',\n remark: ''\n },\n accessEquipTypeList: getDictDataList('accessEquipType'),\n accessDevinceTypeList: getDictDataList('accessDevinceType'),\n eightInchesEquipTypeList: getDictDataList('eightInchesEquipType'),\n rules: {\n aeClientip: [{\n required: true,\n validator: validateIP,\n trigger: ['blur', 'change']\n }],\n dfFloorid: [{\n required: true,\n message: '请选择',\n trigger: ['blur', 'change']\n }],\n aeDeviceid: [{\n required: true,\n message: '请输入',\n trigger: ['blur', 'change']\n }],\n aeClientport: [{\n required: true,\n message: '请输入',\n trigger: ['blur', 'change']\n }],\n aeSerialnumber: [{\n required: true,\n message: '请输入',\n trigger: ['blur', 'change']\n }],\n aeDevicename: [{\n required: true,\n message: '请输入',\n trigger: ['blur', 'change']\n }],\n aeSigntype: [{\n required: true,\n message: '请选择',\n trigger: ['blur', 'change']\n }],\n aeExpirydate: [{\n required: true,\n message: '请选择',\n trigger: ['blur', 'change']\n }],\n aeSignkey: [{\n required: true,\n message: '请选择',\n trigger: ['blur', 'change']\n }],\n aeDevicetype: [{\n required: true,\n message: '请选择',\n trigger: ['blur', 'change']\n }],\n aeMainboard: [{\n required: true,\n message: '请选择',\n trigger: ['blur', 'change']\n }]\n }\n };\n },\n methods: {\n // 获取部门列表\n getDeptList: function getDeptList() {\n var _this = this;\n\n return this.$http.get('/sys/dept/list').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.deptList = res.data;\n }).catch(function () {});\n },\n // 获取选中的部门列表\n getDeptCheckList: function getDeptCheckList() {\n var _this2 = this;\n\n return this.$http.get('/system/scaidooreight/dept/' + this.dataForm.aeId).then(function (_ref2) {\n var res = _ref2.data;\n\n if (res.code !== 0) {\n return _this2.$message.error(res.msg);\n }\n\n _this2.dataForm.deptIdList = res.data.map(function (item) {\n return item.deptId;\n });\n\n _this2.$refs.deptListTree.setCheckedKeys(_this2.dataForm.deptIdList); //this.deptList = res.data\n\n }).catch(function () {});\n },\n init: function init(data) {\n var _this3 = this;\n\n this.dialogVisible = true; // 获取最新楼层信息\n\n this.getAddressList();\n this.getDeptList(); // 编辑\n\n if (data) {\n this.type = \"put\";\n this.dataForm = _objectSpread({}, data, {\n aeSigntype: String(data.aeSigntype),\n aeDevicetype: String(data.aeDevicetype),\n aeMainboard: String(data.aeMainboard),\n dfFloorid: data.dfFloorid.split(\",\")\n });\n } else {\n this.type = \"post\";\n this.dataForm = {\n aeClientip: '192.168.24.',\n dfFloorid: [],\n aeClientport: '3639',\n aeSerialnumber: 'NZ53M',\n aeDevicename: '',\n aeSigntype: '1',\n aeExpirydate: new Date(2030, 10, 10),\n aeSignkey: '123456',\n floorName: '',\n aeMainboard: '0',\n remark: ''\n };\n this.$nextTick(function () {\n _this3.$refs['dataForm'].clearValidate();\n });\n }\n\n this.$nextTick(function () {\n _this3.$refs.deptListTree.setCheckedKeys([]);\n });\n\n if (this.dataForm.aeId) {\n this.getDeptCheckList();\n }\n },\n submitInfo: debounce(function () {\n var _this4 = this;\n\n this.$refs['dataForm'].validate(function (valid) {\n if (!valid) {\n return false;\n }\n\n _this4.loading = true;\n\n var submitData = _objectSpread({}, _this4.dataForm, {\n dfFloorid: _this4.dataForm.dfFloorid.join(\",\"),\n deptIdList: _this4.$refs.deptListTree.getCheckedKeys()\n });\n\n _this4.$http({\n url: \"/system/scaidooreight\",\n method: _this4.type,\n data: submitData\n }).then(function (_ref3) {\n var data = _ref3.data;\n\n if (data.code != 0) {\n return _this4.$message.error(data.msg);\n }\n\n _this4.dialogVisible = false;\n\n if (_this4.type == 'post') {\n _this4.$parent.$parent.search();\n\n _this4.$parent.$parent.resetForm('ruleForm');\n } else {// this.$parent.$parent.search();\n }\n\n _this4.$message.success(data.msg || '操作成功');\n }).finally(function () {\n _this4.loading = false;\n });\n });\n }, 1000),\n // 获取楼栋和楼层的cascader\n getAddressList: function getAddressList() {\n var _this5 = this;\n\n // -1是获取所有楼栋\n this.$http.get(\"/system/scdormitoryfloor/tree/-1\").then(function (_ref4) {\n var res = _ref4.data;\n\n if (res.code !== 0) {\n return _this5.$message.error(res.msg);\n }\n\n _this5.addressList = treeDataTranslate(res.data, 'df_floorid', 'df_parentid');\n }).catch(function () {});\n }\n }\n};",{"version":3,"sources":["access-add-or-update.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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