Commit dc7b6579 by 无尘

fix: 修改工作台

parent ded68692
.line-h-22[data-v-59f1be18]{line-height:22px}.line-h-20[data-v-59f1be18]{line-height:20px}.app-auth-body[data-v-59f1be18]{width:100%}.app-auth-body .app-auth-head[data-v-59f1be18]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;text-align:left;padding:0 20px;height:46px;color:#fff;background-color:#fff;-webkit-box-shadow:0 4px 6px 0 rgba(221,227,237,.29);box-shadow:0 4px 6px 0 rgba(221,227,237,.29)}.app-auth-body .app-auth-head img[data-v-59f1be18]{width:22px}.app-auth-body .app-auth-head .web-name[data-v-59f1be18]{padding-left:10px;font-size:16px;font-weight:600;color:#303133;line-height:22px;background:-webkit-gradient(linear,right top,left top,from(#5b4adb),to(#2da8ff));background:linear-gradient(270deg,#5b4adb,#2da8ff);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.app-auth-body .app-auth-info[data-v-59f1be18]{width:100%}.app-auth-body .app-auth-info .app-info-body[data-v-59f1be18]{width:498px;min-height:374px;margin:50px auto;padding:20px 30px;background:#fff;-webkit-box-shadow:0 5px 9px 0 hsla(0,0%,87.1%,.28);box-shadow:0 5px 9px 0 hsla(0,0%,87.1%,.28);-webkit-box-sizing:border-box;box-sizing:border-box}.app-auth-body .app-auth-info .app-info-body .app-info-title[data-v-59f1be18]{font-size:16px;font-weight:600;color:#303133;line-height:22px}.app-auth-body .app-auth-info .app-info-body .app-info-detail[data-v-59f1be18]{min-height:227px;margin-top:25px;padding:15px 20px;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #e4e7ed}.app-auth-body .app-auth-info .app-info-body .app-info-detail .app-top[data-v-59f1be18]{border-bottom:1px solid #ebecf0;padding-bottom:15px}.app-auth-body .app-auth-info .app-info-body .app-info-detail .app-img[data-v-59f1be18]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:42px;height:42px;max-width:42px;max-height:42px;border-radius:6px}.app-auth-body .app-auth-info .app-info-body .app-info-detail .app-img img[data-v-59f1be18]{max-width:42px;max-height:42px;border-radius:6px}.app-auth-body .app-auth-info .app-info-body .app-info-detail .app-name[data-v-59f1be18]{font-weight:600}.app-auth-body .app-auth-info .app-info-body .app-info-detail .auth-rights .auth-rights-title[data-v-59f1be18]{padding:10px 0}.app-auth-body .app-auth-info .app-info-body .app-info-detail .auth-rights ul li[data-v-59f1be18]{line-height:20px;margin-bottom:5px}.app-auth-body .app-info-btn[data-v-59f1be18]{margin-top:30px;text-align:right}
\ No newline at end of file
.line-h-22[data-v-6089de44]{line-height:22px}.line-h-20[data-v-6089de44]{line-height:20px}.app-auth-body[data-v-6089de44]{width:100%}.app-auth-body .app-auth-head[data-v-6089de44]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;text-align:left;padding:0 20px;height:46px;color:#fff;background-color:#fff;-webkit-box-shadow:0 4px 6px 0 rgba(221,227,237,.29);box-shadow:0 4px 6px 0 rgba(221,227,237,.29)}.app-auth-body .app-auth-head img[data-v-6089de44]{width:22px}.app-auth-body .app-auth-head .web-name[data-v-6089de44]{padding-left:10px;font-size:16px;font-weight:600;color:#303133;line-height:22px;background:-webkit-gradient(linear,right top,left top,from(#5b4adb),to(#2da8ff));background:linear-gradient(270deg,#5b4adb,#2da8ff);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.app-auth-body .app-auth-info[data-v-6089de44]{width:100%}.app-auth-body .app-auth-info .app-info-body[data-v-6089de44]{width:498px;min-height:374px;margin:50px auto;padding:20px 30px;background:#fff;-webkit-box-shadow:0 5px 9px 0 hsla(0,0%,87.1%,.28);box-shadow:0 5px 9px 0 hsla(0,0%,87.1%,.28);-webkit-box-sizing:border-box;box-sizing:border-box}.app-auth-body .app-auth-info .app-info-body .app-info-title[data-v-6089de44]{font-size:16px;font-weight:600;color:#303133;line-height:22px}.app-auth-body .app-auth-info .app-info-body .app-info-detail[data-v-6089de44]{min-height:227px;margin-top:25px;padding:15px 20px;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #e4e7ed}.app-auth-body .app-auth-info .app-info-body .app-info-detail .app-top[data-v-6089de44]{border-bottom:1px solid #ebecf0;padding-bottom:15px}.app-auth-body .app-auth-info .app-info-body .app-info-detail .app-img[data-v-6089de44]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:42px;height:42px;max-width:42px;max-height:42px;border-radius:6px}.app-auth-body .app-auth-info .app-info-body .app-info-detail .app-img img[data-v-6089de44]{max-width:42px;max-height:42px;border-radius:6px}.app-auth-body .app-auth-info .app-info-body .app-info-detail .app-name[data-v-6089de44]{font-weight:600}.app-auth-body .app-auth-info .app-info-body .app-info-detail .auth-rights .auth-rights-title[data-v-6089de44]{padding:10px 0}.app-auth-body .app-auth-info .app-info-body .app-info-detail .auth-rights ul li[data-v-6089de44]{line-height:20px;margin-bottom:5px}.app-auth-body .app-info-btn[data-v-6089de44]{margin-top:30px;text-align:right}
\ No newline at end of file
.m-b-20[data-v-4c63f8b4]{margin-bottom:20px}.app-list[data-v-4c63f8b4]{padding:20px 30px;min-height:100%;background-color:#fff}.app-list .page-title[data-v-4c63f8b4]{margin-bottom:18px;font-size:16px;font-weight:700;color:#303133;line-height:22px}.app-list .app-item[data-v-4c63f8b4]{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:center;-ms-flex-align:center;align-items:center;float:left;margin-right:20px;margin-bottom:20px;padding:10px;width:185px;height:67px;background:#fff;border-radius:4px;border:1px solid #e4e7ed;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.app-list .app-item[data-v-4c63f8b4]:hover{-webkit-box-shadow:0 2px 7px 0 rgba(122,138,203,.2);box-shadow:0 2px 7px 0 rgba(122,138,203,.2)}.app-list .app-item:hover .app-item-menu[data-v-4c63f8b4]{opacity:1}.app-list .app-item .app-item-menu[data-v-4c63f8b4]{position:absolute;top:2px;right:10px;z-index:1;padding:0 2px;opacity:0;border-radius:2px}.app-list .app-item .app-item-menu[data-v-4c63f8b4]:hover{background:#f0f5ff}.app-list .app-item .app-item-menu:hover .menu-icon[data-v-4c63f8b4]{color:#2f54ed}.app-list .app-item .app-item-menu .menu-icon[data-v-4c63f8b4]{color:#909399;cursor:pointer}.app-list .app-item .out-time-tip[data-v-4c63f8b4]{position:absolute;right:0;bottom:5px;z-index:1;width:49px;height:17px;font-size:12px;font-weight:400;color:#f5222d;background:rgba(245,34,45,.09);border-radius:100px 0 0 100px}.app-list .app-item .app-logo[data-v-4c63f8b4],.app-list .app-item .out-time-tip[data-v-4c63f8b4]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.app-list .app-item .app-logo[data-v-4c63f8b4]{-ms-flex-negative:0;flex-shrink:0;margin-right:10px;width:46px;height:46px}.app-list .app-item .app-logo img[data-v-4c63f8b4]{max-width:100%;max-height:100%}.app-list .app-item .app-logo.no-logo[data-v-4c63f8b4]{background:#e4e7ed}.app-list .app-item .app-info[data-v-4c63f8b4]{width:calc(100% - 50px)}.app-list .app-item .app-info .app-name[data-v-4c63f8b4]{width:100%;font-size:14px;font-weight:400;color:#303133;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-list .app-item .app-info .to-buy[data-v-4c63f8b4]{font-size:12px;line-height:17px}.app-list .to-app-center[data-v-4c63f8b4]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:172px;height:67px;font-size:14px;font-weight:400;color:#c0c4cc;border-radius:4px;border:1px dashed #e4e7ed;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.app-list .to-app-center[data-v-4c63f8b4]:hover{color:#2f54ed;border-color:#2f54ed}
\ No newline at end of file
.m-b-20[data-v-74699bd8]{margin-bottom:20px}.app-list[data-v-74699bd8]{padding:20px 30px;min-height:100%;background-color:#fff}.app-list .page-title[data-v-74699bd8]{margin-bottom:18px;font-size:16px;font-weight:700;color:#303133;line-height:22px}.app-list .app-item[data-v-74699bd8]{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-align:center;-ms-flex-align:center;align-items:center;float:left;margin-right:20px;margin-bottom:20px;padding:10px;width:185px;height:67px;background:#fff;border-radius:4px;border:1px solid #e4e7ed;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.app-list .app-item[data-v-74699bd8]:hover{-webkit-box-shadow:0 2px 7px 0 rgba(122,138,203,.2);box-shadow:0 2px 7px 0 rgba(122,138,203,.2)}.app-list .app-item:hover .app-item-menu[data-v-74699bd8]{opacity:1}.app-list .app-item .app-item-menu[data-v-74699bd8]{position:absolute;top:2px;right:10px;z-index:1;padding:0 2px;opacity:0;border-radius:2px}.app-list .app-item .app-item-menu[data-v-74699bd8]:hover{background:#f0f5ff}.app-list .app-item .app-item-menu:hover .menu-icon[data-v-74699bd8]{color:#2f54ed}.app-list .app-item .app-item-menu .menu-icon[data-v-74699bd8]{color:#909399;cursor:pointer}.app-list .app-item .out-time-tip[data-v-74699bd8]{position:absolute;right:0;bottom:5px;z-index:1;width:49px;height:17px;font-size:12px;font-weight:400;color:#f5222d;background:rgba(245,34,45,.09);border-radius:100px 0 0 100px}.app-list .app-item .app-logo[data-v-74699bd8],.app-list .app-item .out-time-tip[data-v-74699bd8]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.app-list .app-item .app-logo[data-v-74699bd8]{-ms-flex-negative:0;flex-shrink:0;margin-right:10px;width:46px;height:46px}.app-list .app-item .app-logo img[data-v-74699bd8]{max-width:100%;max-height:100%}.app-list .app-item .app-logo.no-logo[data-v-74699bd8]{background:#e4e7ed}.app-list .app-item .app-info[data-v-74699bd8]{width:calc(100% - 50px)}.app-list .app-item .app-info .app-name[data-v-74699bd8]{width:100%;font-size:14px;font-weight:400;color:#303133;line-height:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-list .app-item .app-info .to-buy[data-v-74699bd8]{font-size:12px;line-height:17px}.app-list .to-app-center[data-v-74699bd8]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:172px;height:67px;font-size:14px;font-weight:400;color:#c0c4cc;border-radius:4px;border:1px dashed #e4e7ed;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.app-list .to-app-center[data-v-74699bd8]:hover{color:#2f54ed;border-color:#2f54ed}
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0d782edd"],{"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")},"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}},"9f3e":function(t,a,n){},b244:function(t,a,n){"use strict";var o=n("9f3e"),i=n.n(o);i.a},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.authToken};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("b244"),n("2877")),l=Object(r["a"])(u,o,i,!1,null,"6089de44",null);a["default"]=l.exports},cf05:function(t,a,n){t.exports=n.p+"img/logo.861ef5c7.png"}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-429f4120"],{"4a78":function(t,n,e){"use strict";e.r(n);var a=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"app-list"},[t._l(t.appList,(function(n,a){return[e("div",{key:a+"cate",staticClass:"m-b-20"},[e("h3",{staticClass:"page-title"},[t._v(t._s(n.applicationCategoryName||"--"))]),e("div",[t._l(n.applications,(function(n){return e("div",{key:n.applicationId,staticClass:"app-item"},[e("el-dropdown",{staticClass:"app-item-menu"},[e("i",{staticClass:"iconfont icongengduo1 menu-icon"}),e("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e("el-dropdown-item",{nativeOn:{click:function(e){return t.toAppBack(n)}}},[t._v("进入")]),e("el-dropdown-item",{nativeOn:{click:function(e){return t.toAppDetail(n)}}},[t._v("应用详情")])],1)],1),e("div",{class:["app-logo",{"no-logo":!n.applicationLogo}]},[n.applicationLogo?e("img",{attrs:{src:n.applicationLogo,alt:""}}):t._e()]),e("div",{staticClass:"app-info"},[e("p",{staticClass:"app-name"},[t._v(t._s(n.applicationName))]),(new Date).getTime()-n.overTime>0?e("el-button",{staticClass:"to-buy",attrs:{type:"text"},on:{click:function(e){return t.toBuy(n)}}},[t._v("去订购 "),e("i",{staticClass:"iconfont iconjiantouxiangyou"})]):t._e()],1),(new Date).getTime()-n.overTime>0?e("span",{staticClass:"out-time-tip"},[t._v("已过期")]):t._e()],1)})),e("div",{staticClass:"to-app-center",on:{click:t.toAppCenter}},[t._v("\n 前往服务市场 "),e("i",{staticClass:"iconfont iconjiantouxiangyou"})])],2)])]}))],2)},o=[],i=e("8e83"),c=e("5937"),p=e("5b4e"),s=i["a"].getAppList,u=c["a"].getRoleMenu,r={name:"AppList",data:function(){return{appList:[]}},created:function(){this.getAppList(),this.$emit("showTab","/app-list")},methods:{getAppList:function(){var t=this;s().then((function(n){t.appList=n.result||[]}))},toAppBack:function(t){var n=this;if(!t.authType)return window.open("/hb-application-auth/auth/custom?authToken=".concat(t.appId),"_blank","noopener"),!1;var e={menuId:t.menuId,appType:2};u(e).then((function(e){if(!e.result||!e.result.length)return p["a"].showmsg("该应用您无权限操作,请联系超级管理员!","warning"),!1;n.$router.push("/apps?applicationId=".concat(t.menuId))})).catch((function(t){}))},toAppDetail:function(t){var n=t||{},e=n.appId,a=n.applicationId,o=n.menuId,i=n.authType;if(!i)return window.open("/hb-application-auth/auth/custom?authToken=".concat(e),"_blank","noopener"),!1;this.$router.push("/app-detail?applicationId=".concat(a,"&appId=").concat(e,"&menuId=").concat(o))},toBuy:function(t){var n=t||{},e=n.applicationId;window.open("/market/hb/product/server/".concat(e),"_blank","noopener")},toAppCenter:function(){window.open("/market/hb/product/allList","_blank","noopener")}}},l=r,d=(e("b9e3"),e("2877")),f=Object(d["a"])(l,a,o,!1,null,"4c63f8b4",null);n["default"]=f.exports},5937:function(t,n,e){"use strict";var a=e("71f6"),o={getRoleMenu:"/list-staff-role-menu"};o=Object(a["a"])(o,"/hb-manage-web"),n["a"]=o},"5b4e":function(t,n,e){"use strict";var a=e("5c96");n["a"]={showmsg:function(t,n){Object(a["Message"])({duration:1e3,message:t||"接口异常",type:n})}}},"71f6":function(t,n,e){"use strict";e.d(n,"a",(function(){return o}));e("ac6a"),e("456d");var a=e("b775");function o(t,n){t=t||{};var e=Object.keys(t);return e.forEach((function(e){var o=t[e];"string"===typeof o&&(o={url:o}),o.url="".concat(n).concat(o.url),t[e]=function(t,n){return Object(a["a"])(o,t,n)}})),t}},7713:function(t,n,e){},"8e83":function(t,n,e){"use strict";var a=e("71f6"),o={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},postPhoneCode:{url:"/send-code",method:"post",useFormData:!0,useIntercept:!1},checkCode:{url:"/validate-code",method:"post",useFormData:!0,useIntercept:!1}};n["a"]=Object(a["a"])(o,"/hb-manage-web")},b9e3:function(t,n,e){"use strict";var a=e("7713"),o=e.n(a);o.a}}]);
\ No newline at end of file
(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"}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-63144fe0"],{"4a78":function(t,n,a){"use strict";a.r(n);var e=function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("div",{staticClass:"app-list"},[t._l(t.appList,(function(n,e){return[a("div",{key:e+"cate",staticClass:"m-b-20"},[a("h3",{staticClass:"page-title"},[t._v(t._s(n.applicationCategoryName||"--"))]),a("div",[t._l(n.applications,(function(n){return a("div",{key:n.applicationId,staticClass:"app-item"},[a("el-dropdown",{staticClass:"app-item-menu"},[a("i",{staticClass:"iconfont icongengduo1 menu-icon"}),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(a){return t.toAppBack(n)}}},[t._v("进入")]),a("el-dropdown-item",{nativeOn:{click:function(a){return t.toAppDetail(n)}}},[t._v("应用详情")])],1)],1),a("div",{class:["app-logo",{"no-logo":!n.applicationLogo}]},[n.applicationLogo?a("img",{attrs:{src:n.applicationLogo,alt:""}}):t._e()]),a("div",{staticClass:"app-info"},[a("p",{staticClass:"app-name"},[t._v(t._s(n.applicationName))]),(new Date).getTime()-n.overTime>0?a("el-button",{staticClass:"to-buy",attrs:{type:"text"},on:{click:function(a){return t.toBuy(n)}}},[t._v("去订购 "),a("i",{staticClass:"iconfont iconjiantouxiangyou"})]):t._e()],1),(new Date).getTime()-n.overTime>0?a("span",{staticClass:"out-time-tip"},[t._v("已过期")]):t._e()],1)})),a("div",{staticClass:"to-app-center",on:{click:t.toAppCenter}},[t._v("\n 前往服务市场 "),a("i",{staticClass:"iconfont iconjiantouxiangyou"})])],2)])]}))],2)},o=[],i=a("8e83"),c=a("5937"),p=a("5b4e"),s=i["a"].getAppList,r=c["a"].getRoleMenu,u={name:"AppList",data:function(){return{appList:[]}},created:function(){this.getAppList(),this.$emit("showTab","/app-list")},methods:{getAppList:function(){var t=this;s().then((function(n){t.appList=n.result||[]}))},toAppBack:function(t){var n=this;if(!t.authType)return window.open("/haoban-4/#/app-auth?appId=".concat(t.appId),"_blank","noopener"),!1;var a={menuId:t.menuId,appType:2};r(a).then((function(a){if(!a.result||!a.result.length)return p["a"].showmsg("该应用您无权限操作,请联系超级管理员!","warning"),!1;n.$router.push("/apps?applicationId=".concat(t.menuId))})).catch((function(t){}))},toAppDetail:function(t){var n=t||{},a=n.appId,e=n.applicationId,o=n.menuId,i=n.authType;if(!i)return window.open("/haoban-4/#/app-auth?appId=".concat(a),"_blank","noopener"),!1;this.$router.push("/app-detail?applicationId=".concat(e,"&appId=").concat(a,"&menuId=").concat(o))},toBuy:function(t){var n=t||{},a=n.applicationId;window.open("/market/hb/product/server/".concat(a),"_blank","noopener")},toAppCenter:function(){window.open("/market/hb/product/allList","_blank","noopener")}}},l=u,d=(a("fde2"),a("2877")),f=Object(d["a"])(l,e,o,!1,null,"74699bd8",null);n["default"]=f.exports},5937:function(t,n,a){"use strict";var e=a("71f6"),o={getRoleMenu:"/list-staff-role-menu"};o=Object(e["a"])(o,"/hb-manage-web"),n["a"]=o},"5a5a":function(t,n,a){},"5b4e":function(t,n,a){"use strict";var e=a("5c96");n["a"]={showmsg:function(t,n){Object(e["Message"])({duration:1e3,message:t||"接口异常",type:n})}}},"71f6":function(t,n,a){"use strict";a.d(n,"a",(function(){return o}));a("ac6a"),a("456d");var e=a("b775");function o(t,n){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var o=t[a];"string"===typeof o&&(o={url:o}),o.url="".concat(n).concat(o.url),t[a]=function(t,n){return Object(e["a"])(o,t,n)}})),t}},"8e83":function(t,n,a){"use strict";var e=a("71f6"),o={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},postPhoneCode:{url:"/send-code",method:"post",useFormData:!0,useIntercept:!1},checkCode:{url:"/validate-code",method:"post",useFormData:!0,useIntercept:!1}};n["a"]=Object(e["a"])(o,"/hb-manage-web")},fde2:function(t,n,a){"use strict";var e=a("5a5a"),o=a.n(e);o.a}}]);
\ No newline at end of file
......@@ -62,7 +62,7 @@ export default {
toAppBack(appData) {
const that = this;
if (!appData.authType) {
window.open(`/haoban-4/#/app-auth?appId=${appData.appId}`, '_blank', 'noopener');
window.open(`/hb-application-auth/auth/custom?authToken=${appData.appId}`, '_blank', 'noopener');
return false;
}
const para = {
......@@ -85,7 +85,7 @@ export default {
toAppDetail(appData) {
const { appId, applicationId, menuId, authType } = appData || {};
if (!authType) {
window.open(`/haoban-4/#/app-auth?appId=${appId}`, '_blank', 'noopener');
window.open(`/hb-application-auth/auth/custom?authToken=${appId}`, '_blank', 'noopener');
return false;
}
this.$router.push(`/app-detail?applicationId=${applicationId}&appId=${appId}&menuId=${menuId}`);
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-10-16 10:18:02
* @LastEditors: 无尘
* @LastEditTime: 2020-10-21 16:21:34
* @LastEditTime: 2020-10-22 14:24:06
-->
<template>
<div class="app-auth-body">
......@@ -129,7 +129,7 @@ export default {
getAppData() {
const that = this;
const param = {
appId: that.$route.query.appId
appId: that.$route.query.authToken
};
getAuthAppDetail(param)
.then(res => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment