Commit 61618199 authored by 徐一鸣's avatar 徐一鸣

组织管理列表页交互

parent 990988dd
......@@ -27,7 +27,7 @@
</div>
<organization-list
:data="organizationList"
details-url="/authority/organization/"
details-url="/authority/organizationdetail/"
@delete-action="deleteAction"
></organization-list>
<div class="flex_grow"></div>
......@@ -165,34 +165,20 @@ export default {
}),
methods: {
addOrganization() {
console.log("add organization");
this.$router.push("/authority/organizationedit");
},
searchAction() {
console.log(this.searchFilter);
},
deleteAction(item) {
if (this.cardType === 0) {
this.confirmOptions.title = "删除提示";
this.confirmOptions.message =
"您需要先进行应用商店下架申请,应用处于下架状态时才能进行删除操作。";
this.confirmOptions.btnCancelText = "";
this.confirmOptions.btnSubmitText = "";
this.confirmOptions.confirmSubmit = () => {
console.log("deleteItem - " + item.name);
this.$refs.myConfirm.hideModel();
};
} else if (this.cardType === 1) {
this.confirmOptions.title = "是否删除部署的应用";
this.confirmOptions.message =
"该操作会导致正在调用该应用的用户被迫终止对应用的调用,删除前需向正在调用该应用的用户发送通知,自通知发送之日起,2日后应用将被删除。";
this.confirmOptions.btnCancelText = "";
this.confirmOptions.btnSubmitText = "发送通知";
this.confirmOptions.confirmSubmit = () => {
console.log("deleteItem - " + item.name);
this.$refs.myConfirm.hideModel();
};
}
this.confirmOptions.title = "删除提示";
this.confirmOptions.message = `确认删除${item.name}吗?`;
this.confirmOptions.btnCancelText = "";
this.confirmOptions.btnSubmitText = "";
this.confirmOptions.confirmSubmit = () => {
console.log("deleteItem - " + item.name);
this.$refs.myConfirm.hideModel();
};
this.$refs.myConfirm.showModel();
},
changePageSize(value) {
......
......@@ -229,7 +229,7 @@ export default new Router({
component: () => import("@/pages/authority/organization"),
},
{
path: "/authority/organizationdetail", // 组织管理详情
path: "/authority/organizationdetail/:id", // 组织管理详情
name: "organizationdetail",
component: () => import("@/pages/authority/organizationdetail"),
},
......
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