{"version":3,"sources":["webpack:///./src/views/manager/personalization.vue?07b7","webpack:///./src/views/manager/personalization.vue?220d","webpack:///src/views/manager/personalization.vue","webpack:///./src/views/manager/personalization.vue?8cee","webpack:///./src/views/manager/personalization.vue","webpack:///./src/api/upload.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_v","_s","$t","ref","attrs","rules","form","fileList","beforeUpload","handleFileSuccess","handleFileError","handleRemove","uploadFile","staticStyle","model","value","callback","$$v","$set","expression","on","setLogoConfig","staticRenderFns","data","total","flag","list","logoPath","unitName","enUnitName","title","enTitle","required","message","trigger","addDialog","seleteData","checkList","deviceList","typeCode","deviceTypeList","scope","File","created","url","$store","state","user","getList","methods","getLogoConfig","console","name","$refs","validate","valid","deleteFile","type","duration","file","$message","error","testmsg","test","isLt5M","response","status","err","push","item","component","fileData","FormData","append","request","headers","method","dataForm","host","fileUrl","qs","stringify"],"mappings":"yIAAA,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,MAAM,CAACE,YAAY,mBAAmB,CAACF,EAAG,MAAM,CAACE,YAAY,SAAS,CAACN,EAAIO,GAAGP,EAAIQ,GAAGR,EAAIS,GAAG,4BAA4BL,EAAG,UAAU,CAACM,IAAI,OAAOC,MAAM,CAAC,MAAQX,EAAIY,MAAM,MAAQZ,EAAIa,KAAK,cAAc,UAAU,CAACT,EAAG,eAAe,CAACO,MAAM,CAAC,MAAQX,EAAIS,GAAG,wBAAwB,KAAO,aAAa,CAACL,EAAG,YAAY,CAACM,IAAI,SAASC,MAAM,CAAC,OAAS,GAAG,YAAYX,EAAIc,SAAS,YAAY,eAAe,gBAAgBd,EAAIe,aAAa,aAAaf,EAAIgB,kBAAkB,WAAWhB,EAAIiB,gBAAgB,YAAYjB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EAAUjC,GACnC,IAAIrB,EAAO,CACTuD,KAAMlC,EACNmC,QAASF,GAGX,OADAtD,EAAOyD,IAAGC,UAAU1D,GACbmD,eAAQ,CACb9B,IAAK,0CACLgC,OAAQ,OACRrD","file":"js/chunk-524bad04.33fd87c1.js","sourcesContent":["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!./personalization.vue?vue&type=style&index=0&id=bd781516&rel=stylesheet%2Fscss&lang=scss&scoped=true&\"","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:\"personalization\"},[_c('div',{staticClass:\"title\"},[_vm._v(_vm._s(_vm.$t(\"home.personalization\")))]),_c('el-form',{ref:\"form\",attrs:{\"rules\":_vm.rules,\"model\":_vm.form,\"label-width\":\"200px\"}},[_c('el-form-item',{attrs:{\"label\":_vm.$t('personalization.logo'),\"prop\":\"logoPath\"}},[_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),_c('el-form-item',{attrs:{\"label\":_vm.$t('personalization.name'),\"prop\":\"unitName\"}},[_c('el-input',{staticStyle:{\"width\":\"720px\"},attrs:{\"maxlength\":\"50\",\"show-word-limit\":\"\"},model:{value:(_vm.form.unitName),callback:function ($$v) {_vm.$set(_vm.form, \"unitName\", $$v)},expression:\"form.unitName\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('personalization.enName'),\"prop\":\"enUnitName\"}},[_c('el-input',{staticStyle:{\"width\":\"720px\"},attrs:{\"maxlength\":\"120\",\"show-word-limit\":\"\"},model:{value:(_vm.form.enUnitName),callback:function ($$v) {_vm.$set(_vm.form, \"enUnitName\", $$v)},expression:\"form.enUnitName\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('personalization.screen'),\"prop\":\"title\"}},[_c('el-input',{staticStyle:{\"width\":\"720px\"},attrs:{\"maxlength\":\"50\",\"show-word-limit\":\"\"},model:{value:(_vm.form.title),callback:function ($$v) {_vm.$set(_vm.form, \"title\", $$v)},expression:\"form.title\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('personalization.enScreen'),\"prop\":\"enTitle\"}},[_c('el-input',{staticStyle:{\"width\":\"720px\"},attrs:{\"maxlength\":\"120\",\"show-word-limit\":\"\"},model:{value:(_vm.form.enTitle),callback:function ($$v) {_vm.$set(_vm.form, \"enTitle\", $$v)},expression:\"form.enTitle\"}})],1),_c('el-form-item',[_c('span',{staticClass:\"btn-item long\",on:{\"click\":_vm.setLogoConfig}},[_vm._v(_vm._s(_vm.$t(\"btn.save\")))])])],1)],1),_c('i',{staticClass:\"iconfont icon-\"})])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n \r\n \r\n \r\n {{ $t(\"home.personalization\") }}\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.save\")\r\n }}\r\n \r\n \r\n \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!./personalization.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!./personalization.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./personalization.vue?vue&type=template&id=bd781516&scoped=true&\"\nimport script from \"./personalization.vue?vue&type=script&lang=js&\"\nexport * from \"./personalization.vue?vue&type=script&lang=js&\"\nimport style0 from \"./personalization.vue?vue&type=style&index=0&id=bd781516&rel=stylesheet%2Fscss&lang=scss&scoped=true&\"\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 \"bd781516\",\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":""}