From 89380e6260a75d1d3b94de687ebcc2f50d50659d Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Tue, 03 Feb 2026 15:44:33 +0800
Subject: [PATCH] feat:环境变量配置调整

---
 applications/drone-command/src/views/basicManage/maintainRecord/index.vue |   66 +++++++++++++++++++-------------
 1 files changed, 39 insertions(+), 27 deletions(-)

diff --git a/applications/drone-command/src/views/basicManage/maintainRecord/index.vue b/applications/drone-command/src/views/basicManage/maintainRecord/index.vue
index 2aaa9f8..2d9c4eb 100644
--- a/applications/drone-command/src/views/basicManage/maintainRecord/index.vue
+++ b/applications/drone-command/src/views/basicManage/maintainRecord/index.vue
@@ -1,21 +1,21 @@
 <template>
 	<basic-container>
-		<el-form ref="queryParamsRef" :model="searchParams" class="ztzf-page-history-search">
-			<el-form-item label="名称" prop="deviceName">
-				<el-input class="ztzf-data-cockpit-search-input" v-model="searchParams.deviceName" placeholder="请输入"
+		<el-form ref="queryParamsRef" :model="searchParams" class="command-page-history-search">
+			<el-form-item label="设备名称" prop="deviceName">
+				<el-input class="command-input" v-model="searchParams.deviceName" placeholder="请输入"
 					clearable @clear="handleSearch" />
 			</el-form-item>
 
-			<el-form-item label="类型" prop="deviceType">
-				<el-select class="ztzf-data-cockpit-select" popper-class="ztzf-data-cockpit-select-popper"
+			<el-form-item label="设备类型" prop="deviceType">
+				<el-select class="command-select" popper-class="command-select-popper"
 					v-model="searchParams.deviceType" placeholder="请选择" clearable @change="handleSearch">
 					<el-option v-for="item in dictObj.deviceType" :key="item.dictKey" :label="item.dictValue"
 						:value="item.dictKey" />
 				</el-select>
 			</el-form-item>
 
-			<el-form-item label="部门" prop="belongDept">
-				<el-tree-select class="ztzf-data-cockpit-select" popper-class="ztzf-data-cockpit-tree-select-popper"
+			<el-form-item label="所属部门" prop="belongDept">
+				<el-tree-select class="command-select" popper-class="command-tree-select-popper"
 					v-model="searchParams.belongDept" :data="deptTree" :props="treeProps" node-key="id" check-strictly
 					clearable @change="handleSearch" />
 			</el-form-item>
@@ -26,27 +26,31 @@
 			</el-form-item>
 		</el-form>
 
-		<div class="ztzf-table-toolbar">
+		<div class="command-table-toolbar">
 			<el-button :icon="Plus" color="#284FE3" type="primary" @click="handleAdd">维护计划</el-button>
-			<el-button type="danger" :disabled="!selectedIds.length" @click="handleDelete()">删除</el-button>
+			<el-button :icon="Delete" color="#1A2652" :disabled="!selectedIds.length" @click="handleDelete()">删除</el-button>
 		</div>
 
-		<div class="ztzf-table-container" v-loading="loading" element-loading-background="rgba(5, 5, 15, 0.6)">
-			<div class="ztzf-table-content ztzf-table-content-bg">
-				<el-table class="ztzf-data-cockpit-table" :data="list" @selection-change="handleSelectionChange">
+		<div class="command-table-container" v-loading="loading" element-loading-background="rgba(5, 5, 15, 0.6)">
+			<div class="command-table-content command-table-content-bg">
+				<el-table class="command-table" :data="list" @selection-change="handleSelectionChange">
 					<el-table-column type="selection" width="46" />
-					<el-table-column type="index" show-overflow-tooltip width="64" label="序号" />
-					<el-table-column prop="deviceName" show-overflow-tooltip width="130" label="设备名称" />
-					<el-table-column prop="deviceType" show-overflow-tooltip width="130" label="设备类型">
+					<el-table-column prop="deviceName" show-overflow-tooltip label="设备名称" />
+					<el-table-column prop="deviceType" show-overflow-tooltip label="设备类型">
 						<template v-slot="{ row }">
 							{{ getDictLabel(row.deviceType, dictObj.deviceType) }}
 						</template>
 					</el-table-column>
