Skip to content

Commit

Permalink
Merge pull request #309 from actiontech/fix/issue-1658-4
Browse files Browse the repository at this point in the history
[chore]: Add tips fro test wechat form
  • Loading branch information
Rain-1214 authored Jul 28, 2023
2 parents 86710b0 + f50ab85 commit 39bbc2a
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@
* [ ] [chore]: 项目概览界面中数据源最小单位改成1,数据源tips提示文案修改, 没有任何工单时总计显示 0. <https://github.com/actiontech/sqle-ui/pull/305>
* [ ] [fix]:修复在创建自定义规则时先修改了按钮状态然后才进行表单校验, 导致按钮状态未复原的问题 <https://github.com/actiontech/sqle-ui/pull/306>
* [ ] [feature]: 项目概览的工单状态报表添加 正在上线 状态 <https://github.com/actiontech/sqle-ui/pull/308>
* [ ] [chore]: 测试企业微信配置时接收着UserId 添加 tips <https://github.com/actiontech/sqle-ui/pull/309>
1 change: 1 addition & 0 deletions src/locale/zh-CN/system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ export default {

test: '测试',
receiveWechat: '接收者UserID',
receiveWechatTips: '企业微信成员账号',
testing: '正在向{{id}}发送测试消息...',
testSuccess: '测试消息发送成功',
},
Expand Down
1 change: 1 addition & 0 deletions src/page/System/Wechat/Wechat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ const Wechat = () => {
<Space direction="vertical" className="full-width-element">
<Form form={testForm}>
<Form.Item
tooltip={t('system.wechat.receiveWechatTips')}
style={{ marginBottom: 0 }}
name="receiveId"
label={t('system.wechat.receiveWechat')}
Expand Down
23 changes: 23 additions & 0 deletions src/page/System/Wechat/__snapshots__/Wechat.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -861,6 +861,29 @@ exports[`wechat should send test request when user input receiver id and submit
title="system.wechat.receiveWechat"
>
system.wechat.receiveWechat
<span
aria-label="question-circle"
class="anticon anticon-question-circle ant-form-item-tooltip"
role="img"
title=""
>
<svg
aria-hidden="true"
data-icon="question-circle"
fill="currentColor"
focusable="false"
height="1em"
viewBox="64 64 896 896"
width="1em"
>
<path
d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"
/>
<path
d="M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"
/>
</svg>
</span>
</label>
</div>
<div
Expand Down

0 comments on commit 39bbc2a

Please sign in to comment.