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

1 line
28 KiB
Plaintext

{"version":3,"sources":["webpack:///./src/components/Pagination/index.vue?31f0","webpack:///./src/views/manager/platformLog.vue?01e4","webpack:///src/views/manager/platformLog.vue","webpack:///./src/views/manager/platformLog.vue?1148","webpack:///./src/views/manager/platformLog.vue","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/utils/validate.js","webpack:///./src/api/log.js","webpack:///./src/api/user.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","$t","model","value","listQuery","callback","$$v","$set","expression","_l","option","key","userId","userName","on","handleFilter","_v","_s","clearListQuery","directives","name","rawName","list","scopedSlots","_u","fn","scope","_f","row","createDate","total","curPage","pageSize","$event","getList","staticRenderFns","components","Pagination","permission","filters","switchTimeFormat","val","validateVal","data","userList","listLoading","created","getUserList","methods","getLogList","console","component","_b","background","currentPage","layout","pageSizes","handleSizeChange","handleCurrentChange","$attrs","props","required","type","page","default","limit","hidden","computed","get","set","$emit","inserted","el","binding","roles","store","getters","butPermission","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","window","use","validatePhone","rule","test","filterNull","valReplace","replace","time","dateTime","Date","year","getFullYear","month","getMonth","date","getDate","hour","getHours","minute","getMinutes","second","getSeconds","addZero","v","request","url","method","params","getUserByUserName","addSubmitApi","headers","editSubmitApi","delSubmitUserApi","delData","userIds"],"mappings":"kHAAA,W,oECAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAA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,CACbC,IAAK,sCACLC,OAAQ,MACRC,OAAQzF,IAKL,SAAS2F,EAAa3F,GAC3B,OAAOsF,eAAQ,CACbM,QAAS,CACP,eAAgB,oBAElBL,IAAK,gCACLC,OAAQ,OACRxF,SAKG,SAAS6F,EAAc7F,GAC5B,OAAOsF,eAAQ,CACbM,QAAS,CACP,eAAgB,oBAElBL,IAAK,kCACLC,OAAQ,OACRxF,SAKG,SAAS8F,EAAiB9F,GAC/B,IAAM+F,EAAU,CACdC,QAAShG,GAEX,OAAOsF,eAAQ,CACbC,IAAK,kCACLC,OAAQ,MACRC,OAAQM","file":"js/chunk-05d9475b.d7188b18.js","sourcesContent":["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:\"app-container\"},[_c('div',{staticClass:\"decorate\"}),_c('div',{staticClass:\"filter-container\"},[_c('el-select',{staticClass:\"filter-item\",attrs:{\"placeholder\":_vm.$t('pSelect') + _vm.$t('user.user')},model:{value:(_vm.listQuery.userId),callback:function ($$v) {_vm.$set(_vm.listQuery, \"userId\", $$v)},expression:\"listQuery.userId\"}},_vm._l((_vm.userList),function(option){return _c('el-option',{key:option.userId,attrs:{\"label\":option.userName,\"value\":option.userId},on:{\"change\":_vm.handleFilter}})}),1),_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')))])],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:{\"type\":\"index\",\"width\":\"50\"}}),_c('el-table-column',{attrs:{\"property\":\"userName\",\"align\":\"left\",\"label\":_vm.$t('platformLog.userName')}}),_c('el-table-column',{attrs:{\"property\":\"operation\",\"align\":\"left\",\"label\":_vm.$t('table.operate')}}),_c('el-table-column',{attrs:{\"property\":\"ip\",\"align\":\"left\",\"label\":_vm.$t('platformLog.ip')}}),_c('el-table-column',{attrs:{\"label\":_vm.$t('platformLog.createDate'),\"align\":\"left\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('span',[_vm._v(_vm._s(_vm._f(\"switchTimeFormat\")(scope.row.createDate)))])]}}])})],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)])}\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-select\r\n v-model=\"listQuery.userId\"\r\n :placeholder=\"$t('pSelect') + $t('user.user')\"\r\n class=\"filter-item\"\r\n >\r\n <el-option\r\n v-for=\"option in userList\"\r\n :key=\"option.userId\"\r\n :label=\"option.userName\"\r\n :value=\"option.userId\"\r\n @change=\"handleFilter\"\r\n ></el-option>\r\n </el-select>\r\n\r\n <span class=\"btn-item\" @click=\"handleFilter\">\r\n <i class=\"iconfont icon-sousuo\" />\r\n {{ $t('btn.search') }}\r\n </span>\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>\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 type=\"index\" width=\"50\"> </el-table-column>\r\n <el-table-column\r\n property=\"userName\"\r\n align=\"left\"\r\n :label=\"$t('platformLog.userName')\"\r\n />\r\n <el-table-column\r\n property=\"operation\"\r\n align=\"left\"\r\n :label=\"$t('table.operate')\"\r\n />\r\n <el-table-column\r\n property=\"ip\"\r\n align=\"left\"\r\n :label=\"$t('platformLog.ip')\"\r\n />\r\n <el-table-column :label=\"$t('platformLog.createDate')\" align=\"left\">\r\n <template slot-scope=\"scope\">\r\n <span>{{ scope.row.createDate | switchTimeFormat }}</span>\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 </div>\r\n</template>\r\n\r\n<script>\r\nimport { getLogList } from '@/api/log'\r\nimport { getUserList } from '@/api/user'\r\nimport Pagination from '@/components/Pagination'\r\nimport permission from '@/directive/permission/index.js' // 权限判断指令\r\nimport { switchTimeFormat } from '@/utils/validate'\r\n\r\nexport default {\r\n components: { Pagination },\r\n directives: { permission },\r\n filters: {\r\n switchTimeFormat(val) {\r\n const validateVal = switchTimeFormat(val)\r\n return validateVal\r\n }\r\n },\r\n data() {\r\n return {\r\n total: 0,\r\n listQuery: {\r\n userId: null,\r\n curPage: 1,\r\n pageSize: 10\r\n },\r\n userList: [],\r\n list: null,\r\n listLoading: false\r\n }\r\n },\r\n created() {\r\n this.getList()\r\n getUserList().then((res) => {\r\n this.userList = res.data.list\r\n })\r\n },\r\n methods: {\r\n getList() {\r\n this.listLoading = true\r\n getLogList(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 clearListQuery() {\r\n this.listQuery = {\r\n userId: null,\r\n curPage: 1,\r\n pageSize: 10\r\n }\r\n this.getList()\r\n },\r\n // 搜索\r\n handleFilter() {\r\n this.listQuery.curPage = 1\r\n this.getList()\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!./platformLog.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!./platformLog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./platformLog.vue?vue&type=template&id=665b82bc&scoped=true&\"\nimport script from \"./platformLog.vue?vue&type=script&lang=js&\"\nexport * from \"./platformLog.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 \"665b82bc\",\n null\n \n)\n\nexport default component.exports","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","/**\r\n * Created by jiachenpan on 16/11/18.\r\n */\r\n\r\n/**\r\n * @param {string} path\r\n * @returns {Boolean}\r\n */\r\nexport function isExternal(path) {\r\n return /^(https?:|mailto:|tel:)/.test(path)\r\n}\r\n/* 小写字母*/\r\nexport function validLowerCase(str) {\r\n const reg = /^[a-z]+$/\r\n return reg.test(str)\r\n}\r\n\r\n/* 大写字母*/\r\nexport function validUpperCase(str) {\r\n const reg = /^[A-Z]+$/\r\n return reg.test(str)\r\n}\r\n\r\n/* 大小写字母*/\r\nexport function validAlphabets(str) {\r\n const reg = /^[A-Za-z]+$/\r\n return reg.test(str)\r\n}\r\n\r\n/*8位16进制*/\r\nexport function validHexadecimal(rule, value, callback) {\r\n if (/^[0-9A-F]{8}$/.test(value)) {\r\n callback()\r\n } else {\r\n callback(new Error(\"请输入8位16进制数\"))\r\n }\r\n}\r\n\r\nexport function validateNumber(rule, value, callback) {\r\n console.log(!/^\\d+$|^\\d*\\.\\d+$/g.test(value), value)\r\n if (value === \"\") {\r\n callback(new Error(\"不能为空\"))\r\n } else if (!/^\\d+$|^\\d*\\.\\d+$/g.test(value)) {\r\n callback(new Error(\"只能输入数字\"))\r\n } else {\r\n callback()\r\n }\r\n}\r\n\r\nexport function validatePhone(rule, value, callback) {\r\n if (value === \"\") {\r\n callback(new Error(\"请输入手机号码\"))\r\n } else if (!/^[0-9-]+$/.test(value)) {\r\n\r\n\r\n callback(new Error(\"手机号码格式不对\"))\r\n } else {\r\n callback()\r\n }\r\n}\r\n\r\nexport function validateLong(rule, value, callback) {\r\n if (value === \"\") {\r\n callback(new Error(\"经度不能为空\"))\r\n } else if (Number(value) > 180) {\r\n callback(new Error(\"经度不能大于180\"))\r\n } else if (!/^\\d+$|^\\d*\\.\\d+$/g.test(value)) {\r\n callback(new Error(\"只允许输入数字\"))\r\n } else if (Number(value) < 0) {\r\n callback(new Error(\"数值不能小于0\"))\r\n } else {\r\n callback()\r\n }\r\n}\r\n\r\nexport function validateLat(rule, value, callback) {\r\n if (value === \"\") {\r\n callback(new Error(\"纬度不能为空\"))\r\n } else if (Number(value) > 90) {\r\n callback(new Error(\"纬度不能大于90\"))\r\n } else if (!/^\\d+$|^\\d*\\.\\d+$/g.test(value)) {\r\n callback(new Error(\"只允许输入数字\"))\r\n } else if (Number(value) < 0) {\r\n callback(new Error(\"数值不能小于0\"))\r\n } else {\r\n callback()\r\n }\r\n}\r\n\r\nexport function temperature(rule, value, callback) {\r\n if (value > 100) {\r\n callback(new Error(\"温度不能超过100\"))\r\n } else if (value < 0) {\r\n callback(new Error(\"温度不能小于0\"))\r\n } else if (value == \"\") {\r\n callback(new Error(\"数据必填\"))\r\n } else {\r\n callback()\r\n }\r\n}\r\n\r\nexport function humity(rule, value, callback) {\r\n if (value > 99) {\r\n callback(new Error(\"湿度不能超过99\"))\r\n } else if (value < 20) {\r\n callback(new Error(\"湿度不能小于20\"))\r\n } else if (value == \"\") {\r\n callback(new Error(\"数据必填\"))\r\n } else {\r\n callback()\r\n }\r\n}\r\n\r\n// 验证是否为空\r\nexport function filterNull(val) {\r\n if (val || val === 0) {\r\n if (val.length > 0) {\r\n var valReplace = val.replace(/(^\\s*)|(\\s*$)/g, \"\") // 去除字符串左右两端的空格\r\n if (valReplace) {\r\n return valReplace\r\n } else {\r\n return \"--\"\r\n }\r\n } else {\r\n return val\r\n }\r\n } else {\r\n return \"--\"\r\n }\r\n}\r\n\r\n// 验证是否为空,为空则为0\r\nexport function filterNull0(val) {\r\n if (val || val === 0) {\r\n if (val.length > 0) {\r\n var valReplace = val.replace(/(^\\s*)|(\\s*$)/g, \"\") // 去除字符串左右两端的空格\r\n if (valReplace) {\r\n return valReplace\r\n } else {\r\n return 0\r\n }\r\n } else {\r\n return val\r\n }\r\n } else {\r\n return 0\r\n }\r\n}\r\n\r\n// 验证开关状态\r\nexport function filterOpenCloseStatus(val) {\r\n if (parseInt(val) === 0) {\r\n return \"关\"\r\n } else if (parseInt(val) === 1) {\r\n return \"开\"\r\n } else {\r\n return \"--\"\r\n }\r\n}\r\n\r\n// UTC:世界标准时间转换为正常格式 \"yyyy-MM-dd' 'HH:mm:ss'\r\nexport function switchTimeFormat(time) {\r\n if (!time) {\r\n return \"\"\r\n }\r\n const dateTime = new Date(time)\r\n const year = dateTime.getFullYear()\r\n const month = dateTime.getMonth() + 1\r\n const date = dateTime.getDate()\r\n const hour = dateTime.getHours()\r\n const minute = dateTime.getMinutes()\r\n const second = dateTime.getSeconds()\r\n return (\r\n year +\r\n \"-\" +\r\n addZero(month) +\r\n \"-\" +\r\n addZero(date) +\r\n `\\n` +\r\n addZero(hour) +\r\n \":\" +\r\n addZero(minute) +\r\n \":\" +\r\n addZero(second)\r\n )\r\n}\r\n\r\nfunction addZero(v) {\r\n return v < 10 ? \"0\" + v : v\r\n}","import request from '@/utils/request'\r\n// import qs from 'qs'\r\n/*\r\n 管理台-系统日志 权限操作api\r\n*/\r\n\r\n// 获取日志列表\r\nexport function getLogList(data) {\r\n return request({\r\n url: 'user-service/log/getLogList',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 新增日志\r\nexport function saveLog(data) {\r\n return request({\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n url: 'user-service/log/saveLog',\r\n method: 'post',\r\n data\r\n })\r\n}","import request from '@/utils/request'\r\n// import qs from \"qs\";\r\n\r\n/*\r\n 系统管理-用户管理 权限操作api\r\n*/\r\n\r\n\r\n// 查询用户列表\r\nexport function getUserList(data) {\r\n return request({\r\n url: 'user-service/user/getUserList',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 根据userName查询用户信息\r\nexport function getUserByUserName(data) {\r\n return request({\r\n url: 'user-service/user/getUserByUserName',\r\n method: 'get',\r\n params: data\r\n })\r\n}\r\n\r\n// 新增\r\nexport function addSubmitApi(data) {\r\n return request({\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n url: 'user-service/user/saveSysuser',\r\n method: 'post',\r\n data\r\n })\r\n}\r\n\r\n// 修改\r\nexport function editSubmitApi(data) {\r\n return request({\r\n headers: {\r\n 'Content-Type': 'application/json'\r\n },\r\n url: 'user-service/user/updateSysuser',\r\n method: 'post',\r\n data\r\n })\r\n}\r\n\r\n// 删除\r\nexport function delSubmitUserApi(data) {\r\n const delData = {\r\n userIds: data\r\n }\r\n return request({\r\n url: 'user-service/user/removeSysuser',\r\n method: 'get',\r\n params: delData\r\n })\r\n}\r\n\r\n\r\n// 获取用户操作记录\r\nexport function getOperationRecord(params) {\r\n\r\n return request({\r\n url: 'user-service/log/getLogList',\r\n method: 'get',\r\n params\r\n })\r\n}\r\n\r\n\r\n"],"sourceRoot":""}