Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-4
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
office
haoban-4
Commits
81dbd4b3
Commit
81dbd4b3
authored
Dec 21, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 更新loading
parent
2920538c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
app-detail.vue
src/views/app-controls/app-detail.vue
+13
-9
No files found.
src/views/app-controls/app-detail.vue
View file @
81dbd4b3
...
@@ -4,10 +4,10 @@
...
@@ -4,10 +4,10 @@
* @Author: 无尘
* @Author: 无尘
* @Date: 2020-09-08 17:11:02
* @Date: 2020-09-08 17:11:02
* @LastEditors: 无尘
* @LastEditors: 无尘
* @LastEditTime: 2020-1
0-27 14:45:14
* @LastEditTime: 2020-1
2-21 10:28:25
-->
-->
<
template
>
<
template
>
<div
class=
"app-detail"
>
<div
class=
"app-detail"
v-loading=
"loading"
>
<el-form
label-width=
"90px"
>
<el-form
label-width=
"90px"
>
<h3
class=
"model-title"
>
应用信息
</h3>
<h3
class=
"model-title"
>
应用信息
</h3>
<div
class=
"app-info"
>
<div
class=
"app-info"
>
...
@@ -70,7 +70,8 @@ export default {
...
@@ -70,7 +70,8 @@ export default {
applicationLogo
:
''
,
applicationLogo
:
''
,
serverId
:
''
serverId
:
''
},
},
authInfoList
:
[]
authInfoList
:
[],
loading
:
false
};
};
},
},
created
()
{
created
()
{
...
@@ -98,19 +99,22 @@ export default {
...
@@ -98,19 +99,22 @@ export default {
* @author: 无尘
* @author: 无尘
*/
*/
getAppDetail
(
menuId
,
applicationId
)
{
getAppDetail
(
menuId
,
applicationId
)
{
const
that
=
this
;
that
.
loading
=
true
;
getAppDetail
({
menuId
,
applicationId
}).
then
(
res
=>
{
getAppDetail
({
menuId
,
applicationId
}).
then
(
res
=>
{
that
.
loading
=
false
;
const
{
applicationName
,
applicationDesc
,
applicationVersion
,
overTime
,
adminRange
,
storeAdminRange
,
applicationLogo
,
serverId
}
=
res
.
result
||
{};
const
{
applicationName
,
applicationDesc
,
applicationVersion
,
overTime
,
adminRange
,
storeAdminRange
,
applicationLogo
,
serverId
}
=
res
.
result
||
{};
th
is
.
appData
.
expirationDate
=
new
Date
().
getTime
()
-
overTime
;
// 到期时间
th
at
.
appData
.
expirationDate
=
new
Date
().
getTime
()
-
overTime
;
// 到期时间
th
is
.
appData
.
expirationDay
=
overTime
-
new
Date
().
getTime
();
// 剩余到期天数
th
at
.
appData
.
expirationDay
=
overTime
-
new
Date
().
getTime
();
// 剩余到期天数
Object
.
assign
(
th
is
.
appData
,
{
applicationName
,
applicationDesc
,
applicationVersion
,
overTime
,
applicationLogo
,
serverId
});
Object
.
assign
(
th
at
.
appData
,
{
applicationName
,
applicationDesc
,
applicationVersion
,
overTime
,
applicationLogo
,
serverId
});
if
(
typeof
adminRange
==
'string'
&&
adminRange
.
length
>
0
)
{
if
(
typeof
adminRange
==
'string'
&&
adminRange
.
length
>
0
)
{
th
is
.
appData
.
adminRange
=
JSON
.
parse
(
adminRange
);
th
at
.
appData
.
adminRange
=
JSON
.
parse
(
adminRange
);
}
}
if
(
typeof
storeAdminRange
==
'string'
&&
storeAdminRange
.
length
>
0
)
{
if
(
typeof
storeAdminRange
==
'string'
&&
storeAdminRange
.
length
>
0
)
{
th
is
.
appData
.
storeAdminRange
=
JSON
.
parse
(
storeAdminRange
);
th
at
.
appData
.
storeAdminRange
=
JSON
.
parse
(
storeAdminRange
);
}
}
});
})
.
finally
(()
=>
that
.
loading
=
false
);
;
},
},
/**
/**
* @description: 获取授权信息
* @description: 获取授权信息
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment