From 75723bc86d2b5ee9652004dd23a1055cfe953508 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= <2897217417@qq.com>
Date: Tue, 11 Apr 2023 13:48:56 +0800
Subject: [PATCH] =?UTF-8?q?bot=20webhook=E5=A2=9E=E5=8A=A0=E8=87=AA?=
=?UTF-8?q?=E5=AE=9A=E4=B9=89=E4=BA=8B=E4=BB=B6-=E7=BC=96=E8=BE=91?=
=?UTF-8?q?=E4=BF=A1=E6=81=AF=E3=80=81=E5=AE=89=E8=A3=85=E5=BC=B9=E7=AA=97?=
=?UTF-8?q?=E6=98=BE=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../bot/exploit/configuration/compenent/jurisdiction.jsx | 3 ++-
src/softbot/softBotDetail/index.jsx | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/forge/SecuritySetting/bot/exploit/configuration/compenent/jurisdiction.jsx b/src/forge/SecuritySetting/bot/exploit/configuration/compenent/jurisdiction.jsx
index c23c8c721..58d4ae689 100644
--- a/src/forge/SecuritySetting/bot/exploit/configuration/compenent/jurisdiction.jsx
+++ b/src/forge/SecuritySetting/bot/exploit/configuration/compenent/jurisdiction.jsx
@@ -114,7 +114,7 @@ function Jurisdiction(props){
疑修的打开、关闭、编辑、分配、评论
- {getFieldDecorator("juris_diction_issue",{rules:[{validator: jurisDictionPrValidator}],initialValue: resource[0].value, getValueFromEvent: issueControl})(
+ {getFieldDecorator("juris_diction_issue",{rules:[{validator: jurisDictionPrValidator}],initialValue: botDetail.limit_and_events.juris_diction_issue, getValueFromEvent: issueControl})(
@@ -153,6 +153,7 @@ function Jurisdiction(props){
{(codeSelectValue !== resource[0].value || prSelectValue !== resource[0].value) && issueSelectValue !== resource[0].value && }
{issueSelectValue !== resource[0].value &&
{getFieldDecorator("event_issue",{
+ initialValue: botDetail.limit_and_events.event_issue ? botDetail.limit_and_events.event_issue.split(',').map(item=>item = parseInt(item)) : [],
rules:[{validator: (rule, value, callback)=>{eventValidator(rule, value, callback)}}]
})(
diff --git a/src/softbot/softBotDetail/index.jsx b/src/softbot/softBotDetail/index.jsx
index ccf383f7c..3aa711067 100644
--- a/src/softbot/softBotDetail/index.jsx
+++ b/src/softbot/softBotDetail/index.jsx
@@ -221,7 +221,8 @@ function SoftBotDEtail(props){
权限信息
{detail && 代码库{detail.limit_and_events.juris_diction_code === 2 ? '无' : detail.limit_and_events.juris_diction_code === 1 ? '读写' : '只读'}权限
}
- {detail && 合并请求(PR){detail.limit_and_events.juris_diction_pr === 2 ? '无' : detail.limit_and_events.juris_diction_pr === 1 ? '读写' : '只读'}权限
}
+ {detail && 合并请求(PR){detail.limit_and_events.juris_diction_pr === 2 ? '无' : detail.limit_and_events.juris_diction_pr === 1 ? '读写' : '只读'}权限
}
+ {detail && 疑修(Issue){detail.limit_and_events.juris_diction_issue === 2 ? '无' : detail.limit_and_events.juris_diction_issue === 1 ? '读写' : '只读'}权限
}