优化起草合同的样式,隐藏评查点设置的自定义代码
This commit is contained in:
@@ -199,7 +199,9 @@ export function PlaceholderForm({
|
||||
onChange={(e) => handleFieldChange(field.key, e.target.value)}
|
||||
onClick={(e) => handleFieldClick(e, field.key)}
|
||||
placeholder={field.placeholder || `请输入${field.label}`}
|
||||
className="flex-1 px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all duration-150 resize-none bg-white text-gray-900 placeholder-gray-400 text-sm"
|
||||
className="flex-1 px-3 py-2 border border-gray-300 rounded-lg focus:outline-none
|
||||
focus:ring-2 focus:ring-[#004d38]/20 focus:border-[#004d38] transition-all duration-150
|
||||
resize-none bg-white text-gray-900 placeholder-gray-400 text-sm"
|
||||
rows={3}
|
||||
/>
|
||||
) : (
|
||||
@@ -209,7 +211,9 @@ export function PlaceholderForm({
|
||||
onChange={(e) => handleFieldChange(field.key, e.target.value)}
|
||||
onClick={(e) => handleFieldClick(e, field.key)}
|
||||
placeholder={field.placeholder || `请输入${field.label}`}
|
||||
className="flex-1 px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary transition-all duration-150 bg-white text-gray-900 placeholder-gray-400 text-sm"
|
||||
className="flex-1 px-3 py-2 border border-gray-300 rounded-lg
|
||||
focus:outline-none focus:ring-2 focus:ring-[#004d38]/20 focus:border-[#004d38]
|
||||
transition-all duration-150 bg-white text-gray-900 placeholder-gray-400 text-sm"
|
||||
/>
|
||||
)}
|
||||
|
||||
|
||||
@@ -1993,7 +1993,7 @@ export function ReviewSettings({
|
||||
<option value="logic">逻辑判断</option>
|
||||
<option value="regex">正则表达式</option>
|
||||
<option value="ai">大模型判断</option>
|
||||
<option value="code">自定义代码</option>
|
||||
{/* <option value="code">自定义代码</option> */}
|
||||
</select>
|
||||
<div className="form-tip">选择评查类型后将显示对应的配置项</div>
|
||||
</div>
|
||||
|
||||
@@ -97,6 +97,7 @@ export function useChatApps() {
|
||||
if (apps.length > 0) {
|
||||
// 查找默认应用
|
||||
const defaultApp = apps.find((item) => item.is_default) || apps[0];
|
||||
// console.log('[useChatApps] 默认对话应用:', apps);
|
||||
setCurrentChatApp(defaultApp);
|
||||
} else {
|
||||
// 如果没有配置应用,尝试获取默认应用
|
||||
|
||||
@@ -252,7 +252,7 @@ export const EVALUATION_OPTIONS = {
|
||||
{ value: 'logic', label: '逻辑判断' },
|
||||
{ value: 'regex', label: '正则表达式' },
|
||||
{ value: 'ai', label: '大模型判断' },
|
||||
{ value: 'code', label: '自定义代码' }
|
||||
// { value: 'code', label: '自定义代码' }
|
||||
],
|
||||
|
||||
// 逻辑操作符选项
|
||||
|
||||
Reference in New Issue
Block a user