{"version":3,"sources":["webpack:///./src/directive/permission/permission.js","webpack:///./src/directive/permission/index.js","webpack:///./src/api/deviceType.js","webpack:///./src/views/manager/deviceType.vue?cf6b","webpack:///src/views/manager/deviceType.vue","webpack:///./src/views/manager/deviceType.vue?aa88","webpack:///./src/views/manager/deviceType.vue","webpack:///./src/api/upload.js"],"names":["inserted","el","binding","value","roles","store","getters","butPermission","console","log","Array","length","Error","permissionRoles","hasPermission","some","role","includes","state","user","permissionFlag","newnode","document","createElement","style","cursor","display","pointerEvents","parentNode","insertBefore","removeChild","appendChild","install","Vue","directive","permission","window","use","getTypeList","data","request","url","method","params","addType","headers","deleteType","delData","typeById","updateType","render","_vm","this","_h","$createElement","_c","_self","staticClass","staticStyle","attrs","$t","nativeOn","$event","type","indexOf","_k","keyCode","key","handleFilter","apply","arguments","model","listQuery","callback","$$v","$set","expression","on","_v","_s","clearListQuery","handleCreate","directives","name","rawName","children","hasChildren","getChange","handleCurrentChange","scopedSlots","_u","fn","scope","row","icon","handleUpdate","handleDelete","textMap","dialogStatus","addDialog","ref","rules","form","fileList","beforeUpload","handleFileSuccess","handleFileError","handleRemove","uploadFile","slot","createData","updateData","staticRenderFns","computed","userName","$store","validateIcon","File","imageList","beforeUploadImg","listLoading","createStatus","parentIdBox","update","create","parentName","typeId","parentId","typeName","typeCode","currentRow","total","required","message","trigger","validator","created","getList","methods","filterDeptList","e","subList","route","editDeptList","_parent","$nextTick","$refs","validate","valid","title","duration","deleteFile","resetForm","then","catch","$notify","$confirm","confirmButtonText","cancelButtonText","val","expanded","file","$message","error","testmsg","test","isLt5M","response","status","err","push","item","component","fileData","FormData","append","dataForm","host","fileUrl","qs","stringify"],"mappings":"wKAEe,GACbA,SADa,SACJC,EAAIC,GACX,IAAQC,EAAUD,EAAVC,MAEFC,EAAQC,OAAMC,SAAWD,OAAMC,QAAQC,cAE7C,GADAC,QAAQC,IAAIL,EAAO,WACfD,GAASA,aAAiBO,OAASP,EAAMQ,OAAS,GAyBpD,MAAM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AEhCnG,KAAKiE,KAAKqD,KAAKtH,KAAKkD,KAAKR,MAE3B1C,KAAKkD,KAAKR,KAAO,IAGnBc,WApOJ,SAoOA+D,GAAA,WACMnK,QAAQA,IAAIA,GACZoG,kDACEpG,QAAQA,IAAIA,GACZ,EAAR,uBCvbmW,I,YCO/VoK,EAAY,eACd,EACA1H,EACA8D,GACA,EACA,KACA,KACA,MAIa,aAAA4D,E,6CClBf,yGAwBO,SAAShE,EAAWrE,EAAME,GAC/B,IAAIoI,EAAW,IAAIC,SAGnB,OAFAD,EAASE,OAAO,OAAQxI,GACxBsI,EAASE,OAAO,OAAQtI,GACjBD,eAAQ,CACbK,QAAS,CACP,eAAgB,uBAElBJ,IAAK,qCACLC,OAAQ,OACRH,KAAMsI,IAKH,SAAStB,EAAWyB,EAAUvI,GACnC,IAAIF,EAAO,CACT0I,KAAMxI,EACNyI,QAASF,GAGX,OADAzI,EAAO4I,IAAGC,UAAU7I,GACbC,eAAQ,CACbC,IAAK,0CACLC,OAAQ,OACRH","file":"js/chunk-227a6a15.0f245f24.js","sourcesContent":["import store from \"@/store\";\r\n\r\nexport default {\r\n inserted(el, binding) {\r\n const { value } = binding;\r\n // const roles = store.getters && store.getters.roles\r\n const roles = store.getters && store.getters.butPermission;\r\n console.log(roles, 'roles');\r\n if (value && value instanceof Array && value.length > 0) {\r\n const permissionRoles = value;\r\n const hasPermission = roles.some(role => {\r\n return permissionRoles.includes(role);\r\n });\r\n console.log(hasPermission, 'hasPermission');\r\n if (!hasPermission) {\r\n // el.parentNode && el.parentNode.removeChild(el) \r\n\r\n store.state.user.permissionFlag[permissionRoles] = true;\r\n\r\n\r\n console.log(store.state.user.permissionFlag[permissionRoles], 'permissionRoles');\r\n const newnode = document.createElement(\"div\");\r\n newnode.style.cursor = 'not-allowed'\r\n newnode.style.display = 'inline-block'\r\n el.style.pointerEvents = \"none\"\r\n el.parentNode.insertBefore(newnode, el)\r\n el.parentNode && el.parentNode.removeChild(el)\r\n newnode.appendChild(el);\r\n console.log(el, 'permissionRoles');\r\n } else {\r\n store.state.user.permissionFlag[permissionRoles] = false;\r\n }\r\n } else {\r\n throw new Error(`need roles! Like v-permission=\"['admin','editor']\"`);\r\n }\r\n }\r\n};","import permission from \"./permission\";\n\nconst install = function(Vue) {\n Vue.directive(\"permission\", permission);\n};\n\nif (window.Vue) {\n window[\"permission\"] = permission;\n Vue.use(install); // eslint-disable-line\n}\n\npermission.install = install;\nexport default permission;\n","import request from '@/utils/request'\r\n// import qs from 'qs'\r\n/*\r\n 管理台-设备类型 权限操作api\r\n*/\r\n\r\n// 根据typeId查询设备类型信息\r\nexport function getTypeById(data) {\r\n return request({\r\n url: 'device-service/type/getTypeById',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 根据筛选项查询设备类型列表\r\nexport function getTypeList(data) {\r\n return request({\r\n url: 'device-service/type/getTypeList',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 录入设备类型信息\r\nexport function addType(data) {\r\n return request({\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n url: 'device-service/type/addType',\r\n method: 'post',\r\n data\r\n })\r\n}\r\n\r\n// 删除设备类型信息\r\nexport function deleteType(data) {\r\n const delData = {\r\n typeById: data\r\n }\r\n return request({\r\n url: 'device-service/type/deleteType',\r\n method: 'delete',\r\n params: delData\r\n })\r\n}\r\n\r\n// 批量删除设备类型信息\r\nexport function deleteTypeList(data) {\r\n const delData = {\r\n typeIds: data\r\n }\r\n return request({\r\n url: 'device-service/type/deleteTypeList',\r\n method: 'delete',\r\n params: delData\r\n })\r\n}\r\n\r\n// 修改设备类型信息\r\nexport function updateType(data) {\r\n return request({\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n url: 'device-service/type/updateType',\r\n method: 'put',\r\n data\r\n })\r\n}\r\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"app-container department\"},[_c('div',{staticClass:\"decorate\"}),_c('div',{staticClass:\"filter-container\"},[_c('el-input',{staticClass:\"filter-item\",staticStyle:{\"width\":\"180px\"},attrs:{\"placeholder\":_vm.$t('deviceType.typeName')},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.handleFilter.apply(null, arguments)}},model:{value:(_vm.listQuery.typeName),callback:function ($$v) {_vm.$set(_vm.listQuery, \"typeName\", $$v)},expression:\"listQuery.typeName\"}}),_c('span',{staticClass:\"btn-item\",on:{\"click\":_vm.handleFilter}},[_c('i',{staticClass:\"iconfont icon-sousuo\"}),_vm._v(_vm._s(_vm.$t(\"btn.search\")))]),_c('span',{staticClass:\"btn-item\",on:{\"click\":_vm.clearListQuery}},[_c('i',{staticClass:\"el-icon-refresh-left\"}),_vm._v(\" \"+_vm._s(_vm.$t(\"btn.resetting\")))]),_c('div',{staticClass:\"control-container\"},[_c('span',{staticClass:\"btn-item\",on:{\"click\":function($event){return _vm.handleCreate(0)}}},[_c('i',{staticClass:\"iconfont icon-a-\"}),_vm._v(_vm._s(_vm.$t(\"deviceType.addAType\")))])])],1),_c('div',{staticClass:\"table-container\"},[_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.listLoading),expression:\"listLoading\"}],attrs:{\"data\":_vm.data,\"row-key\":\"typeId\",\"max-height\":\"580\",\"default-expand-all\":\"\",\"header-row-class-name\":\"table-header\",\"row-class-name\":\"table-row\",\"highlight-current-row\":\"\",\"tree-props\":{ children: 'children', hasChildren: 'hasChildren' }},on:{\"expand-change\":_vm.getChange,\"current-change\":_vm.handleCurrentChange}},[_c('el-table-column',{attrs:{\"prop\":\"typeName\",\"align\":\"left\",\"label\":_vm.$t('deviceType.typeName')}}),_c('el-table-column',{attrs:{\"prop\":\"typeCode\",\"align\":\"left\",\"label\":_vm.$t('deviceType.typeCode')}}),_c('el-table-column',{attrs:{\"label\":_vm.$t('deviceType.icon'),\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('img',{staticStyle:{\"width\":\"36px\",\"height\":\"36px\"},attrs:{\"src\":scope.row.icon}})]}}])}),_c('el-table-column',{attrs:{\"label\":_vm.$t('table.operate'),\"width\":\"260\",\"align\":\"left\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',{staticClass:\"btnCancel\",attrs:{\"title\":_vm.$t('table.update')},on:{\"click\":function($event){return _vm.handleUpdate(scope)}}},[_c('i',{staticClass:\"iconfont icon-bianji\"}),_vm._v(\" \"+_vm._s(_vm.$t(\"table.update\")))]),_c('span',{staticClass:\"btnCancel\",attrs:{\"title\":_vm.$t('deviceType.addSon')},on:{\"click\":function($event){return _vm.handleCreate(1, scope)}}},[_c('i',{staticClass:\"iconfont icon-a-\"}),_vm._v(_vm._s(_vm.$t(\"btn.add\")))]),_c('span',{staticClass:\"btnCancel delete\",attrs:{\"title\":_vm.$t('table.delete')},on:{\"click\":function($event){return _vm.handleDelete(scope)}}},[_c('i',{staticClass:\"iconfont icon-a--\"}),_vm._v(_vm._s(_vm.$t(\"table.delete\")))])]}}])})],1)],1),_c('el-dialog',{attrs:{\"close-on-click-modal\":false,\"title\":_vm.textMap[_vm.dialogStatus],\"visible\":_vm.addDialog},on:{\"update:visible\":function($event){_vm.addDialog=$event}}},[_c('el-form',{ref:\"form\",attrs:{\"rules\":_vm.rules,\"model\":_vm.form,\"inline\":\"\",\"label-width\":\"130px\"}},[_c('el-form-item',{attrs:{\"label\":_vm.$t('deviceType.typeName'),\"prop\":\"typeName\"}},[_c('el-input',{attrs:{\"placeholder\":_vm.$t('pEnter') + _vm.$t('deviceType.typeName'),\"maxlength\":\"20\"},model:{value:(_vm.form.typeName),callback:function ($$v) {_vm.$set(_vm.form, \"typeName\", $$v)},expression:\"form.typeName\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('deviceType.typeCode'),\"prop\":\"typeCode\"}},[_c('el-input',{attrs:{\"disabled\":_vm.dialogStatus === 'update',\"placeholder\":_vm.$t('pEnter') + _vm.$t('deviceType.typeCode')},model:{value:(_vm.form.typeCode),callback:function ($$v) {_vm.$set(_vm.form, \"typeCode\", $$v)},expression:\"form.typeCode\"}})],1),_c('el-form-item',{staticStyle:{\"width\":\"100%\"},attrs:{\"label\":_vm.$t('deviceType.uploadIcon')}},[_c('el-upload',{ref:\"upload\",attrs:{\"action\":\"\",\"file-list\":_vm.fileList,\"list-type\":\"picture-card\",\"before-upload\":_vm.beforeUpload,\"on-success\":_vm.handleFileSuccess,\"on-error\":_vm.handleFileError,\"on-remove\":_vm.handleRemove,\"http-request\":_vm.uploadFile}},[_c('i',{staticClass:\"el-icon-plus\"})])],1)],1),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('span',{staticClass:\"btn-item long\",on:{\"click\":function($event){_vm.addDialog = false}}},[_vm._v(_vm._s(_vm.$t(\"btn.cancel\")))]),_c('span',{staticClass:\"btn-item long\",on:{\"click\":function($event){_vm.dialogStatus === 'create' ? _vm.createData() : _vm.updateData()}}},[_vm._v(_vm._s(_vm.$t(\"btn.define\")))])])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n \r\n \r\n \r\n \r\n {{ $t(\"btn.search\") }}\r\n {{ $t(\"btn.resetting\") }}\r\n \r\n {{ $t(\"deviceType.addAType\") }}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{ $t(\"table.update\") }}\r\n \r\n {{ $t(\"btn.add\") }}\r\n {{ $t(\"table.delete\") }}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{\r\n $t(\"btn.cancel\")\r\n }}\r\n {{ $t(\"btn.define\") }}\r\n \r\n \r\n \r\n\r\n\r\n\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!./deviceType.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!./deviceType.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./deviceType.vue?vue&type=template&id=603383ad&\"\nimport script from \"./deviceType.vue?vue&type=script&lang=js&\"\nexport * from \"./deviceType.vue?vue&type=script&lang=js&\"\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 null,\n null\n \n)\n\nexport default component.exports","import request from \"@/utils/request\";\n\nimport qs from \"qs\";\n\n// 时间同步\nexport function setTimeSync(data) {\n data = qs.stringify(data);\n return request({\n url: \"platform-service/deviceInfo/setTimeSync\",\n method: \"post\",\n data,\n });\n}\n\n// 绑定xml文件\nexport function updateDeviceInfoByXML(data) {\n data = qs.stringify(data);\n return request({\n url: \"platform-service/deviceInfo/updateDeviceInfoByXML\",\n method: \"post\",\n data,\n });\n}\n// 上传\nexport function uploadFile(data, url) {\n var fileData = new FormData();\n fileData.append(\"file\", data);\n fileData.append(\"host\", url);\n return request({\n headers: {\n \"Content-Type\": \"multipart/form-data\",\n },\n url: \"trajectory-service/file/uploadFile\",\n method: \"post\",\n data: fileData,\n });\n}\n\n// 删除下载地址\nexport function deleteFile(dataForm, url) {\n let data = {\n host: url,\n fileUrl: dataForm,\n };\n data = qs.stringify(data);\n return request({\n url: \"trajectory-service/file/deleteFileByUrl\",\n method: \"post\",\n data,\n });\n}\n\n// 上传更新设备信息\nexport function uploadDeviceList(data) {\n var fileData = new FormData();\n fileData.append(\"file\", data);\n return request({\n headers: {\n \"Content-Type\": \"multipart/form-data\",\n },\n url: \"platform-service/deviceInfo/saveDeviceInfoList\",\n method: \"post\",\n data: fileData,\n });\n}\n\n\n// 根据文件模板批量新增设备\nexport function upgradeSaveDeviceList(data, deptId) {\n var fileData = new FormData();\n fileData.append(\"file\", data);\n fileData.append(\"deptId\", deptId);\n return request({\n headers: {\n \"Content-Type\": \"multipart/form-data\",\n },\n url: \"platform-service/deviceInfo/upgradeSaveDeviceList\",\n method: \"post\",\n data: fileData,\n });\n}\n\n\n\n// 上传更新点位属性信息\nexport function uploadPointList(data, deptId) {\n var fileData = new FormData();\n fileData.append(\"file\", data);\n fileData.append(\"deptId\", deptId);\n return request({\n headers: {\n \"Content-Type\": \"multipart/form-data\",\n },\n url: \"platform-service/deviceInfo/updatePointPropertyInfo\",\n method: \"post\",\n data: fileData,\n });\n}\n\n// 停止Netty通讯\nexport function closeNetty() {\n return request({\n url: \"platform-service/deviceInfo/closeNetty\",\n method: \"post\",\n });\n}\n\n\n// 查询app版本\nexport function getRedisByPrex(data) {\n return request({\n url: 'platform-service/operate/getRedisByPrex',\n method: 'get',\n params: data\n })\n}\n\n// 查询app版本\nexport function setRedisByPrex(data) {\n return request({\n url: 'platform-service/operate/setRedisByPrex',\n method: 'get',\n params: data\n })\n}"],"sourceRoot":""}