chunk-ed0382aa.62c0e7d4.js 4.8 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ed0382aa"],{"17a3":function(t,i,a){"use strict";a.r(i);var s=function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("div",{staticClass:"r-view-mgr",on:{click:function(t){t.stopPropagation()}}},[t.adminShow?[a("div",{staticClass:"groudMgr-top"},[a("i",{staticClass:"el-icon-arrow-left",on:{click:function(i){t.adminShow=!1}}}),a("span",[t._v(t._s(t.$t("group.admin")))]),a("i",{staticClass:"el-icon-close",on:{click:t.handleCloseCharSet}})]),a("div",{staticClass:"groudMgr-admins"},[a("div",{staticClass:"admins-add",on:{click:function(i){return t.$showInvite(4)}}},[a("div",{staticClass:"add-fl"},[a("i",{staticClass:"el-icon-circle-plus-outline"}),t._v(t._s(t.$t("group.add"))+t._s(t.$t("group.admin"))+"\n ")]),a("div",{staticClass:"add-fr"},[t._v("\n "+t._s(t.adminsList.length)+"/"+t._s(t.membersArray.length)+"\n "),a("i",{staticClass:"el-icon-arrow-right"})])]),a("ul",{staticClass:"admin-list"},t._l(t.adminsList,function(i,s){return a("li",{key:s,staticClass:"admin-item"},[i.cover_photo?a("img",{staticClass:"user-avatar",attrs:{src:i.cover_photo}}):a("div",{staticClass:"user-avatar",class:"avatar_bg"+i.user_id%9,attrs:{"data-name":i.nick_name.slice(0,2).toUpperCase()}}),a("span",{staticClass:"name"},[t._v(t._s(i.nick_name))]),a("el-button",{on:{click:function(a){return t.removeAdmin(i.user_id,i.nick_name)}}},[t._v(t._s(t.$t("public.remove")))])],1)}),0)])]:[a("div",{staticClass:"groudMgr-top"},[a("i",{staticClass:"el-icon-arrow-left",on:{click:t.handleGroudMgr}}),a("span",[t._v(t._s(t.$t("public.setting")))]),a("i",{staticClass:"el-icon-close",on:{click:t.handleCloseCharSet}})]),a("div",{staticClass:"ad-wrap"},[a("div",{staticClass:"ad-item",on:{click:function(i){t.adminShow=!0}}},[t._v("\n "+t._s(t.$t("group.adminSetting"))),a("i",{staticClass:"el-icon-arrow-right"})]),a("div",{staticClass:"ad-item",on:{click:function(i){return t.$showInvite(5)}}},[t._v("\n "+t._s(t.$t("invite.transferGroupOwner"))),a("i",{staticClass:"el-icon-arrow-right"})]),a("div",{staticClass:"ad-item",on:{click:t.addGroupAuth}},[t._v("\n "+t._s(t.$t("group.groupCertification"))),a("i",{staticClass:"el-icon-arrow-right"})]),a("div",{staticClass:"ad-item",on:{click:function(i){t.isShowTeleTip=!0}}},[t._v("\n "+t._s(t.$t("group.relateTelegram"))),a("i",{staticClass:"el-icon-arrow-right"})])]),a("a",{staticClass:"link-guide",attrs:{href:"https://smartsignature.io/article/QmNrsHp36CTCQp5ggsy6dzSUuhzBKom7u53mtVf2JJoH3N",target:"_blank"}},[t._v("群管理教程->")])],a("div",{staticClass:"view-telegram",class:[{"move-left":t.isShowTeleTip}]},[a("div",{staticClass:"groudMgr-top"},[a("i",{staticClass:"el-icon-arrow-left",on:{click:function(i){t.isShowTeleTip=!1}}}),a("span",[t._v(t._s(t.$t("group.relateTelegram")))]),a("i",{staticClass:"el-icon-close",on:{click:function(i){t.isShowTeleTip=!1}}})]),a("p",[t._v(t._s(t.$t("group.teleStep1")))]),a("p",[t._v(t._s(t.$t("group.teleStep2")))]),t._m(0)])],2)},n=[function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("p",[a("a",{staticClass:"link-guide",attrs:{href:"https://smartsignature.io/article/QmNrsHp36CTCQp5ggsy6dzSUuhzBKom7u53mtVf2JJoH3N",target:"_blank"}},[t._v("Telegram同步教程->")])])}],e=(a("7e48"),a("3050"),a("a619")),r=a.n(e),c=a("3f47"),o=(a("3a23"),a("39ab"),a("c843")),l=a.n(o),u=a("6e6d"),d=a("52c1"),m=a("5975"),p=a("8869");u["default"].component(l.a.name,l.a);var h={name:"chatGroudMgr",mixins:[p["a"]],computed:Object(c["a"])({},Object(d["e"])({curGroupId:function(t){return t.curSession},userId:function(t){return t.userId},membersArray:function(t){return t.group.membersArray},sessionList:function(t){return t.chat.sessionList}}),{adminsList:function(){return this.membersArray.filter(function(t){return 1==t.is_admin})}}),data:function(){return{isShowTeleTip:!1,adminShow:!1}},methods:{handleGroudMgr:function(){this.$emit("handleShowGroudMgr",0)},handleCloseCharSet:function(){this.$emit("handleShowCharSet",0),this.adminShow=!1},removeAdmin:function(t,i){var a=this;r.a.confirm("".concat(this.$t("public.confirm")).concat(this.$t("public.remove")).concat(i,"?")).then(function(){m["a"].group.removeAdmin({admin_id:t,group_id:a.curGroupId}).then(function(t){t.data;a.$store.dispatch("getGroupInfo")})}).catch(function(t){console.log(t)})},addGroupAuth:function(){var t=this;m["a"].base.groupAuth({group_id:this.curGroupId}).then(function(i){var a=i.data,s=a.data.serverId,n=t.userId>s?"".concat(s,"-").concat(t.userId):"".concat(t.userId,"-").concat(s);t.addPanelSession(s,n),t.$store.commit("changeSessionId",n),t.$router.push({path:"/pm/".concat(n)})})}}},g=h,v=(a("6dc3"),a("17cc")),f=Object(v["a"])(g,s,n,!1,null,"2fc16eec",null);i["default"]=f.exports},"37e9":function(t,i,a){},"6dc3":function(t,i,a){"use strict";var s=a("37e9"),n=a.n(s);n.a}}]);