(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b566df60"],{"71f6":function(t,a,o){"use strict";o.d(a,"a",(function(){return i}));o("ac6a"),o("456d");var e=o("b775");function i(t,a){t=t||{};var o=Object.keys(t);return o.forEach((function(o){var i=t[o];"string"===typeof i&&(i={url:i}),i.url="".concat(a).concat(i.url),t[o]=function(t,a){return Object(e["a"])(i,t,a)}})),t}},"8e83":function(t,a,o){"use strict";var e=o("71f6"),i={getAppList:"/application-list",getAppDetail:"/application-detail",getMarketAccount:"/get-account-info",refreshMarketAccount:"/refesh-account-info",addMarketAccount:{url:"/bind-service-account",method:"post",useFormData:!0,useIntercept:!1},getAuthAppDetail:"/get-application-info",getAppAuthInfo:"/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(e["a"])(i,"/hb-manage-web")},"973c":function(t,a,o){"use strict";var e=o("d326"),i=o.n(e);i.a},c686:function(t,a,o){"use strict";o.r(a);var e=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-auth-body"},[e("div",{staticClass:"app-auth-head",on:{click:t.toHome}},[e("img",{attrs:{src:o("cf05"),alt:"logo"}}),e("span",{staticClass:"web-name"},[t._v("好办管理平台")])]),e("div",{staticClass:"app-auth-info"},[e("div",{staticClass:"app-info-body"},[e("div",{staticClass:"app-info-title"},[t._v("应用授权")]),e("div",{staticClass:"app-info-detail"},[e("div",{staticClass:"flex app-top"},[e("div",{staticClass:"app-img"},[e("img",{attrs:{src:t.appInfo.iconUrl,alt:"app"}})]),e("div",{staticClass:"flex flex-column p-l-12 flex-space-between"},[e("div",{staticClass:"font-14 color-303133 line-h-22"},[t._v(t._s(t.appInfo.applicationName))]),e("div",{staticClass:"font-12 color-606266 line-h-20"},[t._v(t._s(t.appInfo.introduction))])])]),e("div",{staticClass:"auth-rights"},[e("div",{staticClass:"auth-rights-title font-14 color-909399"},[t._v("授权后将允许"+t._s(t.appInfo.applicationName||"")+"应用进行以下权限操作")]),e("div",[e("ul",t._l(t.rightsList,(function(a,o){return e("li",{key:o+"right",staticClass:"font-14 color-303133"},[t._v(t._s(a.rightsName))])})),0)])])]),e("form",{attrs:{action:"/application-auth-center/oauth/authorize",method:"post"}},[e("input",{staticStyle:{display:"none"},attrs:{type:"text",name:"appId"},domProps:{value:t.appInfo.appId}}),e("input",{staticStyle:{display:"none"},attrs:{type:"text",name:"authorize"},domProps:{value:t.appInfo.authorize}}),e("input",{staticStyle:{display:"none"},attrs:{type:"text",name:"user_oauth_approval"},domProps:{value:t.appInfo.user_oauth_approval}}),e("input",{staticStyle:{display:"none"},attrs:{type:"text",name:"rights"},domProps:{value:t.appInfo.rights}}),e("div",{staticClass:"app-info-btn"},[e("el-checkbox",{staticClass:"p-r-10",model:{value:t.checkAuth,callback:function(a){t.checkAuth=a},expression:"checkAuth"}}),e("el-button",{attrs:{type:"text"},on:{click:t.toProtocol}},[t._v("授权同意《达摩授权服务协议》")]),e("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=[],n=o("8e83"),s=n["a"].getAuthAppDetail,p=n["a"].getAppAuthInfo,c={name:"AppAuth",components:{},data:function(){return{appInfo:{appId:"",authorize:"authorize",user_oauth_approval:!0,applicationName:"",introduction:"",iconUrl:"https://pic01-10001430.image.myqcloud.com/69918371857506304/1594638566081_O1zMw.jpg",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};s(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=(o("973c"),o("2877")),l=Object(r["a"])(u,e,i,!1,null,"290b48f6",null);a["default"]=l.exports},cf05:function(t,a,o){t.exports=o.p+"img/logo.861ef5c7.png"},d326:function(t,a,o){}}]);