1 line
28 KiB
Plaintext
1 line
28 KiB
Plaintext
{"version":3,"sources":["webpack:///./src/views/manager/screenSettings.vue?86f0","webpack:///src/views/manager/screenSettings.vue","webpack:///./src/views/manager/screenSettings.vue?0b93","webpack:///./src/views/manager/screenSettings.vue","webpack:///./src/views/manager/screenSettings.vue?a1d0","webpack:///./src/api/deviceType.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","ref","attrs","list","$t","scopedSlots","_u","key","fn","scope","on","$event","handleUpdate","_v","_s","addDialog","getParamByTypeCode","model","value","callback","$$v","typeCode","expression","_l","option","typeName","staticStyle","deviceList","changeList","checkList","slot","updateData","staticRenderFns","data","total","flag","seleteData","deviceTypeList","created","url","$store","state","user","getList","getDeviceTypeList","methods","getBatteryConfig","name","label","map","join","i","getPowerConfig","getRectifyConfig","getSensorConfig","console","getTypeList","filterDeptList","e","subList","route","editDeptList","row","enSignName","signName","value2","setBatteryConfig","setPowerConfig","setRectifyConfig","setSensorConfig","component","request","method","params","addType","headers","deleteType","delData","typeById","updateType"],"mappings":"yHAAA,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,WAAW,CAACG,IAAI,QAAQC,MAAM,CAAC,KAAOR,EAAIS,KAAK,IAAM,GAAG,aAAa,MAAM,wBAAwB,GAAG,wBAAwB,eAAe,iBAAiB,cAAc,CAACL,EAAG,kBAAkB,CAACI,MAAM,CAAC,KAAO,YAAY,MAAQ,KAAK,MAAQ,YAAYJ,EAAG,kBAAkB,CAACI,MAAM,CAAC,SAAW,OAAO,MAAQ,OAAO,MAAQ,MAAM,MAAQR,EAAIU,GAAG,0BAA0BN,EAAG,kBAAkB,CAACI,MAAM,CAAC,SAAW,QAAQ,M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A,OAASA,EAC3BT,KAAA,YAAkB,MAClB,gDAEAC,WAIU,EAAV,gBAEA,2CACQmB,eAAgBA,EAAMA,KAAKA,MAAMA,MAAKA,WAC9C,GAAc,EAAd,KACY,EAAZ,0BACkBX,EAAEX,MAAQ,EAA5B,iBACgBW,EAAEA,MAAQA,EAAKA,KAAIA,SAAnCA,GAAA,YACgBA,EAAEA,MAAQA,EAC1BT,KAAA,YAAkB,MAClB,gDAEAC,WAIY,EAAZ,0BACkBQ,EAAEX,MAAQ,EAA5B,iBACgBW,EAAEA,OAASA,EACXA,EAAEA,OAASA,EAC3BT,KAAA,YAAkB,MAClB,gDAEAC,WAIU,EAAV,mBC3ZuW,I,wBCQnWoB,EAAY,eACd,EACA7E,EACAuC,GACA,EACA,KACA,WACA,MAIa,aAAAsC,E,6CCnBf,W,2DCAA,wJAgBO,SAASd,EAAYvB,GAC1B,OAAOsC,eAAQ,CACbhC,IAAK,kCACLiC,OAAQ,MACRC,OAAQxC,IAKL,SAASyC,EAAQzC,GACtB,OAAOsC,eAAQ,CACbI,QAAS,CACP,eAAgB,oBAElBpC,IAAK,8BACLiC,OAAQ,OACRvC,SAKG,SAAS2C,EAAW3C,GACzB,IAAM4C,EAAU,CACdC,SAAU7C,GAEZ,OAAOsC,eAAQ,CACbhC,IAAK,iCACLiC,OAAQ,SACRC,OAAQI,IAiBL,SAASE,EAAW9C,GACzB,OAAOsC,eAAQ,CACbI,QAAS,CACP,eAAgB,oBAElBpC,IAAK,iCACLiC,OAAQ,MACRvC","file":"js/chunk-1c7c9b4a.0d379beb.js","sourcesContent":["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:\"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\":\"name\",\"align\":\"left\",\"width\":\"200\",\"label\":_vm.$t('menu.permissionName')}}),_c('el-table-column',{attrs:{\"property\":\"label\",\"align\":\"left\",\"label\":_vm.$t('screen.information')}}),_c('el-table-column',{attrs:{\"property\":\"label2\",\"align\":\"left\",\"label\":_vm.$t('screen.chart')}}),_c('el-table-column',{attrs:{\"label\":_vm.$t('table.operate'),\"width\":\"220\",\"align\":\"left\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',{staticClass:\"btnCancel\",attrs:{\"title\":_vm.$t('screen.information')},on:{\"click\":function($event){return _vm.handleUpdate(scope, 1)}}},[_c('i',{staticClass:\"iconfont icon-bianji\"}),_vm._v(_vm._s(_vm.$t('screen.information')))]),_c('span',{staticClass:\"btnCancel\",attrs:{\"title\":_vm.$t('screen.chart')},on:{\"click\":function($event){return _vm.handleUpdate(scope, 2)}}},[_c('i',{staticClass:\"iconfont icon-bianji\"}),_vm._v(_vm._s(_vm.$t('screen.chart')))])]}}])})],1),_c('el-dialog',{attrs:{\"close-on-click-modal\":false,\"title\":_vm.$t('table.update'),\"visible\":_vm.addDialog},on:{\"update:visible\":function($event){_vm.addDialog=$event}}},[_c('el-form',{ref:\"form\",attrs:{\"label-width\":\"110px\"}},[_c('el-form-item',{attrs:{\"label\":_vm.$t('device.typeName')}},[_c('el-select',{attrs:{\"placeholder\":_vm.$t('pSelect')},on:{\"change\":_vm.getParamByTypeCode},model:{value:(_vm.typeCode),callback:function ($$v) {_vm.typeCode=$$v},expression:\"typeCode\"}},_vm._l((_vm.deviceTypeList),function(option){return _c('el-option',{key:option.typeCode,attrs:{\"label\":option.typeName,\"value\":option.typeCode}})}),1)],1),_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\"}})],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\":_vm.updateData}},[_vm._v(_vm._s(_vm.$t('btn.save')))])])],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=\"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=\"name\"\r\n align=\"left\"\r\n width=\"200\"\r\n :label=\"$t('menu.permissionName')\"\r\n />\r\n\r\n <el-table-column\r\n property=\"label\"\r\n align=\"left\"\r\n :label=\"$t('screen.information')\"\r\n >\r\n </el-table-column>\r\n <el-table-column\r\n property=\"label2\"\r\n align=\"left\"\r\n :label=\"$t('screen.chart')\"\r\n >\r\n </el-table-column>\r\n <el-table-column :label=\"$t('table.operate')\" width=\"220\" align=\"left\">\r\n <template slot-scope=\"scope\">\r\n <span\r\n class=\"btnCancel\"\r\n @click=\"handleUpdate(scope, 1)\"\r\n :title=\"$t('screen.information')\"\r\n >\r\n <i class=\"iconfont icon-bianji\" />{{\r\n $t('screen.information')\r\n }}</span\r\n >\r\n <span\r\n class=\"btnCancel\"\r\n @click=\"handleUpdate(scope, 2)\"\r\n :title=\"$t('screen.chart')\"\r\n >\r\n <i class=\"iconfont icon-bianji\" />{{ $t('screen.chart') }}</span\r\n >\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n <el-dialog\r\n :close-on-click-modal=\"false\"\r\n :title=\"$t('table.update')\"\r\n :visible.sync=\"addDialog\"\r\n >\r\n <el-form ref=\"form\" label-width=\"110px\">\r\n <el-form-item :label=\"$t('device.typeName')\">\r\n <el-select\r\n v-model=\"typeCode\"\r\n :placeholder=\"$t('pSelect')\"\r\n @change=\"getParamByTypeCode\"\r\n >\r\n <el-option\r\n v-for=\"option in deviceTypeList\"\r\n :key=\"option.typeCode\"\r\n :label=\"option.typeName\"\r\n :value=\"option.typeCode\"\r\n ></el-option>\r\n </el-select>\r\n </el-form-item>\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 </el-form>\r\n <!-- <div class=\"label\">\r\n <el-checkbox-group v-model=\"checkList\">\r\n <el-checkbox\r\n v-for=\"item in seleteData.value\"\r\n :key=\"item.dictionaryId\"\r\n :label=\"item.dictionaryId\"\r\n >{{ item.signName }}</el-checkbox\r\n >\r\n </el-checkbox-group>\r\n </div> -->\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 class=\"btn-item long\" @click=\"updateData\">{{\r\n $t('btn.save')\r\n }}</span>\r\n </span>\r\n </el-dialog>\r\n </div>\r\n </div>\r\n</template>\r\n<script>\r\nimport {\r\n getParamByTypeCode,\r\n getBatteryConfig,\r\n setBatteryConfig,\r\n getPowerConfig,\r\n setPowerConfig,\r\n getRectifyConfig,\r\n setRectifyConfig,\r\n getSensorConfig,\r\n setSensorConfig\r\n} from '@/api/screenConfig'\r\nimport { getTypeList } from '@/api/deviceType'\r\nexport default {\r\n data() {\r\n return {\r\n total: 0,\r\n flag: 1,\r\n list: [],\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 },\r\n created() {\r\n this.url = this.$store.state.user.url + '/trajectory-service'\r\n this.getList()\r\n this.getDeviceTypeList()\r\n },\r\n methods: {\r\n getList() {\r\n getBatteryConfig({ flag: 1 }).then((e) => {\r\n const i = {\r\n name: 'BATTERY INFORMATION',\r\n value: e.data,\r\n label: e.data\r\n .map((e) => (this.$i18n.locale == 'en' ? e.enSignName : e.signName))\r\n .join()\r\n }\r\n getBatteryConfig({ flag: 2 }).then((item) => {\r\n i.value2 = item.data\r\n i.label2 = item.data\r\n .map((e) => (this.$i18n.locale == 'en' ? e.enSignName : e.signName))\r\n .join()\r\n this.list.push(i)\r\n })\r\n })\r\n\r\n getPowerConfig({ flag: 1 }).then((e) => {\r\n const i = {\r\n name: 'POWER INFORMATION',\r\n value: e.data,\r\n label: e.data\r\n .map((e) => (this.$i18n.locale == 'en' ? e.enSignName : e.signName))\r\n .join()\r\n }\r\n getPowerConfig({ flag: 2 }).then((item) => {\r\n i.value2 = item.data\r\n i.label2 = item.data\r\n .map((e) => (this.$i18n.locale == 'en' ? e.enSignName : e.signName))\r\n .join()\r\n this.list.push(i)\r\n })\r\n })\r\n getRectifyConfig({ flag: 1 }).then((e) => {\r\n const i = {\r\n name: 'RECTIFY INFORMATION',\r\n value: e.data,\r\n label: e.data\r\n .map((e) => (this.$i18n.locale == 'en' ? e.enSignName : e.signName))\r\n .join()\r\n }\r\n getRectifyConfig({ flag: 2 }).then((item) => {\r\n i.value2 = item.data\r\n i.label2 = item.data\r\n .map((e) => (this.$i18n.locale == 'en' ? e.enSignName : e.signName))\r\n .join()\r\n this.list.push(i)\r\n })\r\n })\r\n\r\n getSensorConfig({ flag: 1 }).then((e) => {\r\n const i = {\r\n name: 'SENSOR INFORMATION',\r\n value: e.data,\r\n label: e.data\r\n .map((e) => (this.$i18n.locale == 'en' ? e.enSignName : e.signName))\r\n .join()\r\n }\r\n getSensorConfig({ flag: 2 }).then((item) => {\r\n i.value2 = item.data\r\n i.label2 = item.data\r\n .map((e) => (this.$i18n.locale == 'en' ? e.enSignName : e.signName))\r\n .join()\r\n this.list.push(i)\r\n })\r\n })\r\n },\r\n changeList() {\r\n console.log(this.deviceList, this.checkList)\r\n },\r\n getDeviceTypeList() {\r\n // 获取设备类型列表\r\n getTypeList().then((res) => {\r\n // this.data = res.data.list\r\n this.deviceTypeList = this.filterDeptList(res.data.list)\r\n })\r\n },\r\n filterDeptList(data) {\r\n // 过滤区域列表\r\n const editDeptList = []\r\n data.forEach((e) => {\r\n const route = e\r\n console.log(e)\r\n if (!e) {\r\n return\r\n }\r\n if (e.subList) {\r\n route.children = this.filterDeptList(e.subList, true)\r\n }\r\n e.id = e.deptId + 1\r\n editDeptList.push(route)\r\n })\r\n return editDeptList\r\n },\r\n handleUpdate(scope, flag) {\r\n if (flag == 1) {\r\n this.checkList = scope.row.value.map((e) => {\r\n return e.enSignName\r\n })\r\n this.deviceList = scope.row.value.map((e) => {\r\n return {\r\n enSignName: e.enSignName,\r\n flag: flag,\r\n signName: e.signName,\r\n typeCode: e.typeCode,\r\n label: this.$i18n.locale == 'en' ? e.enSignName : e.signName,\r\n key: e.enSignName\r\n }\r\n })\r\n } else {\r\n this.checkList = scope.row.value2.map((e) => {\r\n return e.enSignName\r\n })\r\n this.deviceList = scope.row.value2.map((e) => {\r\n return {\r\n enSignName: e.enSignName,\r\n flag: flag,\r\n signName: e.signName,\r\n typeCode: e.typeCode,\r\n label: this.$i18n.locale == 'en' ? e.enSignName : e.signName,\r\n key: e.enSignName\r\n }\r\n })\r\n }\r\n this.scope = scope\r\n this.typeCode = ''\r\n this.flag = flag\r\n this.addDialog = true\r\n },\r\n getParamByTypeCode(typeCode) {\r\n getParamByTypeCode({ typeCode }).then((e) => {\r\n this.deviceList = this.deviceList.filter((e) => {\r\n return this.checkList.includes(e.enSignName)\r\n })\r\n e.data.forEach((e) => {\r\n if (!this.checkList.includes(e.enSignName)) {\r\n this.deviceList.push({\r\n enSignName: e.enSignName,\r\n flag: this.flag,\r\n signName: e.signName,\r\n typeCode: e.typeCode,\r\n label: this.$i18n.locale == 'en' ? e.enSignName : e.signName,\r\n key: e.enSignName\r\n })\r\n }\r\n })\r\n })\r\n },\r\n updateData() {\r\n let list = this.deviceList.filter((e) => {\r\n return this.checkList.includes(e.enSignName)\r\n })\r\n\r\n list = list.map((e) => {\r\n return {\r\n enSignName: e.enSignName,\r\n flag: this.flag,\r\n signName: e.signName,\r\n typeCode: e.typeCode\r\n }\r\n })\r\n if (this.scope.row.name == 'BATTERY INFORMATION') {\r\n setBatteryConfig(list, this.flag).then(() => {\r\n if (this.flag == 1) {\r\n this.list.forEach((e) => {\r\n if (e.name == this.scope.row.name) {\r\n e.value = list.map((e) => e)\r\n e.label = list\r\n .map((e) =>\r\n this.$i18n.locale == 'en' ? e.enSignName : e.signName\r\n )\r\n .join()\r\n }\r\n })\r\n } else {\r\n this.list.forEach((e) => {\r\n if (e.name == this.scope.row.name) {\r\n e.value2 = list\r\n e.label2 = list\r\n .map((e) =>\r\n this.$i18n.locale == 'en' ? e.enSignName : e.signName\r\n )\r\n .join()\r\n }\r\n })\r\n }\r\n this.addDialog = false\r\n })\r\n } else if (this.scope.row.name == 'POWER INFORMATION') {\r\n setPowerConfig(list, this.flag).then(() => {\r\n if (this.flag == 1) {\r\n this.list.forEach((e) => {\r\n if (e.name == this.scope.row.name) {\r\n e.value = list.map((e) => e)\r\n e.label = list\r\n .map((e) =>\r\n this.$i18n.locale == 'en' ? e.enSignName : e.signName\r\n )\r\n .join()\r\n }\r\n })\r\n } else {\r\n this.list.forEach((e) => {\r\n if (e.name == this.scope.row.name) {\r\n e.value2 = list\r\n e.label2 = list\r\n .map((e) =>\r\n this.$i18n.locale == 'en' ? e.enSignName : e.signName\r\n )\r\n .join()\r\n }\r\n })\r\n }\r\n this.addDialog = false\r\n })\r\n } else if (this.scope.row.name == 'RECTIFY INFORMATION') {\r\n setRectifyConfig(list, this.flag).then(() => {\r\n if (this.flag == 1) {\r\n this.list.forEach((e) => {\r\n if (e.name == this.scope.row.name) {\r\n e.value = list.map((e) => e)\r\n e.label = list\r\n .map((e) =>\r\n this.$i18n.locale == 'en' ? e.enSignName : e.signName\r\n )\r\n .join()\r\n }\r\n })\r\n } else {\r\n this.list.forEach((e) => {\r\n if (e.name == this.scope.row.name) {\r\n e.value2 = list\r\n e.label2 = list\r\n .map((e) =>\r\n this.$i18n.locale == 'en' ? e.enSignName : e.signName\r\n )\r\n .join()\r\n }\r\n })\r\n }\r\n this.addDialog = false\r\n })\r\n } else if (this.scope.row.name == 'SENSOR INFORMATION') {\r\n setSensorConfig(list, this.flag).then(() => {\r\n if (this.flag == 1) {\r\n this.list.forEach((e) => {\r\n if (e.name == this.scope.row.name) {\r\n e.value = list.map((e) => e)\r\n e.label = list\r\n .map((e) =>\r\n this.$i18n.locale == 'en' ? e.enSignName : e.signName\r\n )\r\n .join()\r\n }\r\n })\r\n } else {\r\n this.list.forEach((e) => {\r\n if (e.name == this.scope.row.name) {\r\n e.value2 = list\r\n e.label2 = list\r\n .map((e) =>\r\n this.$i18n.locale == 'en' ? e.enSignName : e.signName\r\n )\r\n .join()\r\n }\r\n })\r\n }\r\n this.addDialog = false\r\n })\r\n }\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!./screenSettings.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!./screenSettings.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./screenSettings.vue?vue&type=template&id=7debecd4&scoped=true&\"\nimport script from \"./screenSettings.vue?vue&type=script&lang=js&\"\nexport * from \"./screenSettings.vue?vue&type=script&lang=js&\"\nimport style0 from \"./screenSettings.vue?vue&type=style&index=0&id=7debecd4&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 \"7debecd4\",\n null\n \n)\n\nexport default component.exports","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!./screenSettings.vue?vue&type=style&index=0&id=7debecd4&rel=stylesheet%2Fscss&lang=scss&scoped=true&\"","import request from '@/utils/request'\r\n// import qs from 'qs'\r\n/*\r\n 管理台-设备类型 权限操作api\r\n*/\r\n\r\n// 根据typeId查询设备类型信息\r\nexport function getTypeById(data) {\r\n return request({\r\n url: 'device-service/type/getTypeById',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 根据筛选项查询设备类型列表\r\nexport function getTypeList(data) {\r\n return request({\r\n url: 'device-service/type/getTypeList',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 录入设备类型信息\r\nexport function addType(data) {\r\n return request({\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n url: 'device-service/type/addType',\r\n method: 'post',\r\n data\r\n })\r\n}\r\n\r\n// 删除设备类型信息\r\nexport function deleteType(data) {\r\n const delData = {\r\n typeById: data\r\n }\r\n return request({\r\n url: 'device-service/type/deleteType',\r\n method: 'delete',\r\n params: delData\r\n })\r\n}\r\n\r\n// 批量删除设备类型信息\r\nexport function deleteTypeList(data) {\r\n const delData = {\r\n typeIds: data\r\n }\r\n return request({\r\n url: 'device-service/type/deleteTypeList',\r\n method: 'delete',\r\n params: delData\r\n })\r\n}\r\n\r\n// 修改设备类型信息\r\nexport function updateType(data) {\r\n return request({\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n url: 'device-service/type/updateType',\r\n method: 'put',\r\n data\r\n })\r\n}\r\n"],"sourceRoot":""} |