mine.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730
  1. <template>
  2. <view :style="'padding-top:'+nvaHeight+'px;'">
  3. <view class="navbox">
  4. <uni-nav-bar color="#ffffff" rightWidth="150rpx" title="政协提案" @clickLeft="getBack" @clickRight="getChFn" :background-color="backgroundColor" :border="false" statusBar='true' fixed="true">
  5. <block slot="left">
  6. <view class="topl">
  7. <image :src="backimg" ></image>
  8. </view>
  9. </block>
  10. <!-- <block slot="right">
  11. <view class="topr">
  12. <image :src="ccicoimg"></image>
  13. <view>提案查重</view>
  14. </view>
  15. </block> -->
  16. </uni-nav-bar>
  17. <view class="plr12 mt18">
  18. <view class="search flex0 mb10">
  19. <image :src="searchimg"></image>
  20. <input placeholder="输入关键字进行查询" v-model="title" @confirm="getConfirm"/>
  21. </view>
  22. </view>
  23. <view class="tablists flexc mb20">
  24. <block v-for="(ite,idx) in tabList" >
  25. <view v-if="!ite.limit||ite.limit&&checkPermi([ite.limit])" @click="getTabFn(ite)" :class="{act:tabidx==ite.val}" :key="idx">{{ite.tit}}</view>
  26. </block>
  27. </view>
  28. <view style="height: 56rpx;"></view>
  29. <view class="lbtab flexc">
  30. <image :src="lbicoimg" class="limg"></image>
  31. <view class="lbtabs flexc">
  32. <view class="lbtabp" @click="getTalbFn">
  33. <view style="padding: 0 18rpx;" :class="tnlbname?'':'f16 co80'">{{tnlbname || "提案类别"}}</view>
  34. <image :src="upimg" class="upimg"></image>
  35. </view>
  36. <view class="lbtabp" v-if="tabidx=='qb'">
  37. <picker range-key='label' :value="tajdidx" :range="tajdlist" @change='bindDateChanged'>
  38. <view :class="tajd?'':'f16 co80'">{{tajd || "提案进度"}}</view>
  39. </picker>
  40. <image :src="upimg" class="upimg"></image>
  41. </view>
  42. <view class="lbtabp" >
  43. <picker range-key='label' :value="talbidx" :range="talxList" @change='bindDateChangea'>
  44. <view :class="talx?'':'f16 co80'">{{talx || "提案类型"}}</view>
  45. </picker>
  46. <image :src="upimg" class="upimg"></image>
  47. </view>
  48. <view class="lbtabp">
  49. <picker mode="date" fields="year" range-key='label' :value="talbidx" @change='bindDateChangeb'>
  50. <view :class="year?'':'f16 co80'">{{year || "选择年份"}}</view>
  51. </picker>
  52. <image :src="upimg" class="upimg"></image>
  53. </view>
  54. <!-- <view class="lbtabp">
  55. <picker range-key='label' :value="talbidx" :range="taztList" @change='bindDateChangea'>
  56. <view :class="datainfo.dqjz?'':'f16 co80'">{{datainfo.talb || "单位答复"}}</view>
  57. </picker>
  58. <image :src="upimg" class="upimg"></image>
  59. </view> -->
  60. </view>
  61. </view>
  62. </view>
  63. <!-- 列表 -->
  64. <view class="mbox">
  65. <case-list :datalist="list" :listtype="listtype" :wtdt="wtdt" :tajdlist='tajdlist' :type='tabidx' @getDetail="getDetail" @getTuiFn="getTuiFn"></case-list>
  66. </view>
  67. <view v-if="checkPermi(['proposalInfo:info:add'])&&tabidx=='wdta'">
  68. <view style="height: 100rpx;"></view>
  69. <view class="fwbtns" @click="getAddCase">提交提案</view>
  70. </view>
  71. <!-- 弹窗 -->
  72. <pop-up :type='ptype' :blfsList="matterList" :blcdlist="blcdlist" :mycdlist="mycdlist" @getFaFn="getFaFn" :dataTree="deptTree" @getClose="getClose" @getupSubmit="getupSubmit"></pop-up>
  73. </view>
  74. </template>
  75. <script>
  76. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  77. import {getCaseListFn,getInfoisRecordFn,getInfoAssignFn,getInfoReplyFn,getInfoShFn,getInfoIdeaFn,getInfozxIdeaFn,
  78. getInfourgeFn,getInfokeyPointFn,getInfooutstandingFn,getUserverifyFn,getInfojointlyListFn,geturgeListFn,getInfounitListFn,getInfoReplywyFn
  79. } from "@/api/mine/case.js"
  80. import popUp from "@/work/components/popup/popup.vue"
  81. import caseList from "@/work/components/case/list.vue"
  82. import {getDictionaryFn} from "@/api/mine/register.js"
  83. import {getDeptTree} from"@/api/mine/mine.js"
  84. export default{
  85. components:{caseList,popUp},
  86. data(){
  87. return{
  88. searchimg: require("@/work/static/images/search.png"),
  89. ccicoimg:require("@/work/static/images/ccico.png"),
  90. lbicoimg:require("@/work/static/images/lbico.png"),
  91. backimg:require("@/work/static/images/back.png"),
  92. upimg:require("@/work/static/images/up.png"),
  93. backgroundColor:"#1D64E2",
  94. tabidx:'qb',
  95. tabtype:'',//进度查询
  96. // {tit:'征集通知',val:0}, 提案催办 目前看所有
  97. tabList:[
  98. {tit:'全部',val:'qb',limit:'proposalInfo:info:list'},{tit:'提案审查',jd:1,val:'tasc',limit:'proposalInfo:info:isRecord'},
  99. {tit:'提案交办',jd:2,val:'tajb',limit:"proposalInfo:info:assign"},{tit:'提案办理',val:'tabl',limit:'proposalInfo:info:unitList'},
  100. // {tit:'办结审核',jd:6,val:'jbsh',},
  101. {tit:'提案催办',val:'tacb',limit:'zxUrge:urge:add'},{tit:'接收催办',val:'jstacb',limit:'zxUrge:urge:list'},
  102. {tit:'我的提案',val:'wdta',},{tit:'联名提案',val:'lmta',limit:"proposalInfo:info:jointlyList"},{tit:'推荐优秀',val:'tjyx'},
  103. {tit:'推荐重点',val:'tjzd'},{tit:'公开提案',val:'gkta'},
  104. ],
  105. litablist:[{tit:'提案类别',val:0},{tit:'提案类型',val:1},{tit:'单位类型',val:2},{tit:'选择年份',val:3},],
  106. // {tit:'开始日期',val:1},{tit:'结束日期',val:2},
  107. // "proposalProgress":"提案进度(0:提交提案,1:提案审查,2:提案立案,3:提案交办,4:办理提案,5:提案反馈,6:办结审核,7:已办结) ",
  108. nvaHeight:44,
  109. talbList:[{},],
  110. taztList:[{label:'是',value:'0'},{label:'否',value:'1'}],
  111. talxList:[{label:'大会提案',value:'0'},{label:'平时提案',value:'1'}],
  112. dwlxList:[{label:'答复单位',value:'1'},{label:'主办单位',value:'2'},{label:'协办单位',value:'3'}],
  113. talbidx:'',
  114. tajd:'',
  115. tajdidx:'',
  116. tajdid:'',
  117. datainfo:{
  118. talb:'',
  119. },
  120. ptype:'',//弹窗类型
  121. list:[],
  122. pageSize: 10,
  123. pageNum: 1,
  124. reachflag: true,
  125. wtdt:'',
  126. tajdlist:[],
  127. listtype:'case',
  128. tnlbname:'',//提案类别
  129. talbid:'',//提案类别id
  130. talx:'',//提案类型
  131. talxid:'',
  132. year:'',//提案时间
  133. title:'',
  134. deptTree:[],
  135. matterList:[],
  136. blcdlist:[],
  137. mycdlist:[],
  138. id:'',
  139. userId:this.$store.state.user.userId,
  140. deptId:this.$store.state.user.deptId,
  141. iteinfo:'',//选择 的数据
  142. }
  143. },
  144. onUnload(){
  145. uni.$off('refreshlist')
  146. uni.$off('refreshtalb')
  147. },
  148. onLoad(e) {
  149. this.getDataFn()
  150. this.init()
  151. uni.$on('refreshlist', (e) => {
  152. this.pageNum=1;
  153. this.list=[];
  154. this.reachflag=true;
  155. this.getDataFn()
  156. })
  157. uni.$on('refreshtalb', (e) => {
  158. this.tnlbname=e.categoryName;
  159. this.talbid=e.categoryId;
  160. this.pageNum=1;
  161. this.list=[];
  162. this.reachflag=true;
  163. this.getDataFn()
  164. })
  165. },
  166. // 上拉触底加载更多触发事件
  167. onReachBottom() {
  168. if (this.reachflag) {
  169. this.pageNum++
  170. this.getDataFn()
  171. }
  172. },
  173. mounted() {
  174. this.getHeightFn()
  175. },
  176. methods:{
  177. checkPermi, checkRole,
  178. // 提案状态
  179. init(){
  180. getDictionaryFn('proposal_progress').then(res=>{
  181. if(res.code==200&&res.data.length){
  182. this.tajdlist = res.data.map(v => {
  183. return {
  184. label: v.dictLabel,
  185. value: v.dictValue
  186. }
  187. })
  188. }
  189. })
  190. // 协办单位
  191. getDeptTree().then(res=>{
  192. if(res.code==200){
  193. this.deptTree=res.data
  194. }
  195. })
  196. // 办理方式
  197. getDictionaryFn('negotiation_mode').then(res=>{
  198. if(res.code==200&&res.data.length){
  199. this.matterList = res.data.map(v => {
  200. return {
  201. label: v.dictLabel,
  202. value: v.dictValue
  203. }
  204. })
  205. }
  206. })
  207. // 办理程度degree
  208. getDictionaryFn('degree').then(res=>{
  209. if(res.code==200&&res.data.length){
  210. this.blcdlist = res.data.map(v => {
  211. return {
  212. text: v.dictLabel,
  213. value: v.dictValue
  214. }
  215. })
  216. }
  217. })
  218. // 满意程度
  219. getDictionaryFn('member_satisfaction').then(res=>{
  220. if(res.code==200&&res.data.length){
  221. this.mycdlist = res.data.map(v => {
  222. return {
  223. text: v.dictLabel,
  224. value: v.dictValue
  225. }
  226. })
  227. }
  228. })
  229. },
  230. getFaFn(type,ptype){
  231. this.ptype='';
  232. if(ptype=='zcta'){
  233. if(type=='new'){uni.removeStorageSync('tjtaList')}
  234. this.$tab.navigateTo('/work/pages/case/add?type='+type)
  235. }
  236. },
  237. getConfirm(){
  238. this.pageNum=1;
  239. this.list=[];
  240. this.reachflag=true;
  241. this.getDataFn()
  242. },
  243. getTuiFn(data){
  244. var sh=data.sh;
  245. this.id=data.id;
  246. var type=data.type;
  247. this.iteinfo=data.ite;
  248. var that=this;
  249. if(type=='scfk'){
  250. this.ptype=data.type;
  251. // if(sh==1){
  252. // }else{
  253. // var params={
  254. // proposalId:data.id,
  255. // isRecord:0,
  256. // }
  257. // getInfoisRecordFn(params).then(res=>{
  258. // if(res.code==200){
  259. // this.$toast("操作成功");
  260. // setTimeout(function(){
  261. // that.ptype='';
  262. // that.pageNum=1;
  263. // that.list=[];
  264. // that.reachflag=true;
  265. // that.getDataFn()
  266. // },1200)
  267. // }
  268. // })
  269. // }
  270. }else if(type=='lmta'){
  271. var str="同意"
  272. if(sh==2){
  273. str='反对'
  274. }
  275. // if(sh==2){
  276. // this.ptype=data.type;
  277. // }else{
  278. var params={
  279. proposalId:data.id,
  280. isAgree:sh,
  281. }
  282. getUserverifyFn(params).then(res=>{
  283. if(res.code==200){
  284. this.$toast(str+"联名提案成功");
  285. setTimeout(function(){
  286. that.ptype='';
  287. that.pageNum=1;
  288. that.list=[];
  289. that.reachflag=true;
  290. that.getDataFn()
  291. },1200)
  292. }
  293. })
  294. // }
  295. }else{
  296. this.ptype=type
  297. }
  298. },
  299. getupSubmit(e){
  300. var that=this;
  301. var type=this.ptype;
  302. if(type=='scfk'){
  303. var params=JSON.parse(JSON.stringify(e))
  304. params.proposalId=this.id
  305. var str='立案';
  306. if(params.isRecord=='1'){
  307. str='不予立案'
  308. }
  309. getInfoisRecordFn(params).then(res=>{
  310. if(res.code==200){
  311. this.$toast(str+"成功");
  312. setTimeout(function(){
  313. that.ptype='';
  314. that.pageNum=1;
  315. that.list=[];
  316. that.reachflag=true;
  317. that.getDataFn()
  318. },1200)
  319. }
  320. })
  321. }else if(type=='tajb'){
  322. var params=JSON.parse(JSON.stringify(e))
  323. params.proposalId=this.id
  324. getInfoAssignFn(params).then(res=>{
  325. if(res.code==200){
  326. this.$toast("提案交办成功");
  327. setTimeout(function(){
  328. that.ptype='';
  329. that.pageNum=1;
  330. that.list=[];
  331. that.reachflag=true;
  332. that.getDataFn()
  333. },1200)
  334. }
  335. })
  336. }else if(type=='dffk'||type=='dwdf'){
  337. var params=JSON.parse(JSON.stringify(e))
  338. params.proposalId=this.id
  339. if(this.iteinfo.proposalProgress==7){
  340. params.cbdwdfwy=params.content;
  341. getInfoReplywyFn(params).then(res=>{
  342. if(res.code==200){
  343. this.$toast("答复反馈成功");
  344. setTimeout(function(){
  345. that.ptype='';
  346. that.pageNum=1;
  347. that.list=[];
  348. that.reachflag=true;
  349. that.getDataFn()
  350. },1200)
  351. }
  352. })
  353. }else{
  354. getInfoReplyFn(params).then(res=>{
  355. if(res.code==200){
  356. this.$toast("答复反馈成功");
  357. setTimeout(function(){
  358. that.ptype='';
  359. that.pageNum=1;
  360. that.list=[];
  361. that.reachflag=true;
  362. that.getDataFn()
  363. },1200)
  364. }
  365. })
  366. }
  367. }else if(type=='jbsh'){
  368. var params=JSON.parse(JSON.stringify(e))
  369. params.proposalId=this.id
  370. getInfoShFn(params).then(res=>{
  371. if(res.code==200){
  372. this.$toast("交办审核成功");
  373. setTimeout(function(){
  374. that.ptype='';
  375. that.pageNum=1;
  376. that.list=[];
  377. that.reachflag=true;
  378. that.getDataFn()
  379. },1200)
  380. }
  381. })
  382. }else if(type=='wymyfk'){
  383. var params=JSON.parse(JSON.stringify(e))
  384. params.proposalId=this.id
  385. getInfoIdeaFn(params).then(res=>{
  386. if(res.code==200){
  387. this.$toast("提案办结成功");
  388. setTimeout(function(){
  389. that.ptype='';
  390. that.pageNum=1;
  391. that.list=[];
  392. that.reachflag=true;
  393. that.getDataFn()
  394. },1200)
  395. }
  396. })
  397. }else if(type=='zxmyfk'){
  398. var params=JSON.parse(JSON.stringify(e))
  399. params.proposalId=this.id
  400. getInfozxIdeaFn(params).then(res=>{
  401. if(res.code==200){
  402. this.$toast("提案办结成功");
  403. setTimeout(function(){
  404. that.ptype='';
  405. that.pageNum=1;
  406. that.list=[];
  407. that.reachflag=true;
  408. that.getDataFn()
  409. },1200)
  410. }
  411. })
  412. }else if(type=='tacb'){
  413. var params=JSON.parse(JSON.stringify(e))
  414. params.scoreId=this.id
  415. params.urgeType=1
  416. getInfourgeFn(params).then(res=>{
  417. if(res.code==200){
  418. this.$toast("提案办结成功");
  419. setTimeout(function(){
  420. that.ptype='';
  421. that.pageNum=1;
  422. that.list=[];
  423. that.reachflag=true;
  424. that.getDataFn()
  425. },1200)
  426. }
  427. })
  428. }else if(type=='tjyx'){
  429. var params=JSON.parse(JSON.stringify(e))
  430. params.proposalId=this.id
  431. getInfooutstandingFn(params).then(res=>{
  432. if(res.code==200){
  433. this.$toast("推荐优秀成功");
  434. setTimeout(function(){
  435. that.ptype='';
  436. that.pageNum=1;
  437. that.list=[];
  438. that.reachflag=true;
  439. that.getDataFn()
  440. },1200)
  441. }
  442. })
  443. }else if(type=='tjzd'){
  444. var params=JSON.parse(JSON.stringify(e))
  445. params.proposalId=this.id
  446. getInfokeyPointFn(params).then(res=>{
  447. if(res.code==200){
  448. this.$toast("推荐重点成功");
  449. setTimeout(function(){
  450. that.ptype='';
  451. that.pageNum=1;
  452. that.list=[];
  453. that.reachflag=true;
  454. that.getDataFn()
  455. },1200)
  456. }
  457. })
  458. }else if(type=='lmta'){
  459. var params=JSON.parse(JSON.stringify(e))
  460. var str='同意'
  461. if(params.isAgree==2){
  462. str="反对"
  463. }
  464. params.proposalId=this.id
  465. getUserverifyFn(params).then(res=>{
  466. if(res.code==200){
  467. this.$toast(str+"成功");
  468. setTimeout(function(){
  469. that.ptype='';
  470. that.pageNum=1;
  471. that.list=[];
  472. that.reachflag=true;
  473. that.getDataFn()
  474. },1200)
  475. }
  476. })
  477. }
  478. },
  479. getAddCase(){
  480. if(uni.getStorageSync('tjtaList')){
  481. // var newObj=JSON.parse(JSON.stringify(uni.getStorageSync('tjtaList')))
  482. this.ptype='zcta'
  483. }else{
  484. this.$tab.navigateTo('/work/pages/case/add')
  485. }
  486. },
  487. getHeightFn(){
  488. var s=uni.getSystemInfoSync().statusBarHeight;
  489. let query = uni.createSelectorQuery().in(this);
  490. //需要给黄色区域设置一个id标识,在这里是demo
  491. query.select('.navbox').boundingClientRect(data => {
  492. this.nvaHeight =s? data.height:Number(data.height)-20//赋值,待会要用
  493. }).exec();
  494. },
  495. getClose(){
  496. this.ptype=""
  497. },
  498. getTabFn(ite){
  499. this.tabidx=ite.val;
  500. this.pageNum=1;
  501. this.list=[],
  502. this.reachflag=true;
  503. this.tabtype=ite.jd||"";
  504. this.getDataFn()
  505. },
  506. getBack(){
  507. uni.navigateBack({
  508. delta:1
  509. })
  510. },
  511. getrefreshData(){
  512. this.pageNum=1;
  513. this.list=[];
  514. this.reachflag=true;
  515. this.getDataFn()
  516. },
  517. bindDateChangea(e){
  518. var val=e.detail.value;
  519. this.talx=this.talxList[val].label;
  520. this.talxid=this.talxList[val].value;
  521. this.getrefreshData()
  522. },
  523. bindDateChangeb(e){
  524. var val=e.detail.value;
  525. this.year=val;
  526. this.getrefreshData()
  527. },
  528. bindDateChanged(e){
  529. var val=e.detail.value;
  530. this.tajd=this.tajdlist[val].label;
  531. this.tajdid=this.tajdlist[val].value;
  532. this.getrefreshData()
  533. },
  534. getTalbFn(){
  535. var obj={
  536. id:this.talbid,
  537. name:this.tnlbname,
  538. }
  539. this.$tab.navigateTo('/work/pages/case/talbclass?data='+encodeURIComponent(JSON.stringify(obj)))
  540. },
  541. getChFn(){
  542. // this.$tab.navigateTo('/work/pages/case/tacheck')
  543. },
  544. getDetail(data){
  545. this.$tab.navigateTo('/work/pages/case/details?id='+data+'&f='+this.tabidx)
  546. },
  547. getDataFn(){
  548. var tab=this.tabidx;
  549. var params={
  550. pageSize:this.pageSize,
  551. pageNum: this.pageNum,
  552. }
  553. if(this.tabtype){
  554. params.proposalProgress=this.tabtype
  555. }
  556. if(this.talx){
  557. params.proposalType=this.talxid
  558. }
  559. if(this.tnlbname){
  560. params.categoryId=this.talbid
  561. }
  562. if(this.title){
  563. params.title=this.title
  564. }
  565. if(this.year){
  566. params.year=this.year
  567. }
  568. if(tab=='tjyx'){
  569. params.isOutstanding="0"
  570. }else if(tab=='tjzd'){
  571. params.isKeyPoint="0"
  572. }else if(tab=='gkta'){
  573. params.isPublicity="是"
  574. }else if(tab=='wdta'){
  575. params.proposalUserId=this.userId
  576. }
  577. if(this.tabidx=='lmta'){
  578. getInfojointlyListFn(params).then(res=>{
  579. if(res.code==200){
  580. if (res.rows.length < this.pageSize) {
  581. this.reachflag = false
  582. this.wtdt = '到底了~';
  583. } else {
  584. var num = parseInt(res.rows.length) + parseInt(this.pageSize) * parseInt(this.pageNum - 1)
  585. if (num < res.total) {
  586. this.reachflag = true
  587. this.wtdt = '上拉加载更多'
  588. } else {
  589. this.reachflag = false
  590. this.wtdt = '到底了~';
  591. }
  592. }
  593. if (this.pageNum == 1) {
  594. this.list = res.rows;
  595. } else {
  596. this.list = this.list.concat(res.rows)
  597. }
  598. }else{
  599. this.$toast(res.msg)
  600. }
  601. })
  602. }else if(this.tabidx=='jstacb'){
  603. params.acceptDeptId=this.deptId
  604. geturgeListFn(params).then(res=>{
  605. if(res.code==200){
  606. if (res.rows.length < this.pageSize) {
  607. this.reachflag = false
  608. this.wtdt = '到底了~';
  609. } else {
  610. var num = parseInt(res.rows.length) + parseInt(this.pageSize) * parseInt(this.pageNum - 1)
  611. if (num < res.total) {
  612. this.reachflag = true
  613. this.wtdt = '上拉加载更多'
  614. } else {
  615. this.reachflag = false
  616. this.wtdt = '到底了~';
  617. }
  618. }
  619. if (this.pageNum == 1) {
  620. this.list = res.rows;
  621. } else {
  622. this.list = this.list.concat(res.rows)
  623. }
  624. }else{
  625. this.$toast(res.msg)
  626. }
  627. })
  628. }else if(this.tabidx=='tabl'){
  629. // params.acceptDeptId=this.deptId
  630. getInfounitListFn(params).then(res=>{
  631. if(res.code==200){
  632. if (res.rows.length < this.pageSize) {
  633. this.reachflag = false
  634. this.wtdt = '到底了~';
  635. } else {
  636. var num = parseInt(res.rows.length) + parseInt(this.pageSize) * parseInt(this.pageNum - 1)
  637. if (num < res.total) {
  638. this.reachflag = true
  639. this.wtdt = '上拉加载更多'
  640. } else {
  641. this.reachflag = false
  642. this.wtdt = '到底了~';
  643. }
  644. }
  645. if (this.pageNum == 1) {
  646. this.list = res.rows;
  647. } else {
  648. this.list = this.list.concat(res.rows)
  649. }
  650. }else{
  651. this.$toast(res.msg)
  652. }
  653. })
  654. }else{
  655. if(this.tabidx=='qb'&&this.tajd){
  656. params.proposalProgress=this.tajdid
  657. }
  658. getCaseListFn(params).then(res=>{
  659. if(res.code==200){
  660. if (res.rows.length < this.pageSize) {
  661. this.reachflag = false
  662. this.wtdt = '到底了~';
  663. } else {
  664. var num = parseInt(res.rows.length) + parseInt(this.pageSize) * parseInt(this.pageNum - 1)
  665. if (num < res.total) {
  666. this.reachflag = true
  667. this.wtdt = '上拉加载更多'
  668. } else {
  669. this.reachflag = false
  670. this.wtdt = '到底了~';
  671. }
  672. }
  673. if (this.pageNum == 1) {
  674. this.list = res.rows;
  675. } else {
  676. this.list = this.list.concat(res.rows)
  677. }
  678. }else{
  679. this.$toast(res.msg)
  680. }
  681. })
  682. }
  683. },
  684. }
  685. }
  686. </script>
  687. <style scoped lang="scss">
  688. .navbox{position: fixed;left: 0;right: 0;top: 0;z-index: 4;background-color: $com-cd3;
  689. .topl{width: 60rpx;height: 60rpx;display: flex;align-items: center;justify-content: center;
  690. image{width: 40rpx;height: 30rpx;}
  691. }
  692. .topr{display: flex;align-items: center;
  693. image{width: 26rpx;height: 26rpx;margin-right: 12rpx;}
  694. view{font-weight: 500;font-size: 26rpx;color: #FFFFFF;}
  695. }
  696. .tablists{
  697. overflow: auto;flex-wrap: nowrap;
  698. view{font-weight: bold;font-size: 26rpx;color: #FFFFFF;position: relative;flex: 1 0 auto;padding: 22rpx 24rpx;margin-right: 6rpx;box-sizing: border-box;text-align: center;
  699. &:last-child{margin-right: 0;}
  700. &.act{font-size: 30rpx;
  701. &::after{content: '';width: 62rpx;height: 10rpx;background: #FFFFFF;border-radius: 4rpx;left: 50%;margin-left: -31rpx;bottom: 0rpx;position: absolute;}
  702. }
  703. }
  704. }
  705. .lbtab{height: 114rpx;background: #FFFFFF;border-radius: 30rpx;padding-left: 24rpx;position: absolute;left:24rpx;right: 24rpx;bottom: -58rpx;
  706. .limg{width: 40rpx;height: 34rpx;margin-right: 10rpx;flex:0 0 auto;}
  707. .lbtabs{overflow: auto;flex-wrap: nowrap;flex: 1;
  708. .lbtabp{display: flex;align-items: center;flex: 1 0 auto;margin-right: 24rpx;}
  709. .upimg{width: 18rpx;height: 10rpx;}
  710. }
  711. }
  712. }
  713. .mbox{padding:58rpx 24rpx 28rpx;}
  714. .lbtabs /deep/ picker{padding: 0 18rpx;}
  715. </style>