(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2938fc3d"],{"2acb":function(t,a,e){"use strict";var i=e("d57f"),n=e.n(i);n.a},"71f6":function(t,a,e){"use strict";e.d(a,"a",(function(){return n}));e("ac6a"),e("456d");var i=e("b775");function n(t,a){t=t||{};var e=Object.keys(t);return e.forEach((function(e){var n=t[e];"string"===typeof n&&(n={url:n}),n.url="".concat(a).concat(n.url),t[e]=function(t,a){return Object(i["a"])(n,t,a)}})),t}},"8e83":function(t,a,e){"use strict";var i=e("71f6"),n={getAppList:"/app-category-list",getAppDetail:"/application-detail",getMarketAccount:"/get-account-info",refreshMarketAccount:"/refesh-account-info",addMarketAccount:{url:"/bind-service-account",method:"post",useFormData:!0,useIntercept:!1},getAuthAppDetail:"/business/authorize/get-application-info",getAppAuthInfo:"/business/authorize/right-list",postAuthRights:"/oauth/authorize",postPhoneCode:{url:"/send-code",method:"post",useFormData:!0,useIntercept:!1},checkCode:{url:"/validate-code",method:"post",useFormData:!0,useIntercept:!1}};a["a"]=Object(i["a"])(n,"/hb-manage-web")},"9bc6":function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-detail"},[e("el-form",{attrs:{"label-width":"90px"}},[e("h3",{staticClass:"model-title"},[t._v("应用信息")]),e("div",{staticClass:"app-info"},[e("div",{class:["app-logo",{"no-logo":!t.appData.applicationLogo}]},[t.appData.applicationLogo?e("img",{attrs:{src:t.appData.applicationLogo,alt:""}}):t._e()]),e("div",[e("p",{staticClass:"app-name"},[t._v(t._s(t.appData.applicationName||"--"))]),e("p",{staticClass:"app-desc"},[t._v(t._s(t.appData.applicationDesc))])])]),e("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:"版本"}},[t._v(t._s(t.appData.applicationVersion||"--"))]),e("el-form-item",{attrs:{label:"到期时间"}},[t._v("\n      "+t._s(t.appData.overTime|t.timeStampToYmd||"--")+"\n      "),e("el-tag",{staticStyle:{margin:"0 20px 0 10px"},attrs:{type:"danger"}},[t._v("已到期")]),e("el-button",{attrs:{type:"text"}},[t._v("去续费 "),e("i",{staticClass:"iconfont iconjiantouxiangyou"})])],1),e("h3",{staticClass:"model-title",staticStyle:{"margin-top":"40px"}},[t._v("应用设置")]),e("el-form-item",{attrs:{label:"可见范围"}},[e("h4",{staticClass:"sub-title"},[t._v("管理成员")]),e("div",{staticClass:"admin-list"},[t._l(t.appData.adminRange,(function(a){return e("el-tag",{key:a.roleId,attrs:{type:"info"}},[t._v(t._s(a.roleName))])})),0==t.appData.adminRange.length?e("span",{staticClass:"no-admin"},[t._v("暂无成员")]):t._e()],2),e("h4",{staticClass:"sub-title"},[t._v("门店成员")]),e("div",{staticClass:"admin-list"},[t._l(t.appData.storeAdminRange,(function(a){return e("el-tag",{key:a.roleId,attrs:{type:"info"}},[t._v(t._s(a.roleName))])})),0==t.appData.storeAdminRange.length?e("span",{staticClass:"no-admin"},[t._v("暂无成员")]):t._e()],2)]),e("h3",{staticClass:"model-title",staticStyle:{"margin-top":"40px"}},[t._v("授权信息")]),e("div",{staticClass:"auth-info"},[e("ul",t._l(t.authInfoList,(function(a,i){return e("li",{key:i+"list",staticClass:"font-14 color-303133"},[t._v(t._s(a.rightsName||"--"))])})),0)])],1)],1)},n=[],o=e("8e83"),s=o["a"].getAppDetail,p=o["a"].getAppAuthInfo,c={name:"AppDetail",data:function(){return{appData:{applicationName:"",applicationDesc:"",applicationVersion:"",overTime:"",adminRange:[],storeAdminRange:[],applicationLogo:""},authInfoList:[]}},created:function(){var t=this.$route.query.appId;t||this.$router.go(-1),this.$emit("showTab","/app-list"),this.getAppDetail(t)},methods:{getAppDetail:function(t){var a=this;s({applicationId:t}).then((function(t){var e=t.result||{},i=e.applicationName,n=e.applicationDesc,o=e.applicationVersion,s=e.overTime,p=e.adminRange,c=e.storeAdminRange,l=e.applicationLogo;Object.assign(a.appData,{applicationName:i,applicationDesc:n,applicationVersion:o,overTime:s,applicationLogo:l}),"string"==typeof p&&p.length>0&&(a.appData.adminRange=JSON.parse(p)),"string"==typeof c&&c.length>0&&(a.appData.storeAdminRange=JSON.parse(c))}))},getAuthInfo:function(){var t=this,a={appId:t.$route.query.appId};p(a).then((function(a){t.authInfoList=a.result||[]})).catch((function(t){}))}}},l=c,r=(e("2acb"),e("2877")),u=Object(r["a"])(l,i,n,!1,null,"d1953592",null);a["default"]=u.exports},d57f:function(t,a,e){}}]);