فهرست منبع

模型入参搜索优化

liyanyan 1 ماه پیش
والد
کامیت
335795adce
2فایلهای تغییر یافته به همراه7 افزوده شده و 1 حذف شده
  1. 1 0
      package.json
  2. 6 1
      src/views/helper/components/ModelParamsModal.vue

+ 1 - 0
package.json

@@ -30,6 +30,7 @@
     "js-cookie": "2.2.0",
     "jsonlint": "1.6.3",
     "jszip": "3.2.1",
+    "lodash": "^4.17.21",
     "moment": "^2.29.1",
     "normalize.css": "7.0.0",
     "nprogress": "0.2.0",

+ 6 - 1
src/views/helper/components/ModelParamsModal.vue

@@ -2,7 +2,12 @@
   <div>
     <el-dialog :modal="false" width="700px" :title="`模型入参`" :visible.sync="dialogFormVisible" @close="handleCancel">
       <el-row style="margin-bottom: 10px;" type="flex" justify="space-between">
-        <el-input v-model="filterParams.keyword" placeholder="请输入内容" @input="handleSearch" />
+        <el-input v-model="filterParams.keyword" clearable placeholder="请输入内容" @input="handleSearch">
+          <i
+            slot="prefix"
+            class="el-icon-search el-input__icon"
+          />
+        </el-input>
         <el-button style="margin-left: 20px" type="primary" @click="handleSubmit">确认</el-button>
       </el-row>
       <el-tabs