From d522036e071bfc17a6874558bfb3a6f1be83d846 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Thu, 12 Feb 2026 11:28:30 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 applications/task-work-order/src/views/orderView/flyingHand/FlyingHandDialog.vue |   20 +++++++++-
 applications/task-work-order/src/views/orderView/flyingHand/index.vue            |   21 ++++++++--
 uniapps/work-wx/src/pages/login/index.vue                                        |   10 ++--
 uniapps/work-wx/src/subPackages/userDetail/password/index.vue                    |   21 +++++-----
 uniapps/work-wx/src/pages/register/index.vue                                     |   18 ++++----
 uniapps/work-wx/src/config/env.js                                                |    6 +-
 applications/task-work-order/src/views/orderView/flyingHand/flyingHandApi.js     |    9 ++++
 7 files changed, 72 insertions(+), 33 deletions(-)

diff --git a/applications/task-work-order/src/views/orderView/flyingHand/FlyingHandDialog.vue b/applications/task-work-order/src/views/orderView/flyingHand/FlyingHandDialog.vue
index 21409bd..6dd91c9 100644
--- a/applications/task-work-order/src/views/orderView/flyingHand/FlyingHandDialog.vue
+++ b/applications/task-work-order/src/views/orderView/flyingHand/FlyingHandDialog.vue
@@ -66,17 +66,31 @@
 			<el-row>
 				<el-col :span="12">
 					<el-form-item label="飞手姓名" prop="flyerId">
-						<el-select
+						<el-select v-if="dialogType === 'add'"
 							class="gd-select"
 							popper-class="gd-select-popper"
 							v-model="formData.flyerId"
 							placeholder="请选择"
 							clearable
 							@change="handleChange"
-							:disabled="dialogType === 'view'"
 						>
 							<el-option
 								v-for="item in flyingHandList"
+								:key="item.id"
+								:label="item.name"
+								:value="item.id"
+							/>
+						</el-select>
+						<el-select v-else
+							class="gd-select"
+							popper-class="gd-select-popper"
+							v-model="formData.flyerId"
+							placeholder="请选择"
+							clearable
+							:disabled="dialogType === 'edit'"
+						>
+							<el-option
+								v-for="item in flyingHandEditList"
 								:key="item.id"
 								:label="item.name"
 								:value="item.id"
@@ -215,6 +229,8 @@
 const dictObj = inject('dictObj') // 擅长任务类型
 
 const flyingHandList = inject('flyingHandList') // 飞手列表
+const flyingHandEditList = inject('flyingHandEditList') // 飞手建档列表
+
 
 const emit = defineEmits(['update:modelValue', 'confirm'])
 
diff --git a/applications/task-work-order/src/views/orderView/flyingHand/flyingHandApi.js b/applications/task-work-order/src/views/orderView/flyingHand/flyingHandApi.js
index f0b87d7..30df568 100644
--- a/applications/task-work-order/src/views/orderView/flyingHand/flyingHandApi.js
+++ b/applications/task-work-order/src/views/orderView/flyingHand/flyingHandApi.js
@@ -34,3 +34,12 @@
         method: 'post',
     })
 }
+
+// 查看所有已经建档飞手
+export function getAllFlyerIds(params) {
+    return request({
+        url: '/drone-gd/flyer/gdFlyer/allFlyerIds',
+        method: 'get',
+        params
+    })
+}
diff --git a/applications/task-work-order/src/views/orderView/flyingHand/index.vue b/applications/task-work-order/src/views/orderView/flyingHand/index.vue
index 0890b43..a291e82 100644
--- a/applications/task-work-order/src/views/orderView/flyingHand/index.vue
+++ b/applications/task-work-order/src/views/orderView/flyingHand/index.vue
@@ -112,7 +112,7 @@
 import { onMounted, ref, nextTick } from 'vue'
 import { getDictionaryByCode } from '@/api/system/dictbiz'
 import { getDictLabel } from '@ztzf/utils'
-import { getFlyingHandPage, removeFlyingHand } from './flyingHandApi'
+import { getFlyingHandPage, removeFlyingHand,getAllFlyerIds } from './flyingHandApi'
 import { deviceFlyerApi,deviceFlyerDetailApi } from '@/api/zkxt'
 import FlyingHandDialog from './FlyingHandDialog.vue'
 import { ElMessage, ElMessageBox } from 'element-plus'
@@ -159,6 +159,7 @@
 function handleSearch() {
 	searchParams.value.current = 1
 	getList()
+	getFlyingHandList()
 }
 
 // 重置查询
@@ -166,6 +167,7 @@
 	queryParamsRef.value?.resetFields()
 	searchParams.value.current = 1
 	getList()
+	getFlyingHandList()
 }
 
 // 添加飞手
@@ -212,12 +214,14 @@
 	await removeFlyingHand({ ids: ids })
 	ElMessage.success('删除成功')
 	getList()
+	getFlyingHandList()
 }
 
 // 处理弹窗确认
 function handleConfirm() {
 	dialogVisible.value = false
 	getList()
+	getFlyingHandList()
 }
 
 // 获取字典
@@ -229,13 +233,22 @@
 
 // 获取飞手列表
 const flyingHandList = ref([])
