From 19a01f3fe9e64b4a70bfa7331f948eb57f6739b3 Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Tue, 13 Jan 2026 15:20:02 +0800
Subject: [PATCH] feat:更新小程序
---
uniapps/work-wx/src/subPackages/deviceRegistration/add.vue | 23 +++++++++++++++++++++--
1 files changed, 21 insertions(+), 2 deletions(-)
diff --git a/uniapps/work-wx/src/subPackages/deviceRegistration/add.vue b/uniapps/work-wx/src/subPackages/deviceRegistration/add.vue
index 97e8ce7..e15b689 100644
--- a/uniapps/work-wx/src/subPackages/deviceRegistration/add.vue
+++ b/uniapps/work-wx/src/subPackages/deviceRegistration/add.vue
@@ -260,12 +260,18 @@
@confirm="onPurchaseDate"
@cancel="showPurchaseDate = false"
/>
+ <!-- 所属区域 -->
+ <u-cascader
+ show="show"
+ v-model="value"
+ :data="areaData"
+ ></u-cascader>
</u-form>
</view>
</template>
<script setup>
-import { aircraftInfoSaveApi,uploadFileApi } from '@/api/index'
-import { ref, computed } from 'vue'
+import { aircraftInfoSaveApi,uploadFileApi,areaDataApi } from '@/api/index'
+import { ref, computed, onMounted } from 'vue'
import dayjs from 'dayjs'
const formRef = ref(null);
@@ -445,6 +451,16 @@
});
});
}
+// 获取所属单位
+const isShowRegion = ref(false)
+const areaData = ref([])
+function getAreaData() {
+ areaDataApi().then(res => {
+ if (res.data.code === 200) {
+ areaData.value = res.data.data
+ }
+ })
+}
// 提交图片
function afterReadImage(event) {
// 获取上传的文件对象
@@ -526,6 +542,9 @@
// 这里可以添加额外的失败处理逻辑
}
}
+onMounted(() => {
+ getAreaData()
+})
</script>
<style scoped lang="scss">
.deviceRegistration {
--
Gitblit v1.9.3