123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173 |
- <template>
- <view class="allpage">
- <view class="listtop pfixed">
- <tab-searchone @getSearch='getSearch'></tab-searchone>
- <hf-duban @bindDateChange="bindDateChange"></hf-duban>
- <!-- <tab-list :tablist='tablist' :tabidx="tabidx" @getCheck="goCheck" :height='130'></tab-list> -->
- </view>
- <view class="zhanline"></view>
- <view class="alllist">
-
- <!-- l列表 -->
- <project-list :datalist="list" :wtdt="wtdt" type="duban" @getDetail='goDetail' @getDel="getDel"></project-list>
- </view>
- </view>
- </template>
- <script>
- import projectList from "@/components/projectlist/list.vue"
- import tabList from "@/components/toptab/tab.vue"
- import tabSearchone from "@/components/toptab/searchone.vue"
- import hfDuban from "@/components/timedata/hfduban.vue"
- import { getdbdList,getdbdDet} from '@/api/work/clue.js'
- export default{
- data(){
- return{
- upimg:require("@/static/images/index/up.png"),
- tabidx:0,
- year:'',
- list:[],
- // tablist:[{tit:'全部',val:0,txt:300},{tit:'超期审核',val:1,txt:300},{tit:'严重滞后',val:2,txt:300}],
-
- pageSize: 10,
- pageNum: 1,
- reachflag:true,
- wtdt:'',
- year:'',
- beginTime:'',
- endTime:'',
- name:'',
- wtdt:'',
- deptId:this.$store.state.user.deptId,
- isHf:'',
- }
- },
- components:{
- projectList,tabList,tabSearchone,hfDuban
- },
- onUnload(){
- uni.$off('refreshdatalist')
- },
- onLoad() {
- uni.$on('refreshdatalist',(e) => {
- this.reachflag=true;
- this.pageNum=1;
- this.list=[];
- this.getDataFn()
- })
- this.getDataFn()
- },
- // 审核意见 传2
- onReachBottom() {
- if (this.reachflag) {
- this.pageNum++
- this.getDataFn()
- }
- },
- methods:{
- bindDateChange(e){
- this.isHf=e;
- this.reachflag=true;
- this.pageNum=1;
- this.list=[];
- this.getDataFn()
- },
- getDel(e){
- var that=this;
- this.$modal.confirm('确定删除该条信息吗?').then(() => {
- getdbdDet(e).then(res=>{
- if(res.code==200){
- this.$toast('删除成功')
- setTimeout(function() {
- uni.$emit('refreshdatalist','duban');
- that.reachflag=true;
- that.pageNum=1;
- that.list=[];
- that.getDataFn()
- },1500);
- }else{
- this.$toast(res.msg)
- }
- })
- })
- },
- goCheck(data){
- this.tabidx=data;
- this.reachflag=true;
- this.pageNum=1;
- this.list=[];
- this.getDataFn()
- },
- goDetail(e){
- // this.$tab.navigateTo('/pages/work/cluedetails?id='+e.xmId)
- this.$tab.navigateTo('/pages/work/ideadetail?id='+e.id)
- },
- getDataFn(){
- var params={
- pageSize:this.pageSize,
- pageNum: this.pageNum,
- xmmc:this.name,
- deptId:this.deptId,
- isHf:this.isHf
- }
-
- getdbdList(params).then(res=>{
- if(res.code==200){
- if (res.rows.length < this.pageSize) {
- this.reachflag = false
- this.wtdt = '到底了~';
- } else {
- var num = parseInt(res.rows.length) + parseInt(this.pageSize) * parseInt(this.pageNum - 1)
- if (num < res.total) {
- this.reachflag = true
- this.wtdt = '上拉加载更多'
- } else {
- this.reachflag = false
- this.wtdt = '到底了~';
- }
- }
- if (this.pageNum == 1) {
- this.list = res.rows;
- } else {
- this.list = this.list.concat(res.rows)
- }
- }else{
- this.$toast(res.msg)
- }
- })
- },
- getSearch(e){
- this.name=e;
- this.reachflag=true;
- this.pageNum=1;
- this.list=[];
- this.getDataFn()
- },
- }
- }
- </script>
- <style lang="scss" scoped>
- .allpage{min-height: 100vh;background: #ffffff;padding-top:190rpx;box-sizing: border-box;}
- .listtopa{border: 6rpx solid #FD5001;border-radius: 36rpx;height:72rpx;box-sizing: border-box;padding:0 140rpx 0 32rpx ;position: relative;
- input{}
- image{width: 30rpx;height: 30rpx;margin-right: 24rpx;}
- .btn{background: #FA5F03;border-radius: 36rpx;width: 140rpx;position: absolute;right: -2rpx;top: -2rpx;bottom:-2rpx;}
- }
- .listtopb{
- .tit{flex: 1;height: 130rpx;display: flex;flex-direction: column;justify-content: center;position: relative;
- view{text-align: center;}
- .tits{color: #666666;}
- .txt{color: #aaaaaa;}
- &.act{
- &::after{content: '';width: 100rpx;height: 6rpx;background:#FE5706 ;position: absolute;left: 50%;margin-left: -50rpx;bottom: 0;}
- .tits{color: #343434;}
- .txt{color: #FE5706;}
- }
- }
- }
- .alllist{padding-top:10rpx ;}
-
-
- </style>
|