EMS2.0-Documents/7.部署文档/Linux安装/项目前端文件/IEMS/js/chunk-524bad04.33fd87c1.js.map

1 line
19 KiB
Plaintext

{"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,YA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bC,QAAS,CACP,eAAgB,uBAElB/B,IAAK,qCACLgC,OAAQ,OACRrD,KAAMgD,IAKH,SAASf,EAAWqB,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<template>\r\n <div class=\"app-container\">\r\n <div class=\"decorate\"></div>\r\n <div class=\"personalization\">\r\n <div class=\"title\">{{ $t(\"home.personalization\") }}</div>\r\n <el-form ref=\"form\" :rules=\"rules\" :model=\"form\" label-width=\"200px\">\r\n <el-form-item :label=\"$t('personalization.logo')\" prop=\"logoPath\">\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-item :label=\"$t('personalization.name')\" prop=\"unitName\">\r\n <el-input\r\n v-model=\"form.unitName\"\r\n style=\"width: 720px\"\r\n maxlength=\"50\"\r\n show-word-limit\r\n />\r\n </el-form-item>\r\n <el-form-item :label=\"$t('personalization.enName')\" prop=\"enUnitName\">\r\n <el-input\r\n v-model=\"form.enUnitName\"\r\n style=\"width: 720px\"\r\n maxlength=\"120\"\r\n show-word-limit\r\n />\r\n </el-form-item>\r\n <el-form-item :label=\"$t('personalization.screen')\" prop=\"title\">\r\n <el-input\r\n v-model=\"form.title\"\r\n style=\"width: 720px\"\r\n maxlength=\"50\"\r\n show-word-limit\r\n />\r\n </el-form-item>\r\n <el-form-item :label=\"$t('personalization.enScreen')\" prop=\"enTitle\">\r\n <el-input\r\n v-model=\"form.enTitle\"\r\n style=\"width: 720px\"\r\n maxlength=\"120\"\r\n show-word-limit\r\n />\r\n </el-form-item>\r\n <el-form-item>\r\n <span class=\"btn-item long\" @click=\"setLogoConfig\">{{\r\n $t(\"btn.save\")\r\n }}</span>\r\n </el-form-item>\r\n </el-form>\r\n </div>\r\n\r\n <i class=\"iconfont icon-\" />\r\n </div>\r\n</template>\r\n<script>\r\nimport { getLogoConfig, setLogoConfig } from \"@/api/screenConfig\"\r\nimport { uploadFile, deleteFile } from \"@/api/upload\"\r\nexport default {\r\n data() {\r\n return {\r\n total: 0,\r\n flag: 1,\r\n list: [],\r\n form: {\r\n logoPath: \"\",\r\n unitName: \"\",\r\n enUnitName: \"\",\r\n title: \"\",\r\n enTitle: \"\"\r\n },\r\n rules: {\r\n logoPath: [\r\n {\r\n required: true,\r\n message: this.$t(\"pEnter\") + this.$t(\"personalization.logo\"),\r\n trigger: \"change\"\r\n }\r\n ],\r\n unitName: [\r\n {\r\n required: true,\r\n message: this.$t(\"pEnter\") + this.$t(\"personalization.name\"),\r\n trigger: \"blur\"\r\n }\r\n ],\r\n enUnitName: [\r\n {\r\n required: true,\r\n message: this.$t(\"pEnter\") + this.$t(\"personalization.enName\"),\r\n trigger: \"change\"\r\n }\r\n ],\r\n title: [\r\n {\r\n required: true,\r\n message: this.$t(\"pEnter\") + this.$t(\"personalization.screen\"),\r\n trigger: \"blur\"\r\n }\r\n ],\r\n enTitle: [\r\n {\r\n required: true,\r\n message: this.$t(\"pEnter\") + this.$t(\"personalization.enScreen\"),\r\n trigger: \"blur\"\r\n }\r\n ]\r\n },\r\n addDialog: false,\r\n seleteData: {},\r\n checkList: [],\r\n deviceList: [],\r\n typeCode: \"\",\r\n deviceTypeList: [],\r\n scope: {},\r\n // 图片上传\r\n fileList: [],\r\n File: []\r\n }\r\n },\r\n created() {\r\n this.url = this.$store.state.user.url + \"/trajectory-service\"\r\n this.getList()\r\n },\r\n methods: {\r\n getList() {\r\n getLogoConfig().then((e) => {\r\n console.log(e)\r\n this.form = e.data || {\r\n logoPath: \"\",\r\n unitName: \"\",\r\n enUnitName: \"\",\r\n title: \"\",\r\n enTitle: \"\"\r\n }\r\n this.fileList = [{ name: \"logo\", url: e.data.logoPath }]\r\n })\r\n },\r\n setLogoConfig() {\r\n this.$refs.form.validate((valid) => {\r\n if (valid) {\r\n this.File.forEach((e) => {\r\n deleteFile(e, this.url)\r\n })\r\n this.File = []\r\n setLogoConfig(this.form).then(() => {\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 })\r\n } else {\r\n console.log(\"error submit!!\")\r\n return false\r\n }\r\n })\r\n },\r\n // ------------------------上传图片----------------------------\r\n beforeUpload(file) {\r\n console.log(this.form.photo)\r\n if (this.form.logoPath) {\r\n this.$message.error(this.$t(\"photoUp.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(\"photoUp.format\"))\r\n return false\r\n }\r\n if (!isLt5M) {\r\n this.$message.error(this.$t(\"photoUp.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\r\n this.File.push(this.form.logoPath)\r\n this.form.logoPath = \"\"\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.logoPath = e.data\r\n })\r\n }\r\n }\r\n}\r\n</script>\r\n<style rel=\"stylesheet/scss\" lang=\"scss\" scoped>\r\n.personalization {\r\n padding-left: 78px;\r\n padding-top: 38px;\r\n font-size: 14px;\r\n font-family: Microsoft YaHei;\r\n font-weight: 400;\r\n color: #d2ffff;\r\n padding-bottom: 50px;\r\n .title {\r\n height: 16px;\r\n line-height: 16px;\r\n font-size: 16px;\r\n font-family: Microsoft YaHei;\r\n font-weight: 400;\r\n color: #01ffe9;\r\n margin-bottom: 30px;\r\n }\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!./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":""}