{"version":3,"sources":["webpack:///./src/views/profile.vue","webpack:///src/views/profile.vue","webpack:///./src/views/profile.vue?4eb6","webpack:///./src/views/profile.vue?ace4","webpack:///./src/views/mixins/profile.js","webpack:///./src/views/profile.vue?16fe"],"names":["render","_vm","this","_c","_self","attrs","staticClass","slot","staticStyle","_v","_s","user","name","disabled","preset","app","activate_notice","profile","email","length","$organization","email_required","_e","mobile","mobile_required","ref","model","value","user_id","callback","$$v","$set","expression","required","message","trigger","email_rule","department","mobile_rule","use_label","on","submitForm","resetForm","build_time","staticRenderFns","mixins","Profile","component","data","sending","computed","_objectSpread","mapState","type","mounted","methods","mapMutations","_this","vm","$refs","validate","valid","$notify","title","$api","then","response","setUserInfo","$router","push","sendNoticeEmail","$affirm","$messageBox","success","setTimeout"],"mappings":"gKAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,SAAS,CAACE,MAAM,CAAC,OAAS,KAAK,CAACF,EAAG,SAAS,CAACG,YAAY,OAAOD,MAAM,CAAC,GAAK,GAAG,GAAK,KAAK,CAACF,EAAG,UAAU,CAACG,YAAY,UAAUD,MAAM,CAAC,OAAS,UAAU,CAACF,EAAG,MAAM,CAACE,MAAM,CAAC,KAAO,UAAUE,KAAK,UAAU,CAACJ,EAAG,IAAI,CAACK,YAAY,CAAC,YAAY,OAAO,MAAQ,QAAQ,aAAa,MAAM,gBAAgB,SAAS,CAACP,EAAIQ,GAAGR,EAAIS,GAAGT,EAAIU,KAAKC,SAAUX,EAAIU,KAAKE,SAAUV,EAAG,OAAO,CAACG,YAAY,mBAAmBE,YAAY,CAAC,QAAU,iBAAiB,CAACP,EAAIQ,GAAG,iCAAiCR,EAAIS,GAAGT,EAAIa,OAAOC,IAAIC,iBAAiB,wBAAwBb,EAAG,OAAO,CAAK,MAAQF,EAAIgB,QAAQC,OAAS,IAAMjB,EAAIgB,QAAQC,MAAMC,SAAYlB,EAAImB,cAAcC,eAA8HpB,E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){var _vm=this,_c=_vm._self._c;return _c('el-row',{attrs:{\"gutter\":20}},[_c('el-col',{staticClass:\"mb-3\",attrs:{\"md\":24,\"sm\":24}},[_c('el-card',{staticClass:\"profile\",attrs:{\"shadow\":\"never\"}},[_c('div',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_c('b',{staticStyle:{\"font-size\":\"18px\",\"color\":\"green\",\"margin-top\":\"5px\",\"padding-right\":\"10px\"}},[_vm._v(_vm._s(_vm.user.name))]),(_vm.user.disabled)?_c('span',{staticClass:\"text-danger ml-1\",staticStyle:{\"display\":\"inline-block\"}},[_vm._v(\"\\n 您的账户未激活,\"+_vm._s(_vm.preset.app.activate_notice)+\"\\n \")]):_c('span',[( ( null == _vm.profile.email || 0 === _vm.profile.email.length ) && _vm.$organization.email_required)?_c('span',{staticClass:\"text-danger ml-2\"},[_vm._v(\"\\n , 您需要输入邮箱\\n \")]):_vm._e(),( ( null == _vm.profile.mobile || 0 === _vm.profile.mobile.length ) && !_vm.$organization.mobile_required)?_c('span',{staticClass:\"text-danger ml-2\"},[_vm._v(\"\\n , 您需要输入手机号\\n \")]):_vm._e()])]),_c('div',{staticClass:\"mt-3\"},[_c('el-form',{ref:\"profile\",attrs:{\"model\":_vm.profile,\"label-width\":\"100px\"}},[_c('el-form-item',{attrs:{\"prop\":\"user_id\",\"label\":\"登录名\"}},[_c('el-input',{attrs:{\"disabled\":true},model:{value:(_vm.profile.user_id),callback:function ($$v) {_vm.$set(_vm.profile, \"user_id\", $$v)},expression:\"profile.user_id\"}})],1),_c('el-form-item',{attrs:{\"prop\":\"name\",\"label\":\"姓名\",\"rules\":[{ required: true, message: '请输入姓名', trigger: 'blur' },]}},[_c('el-input',{attrs:{\"disabled\":true,\"placeholder\":\"您需填写姓名才可以继续使用其他功能。\"},model:{value:(_vm.profile.name),callback:function ($$v) {_vm.$set(_vm.profile, \"name\", $$v)},expression:\"profile.name\"}})],1),_c('el-form-item',{attrs:{\"prop\":\"email\",\"label\":\"邮箱\",\"disabled\":_vm.user.email,\"rules\":_vm.email_rule}},[_c('el-input',{attrs:{\"placeholder\":\"请输入你的邮箱\"},model:{value:(_vm.profile.email),callback:function ($$v) {_vm.$set(_vm.profile, \"email\", $$v)},expression:\"profile.email\"}})],1),_c('el-form-item',{attrs:{\"prop\":\"department\",\"placeholder\":\"请输入部门\",\"label\":\"部门\"}},[_c('el-input',{attrs:{\"disabled\":\"\"},model:{value:(_vm.profile.department),callback:function ($$v) {_vm.$set(_vm.profile, \"department\", $$v)},expression:\"profile.department\"}})],1),(_vm.$organization.mobile_required)?_c('el-form-item',{attrs:{\"prop\":\"mobile\",\"label\":\"手机\",\"rules\":_vm.mobile_rule}},[_c('el-input',{attrs:{\"placeholder\":\"请输入手机号\"},model:{value:(_vm.profile.mobile),callback:function ($$v) {_vm.$set(_vm.profile, \"mobile\", $$v)},expression:\"profile.mobile\"}})],1):_vm._e(),(!_vm.user.disabled && !_vm.$organization.use_label)?_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.submitForm}},[_vm._v(\"提交\")]),_c('el-button',{on:{\"click\":_vm.resetForm}},[_vm._v(\"重置\")])],1):_vm._e()],1)],1)]),_c('div',{staticClass:\"pull-right mt-4 small\",staticStyle:{\"color\":\"#ddd\"}},[_vm._v(_vm._s(_vm.$organization.build_time))])],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n \n \n \n \n\n {{user.name}}\n \n 您的账户未激活,{{preset.app.activate_notice}}\n \n \n \n , 您需要输入邮箱\n \n \n , 您需要输入手机号\n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n 提交\n 重置\n \n \n \n \n {{$organization.build_time}}\n \n \n\n\n\n\n\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!./profile.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!./profile.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./profile.vue?vue&type=template&id=cbd31b28&scoped=true\"\nimport script from \"./profile.vue?vue&type=script&lang=js\"\nexport * from \"./profile.vue?vue&type=script&lang=js\"\nimport style0 from \"./profile.vue?vue&type=style&index=0&id=cbd31b28&prod&scoped=true&lang=scss\"\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 \"cbd31b28\",\n null\n \n)\n\nexport default component.exports","import {mapState, mapMutations} from \"vuex\";\n\nexport default {\n data() {\n return {\n profile: {\n name: '',\n user_id: '',\n department: '',\n mobile: '',\n email: '',\n },\n sending: false,\n }\n },\n computed: {\n ...mapState(['user', 'process','preset']),\n mobile_rule(){\n return this.$organization.mobile_required ?\n [{ required: true, message: '请输入手机号', trigger: 'blur' }]\n : [];\n },\n email_rule(){\n return this.$organization.email_required ?\n [ { required: true, message: '请输入邮箱', trigger: 'blur' },\n { type: 'email', message: '请输入正确格式的邮箱', trigger: 'blur' }]\n : [];\n }\n },\n mounted() {\n this.resetForm();\n },\n methods: {\n ...mapMutations('user', ['setUserInfo']),\n resetForm() {\n this.profile.name = this.user.name;\n this.profile.user_id = this.user.user_id;\n this.profile.department = this.user.department;\n this.profile.mobile = this.user.mobile;\n this.profile.email = this.user.email;\n },\n submitForm() {\n const vm = this;\n this.$refs['profile'].validate((valid) => {\n if (valid) {\n this.$api('Profile', this.profile, true).then((response) => {\n vm.setUserInfo(response.data.data);\n vm.$notify({\n title: '成功',\n message: '档案更新完成!',\n type: 'success'\n })\n this.$router.push('/my-meeting');\n }\n );\n } else {\n this.$notify({\n title: '错误',\n message: '请按照指示填写正确的信息',\n type: 'error'\n });\n return false;\n }\n });\n },\n sendNoticeEmail() {\n const vm = this;\n vm.$affirm('我们将向管理员发送一封提醒邮件, 是否继续?').then(() => {\n vm.$api('User.Remind', {}, true).then(() => {\n vm.$messageBox.success('邮件已经发出,请等待管理员回复');\n setTimeout(function () {\n vm.sending = false;\n }, 60000);\n })\n })\n }\n }\n}\n","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./profile.vue?vue&type=style&index=0&id=cbd31b28&prod&scoped=true&lang=scss\""],"sourceRoot":""}