(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-42d2ce30"],{"415e":function(t,a,n){"use strict";var o=n("71f6"),i={getAuthAppDetail:"/business/authorize/get-application-info",getAppAuthInfo:"/business/authorize/right-list",postAuthRights:"/oauth/authorize"};a["a"]=Object(o["a"])(i,"/hb-application-web")},"464e":function(t,a,n){},"46b1":function(t,a,n){"use strict";var o=n("464e"),i=n.n(o);i.a},"71f6":function(t,a,n){"use strict";n.d(a,"a",(function(){return i}));n("ac6a"),n("456d");var o=n("b775");function i(t,a){t=t||{};var n=Object.keys(t);return n.forEach((function(n){var i=t[n];"string"===typeof i&&(i={url:i}),i.url="".concat(a).concat(i.url),t[n]=function(t,a){return Object(o["a"])(i,t,a)}})),t}},c686:function(t,a,n){"use strict";n.r(a);var o=function(){var t=this,a=t.$createElement,o=t._self._c||a;return o("div",{staticClass:"app-auth-body"},[o("div",{staticClass:"app-auth-head cursor-pointer",on:{click:t.toHome}},[o("img",{attrs:{src:n("cf05"),alt:"logo"}}),o("span",{staticClass:"web-name"},[t._v("好办管理平台")])]),o("div",{staticClass:"app-auth-info"},[o("div",{staticClass:"app-info-body"},[o("div",{staticClass:"app-info-title"},[t._v("应用授权")]),o("div",{staticClass:"app-info-detail"},[o("div",{staticClass:"flex app-top"},[o("div",{staticClass:"app-img"},[o("img",{attrs:{src:t.appInfo.iconUrl,alt:"app"}})]),o("div",{staticClass:"flex flex-column p-l-12 flex-space-between"},[o("div",{staticClass:"font-14 color-303133 line-h-22"},[t._v(t._s(t.appInfo.name||"--"))]),o("div",{staticClass:"font-12 color-606266 line-h-20"},[t._v(t._s(t.appInfo.introduction||"--"))])])]),o("div",{staticClass:"auth-rights"},[o("div",{staticClass:"auth-rights-title font-14 color-909399"},[t._v("授权后将允许"+t._s(t.appInfo.name||"")+"应用进行以下权限操作")]),o("div",[o("ul",t._l(t.rightsList,(function(a,n){return o("li",{key:n+"right",staticClass:"font-14 color-303133"},[t._v(t._s(n+1)+". "+t._s(a.rightsName))])})),0)])])]),o("form",{attrs:{action:"/application-auth-center/oauth/authorize",method:"post"}},[o("input",{staticStyle:{display:"none"},attrs:{type:"text",name:"appId"},domProps:{value:t.appInfo.appId}}),o("input",{staticStyle:{display:"none"},attrs:{type:"text",name:"authorize"},domProps:{value:t.appInfo.authorize}}),o("input",{staticStyle:{display:"none"},attrs:{type:"text",name:"user_oauth_approval"},domProps:{value:t.appInfo.user_oauth_approval}}),o("input",{staticStyle:{display:"none"},attrs:{type:"text",name:"rights"},domProps:{value:t.appInfo.rights}}),o("div",{staticClass:"app-info-btn"},[o("el-checkbox",{staticClass:"p-r-10",model:{value:t.checkAuth,callback:function(a){t.checkAuth=a},expression:"checkAuth"}}),o("el-button",{attrs:{type:"text"},on:{click:t.toProtocol}},[t._v("授权同意《达摩授权服务协议》")]),o("button",{ref:"submitBtn",class:["el-button el-button--primary",t.checkAuth?"":"is-disabled"],attrs:{id:"btn",disabled:!t.checkAuth,type:"submit"}},[t._v("\n            授权\n          ")])],1)])])])])},i=[],s=n("415e"),e=s["a"].getAuthAppDetail,p=s["a"].getAppAuthInfo,c={name:"AppAuth",components:{},data:function(){return{appInfo:{appId:"",authorize:"authorize",user_oauth_approval:!0,name:"",introduction:"",iconUrl:"",rights:"[]"},checkAuth:!1,rightsList:[]}},mounted:function(){var t=this;t.getAppData()},methods:{toHome:function(){var t=this;t.$router.push("/app-list")},toProtocol:function(){window.open("/haoban-4/#/gic-protocol","_blank","noopener")},toAuthRights:function(){var t=this;t.$router.push("/")},getAppData:function(){var t=this,a={appId:t.$route.query.appId};e(a).then((function(a){t.appInfo=Object.assign(t.appInfo,a.result||{}),t.getAuthInfo()})).catch((function(t){}))},getAuthInfo:function(){var t=this,a={appId:t.$route.query.appId};p(a).then((function(a){t.rightsList=a.result||[],t.appInfo.rights=JSON.stringify(a.result)||"[]"})).catch((function(t){}))}},watch:{}},u=c,r=(n("46b1"),n("2877")),l=Object(r["a"])(u,o,i,!1,null,"59f1be18",null);a["default"]=l.exports},cf05:function(t,a,n){t.exports=n.p+"img/logo.861ef5c7.png"}}]);