|
@@ -42,7 +42,7 @@ |
|
|
<u-col span="7"> |
|
|
<u-col span="7"> |
|
|
<view class="demo-layout" @click="toOpen"> |
|
|
<view class="demo-layout" @click="toOpen"> |
|
|
<view class="left-layout"> |
|
|
<view class="left-layout"> |
|
|
<text>{{searchForm.alarmType}}</text> |
|
|
|
|
|
|
|
|
<text>{{searchForm.$alarmType || '警告类型'}}</text> |
|
|
</view> |
|
|
</view> |
|
|
<view class="right-layout"> |
|
|
<view class="right-layout"> |
|
|
<image style="width: 30rpx;height:30rpx;" |
|
|
<image style="width: 30rpx;height:30rpx;" |
|
@@ -56,7 +56,7 @@ |
|
|
<u-col span="5"> |
|
|
<u-col span="5"> |
|
|
<view class="demo-layout" @click="toOpenSelect"> |
|
|
<view class="demo-layout" @click="toOpenSelect"> |
|
|
<view class="left-layout"> |
|
|
<view class="left-layout"> |
|
|
<text>{{searchForm.warnHand}}</text> |
|
|
|
|
|
|
|
|
<text>{{searchForm.warnHand || '处理状态'}}</text> |
|
|
</view> |
|
|
</view> |
|
|
<view class="right-layout"> |
|
|
<view class="right-layout"> |
|
|
<image style="width: 30rpx;height:30rpx;" |
|
|
<image style="width: 30rpx;height:30rpx;" |
|
@@ -70,11 +70,11 @@ |
|
|
<uni-datetime-picker v-model="searchForm.tick" type="datetimerange"> |
|
|
<uni-datetime-picker v-model="searchForm.tick" type="datetimerange"> |
|
|
<view class="demo-layout"> |
|
|
<view class="demo-layout"> |
|
|
<view class="startBox"> |
|
|
<view class="startBox"> |
|
|
{{searchForm.StartTick}} |
|
|
|
|
|
|
|
|
{{searchForm.StartTick || '开始时间'}} |
|
|
</view> |
|
|
</view> |
|
|
<text>至</text> |
|
|
<text>至</text> |
|
|
<view class="endBox"> |
|
|
<view class="endBox"> |
|
|
{{searchForm.EndTick}} |
|
|
|
|
|
|
|
|
{{searchForm.EndTick || '结束时间'}} |
|
|
</view> |
|
|
</view> |
|
|
<view class="timeIcon"> |
|
|
<view class="timeIcon"> |
|
|
<image style="width: 30rpx;height:30rpx;" |
|
|
<image style="width: 30rpx;height:30rpx;" |
|
@@ -86,10 +86,10 @@ |
|
|
</u-col> |
|
|
</u-col> |
|
|
</u-row> |
|
|
</u-row> |
|
|
<view class="btnBox"> |
|
|
<view class="btnBox"> |
|
|
<view class="leftBtn"> |
|
|
|
|
|
|
|
|
<view class="leftBtn" @click="clearform"> |
|
|
重置 |
|
|
重置 |
|
|
</view> |
|
|
</view> |
|
|
<view class="rightBtn"> |
|
|
|
|
|
|
|
|
<view class="rightBtn" @click="onsubmit"> |
|
|
确认 |
|
|
确认 |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
@@ -174,10 +174,10 @@ |
|
|
<u-loadmore :status="status" /> |
|
|
<u-loadmore :status="status" /> |
|
|
</u-list> |
|
|
</u-list> |
|
|
</view> |
|
|
</view> |
|
|
<selectSearch ref="selectSearchBox" :cellVisible="false" :value.sync="searchForm.alarmType" |
|
|
|
|
|
:options="warnOption" title="预警类型" search-place-holder="预警类型" /> |
|
|
|
|
|
|
|
|
<selectSearch ref="selectSearchBox" :cellVisible="false" :v-model="searchForm.alarmType" |
|
|
|
|
|
:options="warnOption" :title.sync="searchForm.$alarmType" placeholder="预警类型" search-placeholder="预警类型" /> |
|
|
<selectRadio ref="selectRadioBox" :cellVisible="false" :value.sync="searchForm.warnHand" |
|
|
<selectRadio ref="selectRadioBox" :cellVisible="false" :value.sync="searchForm.warnHand" |
|
|
:options="[{value:1,label:'loudong1'},{value:2,label:'loudong2'}]" title="楼栋" /> |
|
|
|
|
|
|
|
|
:options="handOption" title="处理状态" /> |
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
@@ -193,11 +193,11 @@ |
|
|
return { |
|
|
return { |
|
|
isShowSearch: false, |
|
|
isShowSearch: false, |
|
|
searchForm: { |
|
|
searchForm: { |
|
|
alarmType: '警告类型', |
|
|
|
|
|
warnHand: '处理状态', |
|
|
|
|
|
|
|
|
alarmType: '', |
|
|
|
|
|
warnHand: '', |
|
|
tick: [], |
|
|
tick: [], |
|
|
StartTick: '开始时间', |
|
|
|
|
|
EndTick: '结束时间', |
|
|
|
|
|
|
|
|
StartTick: '', |
|
|
|
|
|
EndTick: '', |
|
|
}, |
|
|
}, |
|
|
warnOption: [ |
|
|
warnOption: [ |
|
|
{ |
|
|
{ |
|
@@ -217,6 +217,16 @@ |
|
|
value: 4 |
|
|
value: 4 |
|
|
}, |
|
|
}, |
|
|
], |
|
|
], |
|
|
|
|
|
handOption: [ |
|
|
|
|
|
{ |
|
|
|
|
|
label: '已处理', |
|
|
|
|
|
value: 1 |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
label: '未处理', |
|
|
|
|
|
value: 2 |
|
|
|
|
|
}, |
|
|
|
|
|
], |
|
|
warnList: [{ |
|
|
warnList: [{ |
|
|
warnHand: 1 |
|
|
warnHand: 1 |
|
|
}, { |
|
|
}, { |
|
@@ -317,6 +327,13 @@ |
|
|
this.loadmore() |
|
|
this.loadmore() |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
clearform() { |
|
|
|
|
|
this.searchForm = {} |
|
|
|
|
|
this.isShowSearch = false; |
|
|
|
|
|
}, |
|
|
|
|
|
onsubmit() { |
|
|
|
|
|
console.log(this.searchForm) |
|
|
|
|
|
}, |
|
|
// 跳转详情页面 |
|
|
// 跳转详情页面 |
|
|
toDetail(row) { |
|
|
toDetail(row) { |
|
|
uni.navigateTo({ |
|
|
uni.navigateTo({ |
|
|