This commit is contained in:
liuye
2023-05-12 09:02:07 +08:00
parent edd2cdf632
commit 9958eef8b8

View File

@@ -26,8 +26,13 @@
<span v-if="!result.files.length">暂无照片</span> <span v-if="!result.files.length">暂无照片</span>
</AiItem> </AiItem>
</AiGroup> --> </AiGroup> -->
<u-gap height="24"/> <!-- <u-gap height="24"/> -->
<u-tabs :list="[{name:'办理进度'},{name:'我的评价'}]" :current="currentTab" @change="v=>currentTab=v"/> <!-- <u-tabs :list="[{name:'办理进度'},{name:'我的评价'}]" :current="currentTab" @change="v=>currentTab=v"/> -->
<div class="tab-content">
<div class="tab-item" v-for="(item, index) in tabList" :key="index" @click="tabClick(index)" :class="currentTab == index ? 'active' : ''">{{ item.name }}
<span class="active-line" v-if="currentTab == index"/>
</div>
</div>
<u-gap height="24"/> <u-gap height="24"/>
<AiGroup noBorder v-if="currentTab=='0'"> <AiGroup noBorder v-if="currentTab=='0'">
<AiStep v-for="(item,i) in process" :key="item.id" :index="i"> <AiStep v-for="(item,i) in process" :key="item.id" :index="i">
@@ -58,7 +63,8 @@ export default {
result: {}, result: {},
currentTab: 0, currentTab: 0,
evaluation: {}, evaluation: {},
id: '' id: '',
tabList: [{name:'办理进度'},{name:'我的评价'}]
} }
}, },
computed: { computed: {
@@ -90,6 +96,9 @@ export default {
this.$dict.load(['clapEventStatus', 'residentEventSource']) this.$dict.load(['clapEventStatus', 'residentEventSource'])
}, },
methods: { methods: {
tabClick(index) {
this.currentTab = index
},
getInfo() { getInfo() {
this.$loading() this.$loading()
this.$instance.post(`/app/appresidentreportinfo/queryDetailById?id=${this.id}`).then(res => { this.$instance.post(`/app/appresidentreportinfo/queryDetailById?id=${this.id}`).then(res => {
@@ -203,5 +212,31 @@ export default {
margin-right: 0; margin-right: 0;
} }
} }
.tab-content {
display: flex;
.tab-item {
flex: 1;
position: relative;
height: 88px;
line-height: 88px;
font-size: 32px;
color: #666;
text-align: center;
.active-line {
position: absolute;
top: 80px;
left: 50%;
margin-left: -40px;
width: 80px;
height: 4px;
border-radius: 2px;
background-color: #197DF0;
}
}
.active {
font-weight: 500;
color: #333;
}
}
} }
</style> </style>