EMS2.0-Documents/7.部署文档/Linux安装/项目前端文件/IEMS/js/chunk-3f1e6e41.f87b2bd5.js.map

1 line
64 KiB
Plaintext

{"version":3,"sources":["webpack:///./src/api/department.js","webpack:///./src/components/Pagination/index.vue?31f0","webpack:///./src/components/Pagination/index.vue?8e6f","webpack:///src/components/Pagination/index.vue","webpack:///./src/components/Pagination/index.vue?6c75","webpack:///./src/components/Pagination/index.vue?0d87","webpack:///./src/directive/permission/permission.js","webpack:///./src/directive/permission/index.js","webpack:///./src/api/site.js","webpack:///./src/api/area.js","webpack:///./src/api/upload.js","webpack:///./src/views/manager/site.vue?be92","webpack:///src/views/manager/site.vue","webpack:///./src/views/manager/site.vue?dc4b","webpack:///./src/views/manager/site.vue"],"names":["getDepartmentList","data","request","url","method","params","getDeptSubByDeptId","editSubmitApi","formData","qs","stringify","addSubmitApi","delSubmitApi","headers","render","_vm","this","_h","$createElement","_c","_self","staticClass","_b","attrs","background","currentPage","pageSize","layout","pageSizes","total","on","$event","handleSizeChange","handleCurrentChange","$attrs","staticRenderFns","name","props","required","type","page","default","limit","hidden","computed","get","set","val","$emit","methods","component","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","getSiteList","getUnChoiceDevice","getHasChoiceDevice","addSite","addSiteDevice","deleteSite","delData","siteById","updateSite","getAreaTreeList","getAreaSubByAreaId","removeArea","saveArea","updateArea","uploadFile","fileData","FormData","append","deleteFile","dataForm","host","fileUrl","deptIdList","$t","checkStrictly","emitPath","handleFilter","model","listQuery","callback","$$v","$set","expression","nativeOn","indexOf","_k","keyCode","key","apply","arguments","_v","_s","clearListQuery","handleCreate","directives","rawName","list","scopedSlots","_u","fn","scope","handleUpdate","openDevice","handleDelete","curPage","getList","textMap","dialogStatus","addDialog","ref","rules","form","handleChange","areaIdList","staticStyle","fileList","beforeUpload","handleFileSuccess","handleFileError","handleRemove","slot","createData","updateData","deviceDialog","deviceCanList","deviceList","openDeviceUpdata","components","Pagination","validatePhoto","deptId","siteName","siteCode","update","create","siteId","director","longitude","latitude","address","picture","listLoading","createStatus","File","validator","trigger","message","created","$store","getdeptIdList","res","subBeanList","obj","getAreaIdList","subList","$refs","validate","valid","then","title","duration","catch","status","resetForm","$nextTick","pswAgain","areaId","$confirm","confirmButtonText","cancelButtonText","label","relevanceDeviceList","forEach","deviceCode","file","$message","error","testmsg","test","isLt5M","response","err","push","item"],"mappings":"kHAAA,+MAiBO,SAASA,EAAkBC,GAChC,OAAOC,eAAQ,CACbC,IAAK,oCACLC,OAAQ,MACRC,OAAQJ,IAKL,SAASK,EAAmBL,GACjC,OAAOC,eAAQ,CACbC,IAAK,uCACLC,OAAQ,MACRC,OAAQJ,IAaL,SAASM,EAAcC,GAC5B,IAAMP,EAAOQ,IAAGC,UAAUF,GAC1B,OAAON,eAAQ,CACbC,IAAK,+BACLC,OAAQ,OACRH,SAKG,SAASU,EAAaH,GAC3B,IAAMP,EAAOQ,IAAGC,UAAUF,GAC1B,OAAON,eAAQ,CACbC,IAAK,6BACLC,OAAQ,OACRH,SAKG,SAASW,EAAaJ,GAC3B,OAAON,eAAQ,CACbW,QAAS,CACP,eAAgB,oBAElBV,IAAK,+BACLC,OAAQ,MAERC,OAAQG,M,oCCvEZ,W,6DCAA,IAAIM,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,wBAAwB,CAACF,EAAG,gBAAgBJ,EAAIO,GAAG,CAACC,MAAM,CAAC,WAAaR,EAAIS,WAAW,eAAeT,EAAIU,YAAY,YAAYV,EAAIW,SAAS,OAASX,EAAIY,OAAO,aAAaZ,EAAIa,UAAU,MAAQb,EAAIc,OAAOC,GAAG,CAAC,qBAAqB,SAASC,GAAQhB,EAA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AAUA,qBACE,MAApBgK,EAASlB,QACX9I,QAAQA,IAAIA,EAAUA,QAG1BkG,gBAhRJ,SAgRA+D,GACMjK,QAAQA,IAAIA,EAAKA,QAGnBmG,aApRJ,SAoRAuD,EAAA3D,GACM/F,QAAQA,IAAIA,EAAMA,EAAUA,KAAKA,MACP,WAAtB3C,KAAKkI,cAA6BlI,KAAKsK,KAAKxH,QAAU,EACxD6C,eAAWA,KAAKA,KAAKA,QAASA,KAAKA,KAEnC3F,KAAKsK,KAAKuC,KAAK7M,KAAKsI,KAAK6B,SAE3BnK,KAAKsI,KAAK6B,QAAU,IAGtB5E,WA9RJ,SA8RAuH,GAAA,WACMnK,QAAQA,IAAIA,GACZ4C,kDACE5C,QAAQA,IAAIA,GACZ,EAAR,0BC7pB6V,I,YCOzVT,EAAY,eACd,EACApC,EACAqB,GACA,EACA,KACA,WACA,MAIa,aAAAe,E","file":"js/chunk-3f1e6e41.f87b2bd5.js","sourcesContent":["import request from '@/utils/request'\r\nimport qs from 'qs'\r\n/*\r\n 系统管理-区域管理 权限操作api\r\n*/\r\n\r\n// 查询区域列表树\r\nexport function getAreaTreeList(data) {\r\n return request({\r\n url: 'user-service/area/getAreaTreeList',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n\r\n// 查询所有区域树\r\nexport function getDepartmentList(data) {\r\n return request({\r\n url: 'user-service/dept/getDeptTreeList',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 查询本级节点ID-直系子级节点\r\nexport function getDeptSubByDeptId(data) {\r\n return request({\r\n url: 'user-service/dept/getDeptSubByDeptId',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 查询区域列表\r\nexport function getDeptTreeByDeptId(data) {\r\n return request({\r\n url: 'user-service/dept/getDeptTreeByDeptId',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n// 修改\r\nexport function editSubmitApi(formData) {\r\n const data = qs.stringify(formData)\r\n return request({\r\n url: 'user-service/dept/updateDept',\r\n method: 'post',\r\n data\r\n })\r\n}\r\n\r\n// 新增\r\nexport function addSubmitApi(formData) {\r\n const data = qs.stringify(formData)\r\n return request({\r\n url: 'user-service/dept/saveDept',\r\n method: 'post',\r\n data\r\n })\r\n}\r\n\r\n// 删除\r\nexport function delSubmitApi(formData) {\r\n return request({\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n url: 'user-service/dept/removeDept',\r\n method: 'get',\r\n\r\n params: formData\r\n })\r\n}\r\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=4dfad654&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"pagination-container\"},[_c('el-pagination',_vm._b({attrs:{\"background\":_vm.background,\"current-page\":_vm.currentPage,\"page-size\":_vm.pageSize,\"layout\":_vm.layout,\"page-sizes\":_vm.pageSizes,\"total\":_vm.total},on:{\"update:currentPage\":function($event){_vm.currentPage=$event},\"update:current-page\":function($event){_vm.currentPage=$event},\"update:pageSize\":function($event){_vm.pageSize=$event},\"update:page-size\":function($event){_vm.pageSize=$event},\"size-change\":_vm.handleSizeChange,\"current-change\":_vm.handleCurrentChange}},'el-pagination',_vm.$attrs,false))],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div class=\"pagination-container\">\r\n <el-pagination\r\n :background=\"background\"\r\n :current-page.sync=\"currentPage\"\r\n :page-size.sync=\"pageSize\"\r\n :layout=\"layout\"\r\n :page-sizes=\"pageSizes\"\r\n :total=\"total\"\r\n v-bind=\"$attrs\"\r\n @size-change=\"handleSizeChange\"\r\n @current-change=\"handleCurrentChange\"\r\n />\r\n </div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n name: 'Pagination',\r\n props: {\r\n total: {\r\n required: true,\r\n type: Number\r\n },\r\n page: {\r\n type: Number,\r\n default: 0\r\n },\r\n limit: {\r\n type: Number,\r\n default: 20\r\n },\r\n pageSizes: {\r\n type: Array,\r\n default() {\r\n return [5, 10, 20, 30, 70]\r\n }\r\n },\r\n layout: {\r\n type: String,\r\n default: 'total, sizes, prev, pager, next, jumper'\r\n },\r\n background: {\r\n type: Boolean,\r\n default: true\r\n },\r\n hidden: {\r\n type: Boolean,\r\n default: false\r\n }\r\n },\r\n computed: {\r\n currentPage: {\r\n get() {\r\n return this.page\r\n },\r\n set(val) {\r\n this.$emit('update:page', val)\r\n }\r\n },\r\n pageSize: {\r\n get() {\r\n return this.limit\r\n },\r\n set(val) {\r\n this.$emit('update:limit', val)\r\n }\r\n }\r\n },\r\n methods: {\r\n handleSizeChange(val) {\r\n this.$emit('pagination', { page: this.currentPage, limit: val })\r\n },\r\n handleCurrentChange(val) {\r\n this.$emit('pagination', { page: val, limit: this.pageSize })\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n.pagination-container {\r\n background: none;\r\n position: relative;\r\n margin-top: 30px;\r\n}\r\n.el-pagination {\r\n text-align: center;\r\n}\r\n.pagination-container.hidden {\r\n display: none;\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!./index.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!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=4dfad654&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=4dfad654&scoped=true&lang=css&\"\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 \"4dfad654\",\n null\n \n)\n\nexport default component.exports","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// 根据siteId查询站址信息\r\nexport function getSiteById(data) {\r\n return request({\r\n url: 'device-service/site/getSiteById',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 根据siteId查询站址列表\r\nexport function getSiteList(data) {\r\n return request({\r\n url: 'device-service/site/getSiteList',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 根据siteId查询未选择的综合柜\r\nexport function getUnChoiceDevice(data) {\r\n return request({\r\n url: 'device-service/site/getUnChoiceDevice',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 根据siteId查询已选择的综合柜\r\nexport function getHasChoiceDevice(data) {\r\n return request({\r\n url: 'device-service/site/getHasChoiceDevice',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 录入站址信息\r\nexport function addSite(data) {\r\n return request({\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n url: 'device-service/site/addSite',\r\n method: 'post',\r\n data\r\n })\r\n}\r\n\r\n// 录入综合柜站址关系\r\nexport function addSiteDevice(data) {\r\n return request({\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n url: 'device-service/site/addSiteDevice',\r\n method: 'post',\r\n data\r\n })\r\n}\r\n\r\n// 删除站址信息\r\nexport function deleteSite(data) {\r\n const delData = {\r\n siteById: data\r\n }\r\n return request({\r\n url: 'device-service/site/deleteSite',\r\n method: 'delete',\r\n params: delData\r\n })\r\n}\r\n\r\n// 批量删除站址信息\r\nexport function deleteSiteList(data) {\r\n const delData = {\r\n siteIds: data\r\n }\r\n return request({\r\n url: 'device-service/site/deleteSiteList',\r\n method: 'delete',\r\n params: delData\r\n })\r\n}\r\n\r\n// 修改站址信息\r\nexport function updateSite(data) {\r\n return request({\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n url: 'device-service/site/updateSite',\r\n method: 'put',\r\n data\r\n })\r\n}","import request from '@/utils/request'\r\n/*\r\n 系统管理-区域管理 权限操作api\r\n*/\r\n\r\n// 查询区域列表树\r\nexport function getAreaTreeList(data) {\r\n return request({\r\n url: 'user-service/area/getAreaTreeList',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n\r\n// 查询本级节点-直系子级节点\r\nexport function getAreaSubByAreaId(data) {\r\n return request({\r\n url: 'user-service/area/getAreaSubByAreaId',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 删除区域\r\nexport function removeArea(data) {\r\n return request({\r\n url: 'user-service/area/removeArea',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 新增\r\nexport function saveArea(data) {\r\n return request({\r\n url: 'user-service/area/saveArea',\r\n method: 'post',\r\n data\r\n })\r\n}\r\n\r\n// 修改\r\nexport function updateArea(data) {\r\n return request({\r\n url: 'user-service/area/updateArea',\r\n method: 'post',\r\n data\r\n })\r\n}","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}","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('div',{staticClass:\"filter-container\"},[_c('el-cascader',{staticClass:\"filter-item\",attrs:{\"show-all-levels\":false,\"options\":_vm.deptIdList,\"placeholder\":_vm.$t('listQuery.deptId'),\"props\":{ checkStrictly: true, emitPath: false, props: {} },\"clearable\":\"\"},on:{\"change\":_vm.handleFilter},model:{value:(_vm.listQuery.deptId),callback:function ($$v) {_vm.$set(_vm.listQuery, \"deptId\", $$v)},expression:\"listQuery.deptId\"}}),_c('el-input',{staticClass:\"filter-item\",attrs:{\"placeholder\":_vm.$t('site.siteName')},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.siteName),callback:function ($$v) {_vm.$set(_vm.listQuery, \"siteName\", $$v)},expression:\"listQuery.siteName\"}}),_c('el-input',{staticClass:\"filter-item\",attrs:{\"placeholder\":_vm.$t('site.siteCode')},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.siteCode),callback:function ($$v) {_vm.$set(_vm.listQuery, \"siteCode\", $$v)},expression:\"listQuery.siteCode\"}}),_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()}}},[_c('i',{staticClass:\"iconfont icon-a-\"}),_vm._v(_vm._s(_vm.$t(\"site.addSite\")))])])],1),_c('div',{staticClass:\"table-container\"},[_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.listLoading),expression:\"listLoading\"}],attrs:{\"data\":_vm.list,\"fit\":\"\",\"max-height\":\"580\",\"highlight-current-row\":\"\",\"header-row-class-name\":\"table-header\",\"row-class-name\":\"table-row\"}},[_c('el-table-column',{attrs:{\"property\":\"siteName\",\"align\":\"left\",\"label\":_vm.$t('site.siteName')}}),_c('el-table-column',{attrs:{\"property\":\"siteCode\",\"align\":\"left\",\"label\":_vm.$t('site.siteCode')}}),_c('el-table-column',{attrs:{\"property\":\"deptName\",\"align\":\"left\",\"label\":_vm.$t('listQuery.deptId')}}),_c('el-table-column',{attrs:{\"property\":\"longitude\",\"align\":\"left\",\"label\":_vm.$t('table.longitude')}}),_c('el-table-column',{attrs:{\"property\":\"latitude\",\"align\":\"left\",\"label\":_vm.$t('table.latitude')}}),_c('el-table-column',{attrs:{\"property\":\"address\",\"align\":\"left\",\"label\":_vm.$t('table.address')}}),_c('el-table-column',{attrs:{\"label\":_vm.$t('table.operate'),\"width\":\"360\",\"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('site.associated')},on:{\"click\":function($event){return _vm.openDevice(scope)}}},[_c('i',{staticClass:\"iconfont icon-jiguiliebiao\"}),_vm._v(_vm._s(_vm.$t(\"site.associated\")))]),_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),_c('pagination',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.total > 0),expression:\"total > 0\"}],attrs:{\"total\":_vm.total,\"page\":_vm.listQuery.curPage,\"limit\":_vm.listQuery.pageSize},on:{\"update:page\":function($event){return _vm.$set(_vm.listQuery, \"curPage\", $event)},\"update:limit\":function($event){return _vm.$set(_vm.listQuery, \"pageSize\", $event)},\"pagination\":_vm.getList}})],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,\"status-icon\":\"\",\"model\":_vm.form,\"inline\":\"\",\"label-width\":\"130px\"}},[_c('el-form-item',{attrs:{\"label\":_vm.$t('site.siteName'),\"prop\":\"siteName\"}},[_c('el-input',{attrs:{\"placeholder\":_vm.$t('pEnter') + _vm.$t('site.siteName'),\"maxlength\":\"20\"},model:{value:(_vm.form.siteName),callback:function ($$v) {_vm.$set(_vm.form, \"siteName\", $$v)},expression:\"form.siteName\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('site.siteCode'),\"prop\":\"siteCode\"}},[_c('el-input',{attrs:{\"placeholder\":_vm.$t('pEnter') + _vm.$t('site.siteCode'),\"maxlength\":\"20\",\"disabled\":_vm.dialogStatus === 'update'},model:{value:(_vm.form.siteCode),callback:function ($$v) {_vm.$set(_vm.form, \"siteCode\", $$v)},expression:\"form.siteCode\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('listQuery.deptId'),\"prop\":\"deptId\"}},[_c('el-cascader',{attrs:{\"show-all-levels\":false,\"options\":_vm.deptIdList,\"props\":{ checkStrictly: true, emitPath: false, props: {} },\"clearable\":\"\"},on:{\"change\":function($event){return _vm.handleChange(_vm.form)}},model:{value:(_vm.form.deptId),callback:function ($$v) {_vm.$set(_vm.form, \"deptId\", $$v)},expression:\"form.deptId\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('listQuery.areaId'),\"prop\":\"areaId\"}},[_c('el-cascader',{attrs:{\"show-all-levels\":false,\"options\":_vm.areaIdList,\"props\":{ checkStrictly: true, emitPath: false, props: {} },\"clearable\":\"\"},model:{value:(_vm.form.areaId),callback:function ($$v) {_vm.$set(_vm.form, \"areaId\", $$v)},expression:\"form.areaId\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('site.director'),\"prop\":\"director\"}},[_c('el-input',{attrs:{\"placeholder\":_vm.$t('pEnter') + _vm.$t('site.director'),\"maxlength\":\"20\"},model:{value:(_vm.form.director),callback:function ($$v) {_vm.$set(_vm.form, \"director\", $$v)},expression:\"form.director\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('table.longitude'),\"prop\":\"longitude\"}},[_c('el-input',{attrs:{\"placeholder\":_vm.$t('pEnter') + _vm.$t('table.longitude'),\"maxlength\":\"20\"},model:{value:(_vm.form.longitude),callback:function ($$v) {_vm.$set(_vm.form, \"longitude\", $$v)},expression:\"form.longitude\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('table.latitude'),\"prop\":\"latitude\"}},[_c('el-input',{attrs:{\"placeholder\":_vm.$t('pEnter') + _vm.$t('table.latitude'),\"maxlength\":\"20\"},model:{value:(_vm.form.latitude),callback:function ($$v) {_vm.$set(_vm.form, \"latitude\", $$v)},expression:\"form.latitude\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('table.address'),\"prop\":\"address\"}},[_c('el-input',{attrs:{\"type\":\"textarea\",\"placeholder\":_vm.$t('pEnter') + _vm.$t('table.address'),\"maxlength\":\"100\"},model:{value:(_vm.form.address),callback:function ($$v) {_vm.$set(_vm.form, \"address\", $$v)},expression:\"form.address\"}})],1),_c('el-form-item',{staticStyle:{\"width\":\"100%\"},attrs:{\"label\":_vm.$t('device.photo')}},[_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),_c('el-dialog',{attrs:{\"close-on-click-modal\":false,\"title\":_vm.$t('site.associated'),\"visible\":_vm.deviceDialog},on:{\"update:visible\":function($event){_vm.deviceDialog=$event}}},[_c('el-transfer',{ref:\"transfers\",staticStyle:{\"width\":\"800px\",\"margin\":\"0px auto\"},attrs:{\"filterable\":\"\",\"filter-placeholder\":_vm.$t('pEnter') + _vm.$t('device.deviceName'),\"titles\":[_vm.$t('table.optional'), _vm.$t('table.selected')],\"data\":_vm.deviceCanList,\"target-order\":\"unshift\"},model:{value:(_vm.deviceList),callback:function ($$v) {_vm.deviceList=$$v},expression:\"deviceList\"}}),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('span',{staticClass:\"btn-item long\",on:{\"click\":function($event){_vm.deviceDialog = false}}},[_vm._v(_vm._s(_vm.$t(\"btn.cancel\")))]),_c('span',{staticClass:\"btn-item long\",on:{\"click\":_vm.openDeviceUpdata}},[_vm._v(_vm._s(_vm.$t(\"btn.define\")))])])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<!-- 站址管理页 -->\r\n<template>\r\n <div class=\"app-container\">\r\n <div class=\"decorate\"></div>\r\n <div class=\"filter-container\">\r\n <el-cascader\r\n :show-all-levels=\"false\"\r\n v-model=\"listQuery.deptId\"\r\n class=\"filter-item\"\r\n :options=\"deptIdList\"\r\n :placeholder=\"$t('listQuery.deptId')\"\r\n :props=\"{ checkStrictly: true, emitPath: false, props: {} }\"\r\n @change=\"handleFilter\"\r\n clearable\r\n />\r\n <el-input\r\n v-model=\"listQuery.siteName\"\r\n :placeholder=\"$t('site.siteName')\"\r\n class=\"filter-item\"\r\n @keyup.enter.native=\"handleFilter\"\r\n />\r\n <el-input\r\n v-model=\"listQuery.siteCode\"\r\n :placeholder=\"$t('site.siteCode')\"\r\n class=\"filter-item\"\r\n @keyup.enter.native=\"handleFilter\"\r\n />\r\n <span class=\"btn-item\" @click=\"handleFilter\">\r\n <i class=\"iconfont icon-sousuo\" />\r\n {{ $t(\"btn.search\") }}</span\r\n >\r\n <span class=\"btn-item\" @click=\"clearListQuery\">\r\n <i class=\"el-icon-refresh-left\"></i>\r\n {{ $t(\"btn.resetting\") }}</span\r\n >\r\n <div class=\"control-container\">\r\n <span class=\"btn-item\" @click=\"handleCreate()\"\r\n ><i class=\"iconfont icon-a-\" />{{ $t(\"site.addSite\") }}</span\r\n >\r\n </div>\r\n </div>\r\n <div class=\"table-container\">\r\n <el-table\r\n v-loading=\"listLoading\"\r\n :data=\"list\"\r\n fit\r\n max-height=\"580\"\r\n highlight-current-row\r\n header-row-class-name=\"table-header\"\r\n row-class-name=\"table-row\"\r\n >\r\n <el-table-column\r\n property=\"siteName\"\r\n align=\"left\"\r\n :label=\"$t('site.siteName')\"\r\n />\r\n <el-table-column\r\n property=\"siteCode\"\r\n align=\"left\"\r\n :label=\"$t('site.siteCode')\"\r\n />\r\n <el-table-column\r\n property=\"deptName\"\r\n align=\"left\"\r\n :label=\"$t('listQuery.deptId')\"\r\n />\r\n <el-table-column\r\n property=\"longitude\"\r\n align=\"left\"\r\n :label=\"$t('table.longitude')\"\r\n />\r\n <el-table-column\r\n property=\"latitude\"\r\n align=\"left\"\r\n :label=\"$t('table.latitude')\"\r\n />\r\n <el-table-column\r\n property=\"address\"\r\n align=\"left\"\r\n :label=\"$t('table.address')\"\r\n />\r\n <el-table-column :label=\"$t('table.operate')\" width=\"360\" align=\"left\">\r\n <template slot-scope=\"scope\">\r\n <span\r\n class=\"btnCancel\"\r\n @click=\"handleUpdate(scope)\"\r\n :title=\"$t('table.update')\"\r\n ><i class=\"iconfont icon-bianji\" />{{ $t(\"table.update\") }}</span\r\n >\r\n <span\r\n class=\"btnCancel\"\r\n @click=\"openDevice(scope)\"\r\n :title=\"$t('site.associated')\"\r\n ><i class=\"iconfont icon-jiguiliebiao\" />{{\r\n $t(\"site.associated\")\r\n }}</span\r\n >\r\n <span\r\n class=\"btnCancel delete\"\r\n @click=\"handleDelete(scope)\"\r\n :title=\"$t('table.delete')\"\r\n ><i class=\"iconfont icon-a--\" />{{ $t(\"table.delete\") }}</span\r\n >\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n <pagination\r\n v-show=\"total > 0\"\r\n :total=\"total\"\r\n :page.sync=\"listQuery.curPage\"\r\n :limit.sync=\"listQuery.pageSize\"\r\n @pagination=\"getList\"\r\n />\r\n </div>\r\n <el-dialog\r\n :close-on-click-modal=\"false\"\r\n :title=\"textMap[dialogStatus]\"\r\n :visible.sync=\"addDialog\"\r\n >\r\n <el-form\r\n ref=\"form\"\r\n :rules=\"rules\"\r\n status-icon\r\n :model=\"form\"\r\n inline\r\n label-width=\"130px\"\r\n >\r\n <el-form-item :label=\"$t('site.siteName')\" prop=\"siteName\">\r\n <el-input\r\n v-model=\"form.siteName\"\r\n :placeholder=\"$t('pEnter') + $t('site.siteName')\"\r\n maxlength=\"20\"\r\n />\r\n </el-form-item>\r\n <el-form-item :label=\"$t('site.siteCode')\" prop=\"siteCode\">\r\n <el-input\r\n v-model=\"form.siteCode\"\r\n :placeholder=\"$t('pEnter') + $t('site.siteCode')\"\r\n maxlength=\"20\"\r\n :disabled=\"dialogStatus === 'update'\"\r\n />\r\n </el-form-item>\r\n <el-form-item :label=\"$t('listQuery.deptId')\" prop=\"deptId\">\r\n <el-cascader\r\n :show-all-levels=\"false\"\r\n v-model=\"form.deptId\"\r\n :options=\"deptIdList\"\r\n :props=\"{ checkStrictly: true, emitPath: false, props: {} }\"\r\n clearable\r\n @change=\"handleChange(form)\"\r\n />\r\n </el-form-item>\r\n <el-form-item :label=\"$t('listQuery.areaId')\" prop=\"areaId\">\r\n <el-cascader\r\n v-model=\"form.areaId\"\r\n :show-all-levels=\"false\"\r\n :options=\"areaIdList\"\r\n :props=\"{ checkStrictly: true, emitPath: false, props: {} }\"\r\n clearable\r\n />\r\n </el-form-item>\r\n <el-form-item :label=\"$t('site.director')\" prop=\"director\">\r\n <el-input\r\n v-model=\"form.director\"\r\n :placeholder=\"$t('pEnter') + $t('site.director')\"\r\n maxlength=\"20\"\r\n />\r\n </el-form-item>\r\n <el-form-item :label=\"$t('table.longitude')\" prop=\"longitude\">\r\n <el-input\r\n v-model=\"form.longitude\"\r\n :placeholder=\"$t('pEnter') + $t('table.longitude')\"\r\n maxlength=\"20\"\r\n />\r\n </el-form-item>\r\n <el-form-item :label=\"$t('table.latitude')\" prop=\"latitude\">\r\n <el-input\r\n v-model=\"form.latitude\"\r\n :placeholder=\"$t('pEnter') + $t('table.latitude')\"\r\n maxlength=\"20\"\r\n />\r\n </el-form-item>\r\n <el-form-item :label=\"$t('table.address')\" prop=\"address\">\r\n <el-input\r\n v-model=\"form.address\"\r\n type=\"textarea\"\r\n :placeholder=\"$t('pEnter') + $t('table.address')\"\r\n maxlength=\"100\"\r\n />\r\n </el-form-item>\r\n <el-form-item :label=\"$t('device.photo')\" style=\"width: 100%\">\r\n <el-upload\r\n ref=\"upload\"\r\n action\r\n :file-list=\"fileList\"\r\n list-type=\"picture-card\"\r\n :before-upload=\"beforeUpload\"\r\n :on-success=\"handleFileSuccess\"\r\n :on-error=\"handleFileError\"\r\n :on-remove=\"handleRemove\"\r\n :http-request=\"uploadFile\"\r\n >\r\n <i class=\"el-icon-plus\"></i>\r\n </el-upload>\r\n </el-form-item>\r\n </el-form>\r\n\r\n <span slot=\"footer\" class=\"dialog-footer\">\r\n <span class=\"btn-item long\" @click=\"addDialog = false\">{{\r\n $t(\"btn.cancel\")\r\n }}</span>\r\n <span\r\n class=\"btn-item long\"\r\n @click=\"dialogStatus === 'create' ? createData() : updateData()\"\r\n >{{ $t(\"btn.define\") }}</span\r\n >\r\n </span>\r\n </el-dialog>\r\n <el-dialog\r\n :close-on-click-modal=\"false\"\r\n :title=\"$t('site.associated')\"\r\n :visible.sync=\"deviceDialog\"\r\n >\r\n <el-transfer\r\n filterable\r\n ref=\"transfers\"\r\n :filter-placeholder=\"$t('pEnter') + $t('device.deviceName')\"\r\n :titles=\"[$t('table.optional'), $t('table.selected')]\"\r\n v-model=\"deviceList\"\r\n :data=\"deviceCanList\"\r\n style=\"width: 800px; margin: 0px auto\"\r\n target-order=\"unshift\"\r\n />\r\n\r\n <span slot=\"footer\" class=\"dialog-footer\">\r\n <span class=\"btn-item long\" @click=\"deviceDialog = false\">{{\r\n $t(\"btn.cancel\")\r\n }}</span>\r\n <span class=\"btn-item long\" @click=\"openDeviceUpdata\">{{\r\n $t(\"btn.define\")\r\n }}</span>\r\n </span>\r\n </el-dialog>\r\n </div>\r\n</template>\r\n<script>\r\nimport {\r\n getSiteList,\r\n addSite,\r\n updateSite,\r\n deleteSite,\r\n getUnChoiceDevice,\r\n getHasChoiceDevice,\r\n addSiteDevice\r\n} from \"@/api/site\"\r\nimport { getAreaSubByAreaId } from \"@/api/area\"\r\nimport { getDeptSubByDeptId } from \"@/api/department\"\r\nimport { uploadFile, deleteFile } from \"@/api/upload\"\r\nimport Pagination from \"@/components/Pagination\"\r\nimport permission from \"@/directive/permission/index.js\" // 权限判断指令\r\n\r\nexport default {\r\n components: { Pagination },\r\n directives: { permission },\r\n data() {\r\n var validatePhoto = (rule, value, callback) => {\r\n if (!this.form.picture) {\r\n callback(new Error(this.$t(\"pEnter\") + this.$t(\"device.photo\")))\r\n } else {\r\n callback()\r\n }\r\n }\r\n return {\r\n total: 0,\r\n listQuery: {\r\n deptId: null,\r\n siteName: null,\r\n siteCode: null,\r\n curPage: 1,\r\n pageSize: 10\r\n },\r\n addDialog: false,\r\n deviceDialog: false,\r\n textMap: {\r\n update: this.$t(\"table.update\"),\r\n create: this.$t(\"table.create\")\r\n },\r\n dialogStatus: \"\",\r\n form: {\r\n siteId: \"\",\r\n siteName: \"\",\r\n siteCode: \"\",\r\n deptId: \"\",\r\n director: \"\",\r\n longitude: \"\",\r\n latitude: \"\",\r\n address: \"\",\r\n picture: \"\"\r\n },\r\n deptIdList: [],\r\n list: null,\r\n listLoading: false,\r\n createStatus: false,\r\n siteId: null,\r\n siteCode: null,\r\n deviceCanList: [],\r\n deviceList: [],\r\n // 图片上传\r\n fileList: [],\r\n File: [],\r\n fileUrl: [],\r\n url: \"\",\r\n rules: {\r\n picture: [\r\n { required: true, validator: validatePhoto, trigger: \"change\" }\r\n ],\r\n siteName: [\r\n {\r\n required: true,\r\n message: this.$t(\"pEnter\") + this.$t(\"site.siteName\"),\r\n trigger: \"blur\"\r\n }\r\n ],\r\n siteCode: [\r\n {\r\n required: true,\r\n message: this.$t(\"pEnter\") + this.$t(\"site.siteCode\"),\r\n trigger: \"blur\"\r\n }\r\n ],\r\n deptId: [\r\n {\r\n required: true,\r\n message: this.$t(\"pSelect\") + this.$t(\"listQuery.deptId\"),\r\n trigger: \"blur\"\r\n }\r\n ],\r\n longitude: [\r\n {\r\n required: true,\r\n message: this.$t(\"pEnter\") + this.$t(\"table.longitude\"),\r\n trigger: \"blur\"\r\n }\r\n ],\r\n latitude: [\r\n {\r\n required: true,\r\n message: this.$t(\"pEnter\") + this.$t(\"table.latitude\"),\r\n trigger: \"blur\"\r\n }\r\n ],\r\n address: [\r\n {\r\n required: true,\r\n message: this.$t(\"pEnter\") + this.$t(\"table.address\"),\r\n trigger: \"blur\"\r\n }\r\n ],\r\n director: [\r\n {\r\n required: true,\r\n message: this.$t(\"pEnter\") + this.$t(\"site.director\"),\r\n trigger: \"blur\"\r\n }\r\n ]\r\n }\r\n }\r\n },\r\n created() {\r\n this.url = this.$store.state.user.url + \"/trajectory-service\"\r\n this.getList()\r\n getDeptSubByDeptId().then((res) => {\r\n this.deptIdList = res.data && this.getdeptIdList(res.data)\r\n })\r\n // 获取区域列表\r\n getAreaSubByAreaId().then((res) => {\r\n this.areaIdList = res.data && this.getAreaIdList(res.data)\r\n })\r\n },\r\n methods: {\r\n getList() {\r\n this.listLoading = true\r\n getSiteList(this.listQuery).then((res) => {\r\n this.listLoading = false\r\n console.log(res)\r\n this.list = res.data.list\r\n this.total = res.data.totalRow || 0\r\n })\r\n },\r\n // 数组遍历\r\n getdeptIdList(data) {\r\n if (!data.length) {\r\n data = [data]\r\n }\r\n const list = data.map((res) => {\r\n const obj = {}\r\n if (res.subBeanList) {\r\n obj.children = this.getdeptIdList(res.subBeanList)\r\n obj.label = res.nodeBean.deptName\r\n obj.value = res.nodeBean.deptId\r\n return obj\r\n } else {\r\n obj.label = res.nodeBean.deptName\r\n obj.value = res.nodeBean.deptId\r\n return obj\r\n }\r\n })\r\n return list\r\n },\r\n getAreaIdList(data) {\r\n if (!data.length) {\r\n data = [data]\r\n }\r\n const list = data.map((res) => {\r\n const obj = {}\r\n if (res.subList) {\r\n obj.children = this.getAreaIdList(res.subList)\r\n obj.label = res.areaName\r\n obj.value = res.areaId\r\n return obj\r\n } else {\r\n obj.label = res.areaName\r\n obj.value = res.areaId\r\n return obj\r\n }\r\n })\r\n return list\r\n },\r\n createData() {\r\n if (this.createStatus) {\r\n return\r\n }\r\n // 新增\r\n this.$refs.form.validate((valid) => {\r\n if (valid) {\r\n this.createStatus = true\r\n addSite(this.form)\r\n .then((res) => {\r\n if (res.status == 200) {\r\n this.addDialog = false\r\n this.createStatus = false\r\n this.$notify({\r\n title: this.$t(\"title.success\"),\r\n message: this.$t(\"title.addSuccess\"),\r\n type: \"success\",\r\n duration: 3000\r\n })\r\n this.getList()\r\n this.File.forEach((e) => {\r\n deleteFile(e, this.url)\r\n })\r\n }\r\n })\r\n .catch(() => {\r\n this.createStatus = false\r\n })\r\n }\r\n })\r\n },\r\n updateData() {\r\n // 编辑\r\n this.$refs.form.validate((valid) => {\r\n if (valid) {\r\n updateSite(this.form).then((res) => {\r\n if (res.status == 200) {\r\n this.addDialog = false\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 this.getList()\r\n this.File.forEach((e) => {\r\n deleteFile(e, this.url)\r\n })\r\n }\r\n })\r\n }\r\n })\r\n },\r\n // 清空搜索选项,重置表格\r\n clearListQuery() {\r\n this.listQuery = {\r\n deptId: null,\r\n siteName: null,\r\n siteCode: null,\r\n curPage: 1,\r\n pageSize: 10\r\n }\r\n this.getList()\r\n },\r\n resetForm() {\r\n // 重置表单\r\n for (var key in this.form) {\r\n this.form[key] = null\r\n }\r\n },\r\n // 新增\r\n handleCreate() {\r\n this.resetForm()\r\n this.fileList = []\r\n this.addDialog = true\r\n this.dialogStatus = \"create\"\r\n this.$nextTick(() => {\r\n // 清除表单验证\r\n this.$refs[\"form\"].clearValidate()\r\n })\r\n },\r\n // 搜索\r\n handleFilter() {\r\n this.listQuery.curPage = 1\r\n if (this.listQuery.siteName == \"\") {\r\n this.listQuery.siteName = null\r\n }\r\n if (this.listQuery.siteCode == \"\") {\r\n this.listQuery.siteCode = null\r\n }\r\n this.getList()\r\n },\r\n // 编辑\r\n handleUpdate(scope) {\r\n this.pswAgain = \"\"\r\n this.form = {\r\n siteId: scope.row.siteId,\r\n siteName: scope.row.siteName,\r\n siteCode: scope.row.siteCode,\r\n deptId: scope.row.deptId,\r\n director: scope.row.director,\r\n longitude: scope.row.longitude,\r\n latitude: scope.row.latitude,\r\n picture: scope.row.picture,\r\n address: scope.row.address,\r\n areaId: scope.row.areaId\r\n }\r\n this.fileList = this.form.picture\r\n ? [{ name: \"icon\", url: this.form.picture }]\r\n : []\r\n this.dialogStatus = \"update\"\r\n this.addDialog = true\r\n this.$nextTick(() => {\r\n this.$refs[\"form\"].clearValidate()\r\n })\r\n },\r\n // 删除\r\n handleDelete(scope) {\r\n this.$confirm(\r\n this.$t(\"title.delPointOutSite\"),\r\n this.$t(\"title.pointOut\"),\r\n {\r\n confirmButtonText: this.$t(\"title.delete\"),\r\n cancelButtonText: this.$t(\"title.cancel\"),\r\n type: \"warning\"\r\n }\r\n ).then(() => {\r\n deleteSite(scope.row.siteId).then((res) => {\r\n if (res.status == 200) {\r\n this.getList()\r\n this.$notify({\r\n title: this.$t(\"title.success\"),\r\n message: this.$t(\"title.deleteSuccess\"),\r\n type: \"success\",\r\n duration: 3000\r\n })\r\n }\r\n })\r\n })\r\n },\r\n // 关联设备\r\n async openDevice(scope) {\r\n this.deviceCanList = []\r\n this.deviceList = []\r\n this.siteId = scope.row.siteId\r\n this.siteCode = scope.row.siteCode\r\n await getUnChoiceDevice({ siteCode: scope.row.siteCode }).then((res) => {\r\n // 未选择的综合柜\r\n res.data.forEach((e) => {\r\n this.deviceCanList.push({\r\n label: e.deviceName,\r\n key: e.deviceCode\r\n })\r\n })\r\n })\r\n await getHasChoiceDevice({ siteCode: scope.row.siteCode }).then((res) => {\r\n // 已选择的综合柜\r\n res.data.forEach((e) => {\r\n this.deviceCanList.push({\r\n label: e.deviceName,\r\n key: e.deviceCode\r\n })\r\n this.deviceList.push(e.deviceCode)\r\n })\r\n })\r\n this.deviceDialog = true\r\n },\r\n // 保存关联设备\r\n openDeviceUpdata() {\r\n var relevanceDeviceList = []\r\n this.deviceList.forEach((e) => {\r\n relevanceDeviceList.push({\r\n siteCode: this.siteCode,\r\n deviceCode: e\r\n })\r\n })\r\n var params = {\r\n list: relevanceDeviceList,\r\n siteCode: this.siteCode\r\n }\r\n addSiteDevice(params)\r\n .then((res) => {\r\n if (res.status == 200) {\r\n this.deviceDialog = false\r\n this.$notify({\r\n title: this.$t(\"title.success\"),\r\n message: this.$t(\"title.addSuccess\"),\r\n type: \"success\",\r\n duration: 3000\r\n })\r\n this.getList()\r\n }\r\n })\r\n .catch(() => {})\r\n },\r\n\r\n // ------------------------上传图片----------------------------\r\n beforeUpload(file) {\r\n console.log(this.form.picture)\r\n if (this.form.picture) {\r\n this.$message.error(this.$t(\"pictureUp.pDel\"))\r\n return false\r\n }\r\n console.log(file, \"file\")\r\n var testmsg = /^image\\/(jpeg|png|jpg|(svg\\+xml))$/.test(file.type)\r\n const isLt5M = file.size / 1024 / 1024 < 5\r\n if (!testmsg) {\r\n this.$message.error(this.$t(\"pictureUp.format\"))\r\n return false\r\n }\r\n if (!isLt5M) {\r\n this.$message.error(this.$t(\"pictureUp.size\"))\r\n return false\r\n }\r\n\r\n return testmsg && isLt5M\r\n },\r\n handleFileSuccess(response) {\r\n console.log(response, \"handleFileSuccess\")\r\n if (response.status === 200) {\r\n console.log(response, \"200\")\r\n }\r\n },\r\n handleFileError(err) {\r\n console.log(err, \"err\")\r\n },\r\n // 移除文件\r\n handleRemove(file, fileList) {\r\n console.log(file, fileList, this.File)\r\n if (this.dialogStatus === \"create\" || this.File.length >= 1) {\r\n deleteFile(this.form.picture, this.url)\r\n } else {\r\n this.File.push(this.form.picture)\r\n }\r\n this.form.picture = \"\"\r\n },\r\n // 上传图片\r\n uploadFile(item) {\r\n console.log(item)\r\n uploadFile(item.file, this.url).then((e) => {\r\n console.log(e)\r\n this.form.picture = e.data\r\n })\r\n }\r\n }\r\n}\r\n</script>\r\n<style rel=\"stylesheet/scss\" lang=\"scss\" scoped></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!./site.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!./site.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./site.vue?vue&type=template&id=12861fd6&scoped=true&\"\nimport script from \"./site.vue?vue&type=script&lang=js&\"\nexport * from \"./site.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 \"12861fd6\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}