Skip to content

Commit

Permalink
chore: 添加文案
Browse files Browse the repository at this point in the history
  • Loading branch information
JackySoft committed Oct 24, 2024
1 parent 6e69ce9 commit 0d19ea9
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 9 deletions.
2 changes: 1 addition & 1 deletion backend/koa/router/img.cloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ router.post('/upload/files', async (ctx) => {
const file = ctx.request.files.file;
const { userId, userName } = util.decodeToken(ctx);
const { total } = await imgcloud.getTotalByUserId(userId);
const message = total > 0 && userId == 49 ? 'Demo用户只能上传1个文件' : total > 5 && userId != 50 ? '普通用户最多可以上传5个文件' : '';
const message = total > 0 && userId == 49 ? 'Demo用户只能上传1个文件' : total > 10 && userId != 50 ? '普通用户最多可以上传10个文件' : '';
if (message) {
fs.unlink(file.filepath, (err) => {
if (err) {
Expand Down
16 changes: 15 additions & 1 deletion packages/editor/src/components/FlowNode/NodeModal.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button, Drawer, Space } from 'antd';
import { Alert, Button, Drawer, Space } from 'antd';
import { forwardRef, useImperativeHandle, useRef, useState } from 'react';
import FlowNode, { NodeType } from './FlowNode';

Expand Down Expand Up @@ -49,6 +49,20 @@ function NodeModal(_: any, ref: any) {
</>
}
>
<Alert
message="使用说明"
description={
<div>
<p>1. 事件流从左到右按顺序执行。</p>
<p>2. 参数会在事件流中流转,比如点击表格的编辑按钮,事件流默认可以取到表格对应的行数据对象,传递到下一个节点。</p>
<p>3. 可以通过脚本运行来干预数据输出和下一个节点的流转。</p>
<p>4. 获取表单数据时,可以直接点开行为配置,点击获取表单值,选择对应表单即可。</p>
</div>
}
type="info"
showIcon
style={{ position: 'absolute', top: 100, zIndex: 99 }}
/>
<FlowNode ref={nodeRef} />
</Drawer>
);
Expand Down
12 changes: 6 additions & 6 deletions packages/editor/src/packages/Scene/MarsTable/ColumnSetting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -292,25 +292,25 @@ const DisplaySetting = () => {
</Button>
}
>
<Row gutter={15} style={{ marginBottom: -24 }}>
<Col span={6}>
<Row gutter={5} style={{ marginBottom: -24 }}>
<Col span={7}>
<Form.Item {...restField} name={[name, 'text']} label="名称">
<VariableBind />
</Form.Item>
</Col>
<Col span={4}>
<Col span={3}>
<Form.Item label="danger" name={[name, 'danger']} labelCol={{ span: 14 }} valuePropName="checked">
<Switch />
</Form.Item>
</Col>
<Col span={7}>
<Form.Item label="权限标识" tooltip="项目配置后台对应的按钮code或者uac中对应的按钮filedName" name={[name, 'authCode']}>
<Form.Item label="权限标识" tooltip="项目配置后台对应的按钮code" name={[name, 'authCode']} labelCol={{ span: 8 }}>
<Input placeholder="按钮Code" />
</Form.Item>
</Col>
<Col span={7}>
<Form.Item label="三方脚本" tooltip="如果是微服务集成,需要通过脚本来控制按钮权限" name={[name, 'authScript']}>
<VariableBind placeholder="跨服务时,执行脚本" />
<Form.Item label="三方脚本" tooltip="通过脚本实现第三方系统按钮权限" name={[name, 'authScript']} labelCol={{ span: 8 }}>
<VariableBind placeholder="自定义权限,执行脚本" />
</Form.Item>
<Form.Item name={[name, 'eventName']} hidden>
<Input />
Expand Down
6 changes: 5 additions & 1 deletion packages/editor/src/pages/home/cloud/ImgCloud.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ export default function ImgCloud() {
return (
<div className={styles.imgCloud}>
<div className={styles.content}>
<Alert type="info" showIcon message="Marsview提供在线CDN服务,方便对远程图片和文件的管理;普通用户最多可上传5个文件,每个文件最大支持5M;" />
<Alert
type="info"
showIcon
message="Marsview提供在线图片云服务,在开发静态页面过程中,涉及到元素背景图片可直接通过云服务完成;普通用户最多可上传10个文件,每个文件最大支持5M;"
/>
<Space size={20}>
<Upload {...props}>
<Button type="primary" icon={<UploadOutlined />}>
Expand Down

0 comments on commit 0d19ea9

Please sign in to comment.