(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-27d41a2c"],{2604:function(t,a,e){"use strict";var o=e("e5e2"),i=e.n(o);i.a},"71f6":function(t,a,e){"use strict";e.d(a,"a",(function(){return i}));e("ac6a"),e("456d");var o=e("b775");function i(t,a){t=t||{};var e=Object.keys(t);return e.forEach((function(e){var i=t[e];"string"===typeof i&&(i={url:i}),i.url="".concat(a).concat(i.url),t[e]=function(t,a){return Object(o["a"])(i,t,a)}})),t}},"8e83":function(t,a,e){"use strict";var o=e("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(o["a"])(i,"/hb-manage-web")},c686:function(t,a,e){"use strict";e.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:e("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.applicationName))]),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.applicationName||"")+"应用进行以下权限操作")]),o("div",[o("ul",t._l(t.rightsList,(function(a,e){return o("li",{key:e+"right",staticClass:"font-14 color-303133"},[t._v(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=[],n=e("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:{}},r=c,u=(e("2604"),e("2877")),l=Object(u["a"])(r,o,i,!1,null,"93f2f090",null);a["default"]=l.exports},cf05:function(t,a,e){t.exports=e.p+"img/logo.861ef5c7.png"},e5e2:function(t,a,e){}}]);