|
|
@@ -5,9 +5,9 @@
|
|
|
<Button type="primary" @click="handleCreate">
|
|
|
{{ getI18nCreateMenu }}
|
|
|
</Button>
|
|
|
- <Button type="primary" danger :disabled="getCanBatchDelete" @click="handleBatchDelete">
|
|
|
+ <!-- <Button type="primary" danger :disabled="getCanBatchDelete" @click="handleBatchDelete">
|
|
|
批量删除
|
|
|
- </Button>
|
|
|
+ </Button> -->
|
|
|
</template>
|
|
|
<template #action="{ record }">
|
|
|
<TableAction :actions="[
|
|
|
@@ -43,7 +43,7 @@ import { computed, defineComponent, nextTick } from 'vue';
|
|
|
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
|
|
|
|
|
// 加载表格数据
|
|
|
-import { list } from '/@/api/authorize/authorize';
|
|
|
+import { list, deleteApp } from '/@/api/authorize/authorize';
|
|
|
// 加载自定义侧边弹出框 组件
|
|
|
import { useDrawer } from '/@/components/Drawer';
|
|
|
|
|
|
@@ -64,7 +64,7 @@ export default defineComponent({
|
|
|
const [registerDrawer, { openDrawer }] = useDrawer(); //使用右侧弹出框
|
|
|
const { t } = useI18n(); //加载国际化
|
|
|
// 新增菜单
|
|
|
- const getI18nCreateMenu = computed(() => t('routes.common.system.pageSystemTitleCreateMenu'));
|
|
|
+ const getI18nCreateMenu = computed(() => ('新增应用'));
|
|
|
|
|
|
const [
|
|
|
registerTable,
|
|
|
@@ -145,9 +145,12 @@ export default defineComponent({
|
|
|
*/
|
|
|
async function handleDelete(record: Recordable) {
|
|
|
try {
|
|
|
- let ids = isArray(record.departid) ? record.departid : [record.departid];
|
|
|
- debugger;
|
|
|
- await DeleteStructure({ departid: ids });
|
|
|
+ // let ids = isArray(record.departid) ? record.departid : [record.departid];
|
|
|
+ // debugger;
|
|
|
+ await deleteApp({
|
|
|
+ "systemId": record.SYSID,
|
|
|
+ "systemKey": record.KEY,
|
|
|
+ });
|
|
|
notification.success({
|
|
|
message: '成功',
|
|
|
description: '删除机构成功',
|