Rmengdi 3 месяцев назад
Родитель
Сommit
9f7cb5d3cb
3 измененных файлов с 21 добавлено и 35 удалено
  1. 5 0
      src/api/als/dataImport.js
  2. 10 10
      src/router/modules/system.js
  3. 6 25
      src/views/als/lifePrediction/index.vue

+ 5 - 0
src/api/als/dataImport.js

@@ -5,6 +5,11 @@ export const getDataImport = async (data) => {
   return await get('/als/dataImport/list', data)
 }
 
+// 查询数据导入信息列表
+export const getAllDataImport = async (data) => {
+  return await get('/als/dataImport/listAll', data)
+}
+
 // 新增数据导入信息
 export const addDataImport = async (data) => {
   return await post('/als/dataImport', data)

+ 10 - 10
src/router/modules/system.js

@@ -263,16 +263,16 @@ export default [
           title: '知识抽取'
         }
       },
-      {
-        name: 'ExtractList',
-        path: '/knowledgeGraph/extractList',
-        component: () => import('@/views/als/knowledgeExtraction/extractList.vue'),
-        name: 'ExtractList',
-        meta: {
-          parent: 'BasicData',
-          title: '抽取列表'
-        }
-      },
+      // {
+      //   name: 'ExtractList',
+      //   path: '/knowledgeGraph/extractList',
+      //   component: () => import('@/views/als/knowledgeExtraction/extractList.vue'),
+      //   name: 'ExtractList',
+      //   meta: {
+      //     parent: 'BasicData',
+      //     title: '抽取列表'
+      //   }
+      // },
       {
         name: 'EntityManage',
         path: '/knowledgeGraph/entityManage',

+ 6 - 25
src/views/als/lifePrediction/index.vue

@@ -29,17 +29,7 @@
             </el-select>
           </el-form-item>
           <el-form-item label="架次号" prop="sortieNo">
-            <LTable
-              ref="sortieNoTableRef"
-              :defaultFetch="false"
-              :fetch="sortieNoFetch"
-              @selection-change="sortieNoSelection"
-              class="single-select-table"
-              :columns="sortieNoColumns"
-              :dataSource="sortieNoList"
-              :options="sortieNoOptions"
-              :pagination="SortieNoTableRequset"
-            ></LTable>
+            <LTable ref="sortieNoTableRef" :defaultFetch="false" :fetch="sortieNoFetch" @selection-change="sortieNoSelection" class="single-select-table" :columns="sortieNoColumns" :dataSource="sortieNoList" :options="sortieNoOptions"></LTable>
           </el-form-item>
           <el-form-item label="部件" prop="partId">
             <treeselect noOptionsText="该机型暂无构型信息,请在构型管理中添加" :value="form.partId" :normalizer="normalizer" :options="partsData" :show-count="true" placeholder="请选择部件" @select="partIdSelect" />
@@ -71,7 +61,7 @@ import '@riophae/vue-treeselect/dist/vue-treeselect.css'
 import { getAirConfiguration } from '@/api/als/airConfiguration'
 import { handleTree } from '../utils/common'
 import { executeEvaluation } from '@/api/als/algorithm'
-import { getDataImport } from '@/api/als/dataImport'
+import { getAllDataImport } from '@/api/als/dataImport'
 
 export default {
   name: 'LifePrediction',
@@ -208,12 +198,6 @@ export default {
         border: true,
         height: '250px'
       },
-      SortieNoTableRequset: {
-        total: 0,
-        pageIndex: 1,
-        pageSize: 10,
-        searchValue: ''
-      },
       sortieNoList: [],
       sortieNoCheckItems: [],
       form: {
@@ -336,13 +320,10 @@ export default {
       this.sortieNoCheckItems = []
       try {
         if (this.$refs.sortieNoTableRef) this.$refs.sortieNoTableRef.clearSelection()
-        const { keyWord } = this
-        const { pageSize, pageIndex } = this.SortieNoTableRequset
-        const {
-          data: { list, total }
-        } = await getDataImport({ pageSize, pageNum: pageIndex, ...params, source: 1 })
-        this.sortieNoList = list
-        this.SortieNoTableRequset.total = total
+        const { code, data } = await getAllDataImport({ ...params, source: 1 })
+        if (code === 200) {
+          this.sortieNoList = data
+        }
       } catch (error) {}
     },