{"version":3,"sources":["webpack:///./src/views/account/settings/Security.vue","webpack:///src/views/account/settings/Security.vue","webpack:///./src/views/account/settings/Security.vue?6fc7","webpack:///./src/views/account/settings/Security.vue?e0e7","webpack:///./src/core/copywriter.js","webpack:///./src/api/user.js"],"names":["render","_vm","this","_c","_self","attrs","securitySpinning","formLayout","securityForm","directives","name","rawName","value","rules","required","message","userText","VALIDATOR","CURRENT_PASSWORD","expression","PASSWORD","min","max","on","updatePassword","_v","staticRenderFns","data","$form","createForm","methods","_objectSpread","mapGetters","_this","validateFields","err","values","param","account","userInfo","oldPassword","newPassword","updateUserPassword","then","notificationUtil","success","description","UPDATE_PED","$nextTick","setFieldsValue","finally","component","confirmText","ok","cancel","deleteRow","logout","operationText","query","reset","resetPassword","clear","add","save","edit","delete","assign","copy","close","selectAll","config","report","control","batReport","controlHStream","controlLStream","controlOStream","control4MbStream","highPushStream","highStopStream","lowPushStream","lowStopStream","oPushStream","oStopStream","fourMbMPushStream","fourMbStopStream","batPushLowStream","push","videoRecord","demandSnapshot","historySnapshot","resetToken","exportToken","bindSecretKey","exportSecretKey","assignCamera","assignCameraForTXCenter","assignEtcGantry","assignTollStation","assignResource","approve","reject","copyVideoUrl","recordPlay","batResetInfo","cameraTag","batchCameraTag","commonText","UPDATE_SUCCESSS","SAVE_SUCCESSS","SAVE_FAIL","DELETE_SUCCESS","SELECT_USER","NEED_PWD","RESET_PWD","PED_DIFFERENT","START","FORBIDDEN","START_SUCCESS","FORBIDDEN_SUCCESS","ACCOUNT_EXIST","ACCOUNT","ACCOUNT_MAX_LEN","CONFORM","NAME_MAX_LEN","PHONE","PHONE_TRUE","EMAIL","EMAIL_TRUE","EMAIL_MAX_LEN","ROLE","ORG","NAME","menuText","TYPE","PID","CODE","PATH","COMPONENT","ICON","SORT","OPERATION","orgText","NAME_EXIST","NAME_LEN","ADDRESS_LEN","DESC_LEN","deptText","roadSectionText","NUM","NUM_EXIST","SHORT_NAME","SHORT_NAME_EXIST","HIGHWAY_NUM","START_LNG","START_LAT","END_LNG","END_LAT","START_STAKE_NO","END_STAKE_NO","areaText","AREACODE_EXIST","AREANAME_EXIST","AREACODE","AREACODE_MAX_LEN","AREANAME","AREANAME_MAX_LEN","SORT_MAX_LEN","roadText","ROADCODE_EXIST","ROADNAME_EXIST","ROADCODE","RoadCODE_MAX_LEN","ROADNAME","ROADNAME_MAX_LEN","resourceNames","MENU","USER","ORGAN","LOG","status","SUCCESS","FAIL","buildMessages","resourceName","successful","operateText","ADD_SUCCESS","SAVE_SUCCESS","roleText","COPY_SUCCESS","ASSIGN_SUCCESS","dictionaryText","CODE_EXIST","CODE_LEN","DESCRIPTION","DESCRIPTION_LEN","DATA_VALIDATOR","deviceText","CAMERA_VALIDATOR","EDIT_SUCCESSS","EDIT_FAIL","REPORTED","REPORTED_SUCCESS","BATCH_REPORTED_SUCCESS","NUM_LEN","LONG_LATI","ROAD","ROAD_INPUT","ROAD_INPUT_LEN","CLASSIFY","CAMERA_TYPE","GATEWAY","ORIENTATION","PILE_NUM","ROAD_SEC","POI_NAME","COMPANY","GATEWAY_VALIDATOR","IP_ADDRESS","IP_LEN","PORT","PROTOCOL","USERNAME","URL","listUserOfPagination","p","get","addUser","post","updateUser","put","deleteUser","path","del","updateUserStatus","updateUsersPassword","getUserByAccount","updateUserInfo","existSameAccount"],"mappings":"yJAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,SAAS,CAACE,MAAM,CAAC,SAAWJ,EAAIK,mBAAmB,CAACH,EAAG,SAAS,CAACE,MAAM,CAAC,OAASJ,EAAIM,WAAW,KAAON,EAAIO,eAAe,CAACL,EAAG,cAAc,CAACE,MAAM,CAAC,MAAQ,OAAO,YAAc,OAAO,eAAe,KAAK,CAACF,EAAG,UAAU,CAACM,WAAW,CAAC,CAACC,KAAK,YAAYC,QAAQ,cAAcC,MAAO,CAAE,cAAc,CAACC,MAAO,CAAC,CAAEC,UAAU,E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AAY,QACZC,eAAgB,UAChBC,SAAU,UACVC,YAAa,WACbC,QAAS,UACTC,YAAa,QACbC,SAAU,QACVC,SAAU,QACVC,SAAU,SACVC,QAAS,SACTxE,YAAa,UACbpB,MAAO,eACPqB,SAAU,YAEZwE,kBAAmB,CACjB7G,cAAe,SACfC,UAAW,SACXC,eAAgB,SAChBuB,KAAM,QACNe,IAAK,QACLwD,QAAS,UACTvD,UAAW,eACXlB,KAAM,QACNW,WAAY,eACZC,SAAU,UACV2E,WAAY,UACZC,OAAQ,UACRC,KAAM,SACNC,SAAU,UACVC,SAAU,SACV3M,SAAU,QACV8H,SAAU,c,kCC/Vd,mfAEM8E,EAAM,gBAECC,EAAuB,SAAAC,GAAC,OAAIC,iBAAIH,EAAM,cAAeE,IACrDE,EAAU,SAAAF,GAAC,OAAIG,kBAAKL,EAAKE,IACzBI,EAAa,SAAAJ,GAAC,OAAIK,iBAAIP,EAAKE,IAC3BM,EAAa,SAACC,EAAMP,GAAC,OAAKQ,iBAAIV,EAAM,IAAMS,EAAMP,IAChDS,EAAmB,SAACF,EAAMP,GAAC,OAAKK,iBAAIP,EAAM,IAAMS,EAAMP,IACtDU,EAAsB,SAAAV,GAAC,OAAIK,iBAAIP,EAAM,kBAAmBE,IACxDxL,EAAqB,SAAAwL,GAAC,OAAIK,iBAAIP,EAAM,mBAAoBE,IACxDW,EAAmB,SAACJ,EAAMP,GAAC,OAAKC,iBAAIH,EAAM,SAAWS,EAAMP,IAC3DY,EAAiB,SAACL,EAAMP,GAAC,OAAKK,iBAAIP,EAAM,SAAWS,EAAMP,IACzDa,EAAmB,SAAAb,GAAC,OAAIC,iBAAIH,EAAM,iBAAkBE","file":"js/chunk-580ddb30.55c0c745.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('a-spin',{attrs:{\"spinning\":_vm.securitySpinning}},[_c('a-form',{attrs:{\"layout\":_vm.formLayout,\"form\":_vm.securityForm}},[_c('a-form-item',{attrs:{\"label\":\"当前密码\",\"placeholder\":\"当前密码\",\"has-feedback\":\"\"}},[_c('a-input',{directives:[{name:\"decorator\",rawName:\"v-decorator\",value:([ 'oldPassword',{rules: [{ required: true, message: _vm.userText.VALIDATOR.CURRENT_PASSWORD }]}]),expression:\"[ 'oldPassword',{rules: [{ required: true, message: userText.VALIDATOR.CURRENT_PASSWORD }]}]\"}],attrs:{\"placeholder\":_vm.userText.VALIDATOR.CURRENT_PASSWORD,\"type\":\"password\"}})],1),_c('a-form-item',{attrs:{\"label\":\"新密码\",\"placeholder\":\"新密码\",\"has-feedback\":\"\"}},[_c('a-input',{directives:[{name:\"decorator\",rawName:\"v-decorator\",value:([ 'newPassword',{rules: [{ required: true, message: _vm.userText.VALIDATOR.PASSWORD,min:6, max:18 }]}]),expression:\"[ 'newPassword',{rules: [{ required: true, message: userText.VALIDATOR.PASSWORD,min:6, max:18 }]}]\"}],attrs:{\"type\":\"password\",\"placeholder\":_vm.userText.VALIDATOR.PASSWORD}})],1),_c('a-form-item',[_c('a-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.updatePassword}},[_vm._v(\"\\n 保存\\n \")])],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n\r\n\r\n\r\n\r\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Security.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Security.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Security.vue?vue&type=template&id=6679dbd4&scoped=true\"\nimport script from \"./Security.vue?vue&type=script&lang=js\"\nexport * from \"./Security.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 \"6679dbd4\",\n null\n \n)\n\nexport default component.exports","/**\r\n * confirm 确认框文案\r\n * @type {{cancel: string, deleteRow: string, logout: string, ok: string}}\r\n */\r\nexport const confirmText = {\r\n ok: '确定',\r\n cancel: '取消',\r\n deleteRow: '确定删除选中行数据吗?',\r\n logout: '确定注销登录?'\r\n}\r\n\r\n/**\r\n * 操作按钮文案\r\n * @type {{add: string, cancel: string, resetPassword: string, edit: string, query: string, clear: string, save: string, reset: string, ok: string, delete: string}}\r\n */\r\nexport const operationText = {\r\n query: '查询',\r\n reset: '重置',\r\n resetPassword: '重置密码',\r\n clear: '清空',\r\n add: '新建',\r\n save: '保存',\r\n edit: '编辑',\r\n delete: '删除',\r\n ok: '确定',\r\n cancel: '取消',\r\n assign: '分配权限',\r\n copy: '复制',\r\n close: '关闭',\r\n selectAll: '全选',\r\n config: '配置',\r\n report: '上报',\r\n control: '预览',\r\n batReport: '批量上报',\r\n controlHStream: '预览(高码流)',\r\n controlLStream: '预览(低码流)',\r\n controlOStream: '预览(原码流)',\r\n control4MbStream: '预览(4M码流)',\r\n highPushStream: '推流(高码流)',\r\n highStopStream: '禁推(高码流)',\r\n lowPushStream: '推流(低码流)',\r\n lowStopStream: '禁推(低码流)',\r\n oPushStream: '推流(原码流)',\r\n oStopStream: '禁推(原码流)',\r\n fourMbMPushStream: '推流(4M码流)',\r\n fourMbStopStream: '禁推(4M码流)',\r\n batPushLowStream: '低码流批量推送',\r\n push: '同步至交通部',\r\n videoRecord: '回放',\r\n demandSnapshot: '截图',\r\n historySnapshot: '历史截图',\r\n resetToken: '重置Token',\r\n exportToken: '导出Token',\r\n bindSecretKey: '绑定密钥',\r\n exportSecretKey: '导出密钥',\r\n assignCamera: '分配相机',\r\n assignCameraForTXCenter: '分配相机',\r\n assignEtcGantry: '分配Etc门架',\r\n assignTollStation: '分配收费站',\r\n assignResource: '分配资源',\r\n approve: '同意',\r\n reject: '拒绝',\r\n copyVideoUrl: '复制录像地址',\r\n recordPlay: '点击回放',\r\n batResetInfo: '信息批量恢复',\r\n cameraTag: '标记标签',\r\n batchCameraTag: '批量标记'\r\n}\r\n\r\nexport const commonText = {\r\n UPDATE_SUCCESSS: '更新成功',\r\n SAVE_SUCCESSS: '保存成功',\r\n SAVE_FAIL: '保存失败',\r\n DELETE_SUCCESS: '删除成功'\r\n}\r\n\r\n/**\r\n * 用户模块提示文案\r\n * @type {{SELECT_USER: string, SAVE_SUCCESSS: string, RESET_PWD: string, DELETE_SUCCESS: string, PED_DIFFERENT: string, SAVE_FAIL: string}}\r\n */\r\nexport const userText = {\r\n UPDATE_SUCCESSS: '用户更新成功',\r\n SAVE_SUCCESSS: '用户保存成功',\r\n SAVE_FAIL: '用户保存失败',\r\n SELECT_USER: '至少选择一个用户',\r\n NEED_PWD: '请输入你的账户密码',\r\n DELETE_SUCCESS: '用户删除成功',\r\n RESET_PWD: '密码重置成功',\r\n UPDATE_PED: '密码修改成功',\r\n PED_DIFFERENT: '两次密码不一致',\r\n START: '你确定要启用该账户吗',\r\n FORBIDDEN: '你确定要禁用该账户吗',\r\n START_SUCCESS: '用户启用成功',\r\n FORBIDDEN_SUCCESS: '用户禁用成功',\r\n ACCOUNT_EXIST: '该账号已存在,请重新输入',\r\n VALIDATOR: {\r\n ACCOUNT: '请输入账号',\r\n ACCOUNT_MAX_LEN: '最大长度为20',\r\n PASSWORD: '请输入6-18位密码',\r\n CURRENT_PASSWORD: '请输入当前密码',\r\n CONFORM: '请输入确认密码',\r\n NAME_MAX_LEN: '最大长度为20',\r\n PHONE: '请输入手机号',\r\n PHONE_TRUE: '请输入正确的手机号',\r\n EMAIL: '请输入邮箱',\r\n EMAIL_TRUE: '请输入正确的邮箱格式',\r\n EMAIL_MAX_LEN: '最大长度为50',\r\n ROLE: '请选择角色',\r\n ORG: '请选择组织',\r\n NAME: '请输入姓名'\r\n }\r\n}\r\n\r\n/**\r\n * 功能模块提示文案\r\n * @type {{SAVE_SUCCESSS: string, DELETE_SUCCESS: string, SAVE_FAIL: string}}\r\n */\r\nexport const menuText = {\r\n SAVE_SUCCESSS: '功能保存成功',\r\n SAVE_FAIL: '功能保存失败',\r\n DELETE_SUCCESS: '功能删除成功',\r\n VALIDATOR: {\r\n TYPE: '请选择类型',\r\n PID: '请选择上级组织',\r\n CODE: '请输入编码',\r\n NAME: '请输入名称',\r\n PATH: '请输入导航路径',\r\n COMPONENT: '请输入页面路径',\r\n ICON: '请输入图标',\r\n SORT: '请输入排序号',\r\n OPERATION: '请选择操作'\r\n }\r\n}\r\n\r\n/**\r\n * 组织模块提示文案\r\n * @type {{VALIDATOR: {PHONE_LEN: string, ADDRESS_LEN: string, PID: string, DESC_LEN: string, TYPE: string, NAME: string, NAME_LEN: string}, SAVE_SUCCESSS: string, DELETE_SUCCESS: string, SAVE_FAIL: string}}\r\n */\r\nexport const orgText = {\r\n SAVE_SUCCESSS: '组织保存成功',\r\n SAVE_FAIL: '组织保存失败',\r\n DELETE_SUCCESS: '组织删除成功',\r\n VALIDATOR: {\r\n TYPE: '请选择类型',\r\n PID: '请选择上级',\r\n NAME: '请输入名称',\r\n NAME_EXIST: '该名称已存在,请重新输入',\r\n NAME_LEN: '最大长度为20',\r\n ADDRESS_LEN: '最大长度为50',\r\n PHONE: '请输入正确的手机号或座机',\r\n DESC_LEN: '最大长度为255'\r\n }\r\n}\r\n\r\n/**\r\n * 部门模块提示文案\r\n * @type {{SAVE_SUCCESSS: string, SAVE_FAIL: string, DELETE_SUCCESS: string, VALIDATOR: {PID: string, NAME: string, NAME_EXIST: string, NAME_LEN: string}}}\r\n */\r\nexport const deptText = {\r\n SAVE_SUCCESSS: '部门保存成功',\r\n SAVE_FAIL: '部门保存失败',\r\n DELETE_SUCCESS: '部门删除成功',\r\n VALIDATOR: {\r\n PID: '请选择上级',\r\n NAME: '请输入名称',\r\n NAME_LEN: '最大长度为30',\r\n NAME_EXIST: '该名称已存在,请重新输入'\r\n }\r\n}\r\nexport const roadSectionText = {\r\n SAVE_SUCCESSS: '路段保存成功',\r\n SAVE_FAIL: '路段保存失败',\r\n DELETE_SUCCESS: '路段删除成功',\r\n VALIDATOR: {\r\n NUM: '请输入编号',\r\n NUM_EXIST: '该编号已存在,请重新输入',\r\n NAME: '请输入名称',\r\n NAME_EXIST: '该名称已存在,请重新输入',\r\n NAME_LEN: '最大长度为30',\r\n SHORT_NAME: '请输入简称',\r\n SHORT_NAME_EXIST: '该简称已存在,请重新输入',\r\n HIGHWAY_NUM: '请输入高速编号',\r\n START_LNG: '请输入起始经度',\r\n START_LAT: '请输入起始纬度',\r\n END_LNG: '请输入结束经度',\r\n END_LAT: '请输入结束纬度',\r\n START_STAKE_NO: '起始桩号',\r\n END_STAKE_NO: '终止桩号'\r\n }\r\n}\r\n\r\n/**\r\n * 行政区域管理模块提示文案\r\n * @type {{SAVE_SUCCESSS: string, SAVE_FAIL: string, DELETE_SUCCESS: string, VALIDATOR: {PID: string, NAME: string, NAME_EXIST: string, NAME_LEN: string}}}\r\n */\r\nexport const areaText = {\r\n SAVE_SUCCESSS: '区域保存成功',\r\n SAVE_FAIL: '区域保存失败',\r\n DELETE_SUCCESS: '区域删除成功',\r\n AREACODE_EXIST: '区域编码已存在',\r\n AREANAME_EXIST: '区域名称已存在',\r\n VALIDATOR: {\r\n PID: '请选择上级',\r\n AREACODE: '请输入行政区域代码',\r\n AREACODE_MAX_LEN: '最大长度为20',\r\n AREANAME: '请输入行政区域名称',\r\n AREANAME_MAX_LEN: '最大长度为20',\r\n SORT_MAX_LEN: '最大长度为50'\r\n }\r\n}\r\n/**\r\n * 道路管理模块提示文案\r\n * @type {{SAVE_SUCCESSS: string, SAVE_FAIL: string, DELETE_SUCCESS: string, VALIDATOR: {PID: string, NAME: string, NAME_EXIST: string, NAME_LEN: string}}}\r\n */\r\nexport const roadText = {\r\n SAVE_SUCCESSS: '道路保存成功',\r\n SAVE_FAIL: '道路保存失败',\r\n DELETE_SUCCESS: '道路删除成功',\r\n ROADCODE_EXIST: '道路编码已存在',\r\n ROADNAME_EXIST: '道路名称已存在',\r\n VALIDATOR: {\r\n ROADCODE: '请输入道路代码',\r\n RoadCODE_MAX_LEN: '最大长度为20',\r\n ROADNAME: '请输入道路名称',\r\n ROADNAME_MAX_LEN: '最大长度为20'\r\n }\r\n}\r\nexport const resourceNames = {\r\n OPERATION: '操作',\r\n MENU: '功能',\r\n ROLE: '角色',\r\n USER: '用户',\r\n ORGAN: '组织',\r\n LOG: '日志'\r\n}\r\n\r\nconst status = {\r\n SUCCESS: '成功',\r\n FAIL: '失败'\r\n}\r\n\r\nexport function buildMessages (resourceName, operationText, successful) {\r\n if (successful) {\r\n return resourceName + operationText + status.SUCCESS\r\n } else {\r\n return resourceName + operationText + status.FAIL\r\n }\r\n}\r\n\r\nexport const operateText = {\r\n ADD_SUCCESS: buildMessages(resourceNames.OPERATION, operationText.add, true),\r\n SAVE_SUCCESS: buildMessages(resourceNames.OPERATION, operationText.save, true),\r\n SAVE_FAIL: buildMessages(resourceNames.OPERATION, operationText.save, false),\r\n DELETE_SUCCESS: buildMessages(resourceNames.OPERATION, operationText.delete, true)\r\n}\r\n\r\nexport const roleText = {\r\n ADD_SUCCESS: buildMessages(resourceNames.ROLE, operationText.add, true),\r\n SAVE_SUCCESS: buildMessages(resourceNames.ROLE, operationText.save, true),\r\n SAVE_FAIL: buildMessages(resourceNames.ROLE, operationText.save, false),\r\n DELETE_SUCCESS: buildMessages(resourceNames.ROLE, operationText.delete, true),\r\n COPY_SUCCESS: buildMessages(resourceNames.ROLE, operationText.copy, true),\r\n ASSIGN_SUCCESS: buildMessages(resourceNames.ROLE, operationText.assign, true),\r\n VALIDATOR: {\r\n NAME: '请输入名称',\r\n NAME_EXIST: '该名称已存在,请重新输入',\r\n NAME_LEN: '最大长度为20'\r\n }\r\n}\r\n\r\nexport const dictionaryText = {\r\n SAVE_SUCCESSS: '字典保存成功',\r\n SAVE_FAIL: '字典保存失败',\r\n DELETE_SUCCESS: '字典删除成功',\r\n CODE_EXIST: '该编码已存在,请重新输入',\r\n START: '你确定要启用该数据项吗',\r\n FORBIDDEN: '你确定要禁用该数据项吗',\r\n START_SUCCESS: '数据项启用成功',\r\n FORBIDDEN_SUCCESS: '数据项禁用成功',\r\n VALIDATOR: {\r\n NAME: '请输入名称',\r\n NAME_EXIST: '该名称已存在,请重新输入',\r\n NAME_LEN: '最大长度为20',\r\n CODE: '请输入编码',\r\n CODE_LEN: '最大长度为50',\r\n DESCRIPTION: '请输入描述',\r\n DESCRIPTION_LEN: '最大长度为255'\r\n },\r\n DATA_VALIDATOR: {\r\n NAME: '请输入数据项',\r\n NAME_EXIST: '该数据项已存在,请重新输入',\r\n NAME_LEN: '最大长度为20',\r\n CODE: '请输入数据值',\r\n SORT: '请输入排序号'\r\n }\r\n}\r\n\r\n/**\r\n * 设备模块提示文案\r\n * @type {{VALIDATOR: {PHONE_LEN: string, ADDRESS_LEN: string, PID: string, DESC_LEN: string, TYPE: string, NAME: string, NAME_LEN: string}, SAVE_SUCCESSS: string, DELETE_SUCCESS: string, SAVE_FAIL: string}}\r\n */\r\nexport const deviceText = {\r\n CAMERA_VALIDATOR: {\r\n SAVE_SUCCESSS: '摄像机新增成功',\r\n SAVE_FAIL: '摄像机新增失败',\r\n EDIT_SUCCESSS: '摄像机编辑成功',\r\n EDIT_FAIL: '摄像机编辑失败',\r\n DELETE_SUCCESS: '摄像机删除成功',\r\n REPORTED: '该摄像机已上报',\r\n REPORTED_SUCCESS: '该摄像机上报成功',\r\n BATCH_REPORTED_SUCCESS: '上报成功',\r\n TYPE: '请选择类型',\r\n NUM: '请输入编号',\r\n NUM_LEN: '最大长度为50',\r\n NUM_EXIST: '该编号已存在,请重新输入',\r\n NAME: '请输入名称',\r\n NAME_EXIST: '该名称已存在,请重新输入',\r\n NAME_LEN: '最大长度为20',\r\n LONG_LATI: '请输入摄像机经纬度',\r\n ROAD: '请选择路线',\r\n ROAD_INPUT: '请输入路段',\r\n ROAD_INPUT_LEN: '最大长度为50',\r\n CLASSIFY: '请选择位置类型',\r\n CAMERA_TYPE: '请选择摄像机类型',\r\n GATEWAY: '请选择所属网关',\r\n ORIENTATION: '请选择方向',\r\n PILE_NUM: '请输入桩号',\r\n ROAD_SEC: '请输入路段',\r\n POI_NAME: '请输入兴趣点',\r\n COMPANY: '请输入路公司',\r\n ADDRESS_LEN: '最大长度为50',\r\n PHONE: '请输入正确的手机号或座机',\r\n DESC_LEN: '最大长度为255'\r\n },\r\n GATEWAY_VALIDATOR: {\r\n SAVE_SUCCESSS: '网关新增成功',\r\n SAVE_FAIL: '网关新增失败',\r\n DELETE_SUCCESS: '网关删除成功',\r\n TYPE: '请选择类型',\r\n NUM: '请输入编号',\r\n NUM_LEN: '最大长度为30',\r\n NUM_EXIST: '该编号已存在,请重新输入',\r\n NAME: '请输入名称',\r\n NAME_EXIST: '该名称已存在,请重新输入',\r\n NAME_LEN: '最大长度为20',\r\n IP_ADDRESS: '请输入ip地址',\r\n IP_LEN: '最大长度为20',\r\n PORT: '请输入端口号',\r\n PROTOCOL: '请输入网关协议',\r\n USERNAME: '请输入用户名',\r\n PASSWORD: '请输入密码',\r\n DESC_LEN: '最大长度为255'\r\n }\r\n}\r\n","import { get, post, put, del } from '@/utils/request'\r\n\r\nconst URL = '/manage/users'\r\n\r\nexport const listUserOfPagination = p => get(URL + '/pagination', p)\r\nexport const addUser = p => post(URL, p)\r\nexport const updateUser = p => put(URL, p)\r\nexport const deleteUser = (path, p) => del(URL + '/' + path, p)\r\nexport const updateUserStatus = (path, p) => put(URL + '/' + path, p)\r\nexport const updateUsersPassword = p => put(URL + '/batch/password', p)\r\nexport const updateUserPassword = p => put(URL + '/single/password', p)\r\nexport const getUserByAccount = (path, p) => get(URL + '/info/' + path, p)\r\nexport const updateUserInfo = (path, p) => put(URL + '/info/' + path, p)\r\nexport const existSameAccount = p => get(URL + '/same-account/', p)\r\n"],"sourceRoot":""}