mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-12 12:37:55 +00:00
[improvement][headless-fe] Added permissions management for agents.
This commit is contained in:
@@ -7,3 +7,12 @@
|
|||||||
.userText {
|
.userText {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.selectPerson {
|
||||||
|
:global {
|
||||||
|
.ant-select-selection-item {
|
||||||
|
color: rgba(0, 0, 0, 0.88)!important;
|
||||||
|
background-color: rgba(0, 0, 0, 0.06)!important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -37,6 +37,7 @@ const SelectTMEPerson: FC<Props> = ({ placeholder, value, isMultiple = true, onC
|
|||||||
mode={isMultiple ? 'multiple' : undefined}
|
mode={isMultiple ? 'multiple' : undefined}
|
||||||
allowClear
|
allowClear
|
||||||
showSearch
|
showSearch
|
||||||
|
className={styles.selectPerson}
|
||||||
onChange={onChange}
|
onChange={onChange}
|
||||||
>
|
>
|
||||||
{userList.map((item) => {
|
{userList.map((item) => {
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ import { uuid, jsonParse } from '@/utils/utils';
|
|||||||
import ToolsSection from './ToolsSection';
|
import ToolsSection from './ToolsSection';
|
||||||
import globalStyles from '@/global.less';
|
import globalStyles from '@/global.less';
|
||||||
import { QuestionCircleOutlined } from '@ant-design/icons';
|
import { QuestionCircleOutlined } from '@ant-design/icons';
|
||||||
|
import SelectTMEPerson from '@/components/SelectTMEPerson';
|
||||||
|
import FormItemTitle from '@/components/FormHelper/FormItemTitle';
|
||||||
import { getLlmModelTypeList, getLlmModelAppList, getLlmList } from '../../services/system';
|
import { getLlmModelTypeList, getLlmModelAppList, getLlmList } from '../../services/system';
|
||||||
import MemorySection from './MemorySection';
|
import MemorySection from './MemorySection';
|
||||||
|
|
||||||
@@ -223,7 +225,16 @@ const AgentForm: React.FC<Props> = ({ editAgent, onSaveAgent, onCreateToolBtnCli
|
|||||||
>
|
>
|
||||||
<Switch />
|
<Switch />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
<FormItem
|
||||||
|
name="viewers"
|
||||||
|
label="可见用户"
|
||||||
|
tooltip="选择用户后,该助理只对所选用户可见"
|
||||||
|
// label={
|
||||||
|
// <FormItemTitle title={'可见用户'} subTitle={'选择用户后,该助理只对所选用户可见'} />
|
||||||
|
// }
|
||||||
|
>
|
||||||
|
<SelectTMEPerson placeholder="请邀请团队成员" />
|
||||||
|
</FormItem>
|
||||||
<FormItem name="examples" label="示例问题">
|
<FormItem name="examples" label="示例问题">
|
||||||
<div className={styles.paramsSection}>
|
<div className={styles.paramsSection}>
|
||||||
{examples.map((example) => {
|
{examples.map((example) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user