diff --git a/src/pages/authority/organization.vue b/src/pages/authority/organization.vue index 5c7b8849c3d3e3c13fa0c70b5fb12e1dfb0ce9e2..6ffed0bfcd8daf8e8f695230d4378cb488da1635 100644 --- a/src/pages/authority/organization.vue +++ b/src/pages/authority/organization.vue @@ -27,7 +27,7 @@
@@ -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) { diff --git a/src/router/index.js b/src/router/index.js index 88ee2d32888a24ec6bc1f0453778757b5088e754..c2df22fd33c9b4eb85dcbb951d9fbdc3719434e1 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -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"), },