Commit 17a45eb3 by 无尘

feat: 增加授权接口

parent 35e06e52
.app-detail[data-v-d1953592]{padding:20px 30px;min-height:100%;background-color:#fff}.app-detail .model-title[data-v-d1953592]{margin-bottom:25px;font-size:16px;font-weight:700;color:#303133;line-height:22px}.app-detail .app-info[data-v-d1953592]{margin-left:28px;margin-bottom:20px;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.app-detail .app-info .app-logo[data-v-d1953592],.app-detail .app-info[data-v-d1953592]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.app-detail .app-info .app-logo[data-v-d1953592]{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-ms-flex-negative:0;flex-shrink:0;margin-right:17px;width:46px;height:46px}.app-detail .app-info .app-logo.no-logo[data-v-d1953592]{background-color:#e4e7ed}.app-detail .app-info .app-logo img[data-v-d1953592]{max-width:100%;max-height:100%}.app-detail .app-info .app-name[data-v-d1953592]{font-size:14px;font-weight:700;color:#303133;line-height:20px}.app-detail .app-info .app-desc[data-v-d1953592]{font-size:14px;font-weight:400;color:#909399;line-height:20px}.app-detail .sub-title[data-v-d1953592]{font-size:14px;font-weight:700;color:#303133}.app-detail .admin-list[data-v-d1953592]{margin-bottom:10px;padding:20px;width:100%;min-height:150px;border:1px solid #e6e7eb}.app-detail .admin-list .no-admin[data-v-d1953592]{color:#909399}.app-detail .auth-info[data-v-d1953592]{min-width:525px;min-height:164px;margin-top:20px;background:#f5f7fa;padding:8px 16px}.app-detail .auth-info ul li[data-v-d1953592]{height:32px;line-height:32px}
\ No newline at end of file
.app-detail[data-v-c030ec20]{padding:20px 30px;min-height:100%;background-color:#fff}.app-detail .model-title[data-v-c030ec20]{margin-bottom:25px;font-size:16px;font-weight:700;color:#303133;line-height:22px}.app-detail .app-info[data-v-c030ec20]{margin-left:28px;margin-bottom:20px;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.app-detail .app-info .app-logo[data-v-c030ec20],.app-detail .app-info[data-v-c030ec20]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.app-detail .app-info .app-logo[data-v-c030ec20]{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-ms-flex-negative:0;flex-shrink:0;margin-right:17px;width:46px;height:46px}.app-detail .app-info .app-logo.no-logo[data-v-c030ec20]{background-color:#e4e7ed}.app-detail .app-info .app-logo img[data-v-c030ec20]{max-width:100%;max-height:100%}.app-detail .app-info .app-name[data-v-c030ec20]{font-size:14px;font-weight:700;color:#303133;line-height:20px}.app-detail .app-info .app-desc[data-v-c030ec20]{font-size:14px;font-weight:400;color:#909399;line-height:20px}.app-detail .sub-title[data-v-c030ec20]{font-size:14px;font-weight:700;color:#303133}.app-detail .admin-list[data-v-c030ec20]{margin-bottom:10px;padding:20px;width:100%;min-height:150px;border:1px solid #e6e7eb}.app-detail .admin-list .no-admin[data-v-c030ec20]{color:#909399}
\ No newline at end of file
.line-h-22[data-v-31b63e3a]{line-height:22px}.line-h-20[data-v-31b63e3a]{line-height:20px}.app-auth-body[data-v-31b63e3a]{width:100%}.app-auth-body .app-auth-head[data-v-31b63e3a]{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-31b63e3a]{width:22px}.app-auth-body .app-auth-head .web-name[data-v-31b63e3a]{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-31b63e3a]{width:100%}.app-auth-body .app-auth-info .app-info-body[data-v-31b63e3a]{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-31b63e3a]{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-31b63e3a]{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-31b63e3a]{border-bottom:1px solid #ebecf0;padding-bottom:15px}.app-auth-body .app-auth-info .app-info-body .app-info-detail .app-img[data-v-31b63e3a]{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-31b63e3a]{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-31b63e3a]{font-weight:600}.app-auth-body .app-auth-info .app-info-body .app-info-detail .auth-rights .auth-rights-title[data-v-31b63e3a]{padding:10px 0}.app-auth-body .app-auth-info .app-info-body .app-info-detail .auth-rights ul li[data-v-31b63e3a]{line-height:20px;margin-bottom:5px}.app-auth-body .app-info-btn[data-v-31b63e3a]{margin-top:30px;text-align:right}
\ No newline at end of file
.line-h-22[data-v-230bdf4c]{line-height:22px}.line-h-20[data-v-230bdf4c]{line-height:20px}.app-auth-body[data-v-230bdf4c]{width:100%}.app-auth-body .app-auth-head[data-v-230bdf4c]{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-230bdf4c]{width:22px}.app-auth-body .app-auth-head .web-name[data-v-230bdf4c]{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-230bdf4c]{width:100%}.app-auth-body .app-auth-info .app-info-body[data-v-230bdf4c]{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-230bdf4c]{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-230bdf4c]{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-230bdf4c]{border-bottom:1px solid #ebecf0;padding-bottom:15px}.app-auth-body .app-auth-info .app-info-body .app-info-detail .app-img[data-v-230bdf4c]{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-230bdf4c]{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-230bdf4c]{font-weight:600}.app-auth-body .app-auth-info .app-info-body .app-info-detail .auth-rights .auth-rights-title[data-v-230bdf4c]{padding:10px 0}.app-auth-body .app-auth-info .app-info-body .app-info-detail .auth-rights ul li[data-v-230bdf4c]{line-height:20px;margin-bottom:5px}.app-auth-body .app-info-btn[data-v-230bdf4c]{margin-top:30px;text-align:right}
\ No newline at end of file
.input-line-cell[data-v-4b4be42a]{position:relative;display:inline-block}.w-92[data-v-4b4be42a]{width:92px}.el-input-group[data-v-4b4be42a] .el-input-group__prepend{background:#fff}.w-340[data-v-4b4be42a]{width:340px}.w-340[data-v-4b4be42a] .el-input__inner{font-size:14px;color:#fff;background-color:hsla(0,0%,100%,.1)}.el-input[data-v-4b4be42a] .el-input__inner{font-size:14px;color:#606266;background-color:hsla(0,0%,100%,.1)}.el-input.is-disabled[data-v-4b4be42a]{opacity:.5}.el-input .is-disabled[data-v-4b4be42a] .el-input__inner{font-size:14px;color:#fff;background-color:hsla(0,0%,100%,.1)}.m-b-20[data-v-741b9489]{margin-bottom:20px}.m-l-20[data-v-75317dda]{margin-left:20px}.common-bottom-border[data-v-75317dda]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.app-market-body[data-v-75317dda]{min-height:100%;background:#fff;padding:20px}.app-market-body .app-market-list[data-v-75317dda]{width:100%;min-height:119px;margin-top:22px;background:#f5f7fa;padding:18px 26px;-webkit-box-sizing:border-box;box-sizing:border-box}.app-market-body .app-market-list .el-form-item[data-v-75317dda]{margin-bottom:10px}
\ No newline at end of file
.input-line-cell[data-v-4b4be42a]{position:relative;display:inline-block}.w-92[data-v-4b4be42a]{width:92px}.el-input-group[data-v-4b4be42a] .el-input-group__prepend{background:#fff}.w-340[data-v-4b4be42a]{width:340px}.w-340[data-v-4b4be42a] .el-input__inner{font-size:14px;color:#fff;background-color:hsla(0,0%,100%,.1)}.el-input[data-v-4b4be42a] .el-input__inner{font-size:14px;color:#606266;background-color:hsla(0,0%,100%,.1)}.el-input.is-disabled[data-v-4b4be42a]{opacity:.5}.el-input .is-disabled[data-v-4b4be42a] .el-input__inner{font-size:14px;color:#fff;background-color:hsla(0,0%,100%,.1)}.m-b-20[data-v-1d596291]{margin-bottom:20px}.m-l-20[data-v-17b8ac02]{margin-left:20px}.common-bottom-border[data-v-17b8ac02]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.app-market-body[data-v-17b8ac02]{min-height:100%;background:#fff;padding:20px}.app-market-body .app-market-list[data-v-17b8ac02]{width:100%;min-height:119px;margin-top:22px;background:#f5f7fa;padding:18px 26px;-webkit-box-sizing:border-box;box-sizing:border-box}.app-market-body .app-market-list .el-form-item[data-v-17b8ac02]{margin-bottom:10px}
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0903084f"],{"4a78":function(t,a,n){"use strict";n.r(a);var e=function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("div",{staticClass:"app-list"},[n("h3",{staticClass:"page-title"},[t._v("好办应用")]),n("div",[t._l(t.appList,(function(a){return n("div",{key:a.applicationId,staticClass:"app-item"},[n("el-dropdown",{staticClass:"app-item-menu"},[n("i",{staticClass:"iconfont icongengduo1 menu-icon"}),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{nativeOn:{click:function(n){return t.toAppBack(a)}}},[t._v("进入")]),n("el-dropdown-item",{nativeOn:{click:function(n){return t.toAppDetail(a)}}},[t._v("应用详情")])],1)],1),n("div",{class:["app-logo",{"no-logo":!a.applicationLogo}]},[a.applicationLogo?n("img",{attrs:{src:a.applicationLogo,alt:""}}):t._e()]),n("div",{staticClass:"app-info"},[n("p",{staticClass:"app-name"},[t._v(t._s(a.applicationName))]),n("el-button",{staticClass:"to-buy",attrs:{type:"text"},on:{click:t.toBuy}},[t._v("去订购 "),n("i",{staticClass:"iconfont iconjiantouxiangyou"})])],1),n("span",{staticClass:"out-time-tip"},[t._v("已过期")])],1)})),n("div",{staticClass:"to-app-center",on:{click:t.toAppCenter}},[t._v("\n 前往服务市场 "),n("i",{staticClass:"iconfont iconjiantouxiangyou"})])],2)])},i=[],o=n("8e83"),c=n("5937"),s=n("5b4e"),p=o["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;p().then((function(a){t.appList=a.result||[]}))},toAppBack:function(t){var a=this,n={menuId:t.applicationId,appType:2};u(n).then((function(n){if(!n.result||!n.result.length)return s["a"].showmsg("该应用您无权限操作,请联系超级管理员!","warning"),!1;a.$router.push("/apps?applicationId=".concat(t.applicationId))})).catch((function(t){}))},toAppDetail:function(t){var a=t||{},n=a.applicationId;this.$router.push("/app-detail?appId=".concat(n))},toBuy:function(){alert("暂无跳转链接")},toAppCenter:function(){alert("暂无跳转链接")}}},l=r,d=(n("891b"),n("2877")),f=Object(d["a"])(l,e,i,!1,null,"a018f946",null);a["default"]=f.exports},5937:function(t,a,n){"use strict";var e=n("71f6"),i={getRoleMenu:"/list-staff-role-menu"};i=Object(e["a"])(i,"/hb-manage-web"),a["a"]=i},"5b4e":function(t,a,n){"use strict";var e=n("5c96");a["a"]={showmsg:function(t,a){Object(e["Message"])({duration:1e3,message:t||"接口异常",type:a})}}},"71f6":function(t,a,n){"use strict";n.d(a,"a",(function(){return i}));n("ac6a"),n("456d");var e=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(e["a"])(i,t,a)}})),t}},8754:function(t,a,n){},"891b":function(t,a,n){"use strict";var e=n("8754"),i=n.n(e);i.a},"8e83":function(t,a,n){"use strict";var e=n("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},getAppAuthDetail:"/",postAuthRights:"/",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")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0903084f"],{"4a78":function(t,a,n){"use strict";n.r(a);var e=function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("div",{staticClass:"app-list"},[n("h3",{staticClass:"page-title"},[t._v("好办应用")]),n("div",[t._l(t.appList,(function(a){return n("div",{key:a.applicationId,staticClass:"app-item"},[n("el-dropdown",{staticClass:"app-item-menu"},[n("i",{staticClass:"iconfont icongengduo1 menu-icon"}),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{nativeOn:{click:function(n){return t.toAppBack(a)}}},[t._v("进入")]),n("el-dropdown-item",{nativeOn:{click:function(n){return t.toAppDetail(a)}}},[t._v("应用详情")])],1)],1),n("div",{class:["app-logo",{"no-logo":!a.applicationLogo}]},[a.applicationLogo?n("img",{attrs:{src:a.applicationLogo,alt:""}}):t._e()]),n("div",{staticClass:"app-info"},[n("p",{staticClass:"app-name"},[t._v(t._s(a.applicationName))]),n("el-button",{staticClass:"to-buy",attrs:{type:"text"},on:{click:t.toBuy}},[t._v("去订购 "),n("i",{staticClass:"iconfont iconjiantouxiangyou"})])],1),n("span",{staticClass:"out-time-tip"},[t._v("已过期")])],1)})),n("div",{staticClass:"to-app-center",on:{click:t.toAppCenter}},[t._v("\n 前往服务市场 "),n("i",{staticClass:"iconfont iconjiantouxiangyou"})])],2)])},i=[],o=n("8e83"),c=n("5937"),s=n("5b4e"),p=o["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;p().then((function(a){t.appList=a.result||[]}))},toAppBack:function(t){var a=this,n={menuId:t.applicationId,appType:2};u(n).then((function(n){if(!n.result||!n.result.length)return s["a"].showmsg("该应用您无权限操作,请联系超级管理员!","warning"),!1;a.$router.push("/apps?applicationId=".concat(t.applicationId))})).catch((function(t){}))},toAppDetail:function(t){var a=t||{},n=a.applicationId;this.$router.push("/app-detail?appId=".concat(n))},toBuy:function(){alert("暂无跳转链接")},toAppCenter:function(){alert("暂无跳转链接")}}},l=r,d=(n("891b"),n("2877")),f=Object(d["a"])(l,e,i,!1,null,"a018f946",null);a["default"]=f.exports},5937:function(t,a,n){"use strict";var e=n("71f6"),i={getRoleMenu:"/list-staff-role-menu"};i=Object(e["a"])(i,"/hb-manage-web"),a["a"]=i},"5b4e":function(t,a,n){"use strict";var e=n("5c96");a["a"]={showmsg:function(t,a){Object(e["Message"])({duration:1e3,message:t||"接口异常",type:a})}}},"71f6":function(t,a,n){"use strict";n.d(a,"a",(function(){return i}));n("ac6a"),n("456d");var e=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(e["a"])(i,t,a)}})),t}},8754:function(t,a,n){},"891b":function(t,a,n){"use strict";var e=n("8754"),i=n.n(e);i.a},"8e83":function(t,a,n){"use strict";var e=n("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")}}]);
\ No newline at end of file
(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:"/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(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){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-40e8a9a0"],{"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:"/application-list",getAppDetail:"/application-detail",getMarketAccount:"/get-account-info",refreshMarketAccount:"/refesh-account-info",addMarketAccount:{url:"/bind-service-account",method:"post",useFormData:!0,useIntercept:!1},getAppAuthDetail:"/",postAuthRights:"/",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)])],1)],1)},n=[],p=e("8e83"),o=p["a"].getAppDetail,s={name:"AppDetail",data:function(){return{appData:{applicationName:"",applicationDesc:"",applicationVersion:"",overTime:"",adminRange:[],storeAdminRange:[],applicationLogo:""}}},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;o({applicationId:t}).then((function(t){var e=t.result||{},i=e.applicationName,n=e.applicationDesc,p=e.applicationVersion,o=e.overTime,s=e.adminRange,c=e.storeAdminRange,l=e.applicationLogo;Object.assign(a.appData,{applicationName:i,applicationDesc:n,applicationVersion:p,overTime:o,applicationLogo:l}),"string"==typeof s&&s.length>0&&(a.appData.adminRange=JSON.parse(s)),"string"==typeof c&&c.length>0&&(a.appData.storeAdminRange=JSON.parse(c))}))}}},c=s,l=(e("d265"),e("2877")),r=Object(l["a"])(c,i,n,!1,null,"c030ec20",null);a["default"]=r.exports},ab67:function(t,a,e){},d265:function(t,a,e){"use strict";var i=e("ab67"),n=e.n(i);n.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-48e8e9e2"],{6734:function(t,a,i){},ab67d:function(t,a,i){"use strict";var s=i("6734"),o=i.n(s);o.a},c686:function(t,a,i){"use strict";i.r(a);var s=function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("div",{staticClass:"app-auth-body"},[t._m(0),i("div",{staticClass:"app-auth-info"},[i("div",{staticClass:"app-info-body"},[i("div",{staticClass:"app-info-title"},[t._v("应用授权")]),i("div",{staticClass:"app-info-detail"},[i("div",{staticClass:"flex app-top"},[i("div",{staticClass:"app-img"},[i("img",{attrs:{src:t.appInfo.iconUrl,alt:"app"}})]),i("div",{staticClass:"flex flex-column p-l-12 flex-space-between"},[i("div",{staticClass:"font-14 color-303133 line-h-22"},[t._v(t._s(t.appInfo.applicationName))]),i("div",{staticClass:"font-12 color-606266 line-h-20"},[t._v(t._s(t.appInfo.introduction))])])]),i("div",{staticClass:"auth-rights"},[i("div",{staticClass:"auth-rights-title font-14 color-909399"},[t._v("授权后将允许"+t._s(t.appInfo.applicationName||"")+"应用进行以下权限操作")]),i("div",[i("ul",t._l(t.rightsList,(function(a,s){return i("li",{key:s+"right",staticClass:"font-14 color-303133"},[t._v(t._s(a.rightsName))])})),0)])])]),i("div",{staticClass:"app-info-btn"},[i("el-checkbox",{staticClass:"p-r-10",model:{value:t.checkAuth,callback:function(a){t.checkAuth=a},expression:"checkAuth"}}),i("el-button",{attrs:{type:"text"},on:{click:t.toProtocol}},[t._v("授权同意《达摩授权服务协议》")]),i("el-button",{attrs:{disabled:!t.checkAuth,type:"primary"},on:{click:function(a){return a.stopPropagation(),t.toAuthRights(a)}}},[t._v("授权")])],1)])])])},o=[function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("div",{staticClass:"app-auth-head"},[s("img",{attrs:{src:i("cf05"),alt:"logo"}}),s("span",{staticClass:"web-name"},[t._v("好办管理平台")])])}],n={name:"AppAuth",components:{},data:function(){return{appInfo:{appId:"",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:{toProtocol:function(){window.open("/app-center/protocol","_blank","noopener")},toAuthRights:function(){var t=this;t.$router.push("/")},getAppData:function(){var t=this;t.appInfo={}}},watch:{}},c=n,e=(i("ab67d"),i("2877")),p=Object(e["a"])(c,s,o,!1,null,"31b63e3a",null);a["default"]=p.exports},cf05:function(t,a,i){t.exports=i.p+"img/logo.861ef5c7.png"}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7a2fb5e1"],{"2f43":function(t,a,e){"use strict";var o=e("fded"),n=e.n(o);n.a},"71f6":function(t,a,e){"use strict";e.d(a,"a",(function(){return n}));e("ac6a"),e("456d");var o=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(o["a"])(n,t,a)}})),t}},"8e83":function(t,a,e){"use strict";var o=e("71f6"),n={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"])(n,"/hb-manage-web")},c686:function(t,a,e){"use strict";e.r(a);var o=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-auth-body"},[t._m(0),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)])])])])},n=[function(){var t=this,a=t.$createElement,o=t._self._c||a;return o("div",{staticClass:"app-auth-head"},[o("img",{attrs:{src:e("cf05"),alt:"logo"}}),o("span",{staticClass:"web-name"},[t._v("好办管理平台")])])}],i=e("8e83"),s=i["a"].getAuthAppDetail,p=i["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:{toProtocol:function(){window.open("/app-center/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||{})})).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("2f43"),e("2877")),l=Object(u["a"])(r,o,n,!1,null,"230bdf4c",null);a["default"]=l.exports},cf05:function(t,a,e){t.exports=e.p+"img/logo.861ef5c7.png"},fded:function(t,a,e){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-cd5bf744"],{"15ef":function(t,e,a){},"195c":function(t,e,a){"use strict";var n=a("54dd"),o=a.n(n);o.a},"53b1":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-market-body"},[a("div",{staticClass:"app-market-account"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"绑定服务市场账号后可购买应用。购买信息在服务市场可查看。",placement:"top-start"}},[a("span",{staticClass:"font-16 color-303133 font-w-600 common-bottom-border"},[t._v("服务市场账号")])]),a("el-button",{staticClass:"m-l-20",attrs:{type:"primary"},on:{click:t.addAcount}},[t._v("添加")]),a("el-button",{staticClass:"m-l-20",attrs:{type:"text",loading:t.loadRefesh},on:{click:t.refreshData}},[t._v("同步刷新 ")]),a("span",{staticClass:"font-12 color-909399 p-l-15"},[t._v("更新时间:"+t._s(t._f("formatTimeStamp")(t.marketAccount.updateTime)))])],1),a("div",{staticClass:"app-market-list"},[a("el-form",{ref:"form",attrs:{model:t.form,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"账号"}},[t._v("\n "+t._s(t.marketAccount.id||"--")+"\n ")]),a("el-form-item",{attrs:{label:"绑定时间"}},[t._v("\n "+t._s(t._f("formatTimeStamp")(t.marketAccount.bindDate))+"\n ")]),a("el-form-item",{attrs:{label:"绑定人"}},[t._v("\n "+t._s(t.marketAccount.bindName||"")+"\n ")])],1)],1),t.showDialog?a("add-market-dialog",{on:{closeMarket:t.closeMarket}}):t._e()],1)},o=[],i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"绑定服务市场账号",visible:t.dialogVisible,width:"600px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{},[a("el-form",{ref:"ruleForm",attrs:{model:t.marketForm,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"手机号"}},[a("country-mobile",{attrs:{"nation-code":t.marketForm.nationCode,"input-width":480,"limit-class":"limit-color",holder:"请输入"},on:{"update:nationCode":function(e){return t.$set(t.marketForm,"nationCode",e)},"update:nation-code":function(e){return t.$set(t.marketForm,"nationCode",e)}},model:{value:t.marketForm.phoneNumber,callback:function(e){t.$set(t.marketForm,"phoneNumber",e)},expression:"marketForm.phoneNumber"}})],1),a("el-form-item",{attrs:{label:"验证码"}},[a("el-input",{staticStyle:{width:"398px"},attrs:{placeholder:"请输入验证码"},model:{value:t.marketForm.code,callback:function(e){t.$set(t.marketForm,"code",e)},expression:"marketForm.code"}}),a("el-button",{staticClass:"m-l-10",attrs:{disabled:t.disableBtn,type:"text"},on:{click:function(e){return t.sendCode()}}},[t._v(t._s(t.disableBtn&&60==t.countNum||!t.disableBtn&&t.countNum?"获取验证码":t.countNum+"s"))])],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.handleClose}},[t._v("取消")]),a("el-button",{attrs:{type:"primary",loading:t.loadBtn},on:{click:function(e){return t.submitForm("ruleForm")}}},[t._v("确认")])],1)])},r=[],s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:["input-line-cell",t.limitClass],style:{width:t.inputWidth+"px"}},[a("el-input",{style:{width:t.inputWidth+"px"},attrs:{disabled:t.disflag,placeholder:t.holder},on:{blur:function(e){return t.inputBlur()}},nativeOn:{keyup:function(e){return function(e){return t.toInput(e)}(e)}},model:{value:t.itemValue,callback:function(e){t.itemValue=e},expression:"itemValue"}},[a("el-select",{staticClass:"w-92",attrs:{slot:"prepend",disabled:t.disflag},on:{change:t.changeCode},slot:"prepend",model:{value:t.selCode,callback:function(e){t.selCode=e},expression:"selCode"}},t._l(t.nationCodeList,(function(e,n){return a("el-option",{key:n+"option",attrs:{label:"+"+e.dictCode,value:e.dictCode}},[t._v(t._s(e.dictName+" +"+e.dictCode))])})),1)],1)],1)},c=[],l=(a("ac6a"),a("a481"),a("c5f6"),a("e230")),u=l["a"].getNationCode,d={name:"CountryMobile",props:{value:{type:[String,Number],default:""},nationCode:{type:[String,Number],default:"86"},inputWidth:{type:Number,default:167},holder:{type:String,default:"请输入"},disflag:{type:Boolean,default:!1},limitClass:{type:String,default:""}},data:function(){return{itemValue:this.value,selCode:this.nationCode||"86",nationCodeList:[]}},mounted:function(){var t=this;t.getNationalData(),t.itemValue=t.value||"",t.selCode=t.nationCode||"86"},methods:{changeCode:function(){var t=this;t.$emit("update:nationCode",t.selCode),t.$emit("input",t.itemValue)},toInput:function(t){var e=this;e.itemValue=t.target.value.replace(/[^0-9]/gi,""),e.$emit("input",e.itemValue)},inputBlur:function(){var t=this;t.$emit("input",t.itemValue)},getNationalData:function(){var t=this;u({}).then((function(e){var a=[];e.result.forEach((function(t){a=a.concat(t.datas)})),t.nationCodeList=a||[]})).catch((function(t){}))}},watch:{value:function(t,e){var a=this;a.itemValue=t||""},nationCode:function(t,e){var a=this;a.selCode=t||"86"}}},m=d,f=(a("195c"),a("2877")),h=Object(f["a"])(m,s,c,!1,null,"4b4be42a",null),p=h.exports,b=a("d157"),v=a("8e83"),g=a("a689"),k=a.n(g),C=a("5b4e"),w=v["a"].addMarketAccount,_=v["a"].postPhoneCode,N=v["a"].checkCode,y={name:"AddMarketDialog",components:{countryMobile:p},data:function(){return{dialogVisible:!0,loadBtn:!1,marketForm:{nationCode:"86",phoneNumber:"",code:""},disableBtn:!0,countNum:60}},methods:{countDown:function(){var t=this,e=setInterval((function(){if(0===t.countNum)return clearInterval(e),t.countNum=60,t.disableBtn=!1,!1;t.countNum--}),1e3)},sendCode:Object(b["a"])((function(){var t=this,e=t.marketForm,a=e.phoneNumber,n=e.nationCode;if(""==a)return C["a"].showmsg("手机号不能为空","warning"),!1;var o=new k.a("+"+n+a);if(!o.isValid()||!o.isMobile())return C["a"].showmsg("手机号格式不正确","warning"),!1;var i={phoneNumber:a,nationCode:n,type:1};_(i).then((function(e){if("0000"==e.code){t.disableBtn=!0,t.countDown();var o=String(a),i=o.substr(0,3)+"****"+o.substr(7,o.length-1);return C["a"].showmsg("已发送验证码到".concat(n||"86","-").concat(i),"success"),!1}C["a"].showmsg(e.message||"未知错误","warning")})).catch((function(t){}))}),300),checkCode:function(){var t=this,e=t.marketForm,a=e.phoneNumber,n=e.nationCode,o=e.code,i={phoneNumber:a,nationCode:n,type:1,code:o};return new Promise((function(e,a){N(i).then((function(t){if("0000"==t.code)return e(!0),!1;C["a"].showmsg(t.message||"未知错误","warning"),e(!1)})).catch((function(a){e(!1),t.$message.error({duration:1e3,message:a.message})}))}))},submitForm:Object(b["a"])((function(t){var e=this;e.$refs[t].validate((function(t){t&&e.postSave()}))}),300),postSave:function(){var t=this;t.loadBtn=!0;var e={};w(e).then((function(e){t.loadBtn=!1,"0000"==e.code?(C["a"].showmsg("操作成功","success"),t.$refs["ruleForm"].resetFields(),t.$emit("closeMarket",!0)):(C["a"].showmsg(e.message||"未知错误","warning"),t.$emit("closeMarket",!0))})).catch((function(e){t.loadBtn=!1}))},handleClose:function(){var t=this;t.$emit("closeMarket")}},watch:{marketForm:{handler:function(t){var e=this;t.phoneNumber&&(e.disableBtn=!1)},deep:!0}}},F=y,M=(a("b26a"),Object(f["a"])(F,i,r,!1,null,"741b9489",null)),A=M.exports,D=v["a"].getMarketAccount,x=v["a"].refreshMarketAccount,B={name:"",components:{AddMarketDialog:A},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",marketAccount:{id:"",bindDate:"",bindName:"",updateTime:""},loadRefesh:!1,showDialog:!1}},mounted:function(){var t=this;t.getMarket()},methods:{refreshData:function(){var t=this;t.refreshMarketData()},refreshMarketData:function(){var t=this;t.loadRefesh=!0;var e={wxEnterpriseId:t.wxEnterpriseId};x(e).then((function(e){t.loadRefesh=!1,C["a"].showmsg("刷新成功","success"),t.getMarket()})).catch((function(e){t.loadRefesh=!1}))},addAcount:function(){var t=this;t.showDialog=!0},closeMarket:function(t){var e=this;e.showDialog=!1,t&&e.getMarket()},getMarket:function(){var t=this,e={};D(e).then((function(e){e.result||(t.marketAccount=e.result||{})})).catch((function(t){}))}},watch:{}},$=B,V=(a("6390"),Object(f["a"])($,n,o,!1,null,"75317dda",null));e["default"]=V.exports},"54dd":function(t,e,a){},6390:function(t,e,a){"use strict";var n=a("8185"),o=a.n(n);o.a},8185:function(t,e,a){},"8e83":function(t,e,a){"use strict";var n=a("71f6"),o={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},getAppAuthDetail:"/",postAuthRights:"/",postPhoneCode:{url:"/send-code",method:"post",useFormData:!0,useIntercept:!1},checkCode:{url:"/validate-code",method:"post",useFormData:!0,useIntercept:!1}};e["a"]=Object(n["a"])(o,"/hb-manage-web")},b26a:function(t,e,a){"use strict";var n=a("15ef"),o=a.n(n);o.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-fbc05400"],{"195c":function(t,e,a){"use strict";var n=a("54dd"),o=a.n(n);o.a},"45bca":function(t,e,a){},"53b1":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-market-body"},[a("div",{staticClass:"app-market-account"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"绑定服务市场账号后可购买应用。购买信息在服务市场可查看。",placement:"top-start"}},[a("span",{staticClass:"font-16 color-303133 font-w-600 common-bottom-border"},[t._v("服务市场账号")])]),a("el-button",{staticClass:"m-l-20",attrs:{type:"primary"},on:{click:t.addAcount}},[t._v("添加")]),a("el-button",{staticClass:"m-l-20",attrs:{type:"text",loading:t.loadRefesh},on:{click:t.refreshData}},[t._v("同步刷新 ")]),a("span",{staticClass:"font-12 color-909399 p-l-15"},[t._v("更新时间:"+t._s(t._f("formatTimeStamp")(t.marketAccount.updateTime)))])],1),a("div",{staticClass:"app-market-list"},[a("el-form",{ref:"form",attrs:{model:t.form,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"账号"}},[t._v("\n "+t._s(t.marketAccount.id||"--")+"\n ")]),a("el-form-item",{attrs:{label:"绑定时间"}},[t._v("\n "+t._s(t._f("formatTimeStamp")(t.marketAccount.bindDate))+" "+t._s(t.marketAccount.bindDate?"":"--")+"\n ")]),a("el-form-item",{attrs:{label:"绑定人"}},[t._v("\n "+t._s(t.marketAccount.bindName||"--")+"\n ")])],1)],1),t.showDialog?a("add-market-dialog",{on:{closeMarket:t.closeMarket}}):t._e()],1)},o=[],i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"绑定服务市场账号",visible:t.dialogVisible,width:"600px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{},[a("el-form",{ref:"ruleForm",attrs:{model:t.marketForm,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"手机号"}},[a("country-mobile",{attrs:{"nation-code":t.marketForm.nationCode,"input-width":480,"limit-class":"limit-color",holder:"请输入"},on:{"update:nationCode":function(e){return t.$set(t.marketForm,"nationCode",e)},"update:nation-code":function(e){return t.$set(t.marketForm,"nationCode",e)}},model:{value:t.marketForm.phoneNumber,callback:function(e){t.$set(t.marketForm,"phoneNumber",e)},expression:"marketForm.phoneNumber"}})],1),a("el-form-item",{attrs:{label:"验证码"}},[a("el-input",{staticStyle:{width:"398px"},attrs:{placeholder:"请输入验证码"},model:{value:t.marketForm.code,callback:function(e){t.$set(t.marketForm,"code",e)},expression:"marketForm.code"}}),a("el-button",{staticClass:"m-l-10",attrs:{disabled:t.disableBtn,type:"text"},on:{click:function(e){return t.sendCode()}}},[t._v(t._s(t.disableBtn&&60==t.countNum||!t.disableBtn&&t.countNum?"获取验证码":t.countNum+"s"))])],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.handleClose}},[t._v("取消")]),a("el-button",{attrs:{type:"primary",loading:t.loadBtn},on:{click:function(e){return t.submitForm("ruleForm")}}},[t._v("确认")])],1)])},r=[],s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:["input-line-cell",t.limitClass],style:{width:t.inputWidth+"px"}},[a("el-input",{style:{width:t.inputWidth+"px"},attrs:{disabled:t.disflag,placeholder:t.holder},on:{blur:function(e){return t.inputBlur()}},nativeOn:{keyup:function(e){return function(e){return t.toInput(e)}(e)}},model:{value:t.itemValue,callback:function(e){t.itemValue=e},expression:"itemValue"}},[a("el-select",{staticClass:"w-92",attrs:{slot:"prepend",disabled:t.disflag},on:{change:t.changeCode},slot:"prepend",model:{value:t.selCode,callback:function(e){t.selCode=e},expression:"selCode"}},t._l(t.nationCodeList,(function(e,n){return a("el-option",{key:n+"option",attrs:{label:"+"+e.dictCode,value:e.dictCode}},[t._v(t._s(e.dictName+" +"+e.dictCode))])})),1)],1)],1)},c=[],l=(a("ac6a"),a("a481"),a("c5f6"),a("e230")),u=l["a"].getNationCode,d={name:"CountryMobile",props:{value:{type:[String,Number],default:""},nationCode:{type:[String,Number],default:"86"},inputWidth:{type:Number,default:167},holder:{type:String,default:"请输入"},disflag:{type:Boolean,default:!1},limitClass:{type:String,default:""}},data:function(){return{itemValue:this.value,selCode:this.nationCode||"86",nationCodeList:[]}},mounted:function(){var t=this;t.getNationalData(),t.itemValue=t.value||"",t.selCode=t.nationCode||"86"},methods:{changeCode:function(){var t=this;t.$emit("update:nationCode",t.selCode),t.$emit("input",t.itemValue)},toInput:function(t){var e=this;e.itemValue=t.target.value.replace(/[^0-9]/gi,""),e.$emit("input",e.itemValue)},inputBlur:function(){var t=this;t.$emit("input",t.itemValue)},getNationalData:function(){var t=this;u({}).then((function(e){var a=[];e.result.forEach((function(t){a=a.concat(t.datas)})),t.nationCodeList=a||[]})).catch((function(t){}))}},watch:{value:function(t,e){var a=this;a.itemValue=t||""},nationCode:function(t,e){var a=this;a.selCode=t||"86"}}},m=d,f=(a("195c"),a("2877")),h=Object(f["a"])(m,s,c,!1,null,"4b4be42a",null),p=h.exports,b=a("d157"),v=a("8e83"),g=a("a689"),k=a.n(g),C=a("5b4e"),w=v["a"].addMarketAccount,_=v["a"].postPhoneCode,N=v["a"].checkCode,A={name:"AddMarketDialog",components:{countryMobile:p},data:function(){return{dialogVisible:!0,loadBtn:!1,marketForm:{nationCode:"86",phoneNumber:"",code:""},disableBtn:!0,countNum:60}},methods:{countDown:function(){var t=this,e=setInterval((function(){if(0===t.countNum)return clearInterval(e),t.countNum=60,t.disableBtn=!1,!1;t.countNum--}),1e3)},sendCode:Object(b["a"])((function(){var t=this,e=t.marketForm,a=e.phoneNumber,n=e.nationCode;if(""==a)return C["a"].showmsg("手机号不能为空","warning"),!1;var o=new k.a("+"+n+a);if(!o.isValid()||!o.isMobile())return C["a"].showmsg("手机号格式不正确","warning"),!1;var i={phoneNumber:a,nationCode:n,type:1};_(i).then((function(e){if("0000"==e.code){t.disableBtn=!0,t.countDown();var o=String(a),i=o.substr(0,3)+"****"+o.substr(7,o.length-1);return C["a"].showmsg("已发送验证码到".concat(n||"86","-").concat(i),"success"),!1}C["a"].showmsg(e.message||"未知错误","warning")})).catch((function(t){}))}),300),checkCode:function(){var t=this,e=t.marketForm,a=e.phoneNumber,n=e.nationCode,o=e.code,i={phoneNumber:a,nationCode:n,type:1,code:o};return new Promise((function(e,a){N(i).then((function(t){if("0000"==t.code)return e(!0),!1;C["a"].showmsg(t.message||"未知错误","warning"),e(!1)})).catch((function(a){e(!1),t.$message.error({duration:1e3,message:a.message})}))}))},submitForm:Object(b["a"])((function(t){var e=this;e.$refs[t].validate((function(t){t&&e.postSave()}))}),300),postSave:function(){var t=this;t.loadBtn=!0;var e={};w(e).then((function(e){t.loadBtn=!1,"0000"==e.code?(C["a"].showmsg("操作成功","success"),t.$refs["ruleForm"].resetFields(),t.$emit("closeMarket",!0)):(C["a"].showmsg(e.message||"未知错误","warning"),t.$emit("closeMarket",!0))})).catch((function(e){t.loadBtn=!1}))},handleClose:function(){var t=this;t.$emit("closeMarket")}},watch:{marketForm:{handler:function(t){var e=this;t.phoneNumber&&(e.disableBtn=!1)},deep:!0}}},y=A,F=(a("9a3d"),Object(f["a"])(y,i,r,!1,null,"1d596291",null)),M=F.exports,D=v["a"].getMarketAccount,x=v["a"].refreshMarketAccount,B={name:"",components:{AddMarketDialog:M},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",marketAccount:{id:"",bindDate:"",bindName:"",updateTime:""},loadRefesh:!1,showDialog:!1}},mounted:function(){var t=this;t.getMarket()},methods:{refreshData:function(){var t=this;t.refreshMarketData()},refreshMarketData:function(){var t=this;t.loadRefesh=!0;var e={wxEnterpriseId:t.wxEnterpriseId};x(e).then((function(e){t.loadRefesh=!1,C["a"].showmsg("刷新成功","success"),t.getMarket()})).catch((function(e){t.loadRefesh=!1}))},addAcount:function(){var t=this;t.showDialog=!0},closeMarket:function(t){var e=this;e.showDialog=!1,t&&e.getMarket()},getMarket:function(){var t=this,e={};D(e).then((function(e){e.result||(t.marketAccount=e.result||{})})).catch((function(t){}))}},watch:{}},$=B,I=(a("ec1f"),Object(f["a"])($,n,o,!1,null,"17b8ac02",null));e["default"]=I.exports},"54dd":function(t,e,a){},"7dff":function(t,e,a){},"8e83":function(t,e,a){"use strict";var n=a("71f6"),o={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}};e["a"]=Object(n["a"])(o,"/hb-manage-web")},"9a3d":function(t,e,a){"use strict";var n=a("7dff"),o=a.n(n);o.a},ec1f:function(t,e,a){"use strict";var n=a("45bca"),o=a.n(n);o.a}}]);
\ No newline at end of file
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-09-08 17:11:02
* @LastEditors: 无尘
* @LastEditTime: 2020-10-19 14:49:31
* @LastEditTime: 2020-10-20 10:46:38
*/
import getFetch from './get-fetch';
......@@ -19,8 +19,9 @@ const api = {
useFormData: true,
useIntercept: false
},
getAppAuthDetail: '/', // 获取应用授权详情
postAuthRights: '/', // 授权
getAuthAppDetail: '/get-application-info', // 获取授权应用详情
getAppAuthInfo: '/right-list', // 获取授权信息
postAuthRights: '/oauth/authorize', // 授权(改用form提交)
postPhoneCode: {
url: '/send-code', // 发送验证码
method: 'post',
......
......@@ -30,13 +30,19 @@
<span v-if="appData.storeAdminRange.length == 0" class="no-admin">暂无成员</span>
</div>
</el-form-item>
<h3 class="model-title" style="margin-top: 40px">授权信息</h3>
<div class="auth-info">
<ul>
<li class="font-14 color-303133" v-for="(item, index) in authInfoList" :key="index+'list'">{{ item.rightsName || '--'}}</li>
</ul>
</div>
</el-form>
</div>
</template>
<script>
import fetch from '@/api/app-controls';
const { getAppDetail } = fetch;
const { getAppDetail, getAppAuthInfo } = fetch;
export default {
name: 'AppDetail',
data() {
......@@ -49,7 +55,8 @@ export default {
adminRange: [],
storeAdminRange: [],
applicationLogo: ''
}
},
authInfoList: []
};
},
created() {
......@@ -72,6 +79,18 @@ export default {
this.appData.storeAdminRange = JSON.parse(storeAdminRange);
}
});
},
getAuthInfo() {
const that = this;
const param = {
appId: that.$route.query.appId
};
getAppAuthInfo(param)
.then(res => {
that.authInfoList = res.result || [];
})
.catch(function(error) {
});
}
}
};
......@@ -139,5 +158,18 @@ export default {
color: @gray03;
}
}
.auth-info {
min-width: 525px;
min-height: 164px;
margin-top: 20px;
background: #F5F7FA;
padding: 8px 16px;
ul {
li {
height: 32px;
line-height: 32px;
}
}
}
}
</style>
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-10-16 11:46:25
* @LastEditors: 无尘
* @LastEditTime: 2020-10-19 15:36:14
* @LastEditTime: 2020-10-20 10:39:32
-->
<template>
<div class="app-market-body">
......@@ -20,10 +20,10 @@
{{marketAccount.id || '--'}}
</el-form-item>
<el-form-item label="绑定时间">
{{marketAccount.bindDate | formatTimeStamp}}
{{marketAccount.bindDate | formatTimeStamp}} {{!marketAccount.bindDate ? '--' : ''}}
</el-form-item>
<el-form-item label="绑定人">
{{marketAccount.bindName || ''}}
{{marketAccount.bindName || '--'}}
</el-form-item>
</el-form>
</div>
......@@ -60,14 +60,14 @@ export default {
},
// methods
methods: {
refreshData() {
const that = this;
that.refreshMarketData();
},
/**
* @description: 刷新数据
* @author: 无尘
*/
refreshData() {
const that = this;
that.refreshMarketData();
},
refreshMarketData() {
const that = this;
that.loadRefesh = true;
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-10-16 10:18:02
* @LastEditors: 无尘
* @LastEditTime: 2020-10-16 11:44:00
* @LastEditTime: 2020-10-20 11:01:37
-->
<template>
<div class="app-auth-body">
......@@ -33,15 +33,50 @@
</div>
</div>
</div>
<div class="app-info-btn">
<el-checkbox v-model="checkAuth" class="p-r-10" /><el-button type="text" @click="toProtocol">授权同意《达摩授权服务协议》</el-button><el-button :disabled="checkAuth? false : true" type="primary" @click.stop="toAuthRights">授权</el-button>
</div>
<form
action="/application-auth-center/oauth/authorize"
method="post">
<input
type="text"
:value="appInfo.appId"
style="display:none"
name="appId"/>
<input
type="text"
:value="appInfo.authorize"
style="display:none"
name="authorize"/>
<input
type="text"
:value="appInfo.user_oauth_approval"
style="display:none"
name="user_oauth_approval"/>
<input
type="text"
:value="appInfo.rights"
style="display:none"
name="rights"/>
<div class="app-info-btn">
<el-checkbox v-model="checkAuth" class="p-r-10" /><el-button type="text" @click="toProtocol">授权同意《达摩授权服务协议》</el-button><button
id="btn"
ref="submitBtn"
:disabled="checkAuth ? false : true"
type="submit"
:class="['el-button el-button--primary', !checkAuth ? 'is-disabled' : '']">
授权
</button>
</div>
</form>
</div>
</div>
</div>
</template>
<script>
import fetch from '@/api/app-controls';
const { getAuthAppDetail, getAppAuthInfo } = fetch;
export default {
name: 'AppAuth',
components: {},
......@@ -49,10 +84,13 @@ export default {
return {
appInfo: {
appId: '',
authorize: 'authorize',
// eslint-disable-next-line
user_oauth_approval: true,
applicationName: '',
introduction: '',
iconUrl: 'https://pic01-10001430.image.myqcloud.com/69918371857506304/1594638566081_O1zMw.jpg',
rights: ''
rights: '[]'
},
checkAuth: false,
rightsList: []
......@@ -76,9 +114,38 @@ export default {
const that = this;
that.$router.push('/');
},
/**
* @description: 获取应用详情
* @author: 无尘
*/
getAppData() {
const that = this;
that.appInfo = {};
const param = {
appId: that.$route.query.appId
};
getAuthAppDetail(param)
.then(res => {
that.appInfo = Object.assign(that.appInfo, res.result || {});
})
.catch(function(error) {
});
},
/**
* @description: 获取授权信息
* @author: 无尘
*/
getAuthInfo() {
const that = this;
const param = {
appId: that.$route.query.appId
};
getAppAuthInfo(param)
.then(res => {
that.rightsList = res.result || [];
that.appInfo.rights = JSON.stringify(res.result) || '[]';
})
.catch(function(error) {
});
}
},
watch: {}
......
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