From 4fe62764d85ef9621c5691f3224548b066f2cc9c Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Tue, 16 Sep 2025 17:37:46 +0800
Subject: [PATCH] feat:更新日志管理和运营

---
 src/views/flightLog/flightLog.vue |   75 ++++++++++++++++++++++++-------------
 1 files changed, 49 insertions(+), 26 deletions(-)

diff --git a/src/views/flightLog/flightLog.vue b/src/views/flightLog/flightLog.vue
index 0bc63c2..3b259e2 100644
--- a/src/views/flightLog/flightLog.vue
+++ b/src/views/flightLog/flightLog.vue
@@ -4,9 +4,8 @@
     <div class="search-box">
       <el-form :model="params" inline>
         <el-form-item label="日期:">
-          <!-- <el-picker v-model="params.start_time" type="date" placeholder="开始日期" value-format="yyyy-MM-dd"></el-picker> -->
           <el-date-picker
-            v-model="params.start_time"
+            v-model="rangTime"
             type="daterange"
             range-separator="至"
             start-placeholder="开始日期"
@@ -36,6 +35,18 @@
         <el-table-column prop="end_time" label="结束时间" align="center">
           <template #default="scope">
             {{ timeFormatConvert(scope.row.end_time) }}
+          </template>
+        </el-table-column>
+        <el-table-column prop="end_time" label="标签" align="center">
+          <template #default="scope">
+            <el-select v-model="scope.row.states">
+              <el-option
+                v-for="item in labelList"
+                :key="item.value"
+                :label="item.label"
+                :value="item.value"
+              ></el-option>
+            </el-select>
           </template>
         </el-table-column>
 				<el-table-column label="操作" width="200" align="center">
@@ -88,10 +99,13 @@
 import { downloadXls } from '@/utils/util';
 
 const total = ref(0)
+let rangTime = ref([])
 const params = ref({
-  // workspaceId: '6566662f-17c5-44f1-89d2-f09b37b81794',
+  isFavorite: false,
   page: '1',
   page_size: '10',
+  startTime: '',
+  endTime: '',
 });
 
 let tableList = ref([])
@@ -113,6 +127,21 @@
   remark: ''
 })
 
+let labelList = ref([
+  {
+    value: '1',
+    label: '标签1'
+  },
+  {
+    value: '2',
+    label: '标签2'
+  },
+  {
+    value: '3',
+    label: '标签3'
+  },
+])
+
 function timeFormatConvert(time) {
   const date = new Date(time);
   return date.toLocaleString();
@@ -120,7 +149,7 @@
 
 function cancelSearch() {
   params.value = {
-    workspaceId: '',
+    isFavorite: false,
     page: '1',
     page_size: '10',
   }
@@ -128,42 +157,36 @@
 }
 
 function getList() {
+  params.value.startTime = rangTime.value[0] ? rangTime.value[0].getTime() : ''
+  params.value.endTime = rangTime.value[1]? rangTime.value[1].getTime() : ''
   getHistoryTrack(params.value).then(res => {
     tableList.value = res.data.data.list || []
     total.value = res.data.data.pagination.total || 0
   })
 }
-// function handleDetail(row) {
-//   isShowView.value = true
-//   rowView.value = row
-// }
-// function handleDelete(row) {
-//   console.log(row)
-// }
-// function handleAdd(row) {
-//   isShowEditView.value = true
-//   // editParams.value = { ...row }
-// }
 
 function handleAll() {
   tabType.value = '全部'
 }
 
 function handleStartList() {
+  params.value.isFavorite = true
   tabType.value = '收藏'
+  params.value.page = 1
+  getList()
 }
 
-async function submit(formValidate) {
-  if (!formValidate) return
-  await formValidate.validate((valid, fields) => {
-    if (valid) {
-      algorithmManageEdit(editParams.value).then(res => {
-        isShowEditView.value = false
-        getList()
-      })
-    } 
-  })
-}
+// async function submit(formValidate) {
+//   if (!formValidate) return
+//   await formValidate.validate((valid, fields) => {
+//     if (valid) {
+//       algorithmManageEdit(editParams.value).then(res => {
+//         isShowEditView.value = false
+//         getList()
+//       })
+//     } 
+//   })
+// }
 
 // 收藏
 function handleStar(row) {

--
Gitblit v1.9.3