tangning 1 месяц назад
Родитель
Сommit
c7a65b9701
1 измененных файлов с 25 добавлено и 16 удалено
  1. 25 16
      src/views/operate/components/config/addConfigModal.vue

+ 25 - 16
src/views/operate/components/config/addConfigModal.vue

@@ -54,23 +54,20 @@
         },
         {
           field: 'aiOption',
-          component: 'ApiSelect',
+          component: 'CheckboxGroup',
           label: 'AI 识别配置',
-          colProps: {
-            xl: 18,
-            xxl: 18,
-          },
           componentProps: {
-            style: { width: '246px' },
-            api: feedbackOptionList,
-            mode: 'multiple',
-            numberToString: true,
-            labelField: 'nameCn',
-            resultField: 'list',
-            valueField: 'id',
-            listHeight: 140,
-            immediate: true,
-            params: { typeId: 5, pageSize: 9999, pageNum: 1 },
+            //style: { width: '246px' },
+            class: 'myCheckbox',
+            // api: feedbackOptionList,
+            // mode: 'multiple',
+            // numberToString: true,
+            // labelField: 'nameCn',
+            // resultField: 'list',
+            // valueField: 'id',
+            // listHeight: 140,
+            // immediate: true,
+            // params: { typeId: 5, pageSize: 9999, pageNum: 1 },
           },
         },
         // {
@@ -101,7 +98,7 @@
       const [register, { closeModal }] = useModalInner((data) => {
         fileFlow.title = '配置';
         fileFlow.param = data || {};
-        // NewTypeChange();
+        NewTypeChange();
         data && onDataReceive(data);
       });
       async function onDataReceive(data) {
@@ -158,3 +155,15 @@
     },
   });
 </script>
+<style lang="less">
+  .myCheckbox {
+    .ant-checkbox-group-item {
+      display: flex;
+      width: 350px;
+      word-break: break-all;
+      // white-space: nowrap; /* 强制文本在一行内显示 */
+      // overflow: hidden; /* 超出容器部分隐藏 */
+      // text-overflow: ellipsis; /* 超出部分显示省略号 */
+    }
+  }
+</style>