EMS2.0-Documents/7.部署文档/Window安装/项目前端文件/IEMS/js/chunk-cfcd9af8.d43d4123.js.map

1 line
46 KiB
Plaintext

{"version":3,"sources":["webpack:///./src/api/department.js","webpack:///./src/views/manager/strategy.vue?4f04","webpack:///./src/api/strategy.js","webpack:///src/views/manager/strategy.vue","webpack:///./src/views/manager/strategy.vue?c2c7","webpack:///./src/views/manager/strategy.vue","webpack:///./src/api/upload.js","webpack:///./src/views/manager/strategy.vue?5a10"],"names":["getDepartmentList","data","request","url","method","params","getDeptSubByDeptId","editSubmitApi","formData","qs","stringify","addSubmitApi","delSubmitApi","headers","render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","deptIdList","$t","checkStrictly","emitPath","props","on","handleFilter","model","value","listQuery","callback","$$v","$set","expression","_v","_s","clearListQuery","$event","handleCreate","ref","list","scopedSlots","_u","key","fn","scope","row","strategyType","updateGateway","handleUpdate","handleDelete","textMap","dialogStatus","addDialog","rules","form","_l","item","label","staticStyle","fileList","beforeUpload","handleFileSuccess","handleFileError","handleRemove","uploadFile","slot","createData","updateData","upDialog","deviceList","changeList","checkList","updateDatas","staticRenderFns","getStrategyList","addStrategy","updateStrategy","updateStrategyGate","deleteStrategy","deleteStrategyList","getChooseStrategyGate","getStrategyGateByStrategyId","typeCode","total","deptId","siteName","siteCode","curPage","pageSize","update","create","type","describes","path","strategyId","strategyName","forms","deviceCodes","listLoading","createStatus","required","message","trigger","created","$store","state","user","getList","getDeptList","methods","getdeptIdList","length","res","subBeanList","obj","console","$refs","validate","valid","then","title","duration","deleteFile","catch","status","resetForm","$nextTick","$confirm","confirmButtonText","cancelButtonText","deleteList","table","selection","strategyIds","$notify","file","response","err","File","push","e","deviceCode","deviceName","join","component","fileData","FormData","append","dataForm","host","fileUrl"],"mappings":"kHAAA,+MAiBO,SAASA,EAAkBC,GAChC,OAAOC,eAAQ,CACbC,IAAK,oCACLC,OAAQ,MACRC,OAAQJ,IAKL,SAASK,EAAmBL,GACjC,OAAOC,eAAQ,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Ib9B,KAAKwD,UAAW,GAElBE,WAzRJ,WA0RM6C,QAAQA,IAAIA,KAAKA,WAAYA,KAAKA,WAClCvG,KAAKoF,MAAMC,YAAcrF,KAAK2D,UAAUwE,UC7kBmT,I,wBCQ7VC,EAAY,eACd,EACAtI,EACA+D,GACA,EACA,KACA,WACA,MAIa,aAAAuE,E,sECnBf,yGAwBO,SAAShF,EAAWnE,EAAME,GAC/B,IAAIkJ,EAAW,IAAIC,SAGnB,OAFAD,EAASE,OAAO,OAAQtJ,GACxBoJ,EAASE,OAAO,OAAQpJ,GACjBD,eAAQ,CACbW,QAAS,CACP,eAAgB,uBAElBV,IAAK,qCACLC,OAAQ,OACRH,KAAMoJ,IAKH,SAASvB,EAAW0B,EAAUrJ,GACnC,IAAIF,EAAO,CACTwJ,KAAMtJ,EACNuJ,QAASF,GAGX,OADAvJ,EAAOQ,IAAGC,UAAUT,GACbC,eAAQ,CACbC,IAAK,0CACLC,OAAQ,OACRH,W,oCChDJ","file":"js/chunk-cfcd9af8.d43d4123.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","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('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(\"btn.add\")))])])],1),_c('div',{staticClass:\"table-container\"},[_c('el-table',{ref:\"table\",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:{\"type\":\"selection\",\"width\":\"55\",\"align\":\"center\"}}),_c('el-table-column',{attrs:{\"property\":\"strategyName\",\"align\":\"left\",\"width\":\"200\",\"label\":_vm.$t('strategy.strategyName')}}),_c('el-table-column',{attrs:{\"property\":\"strategyType\",\"align\":\"left\",\"label\":_vm.$t('strategy.strategyType')},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\" \"+_vm._s(scope.row.strategyType == 1 ? _vm.$t(\"strategy.balanced\") : _vm.$t(\"strategy.security\"))+\" \")]}}])}),_c('el-table-column',{attrs:{\"property\":\"describes\",\"align\":\"left\",\"label\":_vm.$t('work.remark')}}),_c('el-table-column',{attrs:{\"property\":\"createTime\",\"align\":\"left\",\"label\":_vm.$t('site.createTime')}}),_c('el-table-column',{attrs:{\"label\":_vm.$t('table.operate'),\"width\":\"280\",\"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.updateGateway(scope)}}},[_c('i',{staticClass:\"iconfont icon-wangguan\"}),_vm._v(\" \"+_vm._s(_vm.$t(\"strategy.update\")))]),_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 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('listQuery.deptId'),\"prop\":\"deptId\"}},[_c('el-cascader',{attrs:{\"show-all-levels\":false,\"options\":_vm.deptIdList,\"placeholder\":_vm.$t('listQuery.deptId'),\"props\":{ checkStrictly: true, emitPath: false, props: {} },\"clearable\":\"\"},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('strategy.strategyName'),\"prop\":\"strategyName\"}},[_c('el-input',{attrs:{\"placeholder\":_vm.$t('pEnter') + _vm.$t('strategy.strategyName'),\"maxlength\":\"20\"},model:{value:(_vm.form.strategyName),callback:function ($$v) {_vm.$set(_vm.form, \"strategyName\", $$v)},expression:\"form.strategyName\"}})],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('strategy.strategyType'),\"prop\":\"strategyType\"}},[_c('el-select',{attrs:{\"placeholder\":_vm.$t('pSelect')},model:{value:(_vm.form.strategyType),callback:function ($$v) {_vm.$set(_vm.form, \"strategyType\", $$v)},expression:\"form.strategyType\"}},_vm._l((_vm.type),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}),1)],1),_c('el-form-item',{attrs:{\"label\":_vm.$t('work.remark'),\"prop\":\"describes\"}},[_c('el-input',{attrs:{\"placeholder\":_vm.$t('pEnter') + _vm.$t('work.remark')},model:{value:(_vm.form.describes),callback:function ($$v) {_vm.$set(_vm.form, \"describes\", $$v)},expression:\"form.describes\"}})],1),_c('el-form-item',{staticStyle:{\"width\":\"100%\"},attrs:{\"label\":_vm.$t('device.upload'),\"prop\":\"path\"}},[_c('el-upload',{ref:\"upload\",attrs:{\"action\":\"\",\"drag\":\"\",\"limit\":1,\"file-list\":_vm.fileList,\"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-upload\"})])],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('table.update'),\"visible\":_vm.upDialog},on:{\"update:visible\":function($event){_vm.upDialog=$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.deviceList,\"target-order\":\"unshift\"},on:{\"change\":_vm.changeList},model:{value:(_vm.checkList),callback:function ($$v) {_vm.checkList=$$v},expression:\"checkList\"}}),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('span',{staticClass:\"btn-item long\",on:{\"click\":function($event){_vm.upDialog = false}}},[_vm._v(_vm._s(_vm.$t(\"btn.cancel\")))]),_c('span',{staticClass:\"btn-item long\",on:{\"click\":_vm.updateDatas}},[_vm._v(_vm._s(_vm.$t(\"btn.save\")))])])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import request from '@/utils/request'\r\n\r\n// 根据筛选项查询策略信息列表\r\nexport function getStrategyList(data) {\r\n return request({\r\n url: 'alarm-service/strategy/getStrategyList',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 录入策略信息\r\nexport function addStrategy(data) {\r\n return request({\r\n url: 'alarm-service/strategy/addStrategy',\r\n method: 'post',\r\n data\r\n })\r\n}\r\n\r\n// 修改策略信息\r\nexport function updateStrategy(data) {\r\n return request({\r\n url: 'alarm-service/strategy/updateStrategy',\r\n method: 'put',\r\n data\r\n })\r\n}\r\n\r\n// 更新策略网关信息\r\nexport function updateStrategyGate(data) {\r\n return request({\r\n url: 'alarm-service/strategy/updateStrategyGate',\r\n method: 'put',\r\n params: data\r\n })\r\n}\r\n\r\n// 删除策略信息\r\nexport function deleteStrategy(params) {\r\n return request({\r\n url: 'alarm-service/strategy/deleteStrategy',\r\n method: 'delete',\r\n params\r\n })\r\n}\r\n\r\n// 删除策略信息\r\nexport function deleteStrategyList(params) {\r\n return request({\r\n url: 'alarm-service/strategy/deleteStrategyList',\r\n method: 'delete',\r\n params\r\n })\r\n}\r\n\r\n\r\n// 根据strategyId查询可选择的网关信息\r\nexport function getChooseStrategyGate(params) {\r\n return request({\r\n url: 'alarm-service/strategy/getChooseStrategyGate',\r\n method: 'get',\r\n params\r\n })\r\n}\r\n\r\n\r\n// 根据strategyId查询策略信息\r\nexport function getStrategyById(params) {\r\n return request({\r\n url: 'alarm-service/strategy/getStrategyById',\r\n method: 'get',\r\n params\r\n })\r\n}\r\n\r\n// 根据strategyId查询策略网关信息\r\nexport function getStrategyGateByStrategyId(params) {\r\n return request({\r\n url: 'alarm-service/strategy/getStrategyGateByStrategyId',\r\n method: 'get',\r\n params\r\n })\r\n} ","<!-- 站址管理页 -->\r\n<template>\r\n <div class=\"app-container\">\r\n <div class=\"decorate\"></div>\r\n\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 <span class=\"btn-item\" @click=\"handleFilter\"\r\n ><i class=\"iconfont icon-sousuo\" />{{ $t(\"btn.search\") }}</span\r\n >\r\n <span class=\"btn-item\" @click=\"clearListQuery\"\r\n ><i class=\"el-icon-refresh-left\"></i> {{ $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(\"btn.add\") }}</span\r\n >\r\n </div>\r\n </div>\r\n <div class=\"table-container\">\r\n <el-table\r\n :data=\"list\"\r\n ref=\"table\"\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 type=\"selection\" width=\"55\" align=\"center\" />\r\n <el-table-column\r\n property=\"strategyName\"\r\n align=\"left\"\r\n width=\"200\"\r\n :label=\"$t('strategy.strategyName')\"\r\n />\r\n\r\n <el-table-column\r\n property=\"strategyType\"\r\n align=\"left\"\r\n :label=\"$t('strategy.strategyType')\"\r\n >\r\n <template slot-scope=\"scope\">\r\n {{\r\n scope.row.strategyType == 1\r\n ? $t(\"strategy.balanced\")\r\n : $t(\"strategy.security\")\r\n }}\r\n </template>\r\n </el-table-column>\r\n <el-table-column\r\n property=\"describes\"\r\n align=\"left\"\r\n :label=\"$t('work.remark')\"\r\n >\r\n </el-table-column>\r\n <el-table-column\r\n property=\"createTime\"\r\n align=\"left\"\r\n :label=\"$t('site.createTime')\"\r\n >\r\n </el-table-column>\r\n <el-table-column :label=\"$t('table.operate')\" width=\"280\" align=\"left\">\r\n <template slot-scope=\"scope\">\r\n <span\r\n class=\"btnCancel\"\r\n @click=\"updateGateway(scope)\"\r\n :title=\"$t('table.update')\"\r\n >\r\n <i class=\"iconfont icon-wangguan\" />\r\n {{ $t(\"strategy.update\") }}</span\r\n >\r\n <span\r\n class=\"btnCancel\"\r\n @click=\"handleUpdate(scope)\"\r\n :title=\"$t('table.update')\"\r\n >\r\n <i class=\"iconfont icon-bianji\" /> {{ $t(\"table.update\") }}</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 </div>\r\n\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 :model=\"form\"\r\n inline\r\n label-width=\"130px\"\r\n >\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 :placeholder=\"$t('listQuery.deptId')\"\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('strategy.strategyName')\" prop=\"strategyName\">\r\n <el-input\r\n v-model=\"form.strategyName\"\r\n :placeholder=\"$t('pEnter') + $t('strategy.strategyName')\"\r\n maxlength=\"20\"\r\n />\r\n </el-form-item>\r\n <el-form-item :label=\"$t('strategy.strategyType')\" prop=\"strategyType\">\r\n <el-select v-model=\"form.strategyType\" :placeholder=\"$t('pSelect')\">\r\n <el-option\r\n v-for=\"item in type\"\r\n :key=\"item.value\"\r\n :label=\"item.label\"\r\n :value=\"item.value\"\r\n />\r\n </el-select>\r\n </el-form-item>\r\n <el-form-item :label=\"$t('work.remark')\" prop=\"describes\">\r\n <el-input\r\n v-model=\"form.describes\"\r\n :placeholder=\"$t('pEnter') + $t('work.remark')\"\r\n />\r\n </el-form-item>\r\n <el-form-item\r\n :label=\"$t('device.upload')\"\r\n style=\"width: 100%\"\r\n prop=\"path\"\r\n >\r\n <el-upload\r\n ref=\"upload\"\r\n action\r\n drag\r\n :limit=\"1\"\r\n :file-list=\"fileList\"\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-upload\"></i>\r\n </el-upload>\r\n </el-form-item>\r\n </el-form>\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\r\n <el-dialog\r\n :close-on-click-modal=\"false\"\r\n :title=\"$t('table.update')\"\r\n :visible.sync=\"upDialog\"\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=\"checkList\"\r\n :data=\"deviceList\"\r\n @change=\"changeList\"\r\n style=\"width: 800px; margin: 0px auto\"\r\n target-order=\"unshift\"\r\n />\r\n <span slot=\"footer\" class=\"dialog-footer\">\r\n <span class=\"btn-item long\" @click=\"upDialog = false\">{{\r\n $t(\"btn.cancel\")\r\n }}</span>\r\n <span class=\"btn-item long\" @click=\"updateDatas\">{{\r\n $t(\"btn.save\")\r\n }}</span>\r\n </span>\r\n </el-dialog>\r\n </div>\r\n</template>\r\n<script>\r\nimport {\r\n getStrategyList,\r\n addStrategy,\r\n updateStrategy,\r\n deleteStrategy,\r\n deleteStrategyList,\r\n updateStrategyGate,\r\n // getStrategyById,\r\n getStrategyGateByStrategyId,\r\n getChooseStrategyGate\r\n} from \"@/api/strategy\"\r\nimport { getDeptSubByDeptId } from \"@/api/department\"\r\nimport { uploadFile, deleteFile } from \"@/api/upload\"\r\nexport default {\r\n data() {\r\n return {\r\n checkList: [],\r\n deviceList: [],\r\n typeCode: \"\",\r\n scope: {},\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 upDialog: false,\r\n textMap: {\r\n update: this.$t(\"table.update\"),\r\n create: this.$t(\"table.create\")\r\n },\r\n type: [\r\n { value: 1, label: this.$t(\"strategy.balanced\") },\r\n { value: 2, label: this.$t(\"strategy.security\") }\r\n ],\r\n dialogStatus: \"\",\r\n form: {\r\n deptId: null,\r\n describes: null,\r\n path: null,\r\n strategyId: null,\r\n strategyName: null,\r\n strategyType: null\r\n },\r\n forms: {\r\n deviceCodes: null,\r\n strategyId: null\r\n },\r\n list: null,\r\n fileList: null,\r\n deptIdList: null,\r\n listLoading: false,\r\n createStatus: false,\r\n url: \"\",\r\n rules: {\r\n strategyName: [\r\n {\r\n required: true,\r\n message: this.$t(\"pEnter\") + this.$t(\"strategy.strategyName\"),\r\n trigger: \"blur\"\r\n }\r\n ],\r\n strategyType: [\r\n {\r\n required: true,\r\n message: this.$t(\"pEnter\") + this.$t(\"strategy.strategyType\"),\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 path: [\r\n {\r\n required: true,\r\n message: this.$t(\"pEnter\") + this.$t(\"device.upload\"),\r\n trigger: \"change\"\r\n }\r\n ],\r\n describes: [\r\n {\r\n required: true,\r\n message: this.$t(\"pEnter\") + this.$t(\"work.remark\"),\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 this.getDeptList()\r\n },\r\n methods: {\r\n getDeptList() {\r\n // 获取区域列表\r\n getDeptSubByDeptId().then((res) => {\r\n this.deptIdList = res.data && this.getdeptIdList(res.data)\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 getList() {\r\n getStrategyList(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 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 addStrategy(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 updateStrategy(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 }\r\n })\r\n }\r\n })\r\n },\r\n updateDatas() {\r\n // 编辑\r\n updateStrategyGate(this.forms).then((res) => {\r\n if (res.status == 200) {\r\n this.upDialog = 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 }\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.form = {\r\n strategyId: scope.row.strategyId,\r\n deptId: scope.row.deptId,\r\n describes: scope.row.describes,\r\n path: scope.row.path,\r\n strategyName: scope.row.strategyName,\r\n strategyType: scope.row.strategyType\r\n }\r\n this.fileList = this.form.path ? [{ url: this.form.path }] : []\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.delPointOutWork\"),\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 deleteStrategy({ strategyId: scope.row.strategyId }).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 // 批量删除\r\n deleteList() {\r\n if (!this.$refs.table.selection.length) {\r\n this.$notify({\r\n title: this.$t(\"title.fail\"),\r\n message: this.$t(\"pSelect\") + this.$t(\"user.user\"),\r\n type: \"warning\",\r\n duration: 3000\r\n })\r\n return\r\n }\r\n this.$confirm(\r\n this.$t(\"title.delPointOutUser\"),\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 const list = this.$refs.table.selection.map((e) => e.strategyId)\r\n const strategyIds = list.join(\",\")\r\n deleteStrategyList({ strategyIds }).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 beforeUpload(file) {\r\n console.log(file)\r\n return true\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.path, this.url)\r\n } else {\r\n this.File.push(this.form.path)\r\n }\r\n this.form.path = \"\"\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.path = e.data\r\n })\r\n },\r\n updateGateway(scope) {\r\n this.forms = {\r\n deviceCodes: \"\",\r\n strategyId: scope.row.strategyId\r\n }\r\n this.deviceList = []\r\n getStrategyGateByStrategyId({\r\n strategyId: scope.row.strategyId\r\n }).then((e) => {\r\n this.checkList = e.data.map((e) => e.deviceCode)\r\n e.data.forEach((e) => {\r\n this.deviceList.push({\r\n deviceCode: e.deviceCode,\r\n deviceName: e.deviceName,\r\n label: e.deviceName,\r\n key: e.deviceCode\r\n })\r\n })\r\n })\r\n getChooseStrategyGate({\r\n strategyId: scope.row.strategyId\r\n }).then((e) => {\r\n e.data.forEach((e) => {\r\n this.deviceList.push({\r\n deviceCode: e.deviceCode,\r\n deviceName: e.deviceName,\r\n label: e.deviceName,\r\n key: e.deviceCode\r\n })\r\n })\r\n })\r\n this.upDialog = true\r\n },\r\n changeList() {\r\n console.log(this.deviceList, this.checkList)\r\n this.forms.deviceCodes = this.checkList.join()\r\n }\r\n }\r\n}\r\n</script>\r\n<style rel=\"stylesheet/scss\" lang=\"scss\" scoped>\r\n.label {\r\n padding: 30px;\r\n label {\r\n margin: 20px 20px;\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!./strategy.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!./strategy.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./strategy.vue?vue&type=template&id=a9702964&scoped=true&\"\nimport script from \"./strategy.vue?vue&type=script&lang=js&\"\nexport * from \"./strategy.vue?vue&type=script&lang=js&\"\nimport style0 from \"./strategy.vue?vue&type=style&index=0&id=a9702964&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 \"a9702964\",\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}","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!./strategy.vue?vue&type=style&index=0&id=a9702964&rel=stylesheet%2Fscss&lang=scss&scoped=true&\""],"sourceRoot":""}