添加提示语
This commit is contained in:
parent
64df9f260e
commit
c8887a3b66
@ -8,7 +8,7 @@
|
|||||||
<view style="font-size: 15px; font-weight: bold;color: #3d4b70;margin-bottom: 10px;">隐患信息</view>
|
<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"
|
<u-form-item label="区域名称" prop="RISK_AREA_NAME" borderBottom ref="item1"
|
||||||
@click="handleShowSheet({title: '区域名称'})">
|
@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"
|
customStyle="margin:0px;display:flex;padding:3px 9px"
|
||||||
suffixIconStyle="font-size:12px"></u--input>
|
suffixIconStyle="font-size:12px"></u--input>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
@ -33,10 +33,6 @@
|
|||||||
v-for="(item, index) in model.ListShow">
|
v-for="(item, index) in model.ListShow">
|
||||||
<uni-collapse-item :title="(index+1) + '. ' + item.CHECKCONTENT" name="1">
|
<uni-collapse-item :title="(index+1) + '. ' + item.CHECKCONTENT" name="1">
|
||||||
<u-form-item label="检查内容" prop="CHECKCONTENT" borderBottom>
|
<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"
|
<u--textarea disabled disabledColor="#fff" v-model="item.CHECKCONTENT"
|
||||||
border="none" inputAlign="right" autoHeight ></u--textarea>
|
border="none" inputAlign="right" autoHeight ></u--textarea>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
@ -168,6 +164,9 @@
|
|||||||
} else {
|
} else {
|
||||||
this.model.ListShow = res.Data
|
this.model.ListShow = res.Data
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (res.TotalCount == 0)
|
||||||
|
uni.$showMsg("未获取到数据", 'none')
|
||||||
} else {
|
} else {
|
||||||
this.model.ListShow = [{
|
this.model.ListShow = [{
|
||||||
CHECKCONTENT: ''
|
CHECKCONTENT: ''
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
<view style="font-size: 15px; font-weight: bold;color: #3d4b70;margin-bottom: 10px;">隐患信息</view>
|
<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"
|
<u-form-item label="区域名称" prop="RISK_AREA_NAME" borderBottom ref="item1"
|
||||||
@click="handleShowSheet({title: '区域名称'})">
|
@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"
|
customStyle="margin:0px;display:flex;padding:3px 9px"
|
||||||
suffixIconStyle="font-size:12px"></u--input>
|
suffixIconStyle="font-size:12px"></u--input>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
@ -155,6 +155,9 @@
|
|||||||
} else {
|
} else {
|
||||||
this.model.ListShow = res.Data
|
this.model.ListShow = res.Data
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (res.TotalCount == 0)
|
||||||
|
uni.$showMsg("未获取到数据", 'none')
|
||||||
} else {
|
} else {
|
||||||
this.model.ListShow = [{
|
this.model.ListShow = [{
|
||||||
CHECKCONTENT: '',
|
CHECKCONTENT: '',
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
<view style="font-size: 15px; font-weight: bold;color: #3d4b70;margin-bottom: 10px;">隐患信息</view>
|
<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"
|
<u-form-item label="区域名称" prop="RISK_AREA_NAME" borderBottom ref="item1"
|
||||||
@click="handleShowSheet({title: '区域名称'})">
|
@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"
|
customStyle="margin:0px;display:flex;padding:3px 9px"
|
||||||
suffixIconStyle="font-size:12px"></u--input>
|
suffixIconStyle="font-size:12px"></u--input>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
@ -162,6 +162,9 @@
|
|||||||
} else {
|
} else {
|
||||||
this.model.ListShow = res.Data
|
this.model.ListShow = res.Data
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (res.TotalCount == 0)
|
||||||
|
uni.$showMsg("未获取到数据", 'none')
|
||||||
} else {
|
} else {
|
||||||
this.model.ListShow = [{
|
this.model.ListShow = [{
|
||||||
CHECKCONTENT: '',
|
CHECKCONTENT: '',
|
||||||
|
|||||||
@ -3,12 +3,12 @@
|
|||||||
<view class="content">
|
<view class="content">
|
||||||
<view class="container">
|
<view class="container">
|
||||||
<view class="form-sub">
|
<view class="form-sub">
|
||||||
|
|
||||||
<u-form :model="model" ref="uForm" label-width="90px" class="demo-ruleForm" size="mini">
|
<u-form :model="model" ref="uForm" label-width="90px" class="demo-ruleForm" size="mini">
|
||||||
<view style="font-size: 15px; font-weight: bold;color: #3d4b70;margin-bottom: 10px;">隐患信息</view>
|
<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"
|
<u-form-item label="区域名称" prop="RISK_AREA_NAME" borderBottom ref="item1"
|
||||||
@click="handleShowSheet({title: '区域名称'})">
|
@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"
|
customStyle="margin:0px;display:flex;padding:3px 9px"
|
||||||
suffixIconStyle="font-size:12px"></u--input>
|
suffixIconStyle="font-size:12px"></u--input>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
@ -29,14 +29,15 @@
|
|||||||
<u--form labelPosition="left" labelWidth="auto" labelAlign="center"
|
<u--form labelPosition="left" labelWidth="auto" labelAlign="center"
|
||||||
errorType="border-bottom" style="margin-bottom: 50px;" ref="sForm">
|
errorType="border-bottom" style="margin-bottom: 50px;" ref="sForm">
|
||||||
<uni-collapse :border="false" accordion>
|
<uni-collapse :border="false" accordion>
|
||||||
<uni-card style="margin-bottom: 5px;" margin="0"
|
<uni-card style="margin-bottom: 5px;" margin="0" spacing="0" :is-shadow="false"
|
||||||
spacing="0" :is-shadow="false" v-for="(item, index) in model.ListShow">
|
v-for="(item, index) in model.ListShow">
|
||||||
<uni-collapse-item :title="(index+1) + '. ' + item.CHECKCONTENT" name="1">
|
<uni-collapse-item :title="(index+1) + '. ' + item.CHECKCONTENT" name="1">
|
||||||
<u-form-item label="检查内容" prop="CHECKCONTENT" borderBottom>
|
<u-form-item label="检查内容" prop="CHECKCONTENT" borderBottom>
|
||||||
<u--input disabled disabledColor="#fff" v-model="item.CHECKCONTENT"
|
<u--input disabled disabledColor="#fff" v-model="item.CHECKCONTENT"
|
||||||
border="none" inputAlign="right"></u--input>
|
border="none" inputAlign="right"></u--input>
|
||||||
</u-form-item>
|
</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"
|
<u--input disabled disabledColor="#fff" v-model="item.Nav_RiskArea.NAME"
|
||||||
border="none" inputAlign="right"></u--input>
|
border="none" inputAlign="right"></u--input>
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
@ -77,9 +78,9 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
OrgId: '',
|
OrgId: '',
|
||||||
pageIndex:0,
|
pageIndex: 0,
|
||||||
pageSize:20,
|
pageSize: 20,
|
||||||
total:0,
|
total: 0,
|
||||||
model: {
|
model: {
|
||||||
RISK_AREA_NAME: '请选择区域',
|
RISK_AREA_NAME: '请选择区域',
|
||||||
RISK_AREA_ID: '',
|
RISK_AREA_ID: '',
|
||||||
@ -125,7 +126,7 @@
|
|||||||
this.OrgId = option.OrgId // 'B043B28B-BBC3-C452-6052-4FBA1457ABFA'
|
this.OrgId = option.OrgId // 'B043B28B-BBC3-C452-6052-4FBA1457ABFA'
|
||||||
if (this.model.RISK_AREA_ID != undefined && this.model.RISK_AREA_ID != '') {
|
if (this.model.RISK_AREA_ID != undefined && this.model.RISK_AREA_ID != '') {
|
||||||
// this.PagedCheckMain()//扫二维码 默认赋值
|
// this.PagedCheckMain()//扫二维码 默认赋值
|
||||||
|
|
||||||
const json = initFilter(this.OrgId, null, "NAME", 0, 1);
|
const json = initFilter(this.OrgId, null, "NAME", 0, 1);
|
||||||
json.IgnoreDataRule = true
|
json.IgnoreDataRule = true
|
||||||
json.Limit = 2
|
json.Limit = 2
|
||||||
@ -147,17 +148,20 @@
|
|||||||
const json = initFilter(this.OrgId, this.model.RISK_AREA_ID, "CREATE_TIME", 1, this.pageIndex, ((
|
const json = initFilter(this.OrgId, this.model.RISK_AREA_ID, "CREATE_TIME", 1, this.pageIndex, ((
|
||||||
this.model.ISDOWN == '否' || this.model.ISDOWN == '') ? false : true))
|
this.model.ISDOWN == '否' || this.model.ISDOWN == '') ? false : true))
|
||||||
json.IgnoreDataRule = true
|
json.IgnoreDataRule = true
|
||||||
json.Limit = this.pageSize
|
json.Limit = this.pageSize
|
||||||
json.SelectField = ["CHECKCONTENT", "DESCREPTION","Nav_RiskArea.NAME", "CREATE_TIME"]
|
json.SelectField = ["CHECKCONTENT", "DESCREPTION", "Nav_RiskArea.NAME", "CREATE_TIME"]
|
||||||
PagedCheckMain(json).then(res => {
|
PagedCheckMain(json).then(res => {
|
||||||
if (res.IsSuccessful) {
|
if (res.IsSuccessful) {
|
||||||
this.total=res.TotalCount
|
this.total = res.TotalCount
|
||||||
// this.model.ListShow = res.Data
|
// this.model.ListShow = res.Data
|
||||||
if (paginate) {
|
if (paginate) {
|
||||||
this.model.ListShow= this.model.ListShow.concat(res.Data)
|
this.model.ListShow = this.model.ListShow.concat(res.Data)
|
||||||
} else {
|
} else {
|
||||||
this.model.ListShow = res.Data
|
this.model.ListShow = res.Data
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (res.TotalCount == 0)
|
||||||
|
uni.$showMsg("未获取到数据", 'none')
|
||||||
} else {
|
} else {
|
||||||
this.model.ListShow = [{
|
this.model.ListShow = [{
|
||||||
CHECKCONTENT: '',
|
CHECKCONTENT: '',
|
||||||
@ -242,7 +246,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
if (this.total > this.pageSize * this.pageIndex)
|
if (this.total > this.pageSize * this.pageIndex)
|
||||||
this.PagedCheckMain(true)
|
this.PagedCheckMain(true)
|
||||||
}
|
}
|
||||||
// watch: {
|
// watch: {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user