Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
e958a969
Commit
e958a969
authored
Jul 14, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
应用列表操作
parent
22c8b3d2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
68 additions
and
16 deletions
+68
-16
src/pages/workbench/yygl/yyglList.vue
src/pages/workbench/yygl/yyglList.vue
+68
-16
No files found.
src/pages/workbench/yygl/yyglList.vue
View file @
e958a969
...
...
@@ -341,19 +341,45 @@ export default {
actionList
:
[
{
getLabel
(
item
)
{
return
item
.
online_state
==
0
?
"
上架
"
:
"
下架
"
;
if
(
item
.
online_state
==
0
)
{
return
"
上架
"
;
}
else
{
return
"
下架
"
;
}
},
callback
(
item
)
{
item
.
online_state
==
0
?
_self
.
soldUpItem
(
item
)
:
_self
.
soldOutItem
(
item
);
if
(
item
.
online_state
==
0
&&
// 未上架
item
.
up_deploy_status
==
1
&&
// 申请上架中
item
.
up_platform_status
==
0
// 未上线
)
{
return
_self
.
soldUpItem
(
item
);
// 上架的操作
}
else
if
(
item
.
online_state
==
1
&&
// 开发者应用
item
.
up_deploy_status
==
3
&&
// 申请下架中
item
.
up_platform_status
==
0
// 未上线
)
{
return
_self
.
soldOutItem
(
item
);
// 下架的操作
}
return
null
;
},
disabledRule
(
item
)
{
return
(
item
.
online_state
==
2
||
item
.
up_deploy_status
==
0
||
item
.
up_deploy_status
==
2
);
if
(
item
.
online_state
==
0
&&
// 未上架
item
.
up_deploy_status
==
1
&&
// 申请上架中
item
.
up_platform_status
==
0
// 未上线
)
{
return
false
;
// 可上架
}
else
if
(
item
.
online_state
==
1
&&
// 开发者应用
item
.
up_deploy_status
==
3
&&
// 申请下架中
item
.
up_platform_status
==
0
// 未上线
)
{
return
false
;
// 可下架
}
return
true
;
},
},
],
...
...
@@ -649,18 +675,44 @@ export default {
},
{
getLabel
(
item
)
{
return
item
.
online_state
==
0
?
"
上线
"
:
"
下线
"
;
if
(
item
.
online_state
==
2
)
{
return
"
下线
"
;
}
else
{
return
"
上线
"
;
}
},
callback
(
item
)
{
item
.
online_state
==
0
?
_self
.
onLine
(
item
)
:
_self
.
offLine
(
item
);
if
(
item
.
online_state
==
1
&&
// 开发者应用
item
.
up_deploy_status
==
2
&&
// 已上架
item
.
up_platform_status
==
1
// 申请上线中
)
{
return
_self
.
onLine
(
item
);
// 上线的操作
}
else
if
(
item
.
online_state
==
2
&&
// 平台应用
item
.
up_deploy_status
==
2
&&
// 已上架
item
.
up_platform_status
==
3
// 申请下线中
)
{
return
_self
.
offLine
(
item
);
// 下线的操作
}
else
{
return
null
;
}
},
disabledRule
(
item
)
{
if
(
item
.
online_state
==
0
)
{
return
item
.
up_platform_status
!=
0
;
if
(
item
.
online_state
==
1
&&
item
.
up_deploy_status
==
2
&&
item
.
up_platform_status
==
1
)
{
return
false
;
// 可上线
}
else
if
(
item
.
online_state
==
2
&&
item
.
up_deploy_status
==
2
&&
item
.
up_platform_status
==
3
)
{
return
false
;
// 可下线
}
else
{
return
item
.
up_platform_status
!=
2
;
return
true
;
}
},
},
...
...
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