From 8d32ef6a30791411fcf8cabf283024749fe9e9ab Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Sat, 22 Nov 2025 17:15:59 +0800
Subject: [PATCH] feat:智飞工单
---
src/views/tickets/component/AddEditDetails.vue | 7 ++++---
src/views/tickets/orderLog.vue | 15 ++++++++-------
src/views/tickets/component/SearchBox.vue | 6 ++++--
3 files changed, 16 insertions(+), 12 deletions(-)
diff --git a/src/views/tickets/component/AddEditDetails.vue b/src/views/tickets/component/AddEditDetails.vue
index 49c920d..89c8ed7 100644
--- a/src/views/tickets/component/AddEditDetails.vue
+++ b/src/views/tickets/component/AddEditDetails.vue
@@ -216,8 +216,8 @@
//周期
const weeks = ref(['每天', '周一', '周二', '周三', '周四', '周五', '周六', '周末', '周天', '工作日'])
-const lineList = inject('lineList')
-const aiTypeList = inject('aiTypeList')
+let lineList = inject('lineList')
+let aiTypeList = inject('aiTypeList')
// 获取航线
// let lineList = ref([])
@@ -251,6 +251,7 @@
// 关联机巢
const drone_sns = ref([])
function getFlyingNest (waylineId) {
+ console.log('选择航线', lineList.value)
// 选中航线对象
initMapLine({}, polygon => {
const currentLine = lineList.value.find(item => item.wayline_id === waylineId)
@@ -281,10 +282,10 @@
const initMapLine = async (infos = {}, cb = () => {}) => {
const currentLine = lineList.value.find(item => item.wayline_id == formParams.value.file_id)
+
if (!currentLine) return
await nextTick()
-
if (mapContainerRef.value?.initAddEntity) {
mapContainerRef.value.initAddEntity('polyline', {
url: `${import.meta.env.VITE_APP_AIRLINE_URL + currentLine.object_key}?_t=${new Date().getTime()}`,
diff --git a/src/views/tickets/component/SearchBox.vue b/src/views/tickets/component/SearchBox.vue
index d3acb67..c327166 100644
--- a/src/views/tickets/component/SearchBox.vue
+++ b/src/views/tickets/component/SearchBox.vue
@@ -32,7 +32,7 @@
<el-form-item label="关联算法:">
<el-select
:teleported="false"
- v-model="searchForm.ai_types"
+ v-model="searchForm.ai_typesValue"
placeholder="请选择关联航线"
clearable>
<el-option
@@ -98,6 +98,7 @@
const cycleDateRange = ref('')
const searchForm = reactive({
ai_types: [],
+ ai_typesValue: '',
deal_time: "",
file_id: "",
key_word: "",
@@ -154,7 +155,7 @@
start_date: cycleDateRange.value.length
? dayjs(dateRange?.value[0]).startOf('day').format(timeFormat)
: null,
- emd_date: cycleDateRange.value.length
+ end_date: cycleDateRange.value.length
? dayjs(dateRange?.value[1]).startOf('day').format(timeFormat)
: null,
};
@@ -163,6 +164,7 @@
function handleReset () {
searchForm.ai_types = []
+ searchForm.ai_typesValue = ''
searchForm.deal_time = ""
searchForm.file_id = ""
searchForm.key_word = ""
diff --git a/src/views/tickets/orderLog.vue b/src/views/tickets/orderLog.vue
index a5a1867..65a50d3 100644
--- a/src/views/tickets/orderLog.vue
+++ b/src/views/tickets/orderLog.vue
@@ -36,7 +36,7 @@
</template>
</el-table-column>
<el-table-column prop="dept_name" label="所属单位" show-overflow-tooltip/>
- <el-table-column prop="create_time" label="创建时间" show-overflow-tooltip/>
+ <el-table-column prop="create_time" label="创建时间" width="160" show-overflow-tooltip/>
<el-table-column prop="job_num" label="已执行次数" width="90" align="center" />
<el-table-column prop="content" label="工单内容" show-overflow-tooltip align="center" />
<el-table-column prop="wayline_name" label="关联航线" show-overflow-tooltip />
@@ -110,6 +110,7 @@
import { cloneDeep } from 'lodash';
import { computed, onMounted } from 'vue';
import { ElMessage, ElMessageBox } from 'element-plus'
+import { aiImagesPage } from '@/api/dataCenter/dataCenter';
const store = useStore()
@@ -228,11 +229,12 @@
const orderListTable = ref([])
function getTableList() {
+ orderListParams.searchParams.ai_types = orderListParams.searchParams.ai_typesValue ? [ orderListParams.searchParams.ai_typesValue] : null
const apiParams = {
...cloneDeep(orderListParams),
...cloneDeep(orderListParams.searchParams)
}
- getList(apiParams).then(res => {
+ getList(apiParams, orderListParams.current, orderListParams.size).then(res => {
orderListTable.value = res.data.data.records
total.value = res.data.data.total
// updateGlobalCounts()
@@ -324,11 +326,10 @@
NProgress.start()
+ orderListParams.searchParams.ai_types = orderListParams.searchParams.ai_typesValue ? [ orderListParams.searchParams.ai_typesValue] : null
const apiParams = {
...cloneDeep(orderListParams),
- searchParams: {
- ...cloneDeep(orderListParams.searchParams)
- },
+ ...cloneDeep(orderListParams.searchParams)
}
const res = await orderLogExport(apiParams)
@@ -415,11 +416,11 @@
}
onMounted(() => {
+ getLines()
+ aitypeList()
filteredTabs()
getTableList()
updateGlobalCounts()
- getLines()
- aitypeList()
})
</script>
--
Gitblit v1.9.3