-					<el-table-column prop="deviceModel" show-overflow-tooltip width="98" label="型号" />
-					<el-table-column prop="manufacturer" show-overflow-tooltip width="130" label="生产厂商" />
-					<el-table-column prop="charger" show-overflow-tooltip width="100" label="负责人" />
-					<el-table-column prop="maintainReminder" show-overflow-tooltip width="116" label="维护提醒" />
-					<el-table-column prop="planCycleType" show-overflow-tooltip width="160" label="维护计划">
+					<el-table-column prop="deviceModel" show-overflow-tooltip label="型号" />
+					<el-table-column prop="manufacturer" show-overflow-tooltip label="生产厂商" />
+					<el-table-column prop="belongDeptName" show-overflow-tooltip label="所属部门" />
+					<el-table-column prop="charger" show-overflow-tooltip label="负责人" />
+					<el-table-column prop="maintainStatus" show-overflow-tooltip label="维护提醒">
+						<template v-slot="{ row }">
+							{{ row.maintainStatus === 1 ? '已维修' : '未维修' }}
+						</template>
+					</el-table-column>
+					<el-table-column prop="planCycleType" show-overflow-tooltip label="维护计划">
 						<template v-slot="{ row }">
 							{{ getPlanCycleLabel(row) }}
 						</template>
@@ -61,8 +65,8 @@
 				</el-table>
 			</div>
 
-			<div class="ztzf-table-pagination">
-				<el-pagination popper-class="ztzf-data-cockpit-select-popper"
+			<div class="command-table-pagination">
+				<el-pagination popper-class="command-select-popper"
 					v-model:current-page="searchParams.current" v-model:page-size="searchParams.size"
 					layout="total, prev, pager, next, sizes" :total="total" @change="getList" />
 			</div>
@@ -73,7 +77,7 @@
 	</basic-container>
 </template>
 <script setup>
-import { Search, RefreshRight, Plus } from '@element-plus/icons-vue'
+import { Search, RefreshRight, Plus, Delete } from '@element-plus/icons-vue'
 import { onMounted, ref } from 'vue'
 import { ElMessage, ElMessageBox } from 'element-plus'
 import { getDictionaryByCode } from '@/api/system/dictbiz'
@@ -81,6 +85,8 @@
 import { getDictLabel } from '@ztzf/utils'
 import FormDiaLog from './FormDiaLog.vue'
 import MaintenanceDiaLog from '@/views/basicManage/maintainRecord/MaintenanceDiaLog.vue'
+import { saveOperationLog } from '@ztzf/apis'
+import { useRoute } from 'vue-router'
 import {
 	fwDeviceMaintainPlanPageApi,
 	fwDeviceMaintainPlanRemoveApi,
@@ -95,7 +101,7 @@
 })
 const searchParams = ref(initSearchParams()) // 查询参数
 const total = ref(0) // 总条数
-const loading = ref(false) // 列表加载中
+const loading = ref(true) // 列表加载中
 const list = ref([]) // 列表数据
 const selectedIds = ref([]) // 勾选的ID列表
 const queryParamsRef = ref(null) // 查询表单实例
@@ -106,6 +112,7 @@
 	deviceAtt: [], // 设备属性
 })
 provide('dictObj', dictObj)
+const route = useRoute()
 const deptTree = ref([]) // 部门树
 const treeProps = {
 	label: 'name',
@@ -158,12 +165,17 @@
 	const tips = row ? '该条' : '选中的项'
 	await ElMessageBox.confirm(`确认删除${tips}吗?`, '提示', {
 		type: 'warning',
-		customClass: 'ztzf-page-view-message-box',
-		confirmButtonClass: 'ztzf-message-box-confirm',
-		cancelButtonClass: 'ztzf-message-box-cancel',
+		customClass: 'command-page-view-message-box',
+		confirmButtonClass: 'command-message-box-confirm',
+		cancelButtonClass: 'command-message-box-cancel',
 	})
 	const ids = row ? row.id : selectedIds.value.join(',')
 	await fwDeviceMaintainPlanRemoveApi({ ids })
+	saveOperationLog({
+		requestUri: route.path,
+		title: `${route.name || '维护记录管理'}-删除`,
+		type: 1
+	})
 	ElMessage.success('删除成功')
 	selectedIds.value = []
 	getList()

--
Gitblit v1.9.3