浏览代码

fix:修改智能体标签搜索bug,创建弹框串行bug

hanyang 1 年之前
父节点
当前提交
d84e89d224

+ 2 - 19
src/modules/intelligent/MessageBody.vue

@@ -11,7 +11,7 @@
     >
       <template #description> {{ item.desc }} </template>
       <template #settings>
-        <a-switch v-model="item.online" @change="changeStatus(item)">
+        <a-switch v-model="item.online" checked-color="#4569EA" @change="changeStatus(item)">
           <template #checked> {{ $t('management.online') }} </template>
           <template #unchecked> {{ $t('management.offline') }} </template>
         </a-switch>
@@ -41,24 +41,6 @@
             </div>
           </template>
         </a-dropdown>
-        <!-- <a-select :default-value="'Beijing'" placeholder="Please select ..." multiple>
-          <a-option>Beijing</a-option>
-          <a-option>Shanghai</a-option>
-          <a-option>Guangzhou</a-option>
-          <a-option disabled>Disabled</a-option>
-          <a-option>Shenzhen</a-option>
-          <a-option>Wuhan</a-option>
-          <template #header>
-            <div style="padding: 6px 12px">
-              <a-checkbox value="1">全选</a-checkbox>
-            </div>
-          </template>
-          <template #footer>
-            <div style="padding: 6px 0; text-align: center">
-              <a-button>Click Me</a-button>
-            </div>
-          </template>
-        </a-select> -->
       </template>
       <template #bottom>
         <div class="bottom">
@@ -245,6 +227,7 @@ const addLabelToTarget = async (label_id_list, target_id) => {
 };
 // 当下拉框隐藏时,重新更新对应的智能体数据
 const changeDropdownVisible = async (visible, id) => {
+  updateLabels();
   if (!visible) {
     const res = await getLabelList(search_label.value, 1, id);
     if (res.code == 200) {

+ 1 - 0
src/modules/intelligent/rgflow/AgentConfig.vue

@@ -73,6 +73,7 @@
                 :rules="rules"
                 :model="form"
                 @submit="handleSubmit"
+                auto-label-width
                 :style="{ width: '90%', margin: '0 auto' }"
               >
                 <a-form-item field="prompt_config.system" label="系统">

+ 1 - 1
src/modules/login/FormItem.vue

@@ -192,7 +192,7 @@ const changeFormType = (e, type) => {
   border-color: var(--color-neutral-3);
 }
 
-:deep .arco-form-item-label-col > .arco-form-item-label {
+:deep(.arco-form-item-label-col > .arco-form-item-label) {
   display: none;
 }
 </style>