浏览代码

[Mod 0000]修改AI助手定时任务和子智能体弹框表单内容

wangkeyi 3 周之前
父节点
当前提交
92b0f849cd

+ 4 - 4
src/views/ventAI/manageAssistent/components/AiAssistantModal.vue

@@ -2009,8 +2009,8 @@
       background-image: var(--img-chat-close-bg);
       background-repeat: no-repeat;
       background-size: 100% 100%;
-      top: 0px;
-      right: 0px;
+      top: 12px;
+      right: 20px;
       width: 38px;
       height: 38px;
       .zxm-modal-close-x {
@@ -2026,8 +2026,8 @@
 
     .maximize-btn {
       position: absolute;
-      top: 0px;
-      right: 56px;
+      top: 12px;
+      right: 72px;
       width: 38px;
       height: 38px;
       background-image: var(--img-chat-close-bg);

+ 2 - 2
src/views/ventAI/manageAssistent/components/chatModal/CreateScheduleModal.vue

@@ -17,12 +17,12 @@
       <div class="form-item">
         <label class="form-label">调度方式</label>
         <div class="mode-switch">
-          <div :class="['mode-btn', { active: mode === 'friendly' }]" @click="switchMode('friendly')">友好模式</div>
+          <div :class="['mode-btn', { active: mode === 'friendly' }]" @click="switchMode('friendly')">简单模式</div>
           <div :class="['mode-btn', { active: mode === 'cron' }]" @click="switchMode('cron')">专业模式</div>
         </div>
       </div>
 
-      <!-- 友好模式 -->
+      <!-- 简单模式 -->
       <template v-if="mode === 'friendly'">
         <div class="form-item">
           <label class="form-label">执行频率 <span class="required">*</span></label>

+ 5 - 12
src/views/ventAI/manageAssistent/components/chatModal/CreateSubAgentModal.vue

@@ -11,12 +11,7 @@
     <div class="sub-agent-form" v-if="!toolsLoading">
       <div class="form-item">
         <label class="form-label">名称 <span class="required">*</span></label>
-        <a-input
-          v-model:value="form.name"
-          placeholder="英文字母、数字、_、-(1-50字符)"
-          :maxlength="50"
-          :disabled="isEdit"
-        />
+        <a-input v-model:value="form.name" placeholder="英文字母、数字、_、-(1-50字符)" :maxlength="50" :disabled="isEdit" />
         <div class="form-hint" v-if="isEdit">名称创建后不可修改</div>
       </div>
 
@@ -81,7 +76,7 @@
         </div>
       </div>
 
-      <div class="form-item">
+      <!-- <div class="form-item">
         <label class="form-label">模型</label>
         <a-select v-model:value="form.model" class="form-select" placeholder="留空则跟随对话助手当前模型" allow-clear>
           <a-select-option v-for="m in modelList" :key="m" :value="m">{{ m }}</a-select-option>
@@ -91,7 +86,7 @@
       <div class="form-item form-switch-item">
         <label class="form-label">启用</label>
         <a-switch v-model:checked="form.enabled" />
-      </div>
+      </div> -->
 
       <div class="form-actions">
         <a-button @click="emit('close')">取消</a-button>
@@ -152,9 +147,7 @@
     if (!activeGroup.value) return [];
     const keyword = toolSearch.value.trim().toLowerCase();
     if (!keyword) return activeGroup.value.tools;
-    return activeGroup.value.tools.filter(
-      (t) => t.display_name.toLowerCase().includes(keyword) || t.name.toLowerCase().includes(keyword)
-    );
+    return activeGroup.value.tools.filter((t) => t.display_name.toLowerCase().includes(keyword) || t.name.toLowerCase().includes(keyword));
   });
 
   const defaultForm = () => ({
@@ -206,7 +199,7 @@
           form.enabled = d.enabled !== false;
         }
       }
-    },
+    }
   );
 
   const getGroupSelectedCount = (group: ToolGroup) => {