.
This commit is contained in:
parent
be7220a679
commit
81045815dc
@ -59,4 +59,12 @@ export function getLandAndDevice(query) {
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
//获取地块配置
|
||||
export function getLandConfig(id) {
|
||||
return request({
|
||||
url: `/system/land/getLandConfig/${id}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
@ -37,6 +37,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
getLandConfig
|
||||
} from "@/api/system/land";
|
||||
import * as isApi from '@/api/irrigate/irrigateScenario.js'
|
||||
|
||||
export default {
|
||||
@ -132,7 +135,11 @@
|
||||
}
|
||||
} else {
|
||||
if (getApp().ijs.land) {
|
||||
this.formData.landId = getApp().ijs.land.id;
|
||||
const landId = getApp().ijs.land.id;
|
||||
const res = await getLandConfig(landId);
|
||||
this.formData.landId = landId;
|
||||
this.formData.pressureMin = res.data?.pressureMin || null;
|
||||
this.formData.pressureMax = res.data?.pressureMax || null;
|
||||
}
|
||||
}
|
||||
uni.hideLoading()
|
||||
|
Loading…
Reference in New Issue
Block a user