添加提示语

This commit is contained in:
wyw 2025-04-23 14:49:46 +08:00
parent 64df9f260e
commit c8887a3b66
4 changed files with 30 additions and 21 deletions

View File

@ -8,7 +8,7 @@
<view style="font-size: 15px; font-weight: bold;color: #3d4b70;margin-bottom: 10px;">隐患信息</view>
<u-form-item label="区域名称" prop="RISK_AREA_NAME" borderBottom ref="item1"
@click="handleShowSheet({title: '区域名称'})">
<u--input v-model="model.RISK_AREA_NAME" border="none" suffixIcon="arrow-right"
<u--input v-model="model.RISK_AREA_NAME" disabled border="none" suffixIcon="arrow-right"
customStyle="margin:0px;display:flex;padding:3px 9px"
suffixIconStyle="font-size:12px"></u--input>
</u-form-item>
@ -33,10 +33,6 @@
v-for="(item, index) in model.ListShow">
<uni-collapse-item :title="(index+1) + '. ' + item.CHECKCONTENT" name="1">
<u-form-item label="检查内容" prop="CHECKCONTENT" borderBottom>
<!-- <u--input disabled disabledColor="#fff" v-model="item.CHECKCONTENT"
border="none" inputAlign="right"></u--input> -->
<u--textarea disabled disabledColor="#fff" v-model="item.CHECKCONTENT"
border="none" inputAlign="right" autoHeight ></u--textarea>
</u-form-item>
@ -168,6 +164,9 @@
} else {
this.model.ListShow = res.Data
}
if (res.TotalCount == 0)
uni.$showMsg("未获取到数据", 'none')
} else {
this.model.ListShow = [{
CHECKCONTENT: ''

View File

@ -8,7 +8,7 @@
<view style="font-size: 15px; font-weight: bold;color: #3d4b70;margin-bottom: 10px;">隐患信息</view>
<u-form-item label="区域名称" prop="RISK_AREA_NAME" borderBottom ref="item1"
@click="handleShowSheet({title: '区域名称'})">
<u--input v-model="model.RISK_AREA_NAME" border="none" suffixIcon="arrow-right"
<u--input disabled v-model="model.RISK_AREA_NAME" border="none" suffixIcon="arrow-right"
customStyle="margin:0px;display:flex;padding:3px 9px"
suffixIconStyle="font-size:12px"></u--input>
</u-form-item>
@ -155,6 +155,9 @@
} else {
this.model.ListShow = res.Data
}
if (res.TotalCount == 0)
uni.$showMsg("未获取到数据", 'none')
} else {
this.model.ListShow = [{
CHECKCONTENT: '',

View File

@ -8,7 +8,7 @@
<view style="font-size: 15px; font-weight: bold;color: #3d4b70;margin-bottom: 10px;">隐患信息</view>
<u-form-item label="区域名称" prop="RISK_AREA_NAME" borderBottom ref="item1"
@click="handleShowSheet({title: '区域名称'})">
<u--input v-model="model.RISK_AREA_NAME" border="none" suffixIcon="arrow-right"
<u--input disabled v-model="model.RISK_AREA_NAME" border="none" suffixIcon="arrow-right"
customStyle="margin:0px;display:flex;padding:3px 9px"
suffixIconStyle="font-size:12px"></u--input>
</u-form-item>
@ -162,6 +162,9 @@
} else {
this.model.ListShow = res.Data
}
if (res.TotalCount == 0)
uni.$showMsg("未获取到数据", 'none')
} else {
this.model.ListShow = [{
CHECKCONTENT: '',

View File

@ -8,7 +8,7 @@
<view style="font-size: 15px; font-weight: bold;color: #3d4b70;margin-bottom: 10px;">隐患信息</view>
<u-form-item label="区域名称" prop="RISK_AREA_NAME" borderBottom ref="item1"
@click="handleShowSheet({title: '区域名称'})">
<u--input v-model="model.RISK_AREA_NAME" border="none" suffixIcon="arrow-right"
<u--input disabled v-model="model.RISK_AREA_NAME" border="none" suffixIcon="arrow-right"
customStyle="margin:0px;display:flex;padding:3px 9px"
suffixIconStyle="font-size:12px"></u--input>
</u-form-item>
@ -29,14 +29,15 @@
<u--form labelPosition="left" labelWidth="auto" labelAlign="center"
errorType="border-bottom" style="margin-bottom: 50px;" ref="sForm">
<uni-collapse :border="false" accordion>
<uni-card style="margin-bottom: 5px;" margin="0"
spacing="0" :is-shadow="false" v-for="(item, index) in model.ListShow">
<uni-card style="margin-bottom: 5px;" margin="0" spacing="0" :is-shadow="false"
v-for="(item, index) in model.ListShow">
<uni-collapse-item :title="(index+1) + '. ' + item.CHECKCONTENT" name="1">
<u-form-item label="检查内容" prop="CHECKCONTENT" borderBottom>
<u--input disabled disabledColor="#fff" v-model="item.CHECKCONTENT"
border="none" inputAlign="right"></u--input>
</u-form-item>
<u-form-item v-if="model.ISDOWN==''" label="区域" prop="Nav_RiskArea.NAME" borderBottom>
<u-form-item v-if="model.ISDOWN==''" label="区域" prop="Nav_RiskArea.NAME"
borderBottom>
<u--input disabled disabledColor="#fff" v-model="item.Nav_RiskArea.NAME"
border="none" inputAlign="right"></u--input>
</u-form-item>
@ -158,6 +159,9 @@
} else {
this.model.ListShow = res.Data
}
if (res.TotalCount == 0)
uni.$showMsg("未获取到数据", 'none')
} else {
this.model.ListShow = [{
CHECKCONTENT: '',