qa-regulatory-gwj-app/pages/larger-major-hidden-management/larger-hidden-management/detail-list.vue

117 lines
3.0 KiB
Vue
Raw Normal View History

2023-11-07 10:08:37 +08:00
<template>
<view class="content">
<view class="search card">
<u--input
prefixIcon="search"
placeholder="请输入关键字"
border="surround"
v-model="keyword"
clearable
shape="circle"
></u--input>
2024-10-10 10:14:31 +08:00
<view class="bth-mini ml-10"><u-button type="success" text="确定" @click="resetList"></u-button></view>
2024-07-27 15:13:42 +08:00
2023-11-07 10:08:37 +08:00
</view>
<u-list @scrolltolower="scrolltolower" v-if="list.length > 0">
<u-list-item v-for="(item, index) in list" :key="index">
<view>
<view class="flex-between main-title">
<text>{{ item.HIDDENDESCR }}</text>
<text>发现人{{ item.CREATORNAME }}</text>
</view>
<view class="flex-between mt-10 subtitle">
<text>分公司部门领导小组长{{item.CONFIRM_USER_NAME}}</text>
</view>
<view class="flex-between mt-10 subtitle">
<text>分公司安委会办公室主任{{item.CHECKER}}</text>
</view>
<view class="flex-between mt-10 subtitle">
<text>港股公司安委会办公室副主任{{item.APPROVED}}</text>
</view>
<view class="flex-between mt-10 subtitle">
<text>隐患级别{{item.NAME}}</text>
2024-07-27 15:13:42 +08:00
</view>
<view class="see_btn">
2024-10-10 10:14:31 +08:00
<u-button type="primary" text="查看" size="mini"
2023-11-07 10:08:37 +08:00
@click="fnNavigatorDetail(item.HIDDEN_ID)"></u-button>
</view>
</view>
</u-list-item>
</u-list>
<empty v-else></empty>
</view>
</template>
<script>
import {getDept, getHiddenType, getMajorHiddenList, getMoreHiddenList} from "../../../api";
import tkiTree from "@/components/tki-tree/tki-tree.vue"
export default {
components: {tkiTree},
data() {
return {
keyword: '',
pageSize: 10,
currentPage: 1,
totalPage: 0,
list: [],
CORPINFO_ID: '',
}
},
onLoad(event) {
this.CORPINFO_ID = event.CORPINFO_ID;
this.resetList()
},
methods: {
async getData() {
let resData = await getMoreHiddenList({
CORPINFO_ID: this.CORPINFO_ID,
HIDDENLEVEL: 'jdyh001',
KEYWORDS: this.keyword,
showCount: this.pageSize,
currentPage: this.currentPage,
});
this.list = [...this.list, ...resData.varList];
this.totalPage = resData.page.totalPage;
},
resetList() {
this.pageSize = 10
this.currentPage = 1
this.list = []
this.getData()
},
fnNavigatorDetail(HIDDEN_ID) {
uni.$u.route({
url: '/pages/larger-major-hidden-management/larger-hidden-management/detail',
params: {
HIDDEN_ID,
}
})
},
scrolltolower() {
this.currentPage++;
if (this.totalPage >= this.currentPage) this.getData();
},
}
}
</script>
2024-07-27 15:13:42 +08:00
<style scoped lang="scss">
.search{
display: flex;
.ml-10{
margin-left: 10rpx;
}
.bth-mini{
width: 100rpx;
}
2023-11-07 10:08:37 +08:00
2024-07-27 15:13:42 +08:00
}
.see_btn{
2024-10-10 10:14:31 +08:00
//width: 100rpx;
2024-07-27 15:13:42 +08:00
float: right;
}
2023-11-07 10:08:37 +08:00
</style>