kz-ui-base 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +5 -0
- package/kztool/css/10.96cad523.css +1 -0
- package/kztool/css/11.e4c864cd.css +1 -0
- package/kztool/css/12.647fccce.css +1 -0
- package/kztool/css/13.65952a1f.css +1 -0
- package/kztool/css/14.dd36c45f.css +1 -0
- package/kztool/css/15.832c7deb.css +1 -0
- package/kztool/css/16.8b271d59.css +1 -0
- package/kztool/css/17.0e84559e.css +1 -0
- package/kztool/css/18.832c7deb.css +1 -0
- package/kztool/css/19.6a3d2dce.css +1 -0
- package/kztool/css/2.f1342bd9.css +1 -0
- package/kztool/css/20.bb41fc34.css +1 -0
- package/kztool/css/21.ed73c08f.css +1 -0
- package/kztool/css/22.e894eb6f.css +1 -0
- package/kztool/css/23.57aa83b4.css +1 -0
- package/kztool/css/25.5f134180.css +1 -0
- package/kztool/css/26.832c7deb.css +1 -0
- package/kztool/css/4.a42922b4.css +1 -0
- package/kztool/css/6.2fd4b699.css +1 -0
- package/kztool/css/7.9be14673.css +21 -0
- package/kztool/css/9.9d93e54d.css +22 -0
- package/kztool/demo.html +10 -0
- package/kztool/img/401.089007e7.gif +0 -0
- package/kztool/img/404.a57b6f31.png +0 -0
- package/kztool/img/404.cb2515ac.svg +1 -0
- package/kztool/img/404_cloud.0f4bc32b.png +0 -0
- package/kztool/img/bug.f34b1328.svg +1 -0
- package/kztool/img/build.afff0ba4.svg +1 -0
- package/kztool/img/button.43a072f1.svg +1 -0
- package/kztool/img/cascader.af4b06f5.svg +1 -0
- package/kztool/img/chart.15fe45db.svg +1 -0
- package/kztool/img/checkbox.33950d05.svg +1 -0
- package/kztool/img/client.8669e2c6.svg +1 -0
- package/kztool/img/clipboard.a754c187.svg +1 -0
- package/kztool/img/code.21a8c1ce.svg +1 -0
- package/kztool/img/color.d6e1d0d9.svg +1 -0
- package/kztool/img/component.a69885f8.svg +1 -0
- package/kztool/img/dark.412ca67e.svg +39 -0
- package/kztool/img/dashboard.28a2a850.svg +1 -0
- package/kztool/img/date-range.21c0ab78.svg +1 -0
- package/kztool/img/date.43878da9.svg +1 -0
- package/kztool/img/dict.e54d50d6.svg +1 -0
- package/kztool/img/documentation.250402ca.svg +1 -0
- package/kztool/img/download.5153dc2b.svg +1 -0
- package/kztool/img/drag.4a19e202.svg +1 -0
- package/kztool/img/druid.09b411e5.svg +1 -0
- package/kztool/img/edit.82ad92eb.svg +1 -0
- package/kztool/img/education.8a144773.svg +1 -0
- package/kztool/img/email.e4742db4.svg +1 -0
- package/kztool/img/example.894f4689.svg +1 -0
- package/kztool/img/excel.25efb1e4.svg +1 -0
- package/kztool/img/exit-fullscreen.c0a0b5af.svg +1 -0
- package/kztool/img/eye-open.26bf09f4.svg +1 -0
- package/kztool/img/eye.e4fe315c.svg +1 -0
- package/kztool/img/file-config.e9cf97b5.png +0 -0
- package/kztool/img/file-doc.2e32d62d.png +0 -0
- package/kztool/img/file-exe.ba756588.png +0 -0
- package/kztool/img/file-ini.b1d3af9d.png +0 -0
- package/kztool/img/file-jpg.20c594b1.png +0 -0
- package/kztool/img/file-mpg.4a3b6b53.png +0 -0
- package/kztool/img/file-none.529195fd.png +0 -0
- package/kztool/img/file-pdf.36c3acbd.png +0 -0
- package/kztool/img/file-png.961aaab6.png +0 -0
- package/kztool/img/file-ppt.b13aca2d.png +0 -0
- package/kztool/img/file-rar.d940b06e.png +0 -0
- package/kztool/img/file-txt.fba6847c.png +0 -0
- package/kztool/img/file-wav.6c6a98a5.png +0 -0
- package/kztool/img/file-xls.0ba7ceb7.png +0 -0
- package/kztool/img/form.f3ed6fee.svg +1 -0
- package/kztool/img/fullscreen.9ce971c6.svg +1 -0
- package/kztool/img/github.a1e0a262.svg +1 -0
- package/kztool/img/guide.fe0b5508.svg +1 -0
- package/kztool/img/icon-ext.ba81b24c.png +0 -0
- package/kztool/img/icon.3ab19eb2.svg +1 -0
- package/kztool/img/icon.551539f8.png +0 -0
- package/kztool/img/input.fd627960.svg +1 -0
- package/kztool/img/international.256537bf.svg +1 -0
- package/kztool/img/job.b6da1ffe.svg +1 -0
- package/kztool/img/kz_authority.3278f033.svg +1 -0
- package/kztool/img/kz_build.d01b7fab.svg +1 -0
- package/kztool/img/kz_code.181e9399.svg +1 -0
- package/kztool/img/kz_config.8ed433a4.svg +1 -0
- package/kztool/img/kz_creatTime.b36ed35c.svg +1 -0
- package/kztool/img/kz_dept.5e64451a.svg +1 -0
- package/kztool/img/kz_dept_profile.5d4e147f.svg +1 -0
- package/kztool/img/kz_dict.2ab95ca5.svg +1 -0
- package/kztool/img/kz_edit.7d07a3ee.svg +1 -0
- package/kztool/img/kz_enlarge.af9fd797.svg +1 -0
- package/kztool/img/kz_enterprise.d341ab44.svg +1 -0
- package/kztool/img/kz_fold.17a83166.svg +2 -0
- package/kztool/img/kz_job.d4e52276.svg +1 -0
- package/kztool/img/kz_layout.9bab2381.svg +1 -0
- package/kztool/img/kz_log.685b9ce0.svg +1 -0
- package/kztool/img/kz_log_loginInfo.68ba7786.svg +1 -0
- package/kztool/img/kz_log_operation.fdc2ddf9.svg +1 -0
- package/kztool/img/kz_master-slave.83dad46f.svg +2 -0
- package/kztool/img/kz_menu.35eddf40.svg +1 -0
- package/kztool/img/kz_menu_analyse.4b4d8f9b.svg +22 -0
- package/kztool/img/kz_message.b8712b45.svg +1 -0
- package/kztool/img/kz_monitor.8b10fbe6.svg +1 -0
- package/kztool/img/kz_nacos.c51b9d4a.svg +1 -0
- package/kztool/img/kz_narrow.2a646b99.svg +1 -0
- package/kztool/img/kz_notice.34428b82.svg +2 -0
- package/kztool/img/kz_online.754b59da.svg +1 -0
- package/kztool/img/kz_open.c0247e97.svg +2 -0
- package/kztool/img/kz_organization.c4c24b8b.svg +1 -0
- package/kztool/img/kz_post.a3b24529.svg +1 -0
- package/kztool/img/kz_post_profile.729ed1fd.svg +1 -0
- package/kztool/img/kz_productCenter.94cb1bf1.svg +1 -0
- package/kztool/img/kz_rabbit.c1e30068.svg +1 -0
- package/kztool/img/kz_refresh.e4335ee7.svg +2 -0
- package/kztool/img/kz_renovation.cec7bdbb.svg +1 -0
- package/kztool/img/kz_role.337dafc2.svg +1 -0
- package/kztool/img/kz_roleGroup.d40cf86e.svg +1 -0
- package/kztool/img/kz_search.91e19919.svg +1 -0
- package/kztool/img/kz_sentinel.65a96c32.svg +1 -0
- package/kztool/img/kz_server.1aeaae9a.svg +1 -0
- package/kztool/img/kz_setting.b121026e.svg +1 -0
- package/kztool/img/kz_sex.2dfbc39c.svg +1 -0
- package/kztool/img/kz_source.78acc35f.svg +2 -0
- package/kztool/img/kz_strategy.960f4e2b.svg +2 -0
- package/kztool/img/kz_swagger.72b031ef.svg +1 -0
- package/kztool/img/kz_system.a0a83a20.svg +1 -0
- package/kztool/img/kz_tenant.bb89322f.svg +1 -0
- package/kztool/img/kz_tool.bc04a7cd.svg +1 -0
- package/kztool/img/kz_user.8ade980b.svg +1 -0
- package/kztool/img/language.a84ceaa6.svg +1 -0
- package/kztool/img/light.4183aad0.svg +39 -0
- package/kztool/img/link.9c719b73.svg +1 -0
- package/kztool/img/list.76dedeca.svg +1 -0
- package/kztool/img/loading-0.a72011cc.gif +0 -0
- package/kztool/img/lock.8634238d.svg +1 -0
- package/kztool/img/log.7798bf59.svg +1 -0
- package/kztool/img/login-background.c5b184b7.jpg +0 -0
- package/kztool/img/logininfor.182c8103.svg +1 -0
- package/kztool/img/logo.8ae3d6ee.jpg +0 -0
- package/kztool/img/logo.eeed0dd2.png +0 -0
- package/kztool/img/mes-ad.af0324d3.svg +21 -0
- package/kztool/img/mes-ic.7d10c9df.svg +16 -0
- package/kztool/img/mes-mfg-order.d03a00ac.svg +22 -0
- package/kztool/img/mes-tm.e3818cf7.svg +15 -0
- package/kztool/img/message.1fbaa155.svg +1 -0
- package/kztool/img/money.954fffc7.svg +1 -0
- package/kztool/img/monitor.7eeb6217.svg +2 -0
- package/kztool/img/nacos.147e9bf5.svg +1 -0
- package/kztool/img/nested.c948fb38.svg +1 -0
- package/kztool/img/number.7e0faaa5.svg +1 -0
- package/kztool/img/online.fb93d2e7.svg +1 -0
- package/kztool/img/password.9173da92.svg +1 -0
- package/kztool/img/pdf.7e6ae0e3.svg +1 -0
- package/kztool/img/people.665094ec.svg +1 -0
- package/kztool/img/peoples.73b2be61.svg +1 -0
- package/kztool/img/phone.4ab5e783.svg +1 -0
- package/kztool/img/post.4f1521cb.svg +1 -0
- package/kztool/img/profile.8ae3d6ee.jpg +0 -0
- package/kztool/img/qq.8968a17d.svg +1 -0
- package/kztool/img/question.6dd93e77.svg +1 -0
- package/kztool/img/radio.1db061a7.svg +1 -0
- package/kztool/img/rate.d8284c44.svg +1 -0
- package/kztool/img/row.88cc2b15.svg +1 -0
- package/kztool/img/search.8b49baae.svg +1 -0
- package/kztool/img/select.be2885c0.svg +1 -0
- package/kztool/img/sentinel.51b1eedb.svg +1 -0
- package/kztool/img/server.e9df1296.svg +1 -0
- package/kztool/img/shop-call.31143fe6.svg +14 -0
- package/kztool/img/shopping.232bbd1d.svg +1 -0
- package/kztool/img/size.c77e5b9c.svg +1 -0
- package/kztool/img/skill.9842762c.svg +1 -0
- package/kztool/img/slider.dca17dd6.svg +1 -0
- package/kztool/img/star.91c10562.svg +1 -0
- package/kztool/img/stock-query.e3aea312.svg +14 -0
- package/kztool/img/stock-report.03ca7ff1.svg +14 -0
- package/kztool/img/stock-take.6bd8c87e.svg +14 -0
- package/kztool/img/swagger.78429129.svg +1 -0
- package/kztool/img/switch.67ff45e5.svg +1 -0
- package/kztool/img/system.8f062138.svg +2 -0
- package/kztool/img/tab.02b3a5b8.svg +1 -0
- package/kztool/img/table.fe7671a5.svg +1 -0
- package/kztool/img/textarea.6a19873e.svg +1 -0
- package/kztool/img/theme.a8c15249.svg +1 -0
- package/kztool/img/time-range.4a869bcb.svg +1 -0
- package/kztool/img/time.809df2f6.svg +1 -0
- package/kztool/img/tool.ce0f6d38.svg +1 -0
- package/kztool/img/tree-table.76f687b5.svg +1 -0
- package/kztool/img/tree.59ecebc1.svg +1 -0
- package/kztool/img/upload.84d5b598.svg +1 -0
- package/kztool/img/user.9f469d0b.svg +1 -0
- package/kztool/img/validCode.9e7b7784.svg +1 -0
- package/kztool/img/wechat.28725df0.svg +1 -0
- package/kztool/img/xy-cancel.c5f3d1db.svg +1 -0
- package/kztool/img/xy-choice.b2e8c9cf.svg +1 -0
- package/kztool/img/xy-choice2.453db322.svg +31 -0
- package/kztool/img/zip.839d61e0.svg +1 -0
- package/kztool/kztool.common.0.js +17212 -0
- package/kztool/kztool.common.1.js +11 -0
- package/kztool/kztool.common.10.js +2775 -0
- package/kztool/kztool.common.11.js +1920 -0
- package/kztool/kztool.common.12.js +641 -0
- package/kztool/kztool.common.13.js +1363 -0
- package/kztool/kztool.common.14.js +987 -0
- package/kztool/kztool.common.15.js +2477 -0
- package/kztool/kztool.common.16.js +222 -0
- package/kztool/kztool.common.17.js +140 -0
- package/kztool/kztool.common.18.js +1053 -0
- package/kztool/kztool.common.19.js +319 -0
- package/kztool/kztool.common.2.js +2893 -0
- package/kztool/kztool.common.20.js +131 -0
- package/kztool/kztool.common.21.js +396 -0
- package/kztool/kztool.common.22.js +377 -0
- package/kztool/kztool.common.23.js +677 -0
- package/kztool/kztool.common.24.js +1007 -0
- package/kztool/kztool.common.25.js +246 -0
- package/kztool/kztool.common.26.js +138 -0
- package/kztool/kztool.common.27.js +505 -0
- package/kztool/kztool.common.28.js +62 -0
- package/kztool/kztool.common.29.js +65 -0
- package/kztool/kztool.common.3.js +3868 -0
- package/kztool/kztool.common.4.js +1387 -0
- package/kztool/kztool.common.5.js +10 -0
- package/kztool/kztool.common.6.js +32006 -0
- package/kztool/kztool.common.7.js +28976 -0
- package/kztool/kztool.common.9.js +63288 -0
- package/kztool/kztool.common.js +137547 -0
- package/kztool/kztool.css +7 -0
- package/kztool/kztool.umd.0.js +17212 -0
- package/kztool/kztool.umd.1.js +11 -0
- package/kztool/kztool.umd.10.js +2775 -0
- package/kztool/kztool.umd.11.js +1920 -0
- package/kztool/kztool.umd.12.js +641 -0
- package/kztool/kztool.umd.13.js +1363 -0
- package/kztool/kztool.umd.14.js +987 -0
- package/kztool/kztool.umd.15.js +2477 -0
- package/kztool/kztool.umd.16.js +222 -0
- package/kztool/kztool.umd.17.js +140 -0
- package/kztool/kztool.umd.18.js +1053 -0
- package/kztool/kztool.umd.19.js +319 -0
- package/kztool/kztool.umd.2.js +2893 -0
- package/kztool/kztool.umd.20.js +131 -0
- package/kztool/kztool.umd.21.js +396 -0
- package/kztool/kztool.umd.22.js +377 -0
- package/kztool/kztool.umd.23.js +677 -0
- package/kztool/kztool.umd.24.js +1007 -0
- package/kztool/kztool.umd.25.js +246 -0
- package/kztool/kztool.umd.26.js +138 -0
- package/kztool/kztool.umd.27.js +505 -0
- package/kztool/kztool.umd.28.js +62 -0
- package/kztool/kztool.umd.29.js +65 -0
- package/kztool/kztool.umd.3.js +3868 -0
- package/kztool/kztool.umd.4.js +1387 -0
- package/kztool/kztool.umd.5.js +10 -0
- package/kztool/kztool.umd.6.js +32006 -0
- package/kztool/kztool.umd.7.js +28976 -0
- package/kztool/kztool.umd.9.js +63288 -0
- package/kztool/kztool.umd.js +137557 -0
- package/kztool/kztool.umd.min.0.js +9 -0
- package/kztool/kztool.umd.min.1.js +1 -0
- package/kztool/kztool.umd.min.10.js +1 -0
- package/kztool/kztool.umd.min.11.js +1 -0
- package/kztool/kztool.umd.min.12.js +1 -0
- package/kztool/kztool.umd.min.13.js +1 -0
- package/kztool/kztool.umd.min.14.js +1 -0
- package/kztool/kztool.umd.min.15.js +1 -0
- package/kztool/kztool.umd.min.16.js +1 -0
- package/kztool/kztool.umd.min.17.js +1 -0
- package/kztool/kztool.umd.min.18.js +1 -0
- package/kztool/kztool.umd.min.19.js +1 -0
- package/kztool/kztool.umd.min.2.js +1 -0
- package/kztool/kztool.umd.min.20.js +1 -0
- package/kztool/kztool.umd.min.21.js +1 -0
- package/kztool/kztool.umd.min.22.js +1 -0
- package/kztool/kztool.umd.min.23.js +1 -0
- package/kztool/kztool.umd.min.24.js +1 -0
- package/kztool/kztool.umd.min.25.js +1 -0
- package/kztool/kztool.umd.min.26.js +1 -0
- package/kztool/kztool.umd.min.27.js +1 -0
- package/kztool/kztool.umd.min.28.js +1 -0
- package/kztool/kztool.umd.min.29.js +1 -0
- package/kztool/kztool.umd.min.3.js +8 -0
- package/kztool/kztool.umd.min.4.js +1 -0
- package/kztool/kztool.umd.min.5.js +1 -0
- package/kztool/kztool.umd.min.6.js +1 -0
- package/kztool/kztool.umd.min.7.js +24 -0
- package/kztool/kztool.umd.min.9.js +24 -0
- package/kztool/kztool.umd.min.js +349 -0
- package/list-bese-page/doublelistBasePageTs.vue +996 -0
- package/list-bese-page/listBasePageTs.vue +2170 -0
- package/package.json +12 -0
|
@@ -0,0 +1,987 @@
|
|
|
1
|
+
((typeof self !== 'undefined' ? self : this)["webpackJsonpkztool"] = (typeof self !== 'undefined' ? self : this)["webpackJsonpkztool"] || []).push([[14],{
|
|
2
|
+
|
|
3
|
+
/***/ "699a":
|
|
4
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5
|
+
|
|
6
|
+
// extracted by mini-css-extract-plugin
|
|
7
|
+
|
|
8
|
+
/***/ }),
|
|
9
|
+
|
|
10
|
+
/***/ "9a97":
|
|
11
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
12
|
+
|
|
13
|
+
"use strict";
|
|
14
|
+
// ESM COMPAT FLAG
|
|
15
|
+
__webpack_require__.r(__webpack_exports__);
|
|
16
|
+
|
|
17
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"efdf055a-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/system/dataSetting/user/profile/userAvatar.vue?vue&type=template&id=8b44c192&scoped=true&
|
|
18
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('div',{staticClass:"user-info-head",on:{"click":function($event){return _vm.editCropper()}}},[_c('img',{staticClass:"img-circle img-lg",attrs:{"src":_vm.options.img,"title":"点击上传头像"}})]),_c('el-dialog',{attrs:{"title":_vm.title,"visible":_vm.open,"width":"800px","append-to-body":""},on:{"update:visible":function($event){_vm.open=$event},"opened":_vm.modalOpened,"close":function($event){return _vm.closeDialog()}}},[_c('el-row',[_c('el-col',{style:({height: '350px'}),attrs:{"xs":24,"md":12}},[(_vm.visible)?_c('vue-cropper',{ref:"cropper",attrs:{"img":_vm.options.img,"info":true,"autoCrop":_vm.options.autoCrop,"autoCropWidth":_vm.options.autoCropWidth,"autoCropHeight":_vm.options.autoCropHeight,"fixedBox":_vm.options.fixedBox},on:{"realTime":_vm.realTime}}):_vm._e()],1),_c('el-col',{style:({height: '350px'}),attrs:{"xs":24,"md":12}},[_c('div',{staticClass:"avatar-upload-preview"},[_c('img',{style:(_vm.previews.img),attrs:{"src":_vm.previews.url}})])])],1),_c('br'),_c('el-row',[_c('el-col',{attrs:{"lg":2,"md":2}},[_c('el-upload',{attrs:{"action":"#","http-request":_vm.requestUpload,"show-file-list":false,"before-upload":_vm.beforeUpload}},[_c('el-button',{attrs:{"size":"small"}},[_vm._v(" 选择 "),_c('i',{staticClass:"el-icon-upload el-icon--right"})])],1)],1),_c('el-col',{attrs:{"lg":{span: 1, offset: 2},"md":2}},[_c('el-button',{attrs:{"icon":"el-icon-plus","size":"small"},on:{"click":function($event){return _vm.changeScale(1)}}})],1),_c('el-col',{attrs:{"lg":{span: 1, offset: 1},"md":2}},[_c('el-button',{attrs:{"icon":"el-icon-minus","size":"small"},on:{"click":function($event){return _vm.changeScale(-1)}}})],1),_c('el-col',{attrs:{"lg":{span: 1, offset: 1},"md":2}},[_c('el-button',{attrs:{"icon":"el-icon-refresh-left","size":"small"},on:{"click":function($event){return _vm.rotateLeft()}}})],1),_c('el-col',{attrs:{"lg":{span: 1, offset: 1},"md":2}},[_c('el-button',{attrs:{"icon":"el-icon-refresh-right","size":"small"},on:{"click":function($event){return _vm.rotateRight()}}})],1),_c('el-col',{attrs:{"lg":{span: 2, offset: 6},"md":2}},[_c('el-button',{attrs:{"type":"primary","size":"small"},on:{"click":function($event){return _vm.uploadImg()}}},[_vm._v("提 交")])],1)],1)],1)],1)}
|
|
19
|
+
var staticRenderFns = []
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
// CONCATENATED MODULE: ./src/views/system/dataSetting/user/profile/userAvatar.vue?vue&type=template&id=8b44c192&scoped=true&
|
|
23
|
+
|
|
24
|
+
// EXTERNAL MODULE: ./src/store/index.js + 18 modules
|
|
25
|
+
var store = __webpack_require__("4360");
|
|
26
|
+
|
|
27
|
+
// EXTERNAL MODULE: ./node_modules/vue-cropper/dist/index.js
|
|
28
|
+
var dist = __webpack_require__("7e79");
|
|
29
|
+
|
|
30
|
+
// EXTERNAL MODULE: ./src/api/system/user.js
|
|
31
|
+
var user = __webpack_require__("c0c7");
|
|
32
|
+
|
|
33
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/system/dataSetting/user/profile/userAvatar.vue?vue&type=script&lang=js&
|
|
34
|
+
//
|
|
35
|
+
//
|
|
36
|
+
//
|
|
37
|
+
//
|
|
38
|
+
//
|
|
39
|
+
//
|
|
40
|
+
//
|
|
41
|
+
//
|
|
42
|
+
//
|
|
43
|
+
//
|
|
44
|
+
//
|
|
45
|
+
//
|
|
46
|
+
//
|
|
47
|
+
//
|
|
48
|
+
//
|
|
49
|
+
//
|
|
50
|
+
//
|
|
51
|
+
//
|
|
52
|
+
//
|
|
53
|
+
//
|
|
54
|
+
//
|
|
55
|
+
//
|
|
56
|
+
//
|
|
57
|
+
//
|
|
58
|
+
//
|
|
59
|
+
//
|
|
60
|
+
//
|
|
61
|
+
//
|
|
62
|
+
//
|
|
63
|
+
//
|
|
64
|
+
//
|
|
65
|
+
//
|
|
66
|
+
//
|
|
67
|
+
//
|
|
68
|
+
//
|
|
69
|
+
//
|
|
70
|
+
//
|
|
71
|
+
//
|
|
72
|
+
//
|
|
73
|
+
//
|
|
74
|
+
//
|
|
75
|
+
//
|
|
76
|
+
//
|
|
77
|
+
//
|
|
78
|
+
//
|
|
79
|
+
//
|
|
80
|
+
//
|
|
81
|
+
//
|
|
82
|
+
//
|
|
83
|
+
//
|
|
84
|
+
//
|
|
85
|
+
//
|
|
86
|
+
//
|
|
87
|
+
//
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
/* harmony default export */ var userAvatarvue_type_script_lang_js_ = ({
|
|
93
|
+
components: {
|
|
94
|
+
VueCropper: dist["VueCropper"]
|
|
95
|
+
},
|
|
96
|
+
props: {
|
|
97
|
+
user: {
|
|
98
|
+
type: Object
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
data: function data() {
|
|
102
|
+
return {
|
|
103
|
+
// 是否显示弹出层
|
|
104
|
+
open: false,
|
|
105
|
+
// 是否显示cropper
|
|
106
|
+
visible: false,
|
|
107
|
+
// 弹出层标题
|
|
108
|
+
title: "修改头像",
|
|
109
|
+
options: {
|
|
110
|
+
img: store["a" /* default */].getters.avatar,
|
|
111
|
+
//裁剪图片的地址
|
|
112
|
+
autoCrop: true,
|
|
113
|
+
// 是否默认生成截图框
|
|
114
|
+
autoCropWidth: 200,
|
|
115
|
+
// 默认生成截图框宽度
|
|
116
|
+
autoCropHeight: 200,
|
|
117
|
+
// 默认生成截图框高度
|
|
118
|
+
fixedBox: true // 固定截图框大小 不允许改变
|
|
119
|
+
},
|
|
120
|
+
|
|
121
|
+
previews: {}
|
|
122
|
+
};
|
|
123
|
+
},
|
|
124
|
+
methods: {
|
|
125
|
+
// 编辑头像
|
|
126
|
+
editCropper: function editCropper() {
|
|
127
|
+
this.open = true;
|
|
128
|
+
},
|
|
129
|
+
// 打开弹出层结束时的回调
|
|
130
|
+
modalOpened: function modalOpened() {
|
|
131
|
+
this.visible = true;
|
|
132
|
+
},
|
|
133
|
+
// 覆盖默认的上传行为
|
|
134
|
+
requestUpload: function requestUpload() {},
|
|
135
|
+
// 向左旋转
|
|
136
|
+
rotateLeft: function rotateLeft() {
|
|
137
|
+
this.$refs.cropper.rotateLeft();
|
|
138
|
+
},
|
|
139
|
+
// 向右旋转
|
|
140
|
+
rotateRight: function rotateRight() {
|
|
141
|
+
this.$refs.cropper.rotateRight();
|
|
142
|
+
},
|
|
143
|
+
// 图片缩放
|
|
144
|
+
changeScale: function changeScale(num) {
|
|
145
|
+
num = num || 1;
|
|
146
|
+
this.$refs.cropper.changeScale(num);
|
|
147
|
+
},
|
|
148
|
+
// 上传预处理
|
|
149
|
+
beforeUpload: function beforeUpload(file) {
|
|
150
|
+
var _this = this;
|
|
151
|
+
if (file.type.indexOf("image/") == -1) {
|
|
152
|
+
this.msgError("文件格式错误,请上传图片类型,如:JPG,PNG后缀的文件。");
|
|
153
|
+
} else {
|
|
154
|
+
var reader = new FileReader();
|
|
155
|
+
reader.readAsDataURL(file);
|
|
156
|
+
reader.onload = function () {
|
|
157
|
+
_this.options.img = reader.result;
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
// 上传图片
|
|
162
|
+
uploadImg: function uploadImg() {
|
|
163
|
+
var _this2 = this;
|
|
164
|
+
this.$refs.cropper.getCropBlob(function (data) {
|
|
165
|
+
var formData = new FormData();
|
|
166
|
+
formData.append("avatarfile", data);
|
|
167
|
+
Object(user["n" /* uploadAvatar */])(formData).then(function (response) {
|
|
168
|
+
_this2.open = false;
|
|
169
|
+
_this2.options.img = response.imgUrl;
|
|
170
|
+
store["a" /* default */].commit('SET_AVATAR', _this2.options.img);
|
|
171
|
+
_this2.msgSuccess("修改成功");
|
|
172
|
+
_this2.visible = false;
|
|
173
|
+
});
|
|
174
|
+
});
|
|
175
|
+
},
|
|
176
|
+
// 实时预览
|
|
177
|
+
realTime: function realTime(data) {
|
|
178
|
+
this.previews = data;
|
|
179
|
+
},
|
|
180
|
+
// 关闭窗口
|
|
181
|
+
closeDialog: function closeDialog() {
|
|
182
|
+
this.options.img = store["a" /* default */].getters.avatar;
|
|
183
|
+
this.visible = false;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
// CONCATENATED MODULE: ./src/views/system/dataSetting/user/profile/userAvatar.vue?vue&type=script&lang=js&
|
|
188
|
+
/* harmony default export */ var profile_userAvatarvue_type_script_lang_js_ = (userAvatarvue_type_script_lang_js_);
|
|
189
|
+
// EXTERNAL MODULE: ./src/views/system/dataSetting/user/profile/userAvatar.vue?vue&type=style&index=0&id=8b44c192&prod&scoped=true&lang=scss&
|
|
190
|
+
var userAvatarvue_type_style_index_0_id_8b44c192_prod_scoped_true_lang_scss_ = __webpack_require__("bb2d");
|
|
191
|
+
|
|
192
|
+
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
193
|
+
var componentNormalizer = __webpack_require__("2877");
|
|
194
|
+
|
|
195
|
+
// CONCATENATED MODULE: ./src/views/system/dataSetting/user/profile/userAvatar.vue
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
/* normalize component */
|
|
203
|
+
|
|
204
|
+
var component = Object(componentNormalizer["a" /* default */])(
|
|
205
|
+
profile_userAvatarvue_type_script_lang_js_,
|
|
206
|
+
render,
|
|
207
|
+
staticRenderFns,
|
|
208
|
+
false,
|
|
209
|
+
null,
|
|
210
|
+
"8b44c192",
|
|
211
|
+
null
|
|
212
|
+
|
|
213
|
+
)
|
|
214
|
+
|
|
215
|
+
/* harmony default export */ var userAvatar = __webpack_exports__["default"] = (component.exports);
|
|
216
|
+
|
|
217
|
+
/***/ }),
|
|
218
|
+
|
|
219
|
+
/***/ "a59a":
|
|
220
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
221
|
+
|
|
222
|
+
"use strict";
|
|
223
|
+
// ESM COMPAT FLAG
|
|
224
|
+
__webpack_require__.r(__webpack_exports__);
|
|
225
|
+
|
|
226
|
+
// EXPORTS
|
|
227
|
+
__webpack_require__.d(__webpack_exports__, "getToken", function() { return /* reexport */ getToken; });
|
|
228
|
+
__webpack_require__.d(__webpack_exports__, "setToken", function() { return /* reexport */ setToken; });
|
|
229
|
+
__webpack_require__.d(__webpack_exports__, "getWebConfig", function() { return /* reexport */ getWebConfig; });
|
|
230
|
+
__webpack_require__.d(__webpack_exports__, "getChangePwdUrl", function() { return /* reexport */ getChangePwdUrl; });
|
|
231
|
+
|
|
232
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"efdf055a-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/system/dataSetting/user/profile/resetPwd.vue?vue&type=template&id=a27295f4&
|
|
233
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-form',{ref:"form",attrs:{"model":_vm.user,"rules":_vm.rules,"label-width":"80px"}},[_c('el-form-item',{attrs:{"label":"旧密码","prop":"oldPassword"}},[_c('el-input',{attrs:{"placeholder":"请输入旧密码","type":"password","show-password":""},model:{value:(_vm.user.oldPassword),callback:function ($$v) {_vm.$set(_vm.user, "oldPassword", $$v)},expression:"user.oldPassword"}})],1),_c('el-form-item',{attrs:{"label":"新密码","prop":"newPassword"}},[_c('el-input',{attrs:{"placeholder":"请输入新密码","type":"password","show-password":""},model:{value:(_vm.user.newPassword),callback:function ($$v) {_vm.$set(_vm.user, "newPassword", $$v)},expression:"user.newPassword"}})],1),_c('el-form-item',{attrs:{"label":"确认密码","prop":"confirmPassword"}},[_c('el-input',{attrs:{"placeholder":"请确认密码","type":"password","show-password":""},model:{value:(_vm.user.confirmPassword),callback:function ($$v) {_vm.$set(_vm.user, "confirmPassword", $$v)},expression:"user.confirmPassword"}})],1),_c('el-form-item',[_c('el-button',{attrs:{"type":"primary","size":"mini"},on:{"click":_vm.submit}},[_vm._v("保存")]),_c('el-button',{attrs:{"type":"danger","size":"mini"},on:{"click":_vm.close}},[_vm._v("关闭")])],1)],1)}
|
|
234
|
+
var staticRenderFns = []
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
// CONCATENATED MODULE: ./src/views/system/dataSetting/user/profile/resetPwd.vue?vue&type=template&id=a27295f4&
|
|
238
|
+
|
|
239
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
|
|
240
|
+
var es_object_keys = __webpack_require__("b64b");
|
|
241
|
+
|
|
242
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.error.cause.js
|
|
243
|
+
var es_error_cause = __webpack_require__("d9e2");
|
|
244
|
+
|
|
245
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
246
|
+
var es_array_push = __webpack_require__("14d9");
|
|
247
|
+
|
|
248
|
+
// EXTERNAL MODULE: ./node_modules/axios/index.js
|
|
249
|
+
var axios = __webpack_require__("bc3a");
|
|
250
|
+
var axios_default = /*#__PURE__*/__webpack_require__.n(axios);
|
|
251
|
+
|
|
252
|
+
// EXTERNAL MODULE: ./src/api/system/user.js
|
|
253
|
+
var user = __webpack_require__("c0c7");
|
|
254
|
+
|
|
255
|
+
// EXTERNAL MODULE: ./src/store/index.js + 18 modules
|
|
256
|
+
var store = __webpack_require__("4360");
|
|
257
|
+
|
|
258
|
+
// EXTERNAL MODULE: ../common/src/utils/request.js + 2 modules
|
|
259
|
+
var request = __webpack_require__("6e66");
|
|
260
|
+
|
|
261
|
+
// EXTERNAL MODULE: ./node_modules/js-cookie/src/js.cookie.js
|
|
262
|
+
var js_cookie = __webpack_require__("a78e");
|
|
263
|
+
var js_cookie_default = /*#__PURE__*/__webpack_require__.n(js_cookie);
|
|
264
|
+
|
|
265
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/system/dataSetting/user/profile/resetPwd.vue?vue&type=script&lang=js&
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
//
|
|
270
|
+
//
|
|
271
|
+
//
|
|
272
|
+
//
|
|
273
|
+
//
|
|
274
|
+
//
|
|
275
|
+
//
|
|
276
|
+
//
|
|
277
|
+
//
|
|
278
|
+
//
|
|
279
|
+
//
|
|
280
|
+
//
|
|
281
|
+
//
|
|
282
|
+
//
|
|
283
|
+
//
|
|
284
|
+
//
|
|
285
|
+
//
|
|
286
|
+
//
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
var TokenKey = 'Admin-Token';
|
|
294
|
+
function getDefaultWebConfig() {
|
|
295
|
+
return {
|
|
296
|
+
"tenantId": -1,
|
|
297
|
+
"tenantName": "administrator",
|
|
298
|
+
"logoUrl": "/static/img/logo.png",
|
|
299
|
+
"printClientUrl": "/static/file/KeZhiSetup.msi",
|
|
300
|
+
"cache": {
|
|
301
|
+
"system": true,
|
|
302
|
+
"fd": true,
|
|
303
|
+
"tm": true
|
|
304
|
+
},
|
|
305
|
+
"bgImages": ["/static/img/bgImages/001.jpg", "/static/img/bgImages/002.jpg", "/static/img/bgImages/003.jpg", "/static/img/bgImages/004.jpg", "/static/img/bgImages/005.jpg", "/static/img/bgImages/006.jpg"]
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
function getToken() {
|
|
309
|
+
return js_cookie_default.a.get(TokenKey);
|
|
310
|
+
}
|
|
311
|
+
function setToken(token) {
|
|
312
|
+
return js_cookie_default.a.set(TokenKey, token);
|
|
313
|
+
}
|
|
314
|
+
function getWebConfig() {
|
|
315
|
+
var xmlhttp;
|
|
316
|
+
if (window.XMLHttpRequest) {
|
|
317
|
+
xmlhttp = new XMLHttpRequest();
|
|
318
|
+
} else {
|
|
319
|
+
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
|
|
320
|
+
}
|
|
321
|
+
xmlhttp.open("get", "/config.json?v=" + Math.random(), false);
|
|
322
|
+
xmlhttp.send();
|
|
323
|
+
var config = getDefaultWebConfig();
|
|
324
|
+
console.log("第一个", getDefaultWebConfig());
|
|
325
|
+
console.log("第二个", JSON.parse(localStorage.getItem('configRes')));
|
|
326
|
+
// var config = JSON.parse(localStorage.getItem('configRes'));
|
|
327
|
+
if (xmlhttp.readyState == 4) {
|
|
328
|
+
if (xmlhttp.status == 200) {
|
|
329
|
+
var webConfig = JSON.parse(xmlhttp.responseText);
|
|
330
|
+
for (var key in webConfig) {
|
|
331
|
+
config[key] = webConfig[key];
|
|
332
|
+
}
|
|
333
|
+
localStorage.setItem("configRes", xmlhttp.responseText);
|
|
334
|
+
// localStorage.setItem("configRes", webConfig);
|
|
335
|
+
console.log("sosososososo", config);
|
|
336
|
+
console.log("sosososososo", webConfig);
|
|
337
|
+
console.log("sosososososo", xmlhttp.responseText);
|
|
338
|
+
return config;
|
|
339
|
+
} else {
|
|
340
|
+
console.error("config.json前端配置文件未找到!");
|
|
341
|
+
console.log("sosososososo", config);
|
|
342
|
+
return config;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
// export function request(){
|
|
347
|
+
|
|
348
|
+
// }
|
|
349
|
+
function getChangePwdUrl(query) {
|
|
350
|
+
var service = axios_default.a.create({
|
|
351
|
+
// axios中请求配置有baseURL选项,表示请求URL公共部分
|
|
352
|
+
baseURL: "/prod-api",
|
|
353
|
+
// 超时
|
|
354
|
+
timeout: 30000
|
|
355
|
+
});
|
|
356
|
+
return service({
|
|
357
|
+
url: "/auth/sso/getChangePwdUrl",
|
|
358
|
+
method: "get",
|
|
359
|
+
params: query
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
/* harmony default export */ var resetPwdvue_type_script_lang_js_ = ({
|
|
363
|
+
data: function data() {
|
|
364
|
+
var _this = this;
|
|
365
|
+
var equalToPassword = function equalToPassword(rule, value, callback) {
|
|
366
|
+
if (_this.user.newPassword !== value) {
|
|
367
|
+
callback(new Error("两次输入的密码不一致"));
|
|
368
|
+
} else {
|
|
369
|
+
callback();
|
|
370
|
+
}
|
|
371
|
+
};
|
|
372
|
+
return {
|
|
373
|
+
test: "1test",
|
|
374
|
+
user: {
|
|
375
|
+
oldPassword: undefined,
|
|
376
|
+
newPassword: undefined,
|
|
377
|
+
confirmPassword: undefined
|
|
378
|
+
},
|
|
379
|
+
// 表单校验
|
|
380
|
+
rules: {
|
|
381
|
+
oldPassword: [{
|
|
382
|
+
required: true,
|
|
383
|
+
message: "旧密码不能为空",
|
|
384
|
+
trigger: "blur"
|
|
385
|
+
}],
|
|
386
|
+
newPassword: [{
|
|
387
|
+
required: true,
|
|
388
|
+
message: "新密码不能为空",
|
|
389
|
+
trigger: "blur"
|
|
390
|
+
}, {
|
|
391
|
+
min: 6,
|
|
392
|
+
max: 20,
|
|
393
|
+
message: "长度在 6 到 20 个字符",
|
|
394
|
+
trigger: "blur"
|
|
395
|
+
}],
|
|
396
|
+
confirmPassword: [{
|
|
397
|
+
required: true,
|
|
398
|
+
message: "确认密码不能为空",
|
|
399
|
+
trigger: "blur"
|
|
400
|
+
}, {
|
|
401
|
+
required: true,
|
|
402
|
+
validator: equalToPassword,
|
|
403
|
+
trigger: "blur"
|
|
404
|
+
}]
|
|
405
|
+
}
|
|
406
|
+
};
|
|
407
|
+
},
|
|
408
|
+
methods: {
|
|
409
|
+
submit: function submit() {
|
|
410
|
+
var _this2 = this;
|
|
411
|
+
this.$refs["form"].validate(function (valid) {
|
|
412
|
+
if (valid) {
|
|
413
|
+
Object(user["m" /* updateUserPwd */])(_this2.user.oldPassword, _this2.user.newPassword).then(function (response) {
|
|
414
|
+
_this2.msgSuccess("修改成功");
|
|
415
|
+
/***********************************************************************
|
|
416
|
+
console.log("修改密码修改密码");
|
|
417
|
+
let $self = this;
|
|
418
|
+
var webConfig = getWebConfig();
|
|
419
|
+
if (webConfig) {
|
|
420
|
+
let param = {
|
|
421
|
+
tenant_id: webConfig.tenantId,
|
|
422
|
+
tenant_name: webConfig.tenantName || loginForm.enterpriseName,
|
|
423
|
+
// tenant_password: webConfig.tenantPassword || loginForm.password,
|
|
424
|
+
app_code: webConfig.sso.appCode
|
|
425
|
+
}
|
|
426
|
+
getChangePwdUrl({
|
|
427
|
+
...this.$route.query,
|
|
428
|
+
...param,
|
|
429
|
+
}).then((resAccessToken) => {
|
|
430
|
+
console.log(resAccessToken);
|
|
431
|
+
resAccessToken = resAccessToken.data;
|
|
432
|
+
// if(!resAccessToken.accessToken && resAccessToken.redirectUrl){
|
|
433
|
+
// location.href = resAccessToken.redirectUrl;
|
|
434
|
+
// }
|
|
435
|
+
// store.state.user.token = resAccessToken.access_token;
|
|
436
|
+
setToken(resAccessToken.access_token);
|
|
437
|
+
getToken();
|
|
438
|
+
console.log("到这里了");
|
|
439
|
+
/******************************************************************************************************
|
|
440
|
+
// this.$refs["form"].validate(valid => {
|
|
441
|
+
// if (valid) {
|
|
442
|
+
// updateUserPwd(this.user.oldPassword, this.user.newPassword).then(
|
|
443
|
+
// response => {
|
|
444
|
+
// this.msgSuccess("修改成功");
|
|
445
|
+
// }
|
|
446
|
+
// );
|
|
447
|
+
// }
|
|
448
|
+
// });
|
|
449
|
+
|
|
450
|
+
let url = $self.$route.query["redirect_uri"];
|
|
451
|
+
|
|
452
|
+
if(!url || url.indexOf('/authorize') > -1){
|
|
453
|
+
url = localStorage.getItem("redirect_uri") || "/index";
|
|
454
|
+
}
|
|
455
|
+
// location.href = url;
|
|
456
|
+
});
|
|
457
|
+
}*/
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
});
|
|
461
|
+
},
|
|
462
|
+
close: function close() {
|
|
463
|
+
this.$store.dispatch("tagsView/delView", this.$route);
|
|
464
|
+
this.$router.push({
|
|
465
|
+
path: "/index"
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
});
|
|
470
|
+
// CONCATENATED MODULE: ./src/views/system/dataSetting/user/profile/resetPwd.vue?vue&type=script&lang=js&
|
|
471
|
+
/* harmony default export */ var profile_resetPwdvue_type_script_lang_js_ = (resetPwdvue_type_script_lang_js_);
|
|
472
|
+
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
473
|
+
var componentNormalizer = __webpack_require__("2877");
|
|
474
|
+
|
|
475
|
+
// CONCATENATED MODULE: ./src/views/system/dataSetting/user/profile/resetPwd.vue
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
/* normalize component */
|
|
482
|
+
|
|
483
|
+
var component = Object(componentNormalizer["a" /* default */])(
|
|
484
|
+
profile_resetPwdvue_type_script_lang_js_,
|
|
485
|
+
render,
|
|
486
|
+
staticRenderFns,
|
|
487
|
+
false,
|
|
488
|
+
null,
|
|
489
|
+
null,
|
|
490
|
+
null
|
|
491
|
+
|
|
492
|
+
)
|
|
493
|
+
|
|
494
|
+
/* harmony default export */ var resetPwd = __webpack_exports__["default"] = (component.exports);
|
|
495
|
+
|
|
496
|
+
/***/ }),
|
|
497
|
+
|
|
498
|
+
/***/ "bb2d":
|
|
499
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
500
|
+
|
|
501
|
+
"use strict";
|
|
502
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_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_userAvatar_vue_vue_type_style_index_0_id_8b44c192_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("699a");
|
|
503
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_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_userAvatar_vue_vue_type_style_index_0_id_8b44c192_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_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_userAvatar_vue_vue_type_style_index_0_id_8b44c192_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
504
|
+
/* unused harmony reexport * */
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
/***/ }),
|
|
508
|
+
|
|
509
|
+
/***/ "c0c7":
|
|
510
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
511
|
+
|
|
512
|
+
"use strict";
|
|
513
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return listUser; });
|
|
514
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return getUser; });
|
|
515
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addUser; });
|
|
516
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return updateUser; });
|
|
517
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return delUser; });
|
|
518
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return changeUserRole; });
|
|
519
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return batchAddUserRole; });
|
|
520
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return batchRemoveUserRole; });
|
|
521
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return resetUserPwd; });
|
|
522
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return changeUserStatus; });
|
|
523
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getUserProfile; });
|
|
524
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return updateUserProfile; });
|
|
525
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return updateUserPwd; });
|
|
526
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return uploadAvatar; });
|
|
527
|
+
/* harmony import */ var _utils_request__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6e66");
|
|
528
|
+
/* harmony import */ var _utils_ruoyi__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("20e9");
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
// 查询用户列表
|
|
533
|
+
function listUser(query) {
|
|
534
|
+
return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({
|
|
535
|
+
url: '/system/user/list',
|
|
536
|
+
method: 'get',
|
|
537
|
+
params: query
|
|
538
|
+
});
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
// 查询用户详细
|
|
542
|
+
function getUser(userId) {
|
|
543
|
+
return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({
|
|
544
|
+
url: '/system/user/' + Object(_utils_ruoyi__WEBPACK_IMPORTED_MODULE_1__[/* praseStrEmpty */ "c"])(userId),
|
|
545
|
+
method: 'get'
|
|
546
|
+
});
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
// 新增用户
|
|
550
|
+
function addUser(data) {
|
|
551
|
+
return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({
|
|
552
|
+
url: '/system/user',
|
|
553
|
+
method: 'post',
|
|
554
|
+
data: data
|
|
555
|
+
});
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
// 修改用户
|
|
559
|
+
function updateUser(data) {
|
|
560
|
+
return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({
|
|
561
|
+
url: '/system/user',
|
|
562
|
+
method: 'put',
|
|
563
|
+
data: data
|
|
564
|
+
});
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
// 删除用户
|
|
568
|
+
function delUser(data) {
|
|
569
|
+
return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({
|
|
570
|
+
url: '/system/user',
|
|
571
|
+
method: 'delete',
|
|
572
|
+
data: data
|
|
573
|
+
});
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
// 修改用户-角色关系
|
|
577
|
+
function changeUserRole(data) {
|
|
578
|
+
return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({
|
|
579
|
+
url: '/system/user/changeUserRole',
|
|
580
|
+
method: 'put',
|
|
581
|
+
data: data
|
|
582
|
+
});
|
|
583
|
+
}
|
|
584
|
+
function batchAddUserRole(roleId, userIds) {
|
|
585
|
+
return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({
|
|
586
|
+
url: '/system/user/batchAddUserRole',
|
|
587
|
+
method: 'post',
|
|
588
|
+
data: {
|
|
589
|
+
roleId: roleId,
|
|
590
|
+
userIds: userIds
|
|
591
|
+
}
|
|
592
|
+
});
|
|
593
|
+
}
|
|
594
|
+
function batchRemoveUserRole(roleId, userIds) {
|
|
595
|
+
return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({
|
|
596
|
+
url: '/system/user/batchRemoveUserRole',
|
|
597
|
+
method: 'post',
|
|
598
|
+
data: {
|
|
599
|
+
roleId: roleId,
|
|
600
|
+
userIds: userIds
|
|
601
|
+
}
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
// 用户密码重置
|
|
606
|
+
function resetUserPwd(userId, password) {
|
|
607
|
+
var data = {
|
|
608
|
+
userId: userId,
|
|
609
|
+
password: password
|
|
610
|
+
};
|
|
611
|
+
return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({
|
|
612
|
+
url: '/system/user/resetPwd',
|
|
613
|
+
method: 'put',
|
|
614
|
+
data: data
|
|
615
|
+
});
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
// 用户状态修改
|
|
619
|
+
function changeUserStatus(data) {
|
|
620
|
+
return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({
|
|
621
|
+
url: '/system/user/changeStatus',
|
|
622
|
+
method: 'put',
|
|
623
|
+
data: data
|
|
624
|
+
});
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
// 查询用户个人信息
|
|
628
|
+
function getUserProfile() {
|
|
629
|
+
return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({
|
|
630
|
+
url: '/system/user/profile',
|
|
631
|
+
method: 'get'
|
|
632
|
+
});
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
// 修改用户个人信息
|
|
636
|
+
function updateUserProfile(data) {
|
|
637
|
+
return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({
|
|
638
|
+
url: '/system/user/profile',
|
|
639
|
+
method: 'put',
|
|
640
|
+
data: data
|
|
641
|
+
});
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
// 用户密码重置
|
|
645
|
+
function updateUserPwd(oldPassword, newPassword) {
|
|
646
|
+
var data = {
|
|
647
|
+
oldPassword: oldPassword,
|
|
648
|
+
newPassword: newPassword
|
|
649
|
+
};
|
|
650
|
+
return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({
|
|
651
|
+
url: '/system/user/profile/updatePwd',
|
|
652
|
+
method: 'put',
|
|
653
|
+
params: data
|
|
654
|
+
});
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
// 用户头像上传
|
|
658
|
+
function uploadAvatar(data) {
|
|
659
|
+
return Object(_utils_request__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"])({
|
|
660
|
+
url: '/system/user/profile/avatar',
|
|
661
|
+
method: 'post',
|
|
662
|
+
data: data
|
|
663
|
+
});
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
/***/ }),
|
|
667
|
+
|
|
668
|
+
/***/ "e9c9":
|
|
669
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
670
|
+
|
|
671
|
+
"use strict";
|
|
672
|
+
// ESM COMPAT FLAG
|
|
673
|
+
__webpack_require__.r(__webpack_exports__);
|
|
674
|
+
|
|
675
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"efdf055a-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/system/dataSetting/user/profile/index.vue?vue&type=template&id=42236423&
|
|
676
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"app-container"},[_c('el-row',{attrs:{"gutter":20}},[_c('el-col',{attrs:{"span":8,"xs":24}},[_c('el-card',{staticClass:"box-card",attrs:{"shadow":"hover"}},[_c('div',[_c('div',{staticClass:"text-center avatar-group"},[_c('userAvatar',{attrs:{"user":_vm.user}}),_c('div',{staticClass:"avatar-name"},[_vm._v(_vm._s(_vm.user.nickName))]),_c('div',[_vm._v(_vm._s(_vm.user.profile))])],1),_c('ul',{staticClass:"list-group list-group-striped"},[_c('li',{staticClass:"list-group-item"},[_c('svg-icon',{attrs:{"icon-class":"xy_user"}}),_c('span',{staticClass:"pull-left"},[_vm._v("用户账号")]),_c('span',{staticClass:"pull-right"},[_vm._v(_vm._s(_vm.user.userName))])],1),_c('li',{staticClass:"list-group-item"},[_c('svg-icon',{attrs:{"icon-class":"xy_sex"}}),_c('span',{staticClass:"pull-left"},[_vm._v("性别")]),_c('span',{staticClass:"pull-right"},[_vm._v(_vm._s(_vm.user.sex === "0" ? "男" : _vm.user.sex === "1" ? "女" : "保密"))])],1),_c('li',{staticClass:"list-group-item"},[_c('svg-icon',{attrs:{"icon-class":"xy_dept_profile"}}),_c('span',{staticClass:"pull-left"},[_vm._v("部门")]),_c('span',{staticClass:"pull-right"},[_vm._v(_vm._s(_vm.user.dept !== undefined ? _vm.user.dept.deptName : ""))])],1),_c('li',{staticClass:"list-group-item"},[_c('svg-icon',{attrs:{"icon-class":"xy_post_profile"}}),_c('span',{staticClass:"pull-left"},[_vm._v("岗位")]),_c('span',{staticClass:"pull-right"},[_vm._v(_vm._s(_vm.user.post !== undefined ? _vm.user.post.postName : ""))])],1),_c('li',{staticClass:"list-group-item"},[_c('svg-icon',{attrs:{"icon-class":"xy_roleGroup"}}),_c('span',{staticClass:"pull-left"},[_vm._v("角色组")]),_c('span',{staticClass:"pull-right"},_vm._l((_vm.user.roles),function(item,index){return _c('span',[_vm._v(_vm._s(item.roleName)),(index < _vm.user.roles.length - 1)?_c('span',[_vm._v(" | ")]):_vm._e()])}),0)],1),_c('li',{staticClass:"list-group-item"},[_c('svg-icon',{attrs:{"icon-class":"xy_creatTime"}}),_c('span',{staticClass:"pull-left"},[_vm._v("创建日期")]),_c('span',{staticClass:"pull-right"},[_vm._v(_vm._s(_vm.user.createTime))])],1)])])])],1),_c('el-col',{attrs:{"span":16,"xs":24}},[_c('el-card',{attrs:{"shadow":"hover"}},[_c('el-tabs',{on:{"tab-click":_vm.activeTabChange},model:{value:(_vm.activeTab),callback:function ($$v) {_vm.activeTab=$$v},expression:"activeTab"}},[_c('el-tab-pane',{attrs:{"label":"基本资料","name":"userinfo"}},[_c('el-row',[_c('el-col',{attrs:{"span":8}},[_c('userInfo',{attrs:{"user":_vm.user}})],1)],1)],1),_c('el-tab-pane',{attrs:{"label":"修改密码","name":"resetPwd"}},[_c('el-row',[_c('el-col',{attrs:{"span":8}},[_c('resetPwd',{attrs:{"user":_vm.user}})],1)],1)],1)],1)],1)],1)],1)],1)}
|
|
677
|
+
var staticRenderFns = []
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
// CONCATENATED MODULE: ./src/views/system/dataSetting/user/profile/index.vue?vue&type=template&id=42236423&
|
|
681
|
+
|
|
682
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
|
|
683
|
+
var es_object_keys = __webpack_require__("b64b");
|
|
684
|
+
|
|
685
|
+
// EXTERNAL MODULE: ./src/views/system/dataSetting/user/profile/userAvatar.vue + 4 modules
|
|
686
|
+
var userAvatar = __webpack_require__("9a97");
|
|
687
|
+
|
|
688
|
+
// EXTERNAL MODULE: ./src/views/system/dataSetting/user/profile/userInfo.vue + 4 modules
|
|
689
|
+
var userInfo = __webpack_require__("f24c");
|
|
690
|
+
|
|
691
|
+
// EXTERNAL MODULE: ./src/views/system/dataSetting/user/profile/resetPwd.vue + 4 modules
|
|
692
|
+
var resetPwd = __webpack_require__("a59a");
|
|
693
|
+
|
|
694
|
+
// EXTERNAL MODULE: ./src/api/system/user.js
|
|
695
|
+
var user = __webpack_require__("c0c7");
|
|
696
|
+
|
|
697
|
+
// EXTERNAL MODULE: ../common/src/api/login.js
|
|
698
|
+
var login = __webpack_require__("eb7b");
|
|
699
|
+
|
|
700
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/system/dataSetting/user/profile/index.vue?vue&type=script&lang=js&
|
|
701
|
+
|
|
702
|
+
//
|
|
703
|
+
//
|
|
704
|
+
//
|
|
705
|
+
//
|
|
706
|
+
//
|
|
707
|
+
//
|
|
708
|
+
//
|
|
709
|
+
//
|
|
710
|
+
//
|
|
711
|
+
//
|
|
712
|
+
//
|
|
713
|
+
//
|
|
714
|
+
//
|
|
715
|
+
//
|
|
716
|
+
//
|
|
717
|
+
//
|
|
718
|
+
//
|
|
719
|
+
//
|
|
720
|
+
//
|
|
721
|
+
//
|
|
722
|
+
//
|
|
723
|
+
//
|
|
724
|
+
//
|
|
725
|
+
//
|
|
726
|
+
//
|
|
727
|
+
//
|
|
728
|
+
//
|
|
729
|
+
//
|
|
730
|
+
//
|
|
731
|
+
//
|
|
732
|
+
//
|
|
733
|
+
//
|
|
734
|
+
//
|
|
735
|
+
//
|
|
736
|
+
//
|
|
737
|
+
//
|
|
738
|
+
//
|
|
739
|
+
//
|
|
740
|
+
//
|
|
741
|
+
//
|
|
742
|
+
//
|
|
743
|
+
//
|
|
744
|
+
//
|
|
745
|
+
//
|
|
746
|
+
//
|
|
747
|
+
//
|
|
748
|
+
//
|
|
749
|
+
//
|
|
750
|
+
//
|
|
751
|
+
//
|
|
752
|
+
//
|
|
753
|
+
//
|
|
754
|
+
//
|
|
755
|
+
//
|
|
756
|
+
//
|
|
757
|
+
//
|
|
758
|
+
//
|
|
759
|
+
//
|
|
760
|
+
//
|
|
761
|
+
//
|
|
762
|
+
//
|
|
763
|
+
//
|
|
764
|
+
//
|
|
765
|
+
//
|
|
766
|
+
//
|
|
767
|
+
//
|
|
768
|
+
//
|
|
769
|
+
//
|
|
770
|
+
//
|
|
771
|
+
//
|
|
772
|
+
//
|
|
773
|
+
//
|
|
774
|
+
//
|
|
775
|
+
//
|
|
776
|
+
//
|
|
777
|
+
//
|
|
778
|
+
//
|
|
779
|
+
//
|
|
780
|
+
//
|
|
781
|
+
//
|
|
782
|
+
//
|
|
783
|
+
//
|
|
784
|
+
//
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
|
|
789
|
+
|
|
790
|
+
|
|
791
|
+
/* harmony default export */ var profilevue_type_script_lang_js_ = ({
|
|
792
|
+
name: "Profile",
|
|
793
|
+
components: {
|
|
794
|
+
userAvatar: userAvatar["default"],
|
|
795
|
+
userInfo: userInfo["default"],
|
|
796
|
+
resetPwd: resetPwd["default"]
|
|
797
|
+
},
|
|
798
|
+
data: function data() {
|
|
799
|
+
return {
|
|
800
|
+
user: {},
|
|
801
|
+
activeTab: "userinfo"
|
|
802
|
+
};
|
|
803
|
+
},
|
|
804
|
+
created: function created() {
|
|
805
|
+
this.getUser();
|
|
806
|
+
},
|
|
807
|
+
methods: {
|
|
808
|
+
getUser: function getUser() {
|
|
809
|
+
var _this = this;
|
|
810
|
+
Object(user["h" /* getUserProfile */])().then(function (response) {
|
|
811
|
+
_this.user = response.data;
|
|
812
|
+
});
|
|
813
|
+
},
|
|
814
|
+
activeTabChange: function activeTabChange() {
|
|
815
|
+
console.log(this.activeTab);
|
|
816
|
+
var res = JSON.parse(localStorage.getItem("configRes"));
|
|
817
|
+
if (res && res.sso && res.sso.enable) {
|
|
818
|
+
if (this.activeTab == "resetPwd") {
|
|
819
|
+
var appCode = res.sso.appCode;
|
|
820
|
+
Object(login["b" /* getChangePwdUrl */])({
|
|
821
|
+
app_code: appCode
|
|
822
|
+
}).then(function (res) {
|
|
823
|
+
// let url = window.location.href;
|
|
824
|
+
// localStorage.setItem("redirect_uri", url);
|
|
825
|
+
if (res.success) location.href = res.data;
|
|
826
|
+
});
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
});
|
|
832
|
+
// CONCATENATED MODULE: ./src/views/system/dataSetting/user/profile/index.vue?vue&type=script&lang=js&
|
|
833
|
+
/* harmony default export */ var user_profilevue_type_script_lang_js_ = (profilevue_type_script_lang_js_);
|
|
834
|
+
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
835
|
+
var componentNormalizer = __webpack_require__("2877");
|
|
836
|
+
|
|
837
|
+
// CONCATENATED MODULE: ./src/views/system/dataSetting/user/profile/index.vue
|
|
838
|
+
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
|
|
842
|
+
|
|
843
|
+
/* normalize component */
|
|
844
|
+
|
|
845
|
+
var component = Object(componentNormalizer["a" /* default */])(
|
|
846
|
+
user_profilevue_type_script_lang_js_,
|
|
847
|
+
render,
|
|
848
|
+
staticRenderFns,
|
|
849
|
+
false,
|
|
850
|
+
null,
|
|
851
|
+
null,
|
|
852
|
+
null
|
|
853
|
+
|
|
854
|
+
)
|
|
855
|
+
|
|
856
|
+
/* harmony default export */ var profile = __webpack_exports__["default"] = (component.exports);
|
|
857
|
+
|
|
858
|
+
/***/ }),
|
|
859
|
+
|
|
860
|
+
/***/ "f24c":
|
|
861
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
862
|
+
|
|
863
|
+
"use strict";
|
|
864
|
+
// ESM COMPAT FLAG
|
|
865
|
+
__webpack_require__.r(__webpack_exports__);
|
|
866
|
+
|
|
867
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"efdf055a-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/system/dataSetting/user/profile/userInfo.vue?vue&type=template&id=2c9b6a1e&
|
|
868
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-form',{ref:"form",attrs:{"model":_vm.user,"rules":_vm.rules,"label-width":"80px"}},[_c('el-form-item',{attrs:{"label":"用户昵称","prop":"nickName"}},[_c('el-input',{attrs:{"maxlength":"30","show-word-limit":""},model:{value:(_vm.user.nickName),callback:function ($$v) {_vm.$set(_vm.user, "nickName", $$v)},expression:"user.nickName"}})],1),_c('el-form-item',{attrs:{"label":"手机号码","prop":"phone"}},[_c('el-input',{attrs:{"maxlength":"11"},model:{value:(_vm.user.phone),callback:function ($$v) {_vm.$set(_vm.user, "phone", $$v)},expression:"user.phone"}})],1),_c('el-form-item',{attrs:{"label":"邮箱","prop":"email"}},[_c('el-input',{attrs:{"maxlength":"50"},model:{value:(_vm.user.email),callback:function ($$v) {_vm.$set(_vm.user, "email", $$v)},expression:"user.email"}})],1),_c('el-form-item',{attrs:{"label":"性别"}},[_c('el-radio-group',{attrs:{"prop":"sex"},model:{value:(_vm.user.sex),callback:function ($$v) {_vm.$set(_vm.user, "sex", $$v)},expression:"user.sex"}},[_c('el-radio',{attrs:{"label":"0"}},[_vm._v("男")]),_c('el-radio',{attrs:{"label":"1"}},[_vm._v("女")]),_c('el-radio',{attrs:{"label":"2"}},[_vm._v("保密")])],1)],1),_c('el-form-item',{attrs:{"label":"个人简介","prop":"profile"}},[_c('el-input',{attrs:{"type":"textarea","maxlength":"50","show-word-limit":""},model:{value:(_vm.user.profile),callback:function ($$v) {_vm.$set(_vm.user, "profile", $$v)},expression:"user.profile"}})],1),_c('el-form-item',[_c('el-button',{attrs:{"type":"primary","size":"mini"},on:{"click":_vm.submit}},[_vm._v("保存")]),_c('el-button',{attrs:{"type":"danger","size":"mini"},on:{"click":_vm.close}},[_vm._v("关闭")])],1)],1)}
|
|
869
|
+
var staticRenderFns = []
|
|
870
|
+
|
|
871
|
+
|
|
872
|
+
// CONCATENATED MODULE: ./src/views/system/dataSetting/user/profile/userInfo.vue?vue&type=template&id=2c9b6a1e&
|
|
873
|
+
|
|
874
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
875
|
+
var es_array_push = __webpack_require__("14d9");
|
|
876
|
+
|
|
877
|
+
// EXTERNAL MODULE: ./src/api/system/user.js
|
|
878
|
+
var user = __webpack_require__("c0c7");
|
|
879
|
+
|
|
880
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/system/dataSetting/user/profile/userInfo.vue?vue&type=script&lang=js&
|
|
881
|
+
|
|
882
|
+
//
|
|
883
|
+
//
|
|
884
|
+
//
|
|
885
|
+
//
|
|
886
|
+
//
|
|
887
|
+
//
|
|
888
|
+
//
|
|
889
|
+
//
|
|
890
|
+
//
|
|
891
|
+
//
|
|
892
|
+
//
|
|
893
|
+
//
|
|
894
|
+
//
|
|
895
|
+
//
|
|
896
|
+
//
|
|
897
|
+
//
|
|
898
|
+
//
|
|
899
|
+
//
|
|
900
|
+
//
|
|
901
|
+
//
|
|
902
|
+
//
|
|
903
|
+
//
|
|
904
|
+
//
|
|
905
|
+
//
|
|
906
|
+
//
|
|
907
|
+
//
|
|
908
|
+
//
|
|
909
|
+
//
|
|
910
|
+
|
|
911
|
+
|
|
912
|
+
/* harmony default export */ var userInfovue_type_script_lang_js_ = ({
|
|
913
|
+
props: {
|
|
914
|
+
user: {
|
|
915
|
+
type: Object
|
|
916
|
+
}
|
|
917
|
+
},
|
|
918
|
+
data: function data() {
|
|
919
|
+
return {
|
|
920
|
+
// 表单校验
|
|
921
|
+
rules: {
|
|
922
|
+
nickName: [{
|
|
923
|
+
required: true,
|
|
924
|
+
message: "用户昵称不能为空",
|
|
925
|
+
trigger: "blur"
|
|
926
|
+
}],
|
|
927
|
+
email: [{
|
|
928
|
+
type: "email",
|
|
929
|
+
message: "'请输入正确的邮箱地址",
|
|
930
|
+
trigger: ["blur", "change"]
|
|
931
|
+
}],
|
|
932
|
+
phone: [{
|
|
933
|
+
pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
|
|
934
|
+
message: "请输入正确的手机号码",
|
|
935
|
+
trigger: "blur"
|
|
936
|
+
}]
|
|
937
|
+
}
|
|
938
|
+
};
|
|
939
|
+
},
|
|
940
|
+
methods: {
|
|
941
|
+
submit: function submit() {
|
|
942
|
+
var _this = this;
|
|
943
|
+
this.$refs["form"].validate(function (valid) {
|
|
944
|
+
if (valid) {
|
|
945
|
+
Object(user["l" /* updateUserProfile */])(_this.user).then(function (response) {
|
|
946
|
+
_this.msgSuccess("修改成功");
|
|
947
|
+
});
|
|
948
|
+
}
|
|
949
|
+
});
|
|
950
|
+
},
|
|
951
|
+
close: function close() {
|
|
952
|
+
this.$store.dispatch("tagsView/delView", this.$route);
|
|
953
|
+
this.$router.push({
|
|
954
|
+
path: "/index"
|
|
955
|
+
});
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
});
|
|
959
|
+
// CONCATENATED MODULE: ./src/views/system/dataSetting/user/profile/userInfo.vue?vue&type=script&lang=js&
|
|
960
|
+
/* harmony default export */ var profile_userInfovue_type_script_lang_js_ = (userInfovue_type_script_lang_js_);
|
|
961
|
+
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
962
|
+
var componentNormalizer = __webpack_require__("2877");
|
|
963
|
+
|
|
964
|
+
// CONCATENATED MODULE: ./src/views/system/dataSetting/user/profile/userInfo.vue
|
|
965
|
+
|
|
966
|
+
|
|
967
|
+
|
|
968
|
+
|
|
969
|
+
|
|
970
|
+
/* normalize component */
|
|
971
|
+
|
|
972
|
+
var component = Object(componentNormalizer["a" /* default */])(
|
|
973
|
+
profile_userInfovue_type_script_lang_js_,
|
|
974
|
+
render,
|
|
975
|
+
staticRenderFns,
|
|
976
|
+
false,
|
|
977
|
+
null,
|
|
978
|
+
null,
|
|
979
|
+
null
|
|
980
|
+
|
|
981
|
+
)
|
|
982
|
+
|
|
983
|
+
/* harmony default export */ var userInfo = __webpack_exports__["default"] = (component.exports);
|
|
984
|
+
|
|
985
|
+
/***/ })
|
|
986
|
+
|
|
987
|
+
}]);
|