FastBee/docker/data/nginx/vue/static/js/chunk-36d17c5d.bfad1301.js

1 line
19 KiB
JavaScript
Raw Normal View History

2025-07-07 09:21:15 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-36d17c5d","chunk-5d005370","chunk-376d6212","chunk-350db0a8","chunk-39413ce8"],{"04e0":function(e,t,s){"use strict";s("8ceb")},"0d20":function(e,t,s){},"1e8b":function(e,t,s){"use strict";s.r(t);var r=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"user-info"},[s("el-descriptions",{attrs:{column:3}},[s("el-descriptions-item",{attrs:{label:e.$t("user.profile.index.894502-1")}},[e._v(e._s(e.userInfo.userName))]),s("el-descriptions-item",{attrs:{label:e.$t("user.index.098976-13")}},[e._v(e._s(e.userInfo.phonenumber))]),s("el-descriptions-item",{attrs:{label:e.$t("user.profile.index.894502-2")}},[e._v(e._s(e.userInfo.email))]),s("el-descriptions-item",{attrs:{label:e.$t("user.profile.index.894502-3")}},[e._v(" "+e._s(e.posts?(e.userInfo.dept?e.userInfo.dept.deptName:"")+" / "+e.posts:""+(e.userInfo.dept?e.userInfo.dept.deptName:""))+" ")]),s("el-descriptions-item",{attrs:{label:e.$t("user.profile.index.894502-4")}},[e._v(e._s(e.roles))]),s("el-descriptions-item",{attrs:{label:e.$t("user.profile.index.894502-5")}},[e._v(e._s(e.userInfo.createTime))]),s("el-descriptions-item",{attrs:{label:e.$t("user.profile.index.894502-6")}},[e.wxBind?s("el-button",{attrs:{type:"warning",size:"mini"},on:{click:e.handleUnBindWeChat}},[e._v(e._s(e.$t("user.profile.index.894502-7")))]):s("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.handleBindWeChat}},[e._v(e._s(e.$t("user.profile.index.894502-8")))])],1)],1),s("el-dialog",{attrs:{title:"绑定微信",visible:e.isBindWeChat,width:"500px","append-to-body":""},on:{"update:visible":function(t){e.isBindWeChat=t}}},[s("div",{staticClass:"bindWeChatDialog"},[s("div",{staticClass:"dec"},[e._v("请通过微信扫一扫,进行微信绑定。")]),s("div",{staticClass:"weChat"},[s("div",{staticStyle:{height:"200px"},attrs:{id:"weChatLogin"}})])]),s("div",{attrs:{slot:"footer"},slot:"footer"},[s("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){e.isBindWeChat=!1}}},[e._v(e._s(e.$t("close")))])],1)]),s("el-dialog",{attrs:{title:e.$t("user.profile.index.894502-11"),visible:e.isUnBindWeChat,width:"600px","append-to-body":""},on:{"update:visible":function(t){e.isUnBindWeChat=t}}},[s("div",{staticClass:"unBindWeChatDialog"},[s("el-form",{attrs:{"label-width":"150px"}},[s("el-form-item",{attrs:{label:e.$t("user.profile.index.894502-12"),prop:"pasaward"}},[s("el-input",{staticStyle:{width:"80%"},attrs:{type:e.pwdtype},model:{value:e.unBindWeChat.password,callback:function(t){e.$set(e.unBindWeChat,"password",t)},expression:"unBindWeChat.password"}},[s("template",{slot:"suffix"},[s("span",{staticClass:"el-icon-view",staticStyle:{"margin-right":"8px"},on:{click:function(t){return e.pwdTypeChange()}}})])],2)],1)],1)],1),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{attrs:{size:"small"},on:{click:function(t){e.isUnBindWeChat=!1}}},[e._v(e._s(e.$t("close")))]),s("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.confirmUnBindWeChat}},[e._v(e._s(e.$t("confirm")))])],1)])],1)},i=[],n=s("5530"),a=s("c0c7"),o=s("7ded"),u={props:{user:{type:Object,default:{}},postGroup:{type:String,default:""},roleGroup:{type:String,default:""},wxbind:{type:Boolean,default:!1}},data:function(){return{isBindWeChat:!1,isUnBindWeChat:!1,pwdtype:"password",wxBind:this.wxbind,userInfo:this.user,posts:this.postGroup,roles:this.roleGroup,unBindWeChat:{password:"",verifyType:1}}},mounted:function(){this.getUser();var e=this.$route.query.wxBindMsgId;e?this.getWeChatBindMsg():console.log("此时没有进行绑定操作!");var t=document.createElement("script");t.type="text/javascript",t.src="https://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js",document.body.appendChild(t)},methods:{handleBindWeChat:function(){Object(a["h"])().then((function(e){var t=document.createElement("script");t.type="text/javascript",t.src="https://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js";var s=document.body.appendChild(t);s.onload=function(){new WxLogin({self