From ed6f35194ad0aa8c41019356e678cdf2982a08f7 Mon Sep 17 00:00:00 2001 From: wkj <278599135@qq.com> Date: Tue, 17 Jan 2023 19:22:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=9C=E4=B8=BA=E7=BB=84=E4=BB=B6=E6=97=B6?= =?UTF-8?q?=20=E9=9A=90=E8=97=8F=E8=BF=94=E5=9B=9E=E9=94=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../upsert/byUserEntityGrant/web.pc.js | 2 +- .../upsert/byUserEntityGrant/web.pc.tsx | 35 +++++++------------ 2 files changed, 14 insertions(+), 23 deletions(-) diff --git a/lib/pages/userRelation/upsert/byUserEntityGrant/web.pc.js b/lib/pages/userRelation/upsert/byUserEntityGrant/web.pc.js index 88b29754e..c3ecf96b3 100644 --- a/lib/pages/userRelation/upsert/byUserEntityGrant/web.pc.js +++ b/lib/pages/userRelation/upsert/byUserEntityGrant/web.pc.js @@ -9,7 +9,7 @@ function render(props) { var _a = props.data, relations = _a.relations, userEntityGrant = _a.userEntityGrant, userEntityGrantId = _a.userEntityGrantId, period = _a.period; var _b = userEntityGrant || {}, relation = _b.relation, type = _b.type, number = _b.number, entity = _b.entity; var _c = props.methods, update = _c.update, t = _c.t, onBack = _c.onBack, confirm = _c.confirm, setInit = _c.setInit, setPeriod = _c.setPeriod; - var P = !!userEntityGrantId ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(antd_1.Alert, { showIcon: true, message: "\u8BF7\u5C06\u4E8C\u7EF4\u7801\u53D1\u7ED9\u5F85\u5206\u4EAB\u6743\u9650\u7684\u7528\u6237\u626B\u63CF", type: "info", style: { marginBottom: 16 } }), (0, jsx_runtime_1.jsx)(detail_1.default, { oakId: userEntityGrantId, oakAutoUnmount: true, oakPath: "$userRelation/upsert/byUserEntityGrant-userEntityGrant/detail" }), (0, jsx_runtime_1.jsx)("div", tslib_1.__assign({ style: { + var P = !!userEntityGrantId ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(antd_1.Alert, { showIcon: true, message: "\u8BF7\u5C06\u4E8C\u7EF4\u7801\u53D1\u7ED9\u5F85\u5206\u4EAB\u6743\u9650\u7684\u7528\u6237\u626B\u63CF", type: "info", style: { marginBottom: 16 } }), (0, jsx_runtime_1.jsx)(detail_1.default, { showBack: false, oakId: userEntityGrantId, oakAutoUnmount: true, oakPath: "$userRelation/upsert/byUserEntityGrant-userEntityGrant/detail" }), (0, jsx_runtime_1.jsx)("div", tslib_1.__assign({ style: { width: '100%', display: 'flex', justifyContent: 'flex-end', diff --git a/src/pages/userRelation/upsert/byUserEntityGrant/web.pc.tsx b/src/pages/userRelation/upsert/byUserEntityGrant/web.pc.tsx index a54462dd8..117cf995e 100644 --- a/src/pages/userRelation/upsert/byUserEntityGrant/web.pc.tsx +++ b/src/pages/userRelation/upsert/byUserEntityGrant/web.pc.tsx @@ -5,7 +5,6 @@ import { WebComponentProps } from 'oak-frontend-base'; import { EntityDict } from '../../../../general-app-domain'; import Style from './web.module.less'; -import display from '../../../../components/extraFile/display'; export default function render(props: WebComponentProps -
-
@@ -66,8 +65,7 @@ export default function render(props: WebComponentProps ({ value: ele, - label: - (t(entity + ':r.' + ele)) || ele, + label: t(entity + ':r.' + ele) || ele, }))} /> @@ -113,21 +111,14 @@ export default function render(props: WebComponentProps - - + - ) + ); return (
{P}