吉安感知网项目-前端
罗广辉
2026-02-12 d522036e071bfc17a6874558bfb3a6f1be83d846
Merge remote-tracking branch 'origin/master'
7 files modified
105 ■■■■■ changed files
applications/task-work-order/src/views/orderView/flyingHand/FlyingHandDialog.vue 20 ●●●●● patch | view | raw | blame | history
applications/task-work-order/src/views/orderView/flyingHand/flyingHandApi.js 9 ●●●●● patch | view | raw | blame | history
applications/task-work-order/src/views/orderView/flyingHand/index.vue 21 ●●●● patch | view | raw | blame | history
uniapps/work-wx/src/config/env.js 6 ●●●● patch | view | raw | blame | history
uniapps/work-wx/src/pages/login/index.vue 10 ●●●● patch | view | raw | blame | history
uniapps/work-wx/src/pages/register/index.vue 18 ●●●● patch | view | raw | blame | history
uniapps/work-wx/src/subPackages/userDetail/password/index.vue 21 ●●●● patch | view | raw | blame | history
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'])
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
    })
}
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()
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'
}
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,
    // });
  }
}
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>
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 () => {