|
|
@ -79,7 +79,7 @@ |
|
|
|
<uni-forms-item label="道路宽度" name="roadWidth" required label-width="80"> |
|
|
|
<uni-forms-item label="道路宽度" name="roadWidth" required label-width="80"> |
|
|
|
<view class="Height100 Flex Flex_end Flex_C_S-Center" style="line-height: 37px; "> |
|
|
|
<view class="Height100 Flex Flex_end Flex_C_S-Center" style="line-height: 37px; "> |
|
|
|
<input v-if="isEdit" type="number" class="BorderNone Height100 formInput" |
|
|
|
<input v-if="isEdit" type="number" class="BorderNone Height100 formInput" |
|
|
|
v-model="formData.roadWidth" placeholder="请输入道路宽度" @focus="focus" /> |
|
|
|
v-model="formData.roadWidth" placeholder="请输入道路宽度" @focus="focus" @blur="blur" /> |
|
|
|
<view class="Height100" v-else>{{ formData.roadWidth }}</view> |
|
|
|
<view class="Height100" v-else>{{ formData.roadWidth }}</view> |
|
|
|
<view class="Height100">米</view> |
|
|
|
<view class="Height100">米</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -87,7 +87,7 @@ |
|
|
|
<uni-forms-item label="车道数" name="laneCount" required label-width="80"> |
|
|
|
<uni-forms-item label="车道数" name="laneCount" required label-width="80"> |
|
|
|
<view class="Height100 Flex Flex_end Flex_C_S-Center" style="line-height: 37px; "> |
|
|
|
<view class="Height100 Flex Flex_end Flex_C_S-Center" style="line-height: 37px; "> |
|
|
|
<input v-if="isEdit" type="number" class="BorderNone Height100 formInput" |
|
|
|
<input v-if="isEdit" type="number" class="BorderNone Height100 formInput" |
|
|
|
v-model="formData.laneCount" placeholder="请输入车道数" @focus="focus" /> |
|
|
|
v-model="formData.laneCount" placeholder="请输入车道数" @focus="focus" @blur="blur" /> |
|
|
|
<view class="Height100" v-else>{{ formData.laneCount }}</view> |
|
|
|
<view class="Height100" v-else>{{ formData.laneCount }}</view> |
|
|
|
<view class="Height100">道</view> |
|
|
|
<view class="Height100">道</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -95,7 +95,7 @@ |
|
|
|
<uni-forms-item label="路面结构"> |
|
|
|
<uni-forms-item label="路面结构"> |
|
|
|
<view class="Height100 Flex Flex_end Flex_C_S-Center" style="line-height: 37px; "> |
|
|
|
<view class="Height100 Flex Flex_end Flex_C_S-Center" style="line-height: 37px; "> |
|
|
|
<input v-if="isEdit" type="text" class="BorderNone Height100 formInput" |
|
|
|
<input v-if="isEdit" type="text" class="BorderNone Height100 formInput" |
|
|
|
v-model="formData.roadStructure" placeholder="请输入路面结构" @focus="focus" /> |
|
|
|
v-model="formData.roadStructure" placeholder="请输入路面结构" @focus="focus" @blur="blur" /> |
|
|
|
<view class="Height100" v-else>{{ formData.roadStructure }}</view> |
|
|
|
<view class="Height100" v-else>{{ formData.roadStructure }}</view> |
|
|
|
<view class="Height100"></view> |
|
|
|
<view class="Height100"></view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -103,7 +103,7 @@ |
|
|
|
<uni-forms-item label="路侧防护"> |
|
|
|
<uni-forms-item label="路侧防护"> |
|
|
|
<view class="Height100 Flex Flex_end Flex_C_S-Center" style="line-height: 37px; "> |
|
|
|
<view class="Height100 Flex Flex_end Flex_C_S-Center" style="line-height: 37px; "> |
|
|
|
<input v-if="isEdit" type="text" class="BorderNone Height100 formInput" |
|
|
|
<input v-if="isEdit" type="text" class="BorderNone Height100 formInput" |
|
|
|
v-model="formData.sideProtec" placeholder="请输入路侧防护" @focus="focus" /> |
|
|
|
v-model="formData.sideProtec" placeholder="请输入路侧防护" @focus="focus" @blur="blur" /> |
|
|
|
<view class="Height100" v-else>{{ formData.sideProtec }}</view> |
|
|
|
<view class="Height100" v-else>{{ formData.sideProtec }}</view> |
|
|
|
<view class="Height100"></view> |
|
|
|
<view class="Height100"></view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -111,7 +111,7 @@ |
|
|
|
<uni-forms-item label="中央隔离"> |
|
|
|
<uni-forms-item label="中央隔离"> |
|
|
|
<view class="Height100 Flex Flex_end Flex_C_S-Center" style="line-height: 37px; "> |
|
|
|
<view class="Height100 Flex Flex_end Flex_C_S-Center" style="line-height: 37px; "> |
|
|
|
<input v-if="isEdit" type="text" class="BorderNone Height100 formInput" |
|
|
|
<input v-if="isEdit" type="text" class="BorderNone Height100 formInput" |
|
|
|
v-model="formData.centerSeparate" placeholder="请输入中央隔离" @focus="focus" /> |
|
|
|
v-model="formData.centerSeparate" placeholder="请输入中央隔离" @focus="focus" @blur="blur" /> |
|
|
|
<view class="Height100" v-else>{{ formData.centerSeparate }}</view> |
|
|
|
<view class="Height100" v-else>{{ formData.centerSeparate }}</view> |
|
|
|
<view class="Height100"></view> |
|
|
|
<view class="Height100"></view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -119,7 +119,7 @@ |
|
|
|
<uni-forms-item label="设计时速" name="designSpeed" required label-width="80"> |
|
|
|
<uni-forms-item label="设计时速" name="designSpeed" required label-width="80"> |
|
|
|
<view class="Height100 Flex Flex_end Flex_C_S-Center" style="line-height: 37px; "> |
|
|
|
<view class="Height100 Flex Flex_end Flex_C_S-Center" style="line-height: 37px; "> |
|
|
|
<input v-if="isEdit" type="number" class="BorderNone Height100 formInput" |
|
|
|
<input v-if="isEdit" type="number" class="BorderNone Height100 formInput" |
|
|
|
v-model="formData.designSpeed" placeholder="请输入设计时速" @focus="focus" /> |
|
|
|
v-model="formData.designSpeed" placeholder="请输入设计时速" @focus="focus" @blur="blur" /> |
|
|
|
<view class="Height100" v-else>{{ formData.designSpeed }}</view> |
|
|
|
<view class="Height100" v-else>{{ formData.designSpeed }}</view> |
|
|
|
<view class="Height100">Km/h</view> |
|
|
|
<view class="Height100">Km/h</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -127,7 +127,7 @@ |
|
|
|
<uni-forms-item label="限速" name="limitSpeed" required label-width="80"> |
|
|
|
<uni-forms-item label="限速" name="limitSpeed" required label-width="80"> |
|
|
|
<view class="Height100 Flex Flex_end Flex_C_S-Center" style="line-height: 37px; "> |
|
|
|
<view class="Height100 Flex Flex_end Flex_C_S-Center" style="line-height: 37px; "> |
|
|
|
<input v-if="isEdit" type="number" class="BorderNone Height100 formInput" |
|
|
|
<input v-if="isEdit" type="number" class="BorderNone Height100 formInput" |
|
|
|
v-model="formData.limitSpeed" placeholder="请输入限速" @focus="focus" /> |
|
|
|
v-model="formData.limitSpeed" placeholder="请输入限速" @focus="focus" @blur="blur" /> |
|
|
|
<view class="Height100" v-else>{{ formData.limitSpeed }}</view> |
|
|
|
<view class="Height100" v-else>{{ formData.limitSpeed }}</view> |
|
|
|
<view class="Height100">Km/h</view> |
|
|
|
<view class="Height100">Km/h</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -1920,6 +1920,23 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}).exec(); // 执行查询 |
|
|
|
}).exec(); // 执行查询 |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
blur() { |
|
|
|
|
|
|
|
const query = uni.createSelectorQuery().in(this); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 选择我们想要的元素 |
|
|
|
|
|
|
|
query.select('#page').boundingClientRect(data => { |
|
|
|
|
|
|
|
// data是选中元素的大小及位置信息 |
|
|
|
|
|
|
|
if (data) { |
|
|
|
|
|
|
|
// 元素的高度 |
|
|
|
|
|
|
|
const height = data.height; |
|
|
|
|
|
|
|
if (this.isEdit) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.boxHeight = height - 200 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
console.log('盒子的高度:', height); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}).exec(); // 执行查询 |
|
|
|
|
|
|
|
}, |
|
|
|
focus2() { |
|
|
|
focus2() { |
|
|
|
const query = uni.createSelectorQuery().in(this); |
|
|
|
const query = uni.createSelectorQuery().in(this); |
|
|
|
|
|
|
|
|
|
|
|