吉安感知网项目-前端
shuishen
2026-02-03 89380e6260a75d1d3b94de687ebcc2f50d50659d
applications/drone-command/src/views/basicManage/deviceStock/DeviceTrackDiaLog.vue
@@ -24,7 +24,7 @@
                     placeholder="请选择"
                     clearable
                  >
                     <el-option v-for="item in areaOptions" :key="item.value" :label="item.label" :value="item.label" />
                     <el-option v-for="item in areaOptions" :key="item.value" :label="item.label" :value="item.value" />
                  </el-select>
               </el-form-item>
            </el-col>
@@ -47,7 +47,7 @@
         </el-row>
      </el-form>
      <template #footer>
         <el-button color="#2B2B4C" @click="handleCancel">{{ dialogReadonly ? '关闭' : '取消' }}</el-button>
         <el-button v-if="dialogMode != 'view'" color="#2B2B4C" @click="handleCancel">{{ dialogReadonly ? '关闭' : '取消' }}</el-button>
         <el-button
            v-if="!dialogReadonly"
            type="primary"
@@ -67,7 +67,7 @@
import { ElMessage } from 'element-plus'
import { getUserListApi } from '@/api/system/user'
import { getLazyTree } from '@/api/base/region'
import { fieldRules } from '@ztzf/utils'
import { contactPhoneRules, fieldRules } from '@ztzf/utils'
import { fwDeviceTrackSubmitApi } from '@/views/basicManage/deviceStock/fwDeviceTrackApi'
import { saveOperationLog } from '@ztzf/apis'
import { useRoute } from 'vue-router'
@@ -101,7 +101,7 @@
const rules = {
   charger: fieldRules(true), // 负责人
   contactPhone: fieldRules(true, 50), // 联系电话
   contactPhone: contactPhoneRules(true, 50), // 联系电话
   outTarget: fieldRules(true, 50),
   outTime: fieldRules(true),
   purpose: fieldRules(true, 50), // 用途
@@ -137,9 +137,11 @@
   submitting.value = true
   try {
      const selected = areaOptions.value.find(item => item.value === formData.value.outTarget)
      const payload = {
         ...formData.value,
         outTarget: selected?.label ?? formData.value.outTarget,
         outTargetCode: formData.value.outTarget
      }
      await fwDeviceTrackSubmitApi(payload)
      saveOperationLog({