新增,处理结果
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="progress">
|
||||
<div class="list">
|
||||
<AiTopFixed>
|
||||
<div class="tab-select">
|
||||
<div class="item" :class="tabIndex == index ? 'active' : ''" v-for="(item, index) in tabs" :key="index" @click="tabClick(index)">{{item}}<span></span></div>
|
||||
@@ -17,18 +17,18 @@
|
||||
</AiAreaPicker>
|
||||
</div>
|
||||
<div class="right">
|
||||
<AiSelect dict="helpDeclarationStatus" v-model="status">
|
||||
<span v-if="!status" style="color: #999;">风险类型</span>
|
||||
<span v-else>{{status}}</span>
|
||||
<AiSelect dict="helpDeclarationReason" v-model="declareReason">
|
||||
<span v-if="!declareReason" style="color: #999;">风险类型</span>
|
||||
<span v-else>{{ $dict.getLabel('helpDeclarationReason', declareReason) }}</span>
|
||||
<u-icon name="arrow-down" color="#999" size="24" style="margin-left: 4px;width: 14px;display:inline-block;"></u-icon>
|
||||
<u-icon name="close-circle" v-if="ststus" color="#999" size="24" style="margin-left: 4px;width: 14px;display:inline-block;"></u-icon>
|
||||
<u-icon name="close-circle" v-if="declareReason" color="#999" size="24" style="margin-left: 4px;width: 14px;display:inline-block;"></u-icon>
|
||||
</AiSelect>
|
||||
</div>
|
||||
</div>
|
||||
</AiTopFixed>
|
||||
<div v-if="list.length">
|
||||
<div class="card_list" v-for="(item,index) in list" :key="index">
|
||||
<div class="card" @click="$linkTo(`./details?id=${item.id}`)">
|
||||
<div class="card_list">
|
||||
<div class="card" v-for="(item,index) in list" :key="index" @click="toDetail(item.id)">
|
||||
<div class="top">
|
||||
<div class="title">{{ item.riskDescription }}</div>
|
||||
<div class="time">{{ item.declareTime }}</div>
|
||||
@@ -58,11 +58,15 @@ export default {
|
||||
current: 1,
|
||||
areaId: '',
|
||||
areaName: '',
|
||||
status: '',
|
||||
declareReason: '',
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
this.$dict.load('helpDeclarationStatus')
|
||||
this.$dict.load('helpDeclarationStatus').then(() => {
|
||||
uni.$on('update', () => {
|
||||
this.getList()
|
||||
})
|
||||
})
|
||||
this.getList()
|
||||
},
|
||||
methods: {
|
||||
@@ -74,10 +78,12 @@ export default {
|
||||
},
|
||||
|
||||
getList() {
|
||||
this.$http.post('/app/apphelpdeclarationinfo/list',null,{
|
||||
this.$http.post('/app/apphelpdeclarationinfo/listByEw',null,{
|
||||
params: {
|
||||
current: this.current,
|
||||
// status: this.tabIndex == 0 ?
|
||||
areaId: this.areaId,
|
||||
searchType: this.tabIndex,
|
||||
declareReason: this.declareReason // 风险类型
|
||||
}
|
||||
}).then((res) => {
|
||||
if(res?.data) {
|
||||
@@ -90,6 +96,10 @@ export default {
|
||||
uni.navigateTo({url: './add'})
|
||||
},
|
||||
|
||||
toDetail(id) {
|
||||
uni.navigateTo({url: `./details?id=${id}`})
|
||||
},
|
||||
|
||||
onReachBottom() {
|
||||
this.current ++
|
||||
this.getList()
|
||||
@@ -99,7 +109,7 @@ export default {
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.progress {
|
||||
.list {
|
||||
// padding-top: 24px;
|
||||
::v-deep .AiTopFixed .content {
|
||||
padding: 0;
|
||||
@@ -151,7 +161,7 @@ export default {
|
||||
}
|
||||
|
||||
.card_list {
|
||||
padding: 0 32px;
|
||||
padding: 24px 32px;
|
||||
box-sizing: border-box;
|
||||
.card {
|
||||
background: #FFFFFF;
|
||||
|
||||
Reference in New Issue
Block a user