1 line
15 KiB
Plaintext
1 line
15 KiB
Plaintext
{"version":3,"sources":["webpack:///./src/utils/api.js","webpack:///./src/components/setUp/UserPassword.vue?efa0","webpack:///./src/components/setUp/UserPassword.vue?a179","webpack:///src/components/setUp/UserPassword.vue","webpack:///./src/components/setUp/UserPassword.vue?d812","webpack:///./src/components/setUp/UserPassword.vue"],"names":["GET_CAPTCHA","url","deacriptions","LOGIN","GET_MENU","CHANGE_PASSWORD","GET_USER_LIST","GET_AUTHORITY_LIST","DELETE_USER","ADD_USER","EDIT_USER","UPLOAD_FILE","DELETE_FILE","DOWNLOAD_FILE","GET_TEMPLATE_LIST","ADD_TEMPLATE","EDIT_TEMPLATE","ADD_REPORT","FIND_REPORT_LIST","EDIT_REPORT","FIND_REPORT_BY_ID","FIND_COMMENT_LIST","ADD_COMMENT","ADD_RULE","UPDATE_RULE","FIND_RULE_LIST","FIND_RESULT","EXPORT_FILE","render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","form","directives","name","rawName","value","rules","required","message","expression","validator","validateToNextPassword","compareToFirstPassword","staticStyle","on","submitPassword","_v","staticRenderFns","component"],"mappings":"kHAAA,IAAMA,EAAc,CAChBC,IAAK,gBACLC,aAAc,SAEZC,EAAQ,CACVF,IAAK,cACLC,aAAc,MAEZE,EAAW,CACbH,IAAK,gBACLC,aAAc,UAEZG,EAAkB,CACpBJ,IAAK,uBACLC,aAAc,QAEZI,EAAgB,CAClBL,IAAK,oBACLC,aAAc,YAEZK,EAAqB,CACvBN,IAAK,8BACLC,aAAc,UAEZM,EAAc,CAChBP,IAAK,mBACLC,aAAc,QAEZO,EAAW,CACbR,IAAK,iBACLC,aAAc,QAEZQ,EAAY,CACdT,IAAK,oBACLC,aAAc,QAEZS,EAAc,CAChBV,IAAK,gCACLC,aAAc,QAEZU,EAAc,CAChBX,IAAK,oCACLC,aAAc,QAEZW,EAAgB,CAClBZ,IAAK,kCACLC,aAAc,QAEZY,EAAoB,CACtBb,IAAK,iCACLC,aAAc,QA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,iBACM,KAAN,mCACQ,IAAR,KACQ,EAAR,4CACQ,EAAR,uBACQ,EAAR,wBACA,GACU,EAAV,4DACA,iBACc,EAAd,mBACc,EAAd,8BAEc,EAAd,oCC3EqW,I,wBCQjWC,EAAY,eACd,EACA1B,EACAyB,GACA,EACA,KACA,KACA,MAIa,aAAAC,E","file":"assets/js/chunk-2544b27e.86eeb228.js","sourcesContent":["const GET_CAPTCHA = {\r\n url: '/base/captcha',\r\n deacriptions: '获取验证码'\r\n};\r\nconst LOGIN = {\r\n url: '/base/login',\r\n deacriptions: '登录'\r\n};\r\nconst GET_MENU = {\r\n url: '/menu/getMenu',\r\n deacriptions: '获取动态路由'\r\n};\r\nconst CHANGE_PASSWORD = {\r\n url: '/user/changePassword',\r\n deacriptions: '重置密码'\r\n};\r\nconst GET_USER_LIST = {\r\n url: '/user/getUserList',\r\n deacriptions: '分页获取用户列表'\r\n};\r\nconst GET_AUTHORITY_LIST = {\r\n url: '/authority/getAuthorityList',\r\n deacriptions: '获取角色列表'\r\n};\r\nconst DELETE_USER = {\r\n url: '/user/deleteUser',\r\n deacriptions: '删除用户'\r\n};\r\nconst ADD_USER = {\r\n url: '/user/register',\r\n deacriptions: '新增用户'\r\n};\r\nconst EDIT_USER = {\r\n url: '/user/setUserInfo',\r\n deacriptions: '编辑用户'\r\n};\r\nconst UPLOAD_FILE = {\r\n url: '/fileUploadAndDownload/upload',\r\n deacriptions: '文件上传'\r\n};\r\nconst DELETE_FILE = {\r\n url: '/fileUploadAndDownload/deleteFile',\r\n deacriptions: '文件删除'\r\n};\r\nconst DOWNLOAD_FILE = {\r\n url: '/fileUploadAndDownload/download',\r\n deacriptions: '文件下载'\r\n};\r\nconst GET_TEMPLATE_LIST = {\r\n url: '/wtTemplates/getWtTemplateList',\r\n deacriptions: '获取模板'\r\n};\r\nconst ADD_TEMPLATE = {\r\n url: '/wtTemplates/createWtTemplate',\r\n deacriptions: '新建模板'\r\n};\r\nconst EDIT_TEMPLATE = {\r\n url: '/wtTemplates/updateWtTemplate',\r\n deacriptions: '编辑模板'\r\n};\r\nconst ADD_REPORT = {\r\n url: '/wtReports/createWtReports',\r\n deacriptions: '创建周报'\r\n};\r\nconst FIND_REPORT_LIST = {\r\n url: '/wtReports/getWtReportsList',\r\n deacriptions: '分页查询周报'\r\n};\r\nconst EDIT_REPORT = {\r\n url: '/wtReports/updateWtReports',\r\n deacriptions: '更新周报'\r\n};\r\nconst FIND_REPORT_BY_ID = {\r\n url: '/wtReports/findWtReports',\r\n deacriptions: '根据id查询周报'\r\n};\r\nconst FIND_COMMENT_LIST = {\r\n url: '/wtComment/getWtCommentList',\r\n deacriptions: '获取周报评论'\r\n};\r\nconst ADD_COMMENT = {\r\n url: '/wtComment/createWtComment',\r\n deacriptions: '创建周报评论'\r\n};\r\nconst ADD_RULE = {\r\n url: '/wtRule/createWtRule',\r\n deacriptions: '创建规则'\r\n};\r\nconst UPDATE_RULE = {\r\n url: '/wtRule/updateWtRule',\r\n deacriptions: '编辑规则'\r\n};\r\nconst FIND_RULE_LIST = {\r\n url: '/wtRule/getWtRuleList',\r\n deacriptions: ' 查询规则'\r\n};\r\nconst FIND_RESULT = {\r\n url: '/wtOutput/GetStatResult',\r\n deacriptions: ' 查询统计结果'\r\n};\r\nconst EXPORT_FILE = {\r\n url: '/wtOutput/ExportReportToExcel',\r\n deacriptions: ' 导出报表'\r\n};\r\n\r\n//一定要注册才可以使用\r\nexport default {\r\n GET_CAPTCHA: GET_CAPTCHA,\r\n LOGIN: LOGIN,\r\n GET_MENU: GET_MENU,\r\n CHANGE_PASSWORD: CHANGE_PASSWORD,\r\n GET_USER_LIST: GET_USER_LIST,\r\n GET_AUTHORITY_LIST: GET_AUTHORITY_LIST,\r\n DELETE_USER: DELETE_USER,\r\n ADD_USER: ADD_USER,\r\n EDIT_USER: EDIT_USER,\r\n UPLOAD_FILE: UPLOAD_FILE,\r\n DELETE_FILE: DELETE_FILE,\r\n DOWNLOAD_FILE: DOWNLOAD_FILE,\r\n GET_TEMPLATE_LIST: GET_TEMPLATE_LIST,\r\n ADD_TEMPLATE: ADD_TEMPLATE,\r\n EDIT_TEMPLATE: EDIT_TEMPLATE,\r\n ADD_REPORT: ADD_REPORT,\r\n FIND_REPORT_LIST: FIND_REPORT_LIST,\r\n EDIT_REPORT: EDIT_REPORT,\r\n FIND_REPORT_BY_ID: FIND_REPORT_BY_ID,\r\n FIND_COMMENT_LIST: FIND_COMMENT_LIST,\r\n ADD_COMMENT: ADD_COMMENT,\r\n ADD_RULE: ADD_RULE,\r\n UPDATE_RULE: UPDATE_RULE,\r\n FIND_RULE_LIST: FIND_RULE_LIST,\r\n FIND_RESULT: FIND_RESULT,\r\n EXPORT_FILE: EXPORT_FILE,\r\n}\r\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./UserPassword.vue?vue&type=style&index=0&xml%3Alang=less&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('a-form',{staticClass:\"edit_password\",attrs:{\"form\":_vm.form}},[_c('a-form-item',{attrs:{\"label\":\"当前密码\"}},[_c('a-input',{directives:[{name:\"decorator\",rawName:\"v-decorator\",value:(['oldPassword',{rules: [{required: true,message: '请输入当前密码',}],} ]),expression:\"['oldPassword',{rules: [{required: true,message: '请输入当前密码',}],},]\"}],staticClass:\"input_width_pass\",attrs:{\"type\":\"password\",\"required\":\"true\",\"placeholder\":\"请输入当前密码\"}})],1),_c('a-form-item',{attrs:{\"label\":\"新密码\"}},[_c('a-input',{directives:[{name:\"decorator\",rawName:\"v-decorator\",value:(['password1',{rules: [{required: true,message: '请输入密码',},{validator: _vm.validateToNextPassword}]}]),expression:\"['password1',{rules: [{required: true,message: '请输入密码',},{validator: validateToNextPassword}]}]\"}],staticClass:\"input_width_pass\",attrs:{\"type\":\"password\",\"placeholder\":\"请输入新密码\"}})],1),_c('a-form-item',{attrs:{\"label\":\"确认密码\"}},[_c('a-input',{directives:[{name:\"decorator\",rawName:\"v-decorator\",value:(['password2',{rules: [{required: true,message: '请输入密码',},{validator: _vm.compareToFirstPassword}]}]),expression:\"['password2',{rules: [{required: true,message: '请输入密码',},{validator: compareToFirstPassword}]}]\"}],staticClass:\"input_width_pass\",attrs:{\"type\":\"password\",\"placeholder\":\"请输入新密码\"}})],1),_c('a-form-item',{attrs:{\"label\":\"\"}},[_c('a-button',{staticStyle:{\"margin-left\":\"210px\"},attrs:{\"type\":\"primary\"},on:{\"click\":_vm.submitPassword}},[_vm._v(\" 确定 \")])],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div>\r\n <a-form :form=\"form\" class=\"edit_password\">\r\n <a-form-item label=\"当前密码\">\r\n <a-input v-decorator=\"['oldPassword',{rules: [{required: true,message: '请输入当前密码',}],},]\"\r\n type=\"password\"\r\n required=\"true\"\r\n placeholder=\"请输入当前密码\" class=\"input_width_pass\">\r\n </a-input>\r\n </a-form-item>\r\n <a-form-item label=\"新密码\">\r\n <a-input v-decorator=\"['password1',{rules: [{required: true,message: '请输入密码',},{validator: validateToNextPassword}]}]\"\r\n type=\"password\"\r\n placeholder=\"请输入新密码\" class=\"input_width_pass\">\r\n </a-input>\r\n </a-form-item>\r\n <a-form-item label=\"确认密码\">\r\n <a-input v-decorator=\"['password2',{rules: [{required: true,message: '请输入密码',},{validator: compareToFirstPassword}]}]\"\r\n type=\"password\"\r\n placeholder=\"请输入新密码\" class=\"input_width_pass\">\r\n </a-input>\r\n </a-form-item>\r\n <a-form-item label=\"\">\r\n <a-button type=\"primary\" @click=\"submitPassword\" style=\"margin-left: 210px\">\r\n 确定\r\n </a-button>\r\n </a-form-item>\r\n </a-form>\r\n </div>\r\n</template>\r\n\r\n<script>\r\n import api from '../../utils/api'\r\n\r\n export default {\r\n name: \"UserPassword\",\r\n data() {\r\n return {\r\n // 编辑\r\n editVisible: false,\r\n form: this.$form.createForm(this, { name: 'editPassword' }),\r\n confirmDirty: false,\r\n }\r\n },\r\n methods: {\r\n compareToFirstPassword(rule, value, callback) {\r\n const form = this.form;\r\n if (value && value !== form.getFieldValue('password1')) {\r\n callback('两次密码不一致');\r\n } else {\r\n callback();\r\n }\r\n },\r\n validateToNextPassword(rule, value, callback) {\r\n const form = this.form;\r\n if (value && this.confirmDirty) {\r\n form.validateFields(['password2'], { force: true });\r\n }\r\n callback();\r\n },\r\n // 修改账户密码提交事件\r\n submitPassword(e) {\r\n // 阻止与事件关联的默认动作\r\n e.preventDefault();\r\n this.form.validateFields((err, values) => {\r\n const loginData = {};\r\n loginData.username = sessionStorage.getItem('userName');\r\n loginData.password = values.oldPassword;\r\n loginData.newPassword = values.password1;\r\n if (!err) {\r\n this.$axios.post(api.CHANGE_PASSWORD.url, loginData).then(res => {\r\n if (res.data.code === 0) {\r\n this.form.resetFields();\r\n this.$message.success(res.data.msg);\r\n } else {\r\n this.$message.error(res.data.msg);\r\n }\r\n })\r\n }\r\n });\r\n },\r\n }\r\n }\r\n</script>\r\n\r\n<style xml:lang=\"less\">\r\n .edit_password > .ant-form-item {\r\n display: flex;\r\n }\r\n .edit_password > .ant-form-item > .ant-form-item-label {\r\n width: 100px;\r\n }\r\n .input_width_pass {\r\n width: 320px;\r\n }\r\n</style>\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!./UserPassword.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!./UserPassword.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./UserPassword.vue?vue&type=template&id=672ff852&\"\nimport script from \"./UserPassword.vue?vue&type=script&lang=js&\"\nexport * from \"./UserPassword.vue?vue&type=script&lang=js&\"\nimport style0 from \"./UserPassword.vue?vue&type=style&index=0&xml%3Alang=less&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 null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""} |