mine.vue 20 KB

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