Commit 5b779ede authored by 张俊's avatar 张俊

Merge branch 'dev' of https://cloud.wodcloud.com/git/apaas/apaas-v3-ui into dev

parents 7b34afe5 c138751e
...@@ -338,7 +338,15 @@ export default { ...@@ -338,7 +338,15 @@ export default {
_self.moreActionList = []; _self.moreActionList = [];
_self.showMoreActionList = true; _self.showMoreActionList = true;
_self.moreActionList = moreActionList.map((item) => ({ _self.moreActionList = moreActionList
.filter((item) => {
if (item.showRule) {
return item.showRule(row);
} else {
return true;
}
})
.map((item) => ({
id: row.id, id: row.id,
label: item.label, label: item.label,
callback() { callback() {
......
...@@ -124,9 +124,18 @@ export default { ...@@ -124,9 +124,18 @@ export default {
methods: { methods: {
init(filter) { init(filter) {
let params = { let params = {
sectors: (filter.service_domains && filter.service_domains.map((item) => item.value).join(",")) || "", sectors:
workareas: (filter.workareas && filter.workareas.map((item) => item.value).join(",")) || "", (filter.service_domains &&
states: (filter.states && filter.states.map((item) => item.value).join(",")) || "", filter.service_domains.map((item) => item.value).join(",")) ||
"",
workareas:
(filter.workareas &&
filter.workareas.map((item) => item.value).join(",")) ||
"",
states:
(filter.states &&
filter.states.map((item) => item.value).join(",")) ||
"",
page: filter.page, page: filter.page,
page_size: filter.size, page_size: filter.size,
}; };
...@@ -235,22 +244,37 @@ export default { ...@@ -235,22 +244,37 @@ export default {
{ {
label: "取消发布", label: "取消发布",
callback: this.cancelPublishItem, callback: this.cancelPublishItem,
showRule(item) {
return item.state === 2;
},
}, },
{ {
label: "部署", label: "部署",
callback: this.deployItem, callback: this.deployItem,
showRule(item) {
return item.state === 0;
},
}, },
{ {
label: "取消部署", label: "取消部署",
callback: this.cancelDeployItem, callback: this.cancelDeployItem,
showRule(item) {
return item.state === 1;
},
}, },
{ {
label: "复制", label: "复制",
callback: this.copyItem, callback: this.copyItem,
showRule(item) {
return true;
},
}, },
{ {
label: "删除", label: "删除",
callback: this.deleteItem, callback: this.deleteItem,
showRule(item) {
return item.state !== 2;
},
}, },
], ],
}, },
......
...@@ -1341,7 +1341,7 @@ export default { ...@@ -1341,7 +1341,7 @@ export default {
this.showDialog(); this.showDialog();
}, },
editItem(item) { editItem(item) {
this.$router.push(`/yygl/${this.level}/${this.type}/edit/${item.id}`); this.$router.push(`/yygl/${this.level}/${this.type}/edit/${item.app_id}`);
}, },
onLine(item) { onLine(item) {
this.dialogInfo.title = "提示"; this.dialogInfo.title = "提示";
......
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