Commit 1005211a by 无尘

fix: 修改工作台

parent 2ee13eb5
.app-detail[data-v-c31b55c4]{padding:20px 30px;min-height:100%;background-color:#fff}.app-detail .model-title[data-v-c31b55c4]{margin-bottom:25px;font-size:16px;font-weight:700;color:#303133;line-height:22px}.app-detail .app-info[data-v-c31b55c4]{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-c31b55c4],.app-detail .app-info[data-v-c31b55c4]{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-c31b55c4]{-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-c31b55c4]{background-color:#e4e7ed}.app-detail .app-info .app-logo img[data-v-c31b55c4]{max-width:100%;max-height:100%}.app-detail .app-info .app-name[data-v-c31b55c4]{font-size:14px;font-weight:700;color:#303133;line-height:20px}.app-detail .app-info .app-desc[data-v-c31b55c4]{font-size:14px;font-weight:400;color:#909399;line-height:20px}.app-detail .sub-title[data-v-c31b55c4]{font-size:14px;font-weight:700;color:#303133}.app-detail .admin-list[data-v-c31b55c4]{margin-bottom:10px;padding:20px;width:100%;min-height:150px;border:1px solid #e6e7eb}.app-detail .admin-list .no-admin[data-v-c31b55c4]{color:#909399}.app-detail .auth-info[data-v-c31b55c4]{min-width:525px;min-height:164px;margin-top:20px;background:#f5f7fa;padding:8px 16px}.app-detail .auth-info ul li[data-v-c31b55c4]{height:32px;line-height:32px}
\ No newline at end of file
.app-detail[data-v-20faa90a]{padding:20px 30px;min-height:100%;background-color:#fff}.app-detail .model-title[data-v-20faa90a]{margin-bottom:25px;font-size:16px;font-weight:700;color:#303133;line-height:22px}.app-detail .app-info[data-v-20faa90a]{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-20faa90a],.app-detail .app-info[data-v-20faa90a]{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-20faa90a]{-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-20faa90a]{background-color:#e4e7ed}.app-detail .app-info .app-logo img[data-v-20faa90a]{max-width:100%;max-height:100%}.app-detail .app-info .app-name[data-v-20faa90a]{font-size:14px;font-weight:700;color:#303133;line-height:20px}.app-detail .app-info .app-desc[data-v-20faa90a]{font-size:14px;font-weight:400;color:#909399;line-height:20px}.app-detail .sub-title[data-v-20faa90a]{font-size:14px;font-weight:700;color:#303133}.app-detail .admin-list[data-v-20faa90a]{margin-bottom:10px;padding:20px;width:100%;min-height:150px;border:1px solid #e6e7eb}.app-detail .admin-list .no-admin[data-v-20faa90a]{color:#909399}.app-detail .auth-info[data-v-20faa90a]{min-width:525px;min-height:164px;margin-top:20px;background:#f5f7fa;padding:8px 16px}.app-detail .auth-info ul li[data-v-20faa90a]{height:32px;line-height:32px}
\ 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-4dea7aa6"],{"464e":function(t,a,o){},"46b1":function(t,a,o){"use strict";var n=o("464e"),i=o.n(n);i.a},"71f6":function(t,a,o){"use strict";o.d(a,"a",(function(){return i}));o("ac6a"),o("456d");var n=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(n["a"])(i,t,a)}})),t}},c686:function(t,a,o){"use strict";o.r(a);var n=function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("div",{staticClass:"app-auth-body"},[n("div",{staticClass:"app-auth-head cursor-pointer",on:{click:t.toHome}},[n("img",{attrs:{src:o("cf05"),alt:"logo"}}),n("span",{staticClass:"web-name"},[t._v("好办管理平台")])]),n("div",{staticClass:"app-auth-info"},[n("div",{staticClass:"app-info-body"},[n("div",{staticClass:"app-info-title"},[t._v("应用授权")]),n("div",{staticClass:"app-info-detail"},[n("div",{staticClass:"flex app-top"},[n("div",{staticClass:"app-img"},[n("img",{attrs:{src:t.appInfo.iconUrl,alt:"app"}})]),n("div",{staticClass:"flex flex-column p-l-12 flex-space-between"},[n("div",{staticClass:"font-14 color-303133 line-h-22"},[t._v(t._s(t.appInfo.name||"--"))]),n("div",{staticClass:"font-12 color-606266 line-h-20"},[t._v(t._s(t.appInfo.introduction||"--"))])])]),n("div",{staticClass:"auth-rights"},[n("div",{staticClass:"auth-rights-title font-14 color-909399"},[t._v("授权后将允许"+t._s(t.appInfo.name||"")+"应用进行以下权限操作")]),n("div",[n("ul",t._l(t.rightsList,(function(a,o){return n("li",{key:o+"right",staticClass:"font-14 color-303133"},[t._v(t._s(o+1)+". "+t._s(a.rightsName))])})),0)])])]),n("form",{attrs:{action:"/application-auth-center/oauth/authorize",method:"post"}},[n("input",{staticStyle:{display:"none"},attrs:{type:"text",name:"appId"},domProps:{value:t.appInfo.appId}}),n("input",{staticStyle:{display:"none"},attrs:{type:"text",name:"authorize"},domProps:{value:t.appInfo.authorize}}),n("input",{staticStyle:{display:"none"},attrs:{type:"text",name:"user_oauth_approval"},domProps:{value:t.appInfo.user_oauth_approval}}),n("input",{staticStyle:{display:"none"},attrs:{type:"text",name:"rights"},domProps:{value:t.appInfo.rights}}),n("div",{staticClass:"app-info-btn"},[n("el-checkbox",{staticClass:"p-r-10",model:{value:t.checkAuth,callback:function(a){t.checkAuth=a},expression:"checkAuth"}}),n("el-button",{attrs:{type:"text"},on:{click:t.toProtocol}},[t._v("授权同意《达摩授权服务协议》")]),n("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=o("71f6"),e={getAuthAppDetail:"/business/authorize/get-application-info",getAppAuthInfo:"/business/authorize/right-list",postAuthRights:"/oauth/authorize"},p=Object(s["a"])(e,"/hb-application-web"),c=p.getAuthAppDetail,u=p.getAppAuthInfo,r={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};c(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};u(a).then((function(a){t.rightsList=a.result||[],t.appInfo.rights=JSON.stringify(a.result)||"[]"})).catch((function(t){}))}},watch:{}},l=r,h=(o("46b1"),o("2877")),f=Object(h["a"])(l,n,i,!1,null,"59f1be18",null);a["default"]=f.exports},cf05:function(t,a,o){t.exports=o.p+"img/logo.861ef5c7.png"}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-52176f20"],{"0d61":function(t,a,e){},"415e":function(t,a,e){"use strict";var i=e("71f6"),n={getAuthAppDetail:"/business/authorize/get-application-info",getAppAuthInfo:"/business/authorize/right-list",postAuthRights:"/oauth/authorize"};a["a"]=Object(i["a"])(n,"/hb-application-web")},"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}},"894e":function(t,a,e){"use strict";var i=e("0d61"),n=e.n(i);n.a},"8e83":function(t,a,e){"use strict";var i=e("71f6"),n={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}};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._f("timeStampToYmd")(t.appData.overTime))+t._s(t.appData.overTime?"":"--")+"\n "),(new Date).getTime()-t.el.overTime>0?e("el-tag",{staticStyle:{margin:"0 20px 0 10px"},attrs:{type:"danger"}},[t._v("已到期")]):t._e(),(new Date).getTime()-t.el.overTime>0?e("el-button",{attrs:{type:"text"}},[t._v("去续费 "),e("i",{staticClass:"iconfont iconjiantouxiangyou"})]):t._e()],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=e("415e"),p=o["a"].getAppDetail,c=s["a"].getAppAuthInfo,l={name:"AppDetail",data:function(){return{appData:{applicationName:"",applicationDesc:"",applicationVersion:"",overTime:"",adminRange:[],storeAdminRange:[],applicationLogo:""},authInfoList:[]}},created:function(){var t=this.$route.query,a=t.appId,e=t.applicationId;a||this.$router.go(-1),this.$emit("showTab","/app-list"),this.getAppDetail(a,e),this.getAuthInfo()},methods:{getAppDetail:function(t,a){var e=this;p({menuId:t,applicationId:a}).then((function(t){var a=t.result||{},i=a.applicationName,n=a.applicationDesc,o=a.applicationVersion,s=a.overTime,p=a.adminRange,c=a.storeAdminRange,l=a.applicationLogo;Object.assign(e.appData,{applicationName:i,applicationDesc:n,applicationVersion:o,overTime:s,applicationLogo:l}),"string"==typeof p&&p.length>0&&(e.appData.adminRange=JSON.parse(p)),"string"==typeof c&&c.length>0&&(e.appData.storeAdminRange=JSON.parse(c))}))},getAuthInfo:function(){var t=this,a={menuId:t.$route.query.appId,applicationId:t.$route.query.applicationId};c(a).then((function(a){t.authInfoList=a.result||[]})).catch((function(t){}))}}},r=l,u=(e("894e"),e("2877")),m=Object(u["a"])(r,i,n,!1,null,"c31b55c4",null);a["default"]=m.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-529a0408"],{"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:"/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}};a["a"]=Object(i["a"])(n,"/hb-manage-web")},"9a03":function(t,a,e){"use strict";var i=e("c83f"),n=e.n(i);n.a},"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._f("timeStampToYmd")(t.appData.overTime))+t._s(t.appData.overTime?"":"--")+"\n "),(new Date).getTime()-t.el.overTime>0?e("el-tag",{staticStyle:{margin:"0 20px 0 10px"},attrs:{type:"danger"}},[t._v("已到期")]):t._e(),(new Date).getTime()-t.el.overTime>0?e("el-button",{attrs:{type:"text"}},[t._v("去续费 "),e("i",{staticClass:"iconfont iconjiantouxiangyou"})]):t._e()],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,a=t.appId,e=t.applicationId;a||this.$router.go(-1),this.$emit("showTab","/app-list"),this.getAppDetail(a,e),this.getAuthInfo()},methods:{getAppDetail:function(t,a){var e=this;s({menuId:t,applicationId:a}).then((function(t){var a=t.result||{},i=a.applicationName,n=a.applicationDesc,o=a.applicationVersion,s=a.overTime,p=a.adminRange,c=a.storeAdminRange,l=a.applicationLogo;Object.assign(e.appData,{applicationName:i,applicationDesc:n,applicationVersion:o,overTime:s,applicationLogo:l}),"string"==typeof p&&p.length>0&&(e.appData.adminRange=JSON.parse(p)),"string"==typeof c&&c.length>0&&(e.appData.storeAdminRange=JSON.parse(c))}))},getAuthInfo:function(){var t=this,a={menuId:t.$route.query.appId,applicationId:t.$route.query.applicationId};p(a).then((function(a){t.authInfoList=a.result||[]})).catch((function(t){}))}}},l=c,r=(e("9a03"),e("2877")),u=Object(r["a"])(l,i,n,!1,null,"20faa90a",null);a["default"]=u.exports},c83f:function(t,a,e){}}]);
\ No newline at end of file
......@@ -13,7 +13,7 @@
</div>
<el-form-item label="版本" style="margin-bottom: 10px">{{ appData.applicationVersion || '--' }}</el-form-item>
<el-form-item label="到期时间">
{{ appData.overTime | timeStampToYmd }}{{!appData.overTime ? '--': ''}}
{{ appData.overTime | timeStampToYmd }}{{ !appData.overTime ? '--': ''}}
<el-tag v-if="new Date().getTime() - el.overTime > 0" type="danger" style="margin: 0 20px 0 10px">已到期</el-tag>
<el-button v-if="new Date().getTime() - el.overTime > 0" type="text">去续费 <i class="iconfont iconjiantouxiangyou"></i></el-button>
</el-form-item>
......@@ -42,7 +42,9 @@
<script>
import fetch from '@/api/app-controls';
const { getAppDetail, getAppAuthInfo } = fetch;
const { getAppDetail } = fetch;
import fetchData from '@/api/app-auth.js';
const { getAppAuthInfo } = fetchData;
export default {
name: 'AppDetail',
data() {
......
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