mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-10 11:07:06 +00:00
[improvement][headless-fe] Unified the assistant's permission settings interaction to match the system style.
This commit is contained in:
@@ -226,15 +226,15 @@ const AgentForm: React.FC<Props> = ({ editAgent, onSaveAgent, onCreateToolBtnCli
|
|||||||
<Switch />
|
<Switch />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<FormItem
|
<FormItem
|
||||||
name="viewers"
|
name="admins"
|
||||||
label="可见用户"
|
label="管理员"
|
||||||
tooltip="选择用户后,该助理只对所选用户可见"
|
// rules={[{ required: true, message: '请设定数据库连接管理者' }]}
|
||||||
// label={
|
|
||||||
// <FormItemTitle title={'可见用户'} subTitle={'选择用户后,该助理只对所选用户可见'} />
|
|
||||||
// }
|
|
||||||
>
|
>
|
||||||
<SelectTMEPerson placeholder="请邀请团队成员" />
|
<SelectTMEPerson placeholder="请邀请团队成员" />
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
<FormItem tooltip="选择用户后,该助理只对所选用户可见" name="viewers" label="使用者">
|
||||||
|
<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) => {
|
||||||
|
|||||||
@@ -208,26 +208,26 @@ const ModelFieldForm: React.FC<Props> = ({
|
|||||||
// width: 200,
|
// width: 200,
|
||||||
render: (_: any, record: FieldItem) => {
|
render: (_: any, record: FieldItem) => {
|
||||||
const { type } = record;
|
const { type } = record;
|
||||||
if (type === EnumDataSourceType.PRIMARY) {
|
// if (type === EnumDataSourceType.PRIMARY) {
|
||||||
return (
|
// return (
|
||||||
<Space>
|
// <Space>
|
||||||
<Select
|
// <Select
|
||||||
style={{ minWidth: 150 }}
|
// style={{ minWidth: 150 }}
|
||||||
value={tagObjectId ? tagObjectId : undefined}
|
// value={tagObjectId ? tagObjectId : undefined}
|
||||||
placeholder="请选择所属对象"
|
// placeholder="请选择所属对象"
|
||||||
onChange={(value) => {
|
// onChange={(value) => {
|
||||||
onTagObjectChange?.(value);
|
// onTagObjectChange?.(value);
|
||||||
}}
|
// }}
|
||||||
options={tagObjectList.map((item: ISemantic.ITagObjectItem) => {
|
// options={tagObjectList.map((item: ISemantic.ITagObjectItem) => {
|
||||||
return {
|
// return {
|
||||||
label: item.name,
|
// label: item.name,
|
||||||
value: item.id,
|
// value: item.id,
|
||||||
};
|
// };
|
||||||
})}
|
// })}
|
||||||
/>
|
// />
|
||||||
</Space>
|
// </Space>
|
||||||
);
|
// );
|
||||||
}
|
// }
|
||||||
if (type === EnumDataSourceType.MEASURES) {
|
if (type === EnumDataSourceType.MEASURES) {
|
||||||
const agg = record.expr
|
const agg = record.expr
|
||||||
? fields.find((field) => field.expr === record.expr)?.agg
|
? fields.find((field) => field.expr === record.expr)?.agg
|
||||||
|
|||||||
Reference in New Issue
Block a user