|
@@ -79,7 +79,25 @@ function getInfo(){
|
|
|
}).then(res=>{
|
|
|
loading.value=false
|
|
|
if(res.code===200){
|
|
|
- listData.value=res.data||[]
|
|
|
+ const arr=res.data||[]
|
|
|
+ let temArr=[]
|
|
|
+ arr.forEach(item => {
|
|
|
+ temArr.push({
|
|
|
+ ...item,
|
|
|
+ GroupName:item.GroupName.split(',')[0],
|
|
|
+ tableName:item.ApplyRealName
|
|
|
+ })
|
|
|
+ if(item.PeerPeopleList){
|
|
|
+ item.PeerPeopleList.forEach(_item=>{
|
|
|
+ temArr.push({
|
|
|
+ ...item,
|
|
|
+ tableName:_item.PeerPeopleName,
|
|
|
+ GroupName:_item.PeerGroupName
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+ });
|
|
|
+ listData.value=temArr
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -112,7 +130,7 @@ function handleShowDetail(item){
|
|
|
<div class="empty-box" v-if="!loading&&listData.length==0">暂无数据</div>
|
|
|
<div class="table-box">
|
|
|
<div class="item" v-for="item in listData" :key="item.BusinessApplyId" @click="handleShowDetail(item)">
|
|
|
- <div class="left">{{item.ApplyRealName}}({{item.GroupName}})</div>
|
|
|
+ <div class="left">{{item.tableName}}({{item.GroupName}})</div>
|
|
|
<div :class="['right',item.Status=='待审批'?'yellow-text':'']">{{item.Province}}{{item.City}}({{item.DayTotal}}天)</div>
|
|
|
</div>
|
|
|
</div>
|