+const flyingHandEditList = ref([])
 function getFlyingHandList() {
-    deviceFlyerApi({ current: 1, size: 10 }).then(res => {
-        flyingHandList.value = res?.data?.data ?? []
-    })
+	getAllFlyerIds().then(resIds => {
+		console.log(resIds.data.data, '99999')
+		deviceFlyerApi({ current: 1, size: 9999 }).then(res => {
+			flyingHandEditList.value = res?.data?.data ?? []
+			flyingHandList.value = res?.data?.data ?? []
+			// 把已经建档的飞手从flyingHandList.value里面移除
+			flyingHandList.value = flyingHandList.value.filter(item => !resIds.data.data.includes(item.id))
+			console.log(flyingHandList.value, '11111')
+		})
+	})
 }
 
 provide('flyingHandList', flyingHandList)
+provide('flyingHandEditList', flyingHandEditList)
 
 onMounted(() => {
 	getList()
diff --git a/uniapps/work-wx/src/config/env.js b/uniapps/work-wx/src/config/env.js
index 4b84f6f..1cbdf79 100644
--- a/uniapps/work-wx/src/config/env.js
+++ b/uniapps/work-wx/src/config/env.js
@@ -12,12 +12,12 @@
 const development = {
   VITE_APP_ENV:'development',
   // 开发环境这里改为自己的
-  VITE_APP_WEBVIEW_URL: 'https://wrj.shuixiongit.com/drone-app-web-view/#/webViewWrapper',
-  // VITE_APP_WEBVIEW_URL: 'http://localhost:5173/drone-app-web-view/#/webViewWrapper',
+  // VITE_APP_WEBVIEW_URL: 'https://wrj.shuixiongit.com/drone-app-web-view/#/webViewWrapper',
+  VITE_APP_WEBVIEW_URL: 'https://wrj.shuixiongit.com/mobile-web-view/#/webViewWrapper',
   VITE_API_BASE_URL: 'http://218.202.104.82:8200',
   // VITE_API_BASE_URL: 'https://aisky.org.cn/api',
   VITE_APP_WS_API_URL:'wss://wrj.shuixiongit.com/drone-wss/api/v1/ws',
-  
+
   // 静态资源存放地址'
   VITE_APP_ASSETS_URL: 'https://wrj.shuixiongit.com/aiskyminio/cloud-bucket/ztzf_app_assets'
 }
diff --git a/uniapps/work-wx/src/pages/login/index.vue b/uniapps/work-wx/src/pages/login/index.vue
index edb0ccb..26a57a5 100644
--- a/uniapps/work-wx/src/pages/login/index.vue
+++ b/uniapps/work-wx/src/pages/login/index.vue
@@ -132,11 +132,11 @@
       error.data?.error_description !== "Bad credentials"
         ? error.data?.error_description
         : "登录失败,请重试";
-    uni.showToast({
-      title: errorMsg,
-      icon: "none",
-      duration: 2000,
-    });
+    // uni.showToast({
+    //   title: errorMsg,
+    //   icon: "none",
+    //   duration: 2000,
+    // });
   }
 }
 
diff --git a/uniapps/work-wx/src/pages/register/index.vue b/uniapps/work-wx/src/pages/register/index.vue
index 7a0458f..14a2e30 100644
--- a/uniapps/work-wx/src/pages/register/index.vue
+++ b/uniapps/work-wx/src/pages/register/index.vue
@@ -167,11 +167,11 @@
             });
         }
     }).catch(err => {
-        uni.showToast({
-            title: '网络错误,请稍后重试',
-            icon: 'none',
-            duration: 2000
-        });
+        // uni.showToast({
+        //     title: '网络错误,请稍后重试',
+        //     icon: 'none',
+        //     duration: 2000
+        // });
     });
 };
 function register() {
@@ -227,10 +227,10 @@
             });
         }
     }).catch(err => {
-        uni.showToast({
-            title: '网络错误,请稍后重试',
-            icon: 'none',
-        });
+        // uni.showToast({
+        //     title: '网络错误,请稍后重试',
+        //     icon: 'none',
+        // });
     });
 }
 </script>
diff --git a/uniapps/work-wx/src/subPackages/userDetail/password/index.vue b/uniapps/work-wx/src/subPackages/userDetail/password/index.vue
index 8381ad7..1f09f1a 100644
--- a/uniapps/work-wx/src/subPackages/userDetail/password/index.vue
+++ b/uniapps/work-wx/src/subPackages/userDetail/password/index.vue
@@ -142,11 +142,11 @@
 				});
 			}
 		}).catch(err => {
-			uni.showToast({
-				title: '网络错误,请稍后重试',
-				icon: 'none',
-				duration: 2000
-			});
+			// uni.showToast({
+			// 	title: '网络错误,请稍后重试',
+			// 	icon: 'none',
+			// 	duration: 2000
+			// });
 		});
 	};
 	const reset = () => {
@@ -233,11 +233,12 @@
 				});
 			}
 		}).catch(err => {
-			uni.showToast({
-				title: '网络错误,请稍后重试',
-				icon: 'none',
-				duration: 2000
-			});
+      console.log(err);
+			// uni.showToast({
+			// 	title: '网络错误,请稍后重试',
+			// 	icon: 'none',
+			// 	duration: 2000
+			// });
 		});
 	};
 	onShow(async () => {

--
Gitblit v1.9.3