mine.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702
  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">
  33. <picker mode="date" fields="year" range-key='label' @change='bindDateChangeb'>
  34. <view :class="year?'':'f16 co80'">{{year || "选择年份"}}</view>
  35. </picker>
  36. <image :src="upimg" class="upimg"></image>
  37. </view>
  38. <view class="lbtabp">
  39. <picker range-key='label' :value="ztlxidx" :range="ztlxlist" @change='bindDateChangea'>
  40. <view :class="ztlx?'':'f16 co80'">{{ztlx || "主题类型"}}</view>
  41. </picker>
  42. <image :src="upimg" class="upimg"></image>
  43. </view>
  44. <!-- <view class="lbtabp" v-if="tabidx=='qb'||tabidx=='xxsb'">
  45. <picker range-key='label' :value="tajdidx" :range="tajdlist" @change='bindDateChangef'>
  46. <view :class="tajd?'':'f16 co80'">{{tajd || "社情进度"}}</view>
  47. </picker>
  48. <image :src="upimg" class="upimg"></image>
  49. </view> -->
  50. <view class="lbtabp" v-if="tabidx=='qb'||tabidx=='xxsb'">
  51. <picker range-key='label' :value="ztidx" :range="ztlist" @change='bindDateChangef'>
  52. <view :class="zttxt?'':'f16 co80'">{{zttxt || "状态"}}</view>
  53. </picker>
  54. <image :src="upimg" class="upimg"></image>
  55. </view>
  56. <view class="lbtabp" v-if="tabidx=='xxsb'||tabidx=='qb'">
  57. <picker range-key='label' :value="sfcyidx" :range="taztList" @change='bindDateChangec'>
  58. <view :class="sfcy?'':'f16 co80'">{{sfcy || "是否采用"}}</view>
  59. </picker>
  60. <image :src="upimg" class="upimg"></image>
  61. </view>
  62. <!-- <view class="lbtabp">
  63. <picker range-key='label' :value="kwlxidx" :range="kwlxList" @change='bindDateChanged'>
  64. <view :class="kwlx?'':'f16 co80'">{{kwlx || "刊物类型"}}</view>
  65. </picker>
  66. <image :src="upimg" class="upimg"></image>
  67. </view>
  68. <view class="lbtabp">
  69. <picker range-key='label' :value="psqkidx" :range="psList" @change='bindDateChangee'>
  70. <view :class="psqk?'':'f16 co80'">{{psqk || "批示情况"}}</view>
  71. </picker>
  72. <image :src="upimg" class="upimg"></image>
  73. </view> -->
  74. </view>
  75. <view class="czbtns" @click='getResetFn'>重置</view>
  76. </view>
  77. </view>
  78. <!-- 列表 -->
  79. <view class="mbox">
  80. <sqmy-info-list :datalist="list" :listtype="listtype" :wtdt="wtdt" :ztlxlist='ztlxlist' :tajdlist="tajdlist" :type='tabidx' @getDetail="getDetail" @getTuiFn="getTuiFn"></sqmy-info-list>
  81. </view>
  82. <view v-if="checkPermi(['sqmyInfo:info:add'])&&(tabidx=='xxsb'||tabidx=='qb')">
  83. <view style="height: 100rpx;"></view>
  84. <view class="fwbtns" @click="getAddsqmy">上报社情民意</view>
  85. </view>
  86. <!-- 弹窗 -->
  87. <pop-up :type='ptype' :sh="sh" :blfsList="matterList" :dflxlist="dflxlist" :blcdlist="blcdlist" @getFaFn="getFaFn" :mycdlist="mycdlist" :dataTree="deptTree" @getClose="getClose" @getupSubmit="getupSubmit"></pop-up>
  88. </view>
  89. </template>
  90. <script>
  91. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  92. import {getsqmyInfoListFn,getsqmyInfoisRecordFn,getsqmyInfoAssignFn,getsqmyReplyFn,
  93. getsqmyInfoShFn,getsqmyInfoIdeaFn,getsqmyInfozxIdeaFn,
  94. getInfourgeFn,getsqmyInfokeyPointFn,getsqmyInfooutstandingFn,getsqmyInfounitListFn
  95. ,getsqmyInfoReplywyFn} from "@/api/mine/sqmyInfo.js"
  96. import popUp from "@/work/components/popup/popup.vue"
  97. import sqmyInfoList from "@/work/components/sqmyInfo/list.vue"
  98. import {getDictionaryFn} from "@/api/mine/register.js"
  99. import {getDeptTree} from"@/api/mine/mine.js"
  100. export default{
  101. components:{sqmyInfoList,popUp},
  102. data(){
  103. return{
  104. searchimg: require("@/work/static/images/search.png"),
  105. ccicoimg:require("@/work/static/images/ccico.png"),
  106. lbicoimg:require("@/work/static/images/lbico.png"),
  107. backimg:require("@/work/static/images/back.png"),
  108. upimg:require("@/work/static/images/up.png"),
  109. backgroundColor:"#1D64E2",
  110. tabidx:'qb',
  111. tabtype:'',//进度查询
  112. // {tit:'征集通知',val:0}, 提案催办 目前看所有{tit:'上网社情民意',val:'swsqmy',},
  113. tabList:[{tit:'信息列表',val:'qb',limit:'sqmyInfo:info:list'},
  114. {tit:'信息审核',jd:1,val:'xxsh',limit:'sqmyInfo:info:isRecord'},
  115. {tit:'信息上报',val:'xxsb',limit:'sqmyInfo:info:list'},
  116. // {tit:'信息交办',jd:2,val:'xxjb',limit:'sqmyInfo:info:assign'},
  117. // {tit:'信息办理',val:'xxbl',limit:'sqmyInfo:info:unitList'},
  118. // {tit:'办结审核',jd:6,val:'bjsh',},
  119. // {tit:'信息催办',val:'xxcb',limit:'sqmyInfo:info:sqmycbList'},
  120. // {tit:'接收催办',val:'jssqcb',limit:'zxUrge:urge:list'},
  121. // {tit:'推荐优秀',val:'tjyx',limit:'sqmyInfo:info:outstanding'},
  122. // {tit:'推荐重点',val:'tjzd',limit:'sqmyInfo:info:keyPoint'}
  123. ],
  124. // {tit:'开始日期',val:1},{tit:'结束日期',val:2},
  125. // "sqmyProgress":"提案进度(0:提交提案,1:提案审查,2:提案立案,3:提案交办,4:办理提案,5:提案反馈,6:办结审核,7:已办结) ",
  126. nvaHeight:44,
  127. talbList:[{},],
  128. taztList:[{label:'已采用',value:'0'},{label:'未采用',value:'1'}],
  129. ztlist:[{label:'已读',value:'0'},{label:'未读',value:'1'}],
  130. psList:[{label:'已批示',value:'0'},{label:'未批示',value:'1'}],
  131. kwlxList:[{label:'社情民意',value:'0'},{label:'刊物类型',value:'1'}],
  132. ptype:'',//弹窗类型
  133. list:[],
  134. pageSize: 10,
  135. pageNum: 1,
  136. reachflag: true,
  137. wtdt:'',
  138. tajdlist:[],//提案进度
  139. listtype:'case',
  140. year:'',//提案时间
  141. title:'',
  142. deptTree:[],
  143. matterList:[],
  144. blcdlist:[],
  145. mycdlist:[],
  146. ztlxlist:[],//主题类型
  147. dflxlist:[],//答复类型
  148. ztlx:"",//主题
  149. ztlxid:"",
  150. ztlxidx:'',
  151. sfcy:"",//采用
  152. sfcyid:"",
  153. sfcyidx:'',
  154. kwlx:"",//刊物类型
  155. kwlxid:"",
  156. kwlxidx:'',
  157. psqk:"",//批示情况
  158. psqkid:"",
  159. psqkidx:'',
  160. tajd:"",//办理状态
  161. tajdid:"",
  162. tajdidx:'',
  163. zttxt:'',
  164. ztid:'',
  165. ztidx:'',
  166. id:'',
  167. userId:this.$store.state.user.userId,
  168. sh:'',
  169. }
  170. },
  171. onUnload(){
  172. uni.$off('refreshlist')
  173. },
  174. // 上拉触底加载更多触发事件
  175. onReachBottom() {
  176. if (this.reachflag) {
  177. this.pageNum++
  178. this.getDataFn()
  179. }
  180. },
  181. onLoad(e) {
  182. this.getDataFn()
  183. this.init()
  184. uni.$on('refreshlist', (e) => {
  185. this.getDataFn()
  186. })
  187. },
  188. mounted() {
  189. this.getHeightFn()
  190. },
  191. methods:{
  192. checkPermi, checkRole,
  193. // 提案状态
  194. init(){
  195. // 主题类型
  196. getDictionaryFn('sqmy_topic_type').then(res=>{
  197. if(res.code==200&&res.data.length){
  198. this.ztlxlist = res.data.map(v => {
  199. return {
  200. label: v.dictLabel,
  201. value: v.dictValue
  202. }
  203. })
  204. }
  205. })
  206. getDictionaryFn('sqmy_jd').then(res=>{
  207. if(res.code==200&&res.data.length){
  208. this.tajdlist = res.data.map(v => {
  209. return {
  210. label: v.dictLabel,
  211. value: v.dictValue
  212. }
  213. })
  214. }
  215. })
  216. // 协办单位
  217. getDeptTree().then(res=>{
  218. if(res.code==200){
  219. this.deptTree=res.data
  220. }
  221. })
  222. // 办理方式
  223. getDictionaryFn('negotiation_mode').then(res=>{
  224. if(res.code==200&&res.data.length){
  225. this.matterList = res.data.map(v => {
  226. return {
  227. label: v.dictLabel,
  228. value: v.dictValue
  229. }
  230. })
  231. }
  232. })
  233. // 办理程度degree
  234. getDictionaryFn('degree').then(res=>{
  235. if(res.code==200&&res.data.length){
  236. this.blcdlist = res.data.map(v => {
  237. return {
  238. text: v.dictLabel,
  239. value: v.dictValue
  240. }
  241. })
  242. }
  243. })
  244. // 满意程度
  245. getDictionaryFn('member_satisfaction').then(res=>{
  246. if(res.code==200&&res.data.length){
  247. this.mycdlist = res.data.map(v => {
  248. return {
  249. text: v.dictLabel,
  250. value: v.dictValue
  251. }
  252. })
  253. }
  254. })
  255. //答复类型
  256. getDictionaryFn('proposal_complex_type').then(res=>{
  257. if(res.code==200&&res.data.length){
  258. this.dflxlist = res.data.map(v => {
  259. return {
  260. text: v.dictLabel,
  261. value: v.dictValue
  262. }
  263. })
  264. }
  265. })
  266. },
  267. getConfirm(){
  268. this.pageNum=1;
  269. this.list=[];
  270. this.reachflag=true;
  271. this.getDataFn()
  272. },
  273. getResetFn(){
  274. var tabidx=this.tabidx;
  275. if(tabidx=='qb'||tabidx=='xxsb'){
  276. this.zttxt=''
  277. }
  278. if(tabidx=='xxsb'||tabidx=='qb'){
  279. this.sfcy=''
  280. }
  281. this.year='';
  282. this.ztlx='';
  283. this.title='';
  284. this.getConfirm()
  285. },
  286. getFaFn(type,ptype){
  287. this.ptype='';
  288. if(ptype=='sqmy'){
  289. if(type=='new'){uni.removeStorageSync('sqmyList')}
  290. this.$tab.navigateTo('/work/pages/sqmyInfo/add?type='+type)
  291. }
  292. },
  293. getTuiFn(data){
  294. var sh=data.sh;
  295. this.id=data.id;
  296. this.iteinfo=data.ite;
  297. var type=data.type;
  298. var that=this;
  299. if(type=='sfcy'){
  300. this.ptype=data.type;
  301. this.sh=data.sh;
  302. // if(sh==1){
  303. // this.ptype=data.type;
  304. // }else{
  305. // var params={
  306. // proposalId:data.id,
  307. // isRecord:0,
  308. // }
  309. // getsqmyInfoisRecordFn(params).then(res=>{
  310. // if(res.code==200){
  311. // this.$toast("立案成功");
  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. // }
  322. }else{
  323. this.ptype=type
  324. }
  325. },
  326. getupSubmit(e){
  327. var that=this;
  328. var type=this.ptype;
  329. if(type=='sfcy'){
  330. var params=JSON.parse(JSON.stringify(e))
  331. params.sqmyId=this.id
  332. var str='采用';
  333. if(params.isRecord=='1'){
  334. str='不采用'
  335. }
  336. getsqmyInfoisRecordFn(params).then(res=>{
  337. if(res.code==200){
  338. this.$toast(str+"成功");
  339. setTimeout(function(){
  340. that.getrefreshData()
  341. },1200)
  342. }
  343. })
  344. }else if(type=='tajb'){
  345. var params=JSON.parse(JSON.stringify(e))
  346. params.sqmyId=this.id
  347. getsqmyInfoAssignFn(params).then(res=>{
  348. if(res.code==200){
  349. this.$toast("信息交办成功");
  350. setTimeout(function(){
  351. that.getrefreshData()
  352. },1200)
  353. }
  354. })
  355. }else if(type=='dffk'||type=='dwdf'){
  356. var params=JSON.parse(JSON.stringify(e))
  357. params.sqmyId=this.id
  358. if(this.iteinfo.proposalProgress==7){
  359. params.cbdwdfwy=params.content;
  360. getsqmyInfoReplywyFn(params).then(res=>{
  361. if(res.code==200){
  362. this.$toast("答复反馈成功");
  363. setTimeout(function(){
  364. that.getrefreshData()
  365. },1200)
  366. }
  367. })
  368. }else{
  369. getsqmyReplyFn(params).then(res=>{
  370. if(res.code==200){
  371. this.$toast("答复反馈成功");
  372. setTimeout(function(){
  373. that.getrefreshData()
  374. },1200)
  375. }
  376. })
  377. }
  378. }else if(type=='jbsh'){
  379. var params=JSON.parse(JSON.stringify(e))
  380. params.sqmyId=this.id
  381. getsqmyInfoShFn(params).then(res=>{
  382. if(res.code==200){
  383. this.$toast("交办审核成功");
  384. setTimeout(function(){
  385. that.getrefreshData()
  386. },1200)
  387. }
  388. })
  389. }else if(type=='wymyfk'){
  390. var params=JSON.parse(JSON.stringify(e))
  391. params.sqmyId=this.id
  392. getsqmyInfoIdeaFn(params).then(res=>{
  393. if(res.code==200){
  394. this.$toast("信息办结成功");
  395. setTimeout(function(){
  396. that.getrefreshData()
  397. },1200)
  398. }
  399. })
  400. }else if(type=='zxmyfk'){
  401. var params=JSON.parse(JSON.stringify(e))
  402. params.sqmyId=this.id
  403. getsqmyInfozxIdeaFn(params).then(res=>{
  404. if(res.code==200){
  405. this.$toast("信息办结成功");
  406. setTimeout(function(){
  407. that.getrefreshData()
  408. },1200)
  409. }
  410. })
  411. }else if(type=='tacb'){
  412. var params=JSON.parse(JSON.stringify(e))
  413. params.scoreId=this.id
  414. params.urgeType=2
  415. getInfourgeFn(params).then(res=>{
  416. if(res.code==200){
  417. this.$toast("信息办结成功");
  418. setTimeout(function(){
  419. that.ptype='';
  420. that.pageNum=1;
  421. that.list=[];
  422. that.reachflag=true;
  423. that.getDataFn()
  424. },1200)
  425. }
  426. })
  427. }else if(type=='tjyx'){
  428. var params=JSON.parse(JSON.stringify(e))
  429. params.proposalId=this.id
  430. getsqmyInfooutstandingFn(params).then(res=>{
  431. if(res.code==200){
  432. this.$toast("推荐优秀成功");
  433. setTimeout(function(){
  434. that.ptype='';
  435. that.pageNum=1;
  436. that.list=[];
  437. that.reachflag=true;
  438. that.getDataFn()
  439. },1200)
  440. }
  441. })
  442. }else if(type=='tjzd'){
  443. var params=JSON.parse(JSON.stringify(e))
  444. params.proposalId=this.id
  445. getsqmyInfokeyPointFn(params).then(res=>{
  446. if(res.code==200){
  447. this.$toast("推荐重点成功");
  448. setTimeout(function(){
  449. that.ptype='';
  450. that.pageNum=1;
  451. that.list=[];
  452. that.reachflag=true;
  453. that.getDataFn()
  454. },1200)
  455. }
  456. })
  457. // }else if(type=='lmta'){
  458. // var params=JSON.parse(JSON.stringify(e))
  459. // var str='同意'
  460. // if(params.isAgree==2){
  461. // str="反对"
  462. // }
  463. // params.proposalId=this.id
  464. // getUserverifyFn(params).then(res=>{
  465. // if(res.code==200){
  466. // this.$toast(str+"成功");
  467. // setTimeout(function(){
  468. // that.ptype='';
  469. // that.pageNum=1;
  470. // that.list=[];
  471. // that.reachflag=true;
  472. // that.getDataFn()
  473. // },1200)
  474. // }
  475. // })
  476. }
  477. },
  478. getAddsqmy(){
  479. if(uni.getStorageSync('sqmyList')){
  480. this.ptype='sqmy'
  481. }else{
  482. this.$tab.navigateTo('/work/pages/sqmyInfo/add')
  483. }
  484. },
  485. getHeightFn(){
  486. var s=uni.getSystemInfoSync().statusBarHeight;
  487. let query = uni.createSelectorQuery().in(this);
  488. //需要给黄色区域设置一个id标识,在这里是demo
  489. query.select('.navbox').boundingClientRect(data => {
  490. this.nvaHeight =s? data.height:Number(data.height)-20//赋值,待会要用
  491. }).exec();
  492. },
  493. getClose(){
  494. this.ptype=""
  495. },
  496. getTabFn(ite){
  497. this.tabidx=ite.val;
  498. this.pageNum=1;
  499. this.list=[],
  500. this.reachflag=true;
  501. this.tabtype=ite.jd||"";
  502. this.getDataFn()
  503. },
  504. getBack(){
  505. uni.navigateBack({
  506. delta:1
  507. })
  508. },
  509. getrefreshData(){
  510. this.ptype='';
  511. this.pageNum=1;
  512. this.list=[];
  513. this.reachflag=true;
  514. this.getDataFn()
  515. },
  516. bindDateChangea(e){
  517. var val=e.detail.value;
  518. this.ztlx=this.ztlxlist[val].label;
  519. this.ztlxid=this.ztlxlist[val].value;
  520. this.getrefreshData()
  521. },
  522. bindDateChangeb(e){
  523. var val=e.detail.value;
  524. this.year=val;
  525. this.getrefreshData()
  526. },
  527. bindDateChangec(e){
  528. var val=e.detail.value;
  529. this.sfcy=this.taztList[val].label;
  530. this.sfcyid=this.taztList[val].value;
  531. this.getrefreshData()
  532. },
  533. bindDateChanged(e){
  534. var val=e.detail.value;
  535. this.kwlx=this.kwlxList[val].label;
  536. this.kwlxid=this.kwlxList[val].value;
  537. this.getrefreshData()
  538. },
  539. bindDateChangee(e){
  540. var val=e.detail.value;
  541. this.psqk=this.psList[val].label;
  542. this.psqkid=this.psList[val].value;
  543. this.getrefreshData()
  544. },
  545. bindDateChangef(e){
  546. var val=e.detail.value;
  547. this.zttxt=this.ztlist[val].label;
  548. this.tajdid=this.ztlist[val].value;
  549. this.getrefreshData()
  550. },
  551. bindDateChangeg(e){
  552. var val=e.detail.value;
  553. this.zttxt=this.ztlist[val].label;
  554. this.ztid=this.ztlist[val].value;
  555. this.getrefreshData()
  556. },
  557. getChFn(){
  558. this.$tab.navigateTo('/work/pages/case/tacheck')
  559. },
  560. getDetail(data){
  561. this.$tab.navigateTo('/work/pages/sqmyInfo/details?id='+data)
  562. },
  563. getDataFn(){
  564. var tab=this.tabidx;
  565. var params={
  566. pageSize:this.pageSize,
  567. pageNum: this.pageNum,
  568. }
  569. if(this.tabtype){
  570. params.sqmyProgress=this.tabtype
  571. }
  572. if(this.title){
  573. params.title=this.title
  574. }
  575. if(this.year){//年份
  576. params.year=this.year
  577. }
  578. if(this.ztlx){//主题
  579. params.topicType=this.ztlxid
  580. }
  581. if(this.sfcy&&(tab=='xxsb'||tab=='qb')){//采用
  582. params.isRecord=this.sfcyid
  583. }
  584. if(this.zttxt&&(tab=='qb'||tab=='xxsb')){//状态
  585. params.isRead=this.tajdid
  586. }
  587. // if(this.kwlx){//刊物类型
  588. // params.topicType=this.ztlxid
  589. // }
  590. // if(this.psqk){批示情况
  591. // params.topicType=this.ztlxid
  592. // }
  593. if(tab=='tjyx'){
  594. // params.isOutstanding="0"
  595. }else if(tab=='tjzd'){
  596. // params.isKeyPoint="0"
  597. }else if(tab=='xxsb'){
  598. params.sqmyUserId=this.userId
  599. }
  600. if(tab=='xxbl'){
  601. getsqmyInfounitListFn(params).then(res=>{
  602. if(res.code==200){
  603. if (res.rows.length < this.pageSize) {
  604. this.reachflag = false
  605. this.wtdt = '到底了~';
  606. } else {
  607. var num = parseInt(res.rows.length) + parseInt(this.pageSize) * parseInt(this.pageNum - 1)
  608. if (num < res.total) {
  609. this.reachflag = true
  610. this.wtdt = '上拉加载更多'
  611. } else {
  612. this.reachflag = false
  613. this.wtdt = '到底了~';
  614. }
  615. }
  616. if (this.pageNum == 1) {
  617. this.list = res.rows;
  618. } else {
  619. this.list = this.list.concat(res.rows)
  620. }
  621. }else{
  622. this.$toast(res.msg)
  623. }
  624. })
  625. }else{
  626. if(!checkPermi(['sqmyInfo:info:alllist'])&&tab=='qb'){
  627. params.sqmyUserId=this.userId
  628. // console.log(235)
  629. }
  630. getsqmyInfoListFn(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. }
  655. },
  656. }
  657. }
  658. </script>
  659. <style scoped lang="scss">
  660. .navbox{position: fixed;left: 0;right: 0;top: 0;z-index: 4;background-color: $com-cd3;
  661. .topl{width: 60rpx;height: 60rpx;display: flex;align-items: center;justify-content: center;
  662. image{width: 40rpx;height: 30rpx;}
  663. }
  664. .topr{display: flex;align-items: center;
  665. image{width: 26rpx;height: 26rpx;margin-right: 12rpx;}
  666. view{font-weight: 500;font-size: 26rpx;color: #FFFFFF;}
  667. }
  668. .tablists{
  669. overflow: auto;flex-wrap: nowrap;
  670. 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;
  671. &:last-child{margin-right: 0;}
  672. &.act{font-size: 30rpx;
  673. &::after{content: '';width: 62rpx;height: 10rpx;background: #FFFFFF;border-radius: 4rpx;left: 50%;margin-left: -31rpx;bottom: 0rpx;position: absolute;}
  674. }
  675. }
  676. }
  677. .lbtab{height: 114rpx;background: #FFFFFF;border-radius: 30rpx;padding-left: 24rpx;position: absolute;left:24rpx;right: 24rpx;bottom: -58rpx;
  678. .limg{width: 40rpx;height: 34rpx;margin-right: 10rpx;flex:0 0 auto;}
  679. .lbtabs{overflow: auto;flex-wrap: nowrap;flex: 1;
  680. .lbtabp{display: flex;align-items: center;flex: 0 0 auto;margin-right: 24rpx;min-width: 100rpx;}
  681. .upimg{width: 18rpx;height: 10rpx;}
  682. }
  683. }
  684. }
  685. .mbox{padding:58rpx 24rpx 28rpx;}
  686. .lbtabs /deep/ picker{padding: 0 18rpx;}
  687. </style>