Commit 45c8d9a6 by 无尘

fix: 修改工作台

parent 01ab4db7
.color-f5222d[data-v-4f3a90e7]{color:#f5222d}.app-detail[data-v-4f3a90e7]{padding:20px 30px;min-height:100%;background-color:#fff}.app-detail .model-title[data-v-4f3a90e7]{margin-bottom:25px;font-size:16px;font-weight:700;color:#303133;line-height:22px}.app-detail .app-info[data-v-4f3a90e7]{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-4f3a90e7],.app-detail .app-info[data-v-4f3a90e7]{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-4f3a90e7]{-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-4f3a90e7]{background-color:#e4e7ed}.app-detail .app-info .app-logo img[data-v-4f3a90e7]{max-width:100%;max-height:100%}.app-detail .app-info .app-name[data-v-4f3a90e7]{font-size:14px;font-weight:700;color:#303133;line-height:20px}.app-detail .app-info .app-desc[data-v-4f3a90e7]{font-size:14px;font-weight:400;color:#909399;line-height:20px}.app-detail .sub-title[data-v-4f3a90e7]{font-size:14px;font-weight:700;color:#303133}.app-detail .admin-list[data-v-4f3a90e7]{margin-bottom:10px;padding:20px;width:100%;min-height:150px;border:1px solid #e6e7eb}.app-detail .admin-list .no-admin[data-v-4f3a90e7]{color:#909399}.app-detail .auth-info[data-v-4f3a90e7]{min-width:525px;min-height:164px;margin-top:20px;background:#f5f7fa;padding:8px 16px}.app-detail .auth-info ul li[data-v-4f3a90e7]{height:32px;line-height:32px}
\ No newline at end of file
.color-f5222d[data-v-0ea9e3e9]{color:#f5222d}.app-detail[data-v-0ea9e3e9]{padding:20px 30px;min-height:100%;background-color:#fff}.app-detail .model-title[data-v-0ea9e3e9]{margin-bottom:25px;font-size:16px;font-weight:700;color:#303133;line-height:22px}.app-detail .app-info[data-v-0ea9e3e9]{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-0ea9e3e9],.app-detail .app-info[data-v-0ea9e3e9]{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-0ea9e3e9]{-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-0ea9e3e9]{background-color:#e4e7ed}.app-detail .app-info .app-logo img[data-v-0ea9e3e9]{max-width:100%;max-height:100%}.app-detail .app-info .app-name[data-v-0ea9e3e9]{font-size:14px;font-weight:700;color:#303133;line-height:20px}.app-detail .app-info .app-desc[data-v-0ea9e3e9]{font-size:14px;font-weight:400;color:#909399;line-height:20px}.app-detail .sub-title[data-v-0ea9e3e9]{font-size:14px;font-weight:700;color:#303133}.app-detail .admin-list[data-v-0ea9e3e9]{margin-bottom:10px;padding:20px;width:100%;min-height:150px;border:1px solid #e6e7eb}.app-detail .admin-list .no-admin[data-v-0ea9e3e9]{color:#909399}.app-detail .auth-info[data-v-0ea9e3e9]{min-width:525px;min-height:164px;margin-top:20px;background:#f5f7fa;padding:8px 16px}.app-detail .auth-info ul li[data-v-0ea9e3e9]{height:32px;line-height:32px}
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4237a540"],{"415e":function(a,t,e){"use strict";var i=e("71f6"),n={getAuthAppDetail:"/business/authorize/get-application-info",getAppAuthInfo:"/business/authorize/right-list",postAuthRights:"/oauth/authorize"};t["a"]=Object(i["a"])(n,"/hb-application-web")},"71f6":function(a,t,e){"use strict";e.d(t,"a",(function(){return n}));e("ac6a"),e("456d");var i=e("b775");function n(a,t){a=a||{};var e=Object.keys(a);return e.forEach((function(e){var n=a[e];"string"===typeof n&&(n={url:n}),n.url="".concat(t).concat(n.url),a[e]=function(a,t){return Object(i["a"])(n,a,t)}})),a}},"8e83":function(a,t,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}};t["a"]=Object(i["a"])(n,"/hb-manage-web")},"9bc6":function(a,t,e){"use strict";e.r(t);var i=function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("div",{staticClass:"app-detail"},[e("el-form",{attrs:{"label-width":"90px"}},[e("h3",{staticClass:"model-title"},[a._v("应用信息")]),e("div",{staticClass:"app-info"},[e("div",{class:["app-logo",{"no-logo":!a.appData.applicationLogo}]},[a.appData.applicationLogo?e("img",{attrs:{src:a.appData.applicationLogo,alt:""}}):a._e()]),e("div",[e("p",{staticClass:"app-name"},[a._v(a._s(a.appData.applicationName||"--"))]),e("p",{staticClass:"app-desc"},[a._v(a._s(a.appData.applicationDesc))])])]),e("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:"版本"}},[a._v(a._s(a.appData.applicationVersion||"--"))]),e("el-form-item",{attrs:{label:"到期时间"}},[e("span",[a._v(a._s(a._f("timeStampToYmd")(a.appData.overTime))+a._s(a.appData.overTime?"":"--"))]),e("span",{staticClass:"color-f5222d"},[a._v(a._s(a.appData.expirationDay>0&&2592e6>=a.appData.expirationDay?"(即将到期)":""))]),a.appData.expirationDate<0?e("span",{class:[2592e6>=a.appData.expirationDay?"color-f5222d":"color-303133"]},[a._v("还有"+a._s(a._f("timeStampSpace")(a.appData.expirationDay))+"到期")]):a._e(),a.appData.expirationDate>0?e("el-tag",{staticStyle:{margin:"0 20px 0 10px"},attrs:{type:"danger"}},[a._v("已到期")]):a._e(),a.appData.expirationDate>0?e("el-button",{attrs:{type:"text"}},[a._v("去续费 "),e("i",{staticClass:"iconfont iconjiantouxiangyou"})]):a._e()],1),e("h3",{staticClass:"model-title",staticStyle:{"margin-top":"40px"}},[a._v("应用设置")]),e("el-form-item",{attrs:{label:"可见范围"}},[e("h4",{staticClass:"sub-title"},[a._v("管理成员")]),e("div",{staticClass:"admin-list"},[a._l(a.appData.adminRange,(function(t){return e("el-tag",{key:t.roleId,attrs:{type:"info"}},[a._v(a._s(t.roleName))])})),0==a.appData.adminRange.length?e("span",{staticClass:"no-admin"},[a._v("暂无成员")]):a._e()],2),e("h4",{staticClass:"sub-title"},[a._v("门店成员")]),e("div",{staticClass:"admin-list"},[a._l(a.appData.storeAdminRange,(function(t){return e("el-tag",{key:t.roleId,attrs:{type:"info"}},[a._v(a._s(t.roleName))])})),0==a.appData.storeAdminRange.length?e("span",{staticClass:"no-admin"},[a._v("暂无成员")]):a._e()],2)]),e("h3",{staticClass:"model-title",staticStyle:{"margin-top":"40px"}},[a._v("授权信息")]),e("div",{staticClass:"auth-info"},[e("ul",a._l(a.authInfoList,(function(t,i){return e("li",{key:i+"list",staticClass:"font-14 color-303133"},[a._v(a._s(i+1)+". "+a._s(t.rightsName||"--"))])})),0)])],1)],1)},n=[],p=e("8e83"),o=e("415e"),s=p["a"].getAppDetail,c=o["a"].getAppAuthInfo,r={name:"AppDetail",data:function(){return{appData:{applicationName:"",applicationDesc:"",applicationVersion:"",overTime:"",expirationDate:"",expirationDay:"",adminRange:[],storeAdminRange:[],applicationLogo:""},authInfoList:[]}},created:function(){var a=this.$route.query,t=a.menuId,e=a.applicationId;t||this.$router.go(-1),this.$emit("showTab","/app-list"),this.getAppDetail(t,e),this.getAuthInfo()},methods:{getAppDetail:function(a,t){var e=this;s({menuId:a,applicationId:t}).then((function(a){var t=a.result||{},i=t.applicationName,n=t.applicationDesc,p=t.applicationVersion,o=t.overTime,s=t.adminRange,c=t.storeAdminRange,r=t.applicationLogo;e.appData.expirationDate=(new Date).getTime()-o,e.appData.expirationDay=o-(new Date).getTime(),Object.assign(e.appData,{applicationName:i,applicationDesc:n,applicationVersion:p,overTime:o,applicationLogo:r}),"string"==typeof s&&s.length>0&&(e.appData.adminRange=JSON.parse(s)),"string"==typeof c&&c.length>0&&(e.appData.storeAdminRange=JSON.parse(c))}))},getAuthInfo:function(){var a=this,t={appId:a.$route.query.appId};c(t).then((function(t){a.authInfoList=t.result||[]})).catch((function(a){}))}}},l=r,u=(e("e7d3"),e("2877")),m=Object(u["a"])(l,i,n,!1,null,"4f3a90e7",null);t["default"]=m.exports},c77a:function(a,t,e){},e7d3:function(a,t,e){"use strict";var i=e("c77a"),n=e.n(i);n.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a0fa4966"],{"1cea":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")},"68df":function(t,a,e){"use strict";var i=e("1cea"),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:"/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:"到期时间"}},[e("span",[t._v(t._s(t._f("timeStampToYmd")(t.appData.overTime))+t._s(t.appData.overTime?"":"--"))]),e("span",{staticClass:"color-f5222d"},[t._v(t._s(t.appData.overTime-(new Date).getTime()>0&&2592e6>=t.appData.overTime-(new Date).getTime()?"(即将到期)":""))]),(new Date).getTime()-t.appData.overTime<0?e("span",{class:[2592e6>=t.appData.overTime-(new Date).getTime()?"color-f5222d":"color-303133"]},[t._v("还有"+t._s(t._f("timeStampSpace")(t.appData.overTime-(new Date).getTime()))+"到期")]):t._e(),(new Date).getTime()-t.appData.overTime>0?e("el-tag",{staticStyle:{margin:"0 20px 0 10px"},attrs:{type:"danger"}},[t._v("已到期")]):t._e(),(new Date).getTime()-t.appData.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(i+1)+". "+t._s(a.rightsName||"--"))])})),0)])],1)],1)},n=[],o=e("8e83"),p=e("415e"),s=o["a"].getAppDetail,c=p["a"].getAppAuthInfo,r={name:"AppDetail",data:function(){return{appData:{applicationName:"",applicationDesc:"",applicationVersion:"",overTime:"",adminRange:[],storeAdminRange:[],applicationLogo:""},authInfoList:[]}},created:function(){var t=this.$route.query,a=t.menuId,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,p=a.overTime,s=a.adminRange,c=a.storeAdminRange,r=a.applicationLogo;Object.assign(e.appData,{applicationName:i,applicationDesc:n,applicationVersion:o,overTime:p,applicationLogo:r}),"string"==typeof s&&s.length>0&&(e.appData.adminRange=JSON.parse(s)),"string"==typeof c&&c.length>0&&(e.appData.storeAdminRange=JSON.parse(c))}))},getAuthInfo:function(){var t=this,a={appId:t.$route.query.appId};c(a).then((function(a){t.authInfoList=a.result||[]})).catch((function(t){}))}}},l=r,u=(e("68df"),e("2877")),m=Object(u["a"])(l,i,n,!1,null,"0ea9e3e9",null);a["default"]=m.exports}}]);
\ No newline at end of file
......@@ -13,9 +13,9 @@
</div>
<el-form-item label="版本" style="margin-bottom: 10px">{{ appData.applicationVersion || '--' }}</el-form-item>
<el-form-item label="到期时间">
<span>{{ appData.overTime | timeStampToYmd }}{{ !appData.overTime ? '--': ''}}</span> <span class="color-f5222d">{{ appData.overTime - new Date().getTime() > 0 && ( 2592000000 >= appData.overTime - new Date().getTime()) ? '(即将到期)' : '' }}</span> <span v-if="new Date().getTime() - appData.overTime < 0" :class="[2592000000 >= appData.overTime - new Date().getTime() ? 'color-f5222d' : 'color-303133']">还有{{ (appData.overTime - new Date().getTime()) | timeStampSpace }}到期</span>
<el-tag v-if="new Date().getTime() - appData.overTime > 0" type="danger" style="margin: 0 20px 0 10px">已到期</el-tag>
<el-button v-if="new Date().getTime() - appData.overTime > 0" type="text">去续费 <i class="iconfont iconjiantouxiangyou"></i></el-button>
<span>{{ appData.overTime | timeStampToYmd }}{{ !appData.overTime ? '--': ''}}</span> <span class="color-f5222d">{{ appData.expirationDay > 0 && ( 2592000000 >= appData.expirationDay) ? '(即将到期)' : '' }}</span> <span v-if="appData.expirationDate < 0" :class="[2592000000 >= appData.expirationDay ? 'color-f5222d' : 'color-303133']">还有{{ appData.expirationDay | timeStampSpace }}到期</span>
<el-tag v-if="appData.expirationDate > 0" type="danger" style="margin: 0 20px 0 10px">已到期</el-tag>
<el-button v-if="appData.expirationDate > 0" type="text">去续费 <i class="iconfont iconjiantouxiangyou"></i></el-button>
</el-form-item>
<h3 class="model-title" style="margin-top: 40px">应用设置</h3>
<el-form-item label="可见范围">
......@@ -54,6 +54,8 @@ export default {
applicationDesc: '',
applicationVersion: '',
overTime: '',
expirationDate: '',
expirationDay: '',
adminRange: [],
storeAdminRange: [],
applicationLogo: ''
......@@ -74,6 +76,8 @@ export default {
getAppDetail(menuId, applicationId) {
getAppDetail({ menuId, applicationId }).then(res => {
const { applicationName, applicationDesc, applicationVersion, overTime, adminRange, storeAdminRange, applicationLogo } = res.result || {};
this.appData.expirationDate = new Date().getTime() - overTime; // 到期时间
this.appData.expirationDay = overTime - new Date().getTime(); // 剩余到期天数
Object.assign(this.appData, { applicationName, applicationDesc, applicationVersion, overTime, applicationLogo });
if (typeof adminRange == 'string' && adminRange.length > 0) {
this.appData.adminRange = JSON.parse(adminRange);
......
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