This commit is contained in:
bb_pan 2025-09-01 14:46:19 +08:00
parent 441ddd816f
commit 4374511cb2
4 changed files with 20 additions and 5 deletions

View File

@ -207,7 +207,7 @@ import eselect from '@/components/tree-select/eselect.vue'
import { onLoad, onReady } from '@dcloudio/uni-app'
import {
getUnitList,
getProjectList,
getLeaseProjectListApi,
getConfigList,
getLevelThreeType,
insertApp,
@ -356,7 +356,7 @@ const getProject = async (e) => {
// "isApp":true
}
try {
const res = await getProjectList(obj)
const res = await getLeaseProjectListApi(obj)
proList.value = res.data
// proId.value=""
// treeSelect2.value.clearInput();

View File

@ -43,8 +43,9 @@ onShow(() => {
onLoad((opt) => {
console.log('🚀 ~ onLoad ~ opt:', opt)
itemId.value = opt.id
publishTask.value = opt.publishTask
itemId.value = JSON.parse(opt.id)
publishTask.value = JSON.parse(opt.publishTask)
console.log('🚀 ~ publishTask.value:', publishTask.value)
console.log('🚀 ~ itemId.value:', itemId.value)
// getList()
})

View File

@ -142,6 +142,8 @@ export default {
focusTimeout: null,
//
systemInfo: null,
screenHeight: null,
screenWidth: null,
}
},
onBackPress(options) {
@ -211,6 +213,10 @@ export default {
const systemInfo = uni.getSystemInfoSync()
console.log('设备信息:', systemInfo)
this.systemInfo = systemInfo
const screenHeight = systemInfo.screenHeight; // 1000
const screenWidth = systemInfo.screenWidth; // 600
this.screenHeight = screenHeight;
this.screenWidth = screenWidth;
} catch (error) {
console.error('获取设备信息失败:', error)
}
@ -488,7 +494,7 @@ export default {
console.log('拍照前聚焦...')
console.log('开始拍照...')
CameraPreview.takePicture(
{ width: 640, height: 540, quality: 50 },
{ width: this.screenWidth, height: this.screenHeight, quality: 50 },
async (base64PictureData) => {
console.log('拍照返回数据', base64PictureData)
await this.processImage(base64PictureData)

View File

@ -24,6 +24,14 @@ export const getBackInfo = (id,keyWord) => {
url: '/material/select/getUnitList',
data:data,
})
}
// 领用工程下拉
export const getLeaseProjectListApi = (data) => {
return http({
method: 'POST',
url: '/material/select/getLeaseProjectList',
data,
})
}
// 工程下拉选
export const getProjectList = (data) => {