无人机管理后台前端(已迁走)
罗广辉
2025-06-21 6a542e726a8a8573f7acacf22639ffa4c68ee538
feat: 保存的时候转为wgs84
2 files modified
18 ■■■■■ changed files
src/views/tickets/orderLog.vue 6 ●●●● patch | view | raw | blame | history
src/views/tickets/ticket.vue 12 ●●●●● patch | view | raw | blame | history
src/views/tickets/orderLog.vue
@@ -4,9 +4,9 @@
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2025-04-28 11:38:16
 * @FilePath: \drone-web-manage\src\views\tickets\orderLog.vue
 * @Description:
 *
 * Copyright (c) 2025 by shuishen, All Rights Reserved.
 * @Description:
 *
 * Copyright (c) 2025 by shuishen, All Rights Reserved.
-->
<template>
  <basic-container>
src/views/tickets/ticket.vue
@@ -74,7 +74,7 @@
    </el-tabs>
    <!-- 新建工单对话框 -->
    <el-dialog v-model="dialogVisible" title="新建工单" width="70%" :close-on-click-modal="false" @close="resetForm">
    <el-dialog v-model="dialogVisible" v-if="dialogVisible" title="新建工单" width="70%" :close-on-click-modal="false" @close="resetForm">
      <el-form :model="form" :rules="rules" ref="form" label-width="90px" class="create-ticket-form">
        <div class="form-section">
          <el-row :gutter="16">
@@ -1351,14 +1351,10 @@
    handleLocationChange (val) {
      let locationValue = val.value
      console.log('handleLocationChange', locationValue)
      if (locationValue && locationValue.length >= 2) {
        // 兼容第三项为地址
        this.form.location = [
          Number(locationValue[0]),
          Number(locationValue[1]),
          locationValue[2] || '',
        ]
        const [lng, lat] = gcj02ToWgs84(locationValue[0], locationValue[1])
        this.form.location = [Number(lng), Number(lat), locationValue[2] || '',]
        this.form.address = locationValue[2] || ''
      } else {
        this.form.location = []
@@ -1471,6 +1467,8 @@
    handleAdd () {
      this.dialogVisible = true
      this.mapParams.center = null
      this.form.location = []
    },
    resetForm () {