diff --git a/lib/components/userEntityGrant/cellButton/index.d.ts b/lib/components/userEntityGrant/cellButton/index.d.ts
deleted file mode 100644
index ff23589ce..000000000
--- a/lib/components/userEntityGrant/cellButton/index.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-///
-///
-declare const _default: (props: import("oak-frontend-base").ReactComponentProps) => import("react").ReactElement>;
-export default _default;
diff --git a/lib/components/userEntityGrant/cellButton/index.js b/lib/components/userEntityGrant/cellButton/index.js
deleted file mode 100644
index 496e68ec4..000000000
--- a/lib/components/userEntityGrant/cellButton/index.js
+++ /dev/null
@@ -1,44 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var tslib_1 = require("tslib");
-exports.default = OakComponent({
- entity: 'userEntityGrant',
- isList: false,
- formData: function (_a) {
- var data = _a.data;
- return {};
- },
- actions: ['disable'],
- methods: {
- tapAction: function (action) {
- return tslib_1.__awaiter(this, void 0, void 0, function () {
- var id, _a;
- return tslib_1.__generator(this, function (_b) {
- switch (_b.label) {
- case 0:
- id = this.props.oakId;
- _a = action;
- switch (_a) {
- case 'disable': return [3 /*break*/, 1];
- }
- return [3 /*break*/, 3];
- case 1:
- this.update({
- expired: true,
- }, 'disable');
- return [4 /*yield*/, this.execute()];
- case 2:
- _b.sent();
- return [3 /*break*/, 4];
- case 3:
- {
- return [3 /*break*/, 4];
- }
- _b.label = 4;
- case 4: return [2 /*return*/];
- }
- });
- });
- },
- },
-});
diff --git a/lib/components/userEntityGrant/cellButton/web.d.ts b/lib/components/userEntityGrant/cellButton/web.d.ts
deleted file mode 100644
index bb58a50b0..000000000
--- a/lib/components/userEntityGrant/cellButton/web.d.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-///
-import { EntityDict } from '../../../general-app-domain';
-import { WebComponentProps } from 'oak-frontend-base';
-export default function Render(props: WebComponentProps Promise;
-}>): JSX.Element[] | null;
diff --git a/lib/components/userEntityGrant/cellButton/web.js b/lib/components/userEntityGrant/cellButton/web.js
deleted file mode 100644
index 2e9c124e0..000000000
--- a/lib/components/userEntityGrant/cellButton/web.js
+++ /dev/null
@@ -1,41 +0,0 @@
-"use strict";
-Object.defineProperty(exports, "__esModule", { value: true });
-var tslib_1 = require("tslib");
-var jsx_runtime_1 = require("react/jsx-runtime");
-var antd_1 = require("antd");
-function Render(props) {
- var _this = this;
- var data = props.data, methods = props.methods;
- var oakLegalActions = data.oakLegalActions;
- var tapAction = methods.tapAction, t = methods.t;
- return (oakLegalActions === null || oakLegalActions === void 0 ? void 0 : oakLegalActions.length) > 0
- ? oakLegalActions.map(function (ele) {
- var btnName = t("userEntityGrant:action.".concat(ele));
- if (ele === 'remove') {
- btnName = t("common:action.".concat(ele));
- }
- return ((0, jsx_runtime_1.jsx)(antd_1.Button, tslib_1.__assign({ type: "link", onClick: function (event) {
- var modal = antd_1.Modal.confirm({
- title: "\u786E\u8BA4".concat(btnName, "\u8BE5\u6388\u6743\u8BB0\u5F55\u5417\uFF1F"),
- okText: '确定',
- cancelText: '取消',
- onOk: function (e) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
- return tslib_1.__generator(this, function (_a) {
- switch (_a.label) {
- case 0: return [4 /*yield*/, tapAction(ele)];
- case 1:
- _a.sent();
- modal.destroy();
- return [2 /*return*/];
- }
- });
- }); },
- onCancel: function (e) {
- modal.destroy();
- },
- });
- } }, { children: btnName })));
- })
- : null;
-}
-exports.default = Render;
diff --git a/lib/components/userEntityGrant/cellButton/web.module.less b/lib/components/userEntityGrant/cellButton/web.module.less
deleted file mode 100644
index e69de29bb..000000000
diff --git a/lib/pages/userEntityGrant/list/web.js b/lib/pages/userEntityGrant/list/web.js
index 52c8ef799..120d9ae03 100644
--- a/lib/pages/userEntityGrant/list/web.js
+++ b/lib/pages/userEntityGrant/list/web.js
@@ -68,21 +68,6 @@ function render(props) {
return ((0, jsx_runtime_1.jsxs)(antd_1.Typography.Text, tslib_1.__assign({ type: record.expired ? 'danger' : 'success' }, { children: [record.expired ? '失效' : '有效', !record.expired && ((0, jsx_runtime_1.jsxs)(antd_1.Typography.Text, { children: ["\u00A0", (0, dayjs_1.default)(record.expiresAt).format('YYYY-MM-DD HH:mm')] }))] })));
},
},
- // {
- // dataIndex: 'op',
- // width: 200,
- // title: '操作',
- // align: 'center',
- // render: (value, record, index) => {
- // return (
- //
- // );
- // },
- // fixed: 'right',
- // },
], pagination: {
total: total,
pageSize: pageSize,
diff --git a/src/components/userEntityGrant/cellButton/index.ts b/src/components/userEntityGrant/cellButton/index.ts
deleted file mode 100644
index a59b68b7b..000000000
--- a/src/components/userEntityGrant/cellButton/index.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-export default OakComponent({
- entity: 'userEntityGrant',
- isList: false,
- formData({ data }) {
- return {};
- },
- actions: ['disable'],
- methods: {
- async tapAction(action: string) {
- const { oakId: id } = this.props;
- switch (action) {
- case 'disable': {
- this.update({
- expired: true,
- }, 'disable');
- await this.execute();
- break;
- }
- default: {
- break;
- }
- }
- },
- },
-});
diff --git a/src/components/userEntityGrant/cellButton/web.module.less b/src/components/userEntityGrant/cellButton/web.module.less
deleted file mode 100644
index e69de29bb..000000000
diff --git a/src/components/userEntityGrant/cellButton/web.tsx b/src/components/userEntityGrant/cellButton/web.tsx
deleted file mode 100644
index 9dcdcf78a..000000000
--- a/src/components/userEntityGrant/cellButton/web.tsx
+++ /dev/null
@@ -1,53 +0,0 @@
-import React from 'react';
-import { Button, Modal } from 'antd';
-
-import { EntityDict } from '../../../general-app-domain';
-import { WebComponentProps } from 'oak-frontend-base';
-
-export default function Render(
- props: WebComponentProps<
- EntityDict,
- 'userEntityGrant',
- true,
- {
- oakLegalActions: string[];
- },
- {
- tapAction: (action: string) => Promise;
- }
- >
-) {
- const { data, methods } = props;
- const { oakLegalActions } = data;
- const { tapAction, t } = methods;
-
- return oakLegalActions?.length > 0
- ? oakLegalActions.map((ele: string) => {
- let btnName = t(`userEntityGrant:action.${ele}`);
- if (ele === 'remove') {
- btnName = t(`common:action.${ele}`);
- }
- return (
-
- );
- })
- : null;
-}
diff --git a/src/pages/userEntityGrant/list/web.tsx b/src/pages/userEntityGrant/list/web.tsx
index fd95b9c6f..7baf21e60 100644
--- a/src/pages/userEntityGrant/list/web.tsx
+++ b/src/pages/userEntityGrant/list/web.tsx
@@ -2,7 +2,6 @@ import * as React from 'react';
import { Table, Button, Space, Typography, Modal } from 'antd';
import dayjs from 'dayjs';
import PageHeader from '../../../components/common/pageHeader';
-import CellButton from '../../../components/userEntityGrant/cellButton';
import { EntityDict } from '../../../general-app-domain';
import { WebComponentProps } from 'oak-frontend-base';
@@ -122,21 +121,6 @@ export default function render(
);
},
},
- // {
- // dataIndex: 'op',
- // width: 200,
- // title: '操作',
- // align: 'center',
- // render: (value, record, index) => {
- // return (
- //
- // );
- // },
- // fixed: 'right',
- // },
]}
pagination={{
total,