index.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486
  1. <template>
  2. <view class="zxbox">
  3. <view class="navbox">
  4. <uni-nav-bar color="#ffffff" rightWidth="200rpx" @clickLeft="getBack" title="年度履职报告" :background-color="backgroundColor" :border="false"
  5. statusBar='true' fixed="true">
  6. <!-- <block slot="left">
  7. <view class="topl">
  8. <image :src="backimg" ></image>
  9. </view>
  10. </block> -->
  11. <block slot="right">
  12. <picker mode="date" fields="year" value="nd" class="infolist_a" @change='bindDateChange'>
  13. <view class="picks">
  14. <view :class="year?'':'f16 co80'">{{year||"请选择"}}</view>
  15. <image :src="upimg"></image>
  16. </view>
  17. </picker>
  18. </block>
  19. </uni-nav-bar>
  20. </view>
  21. <image :src="bgimg" class="bgimg"></image>
  22. <view class="mbox">
  23. <view class="head flexc mb18">
  24. <image :src="headimg" class="headimg"></image>
  25. <view class="hinfo">
  26. <view class="tit">{{memberInfo.name}}</view>
  27. <view class="medal flexc">
  28. <view class="bg bg1">
  29. <image :src="medala"></image>
  30. 界别<text></text>{{kaType(memberInfo.boundary,jblist)}}
  31. </view>
  32. <view class="bg bg2">
  33. <image :src="medalb"></image>
  34. 党派<text></text>{{kaType(memberInfo.partyAffiliation,dplist)}}
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. <view class="jinfo">
  40. <view class="tit mb14">基本信息</view>
  41. <view class="flex mb11">
  42. <view class="imgs"><image :src="infoa" class="imga"></image></view>
  43. <view class="txt">身份证号 | {{memberInfo.card}}</view>
  44. </view>
  45. <view class="flex mb11">
  46. <view class="imgs"><image :src="infob" class="imgb"></image></view>
  47. <view class="txt">联系方式 | {{memberInfo.phonenumber}}</view>
  48. </view>
  49. <view class="flex mb11">
  50. <view class="imgs"><image :src="infoc" class="imgc"></image></view>
  51. <view class="txt">工作单位及职务 | {{memberInfo.unit}}</view>
  52. </view>
  53. <view class="flex mb11">
  54. <view class="imgs"><image :src="infod" class="imgd"></image></view>
  55. <view class="txt">乡镇(经开区)委员工作室 | {{memberInfo.studio}}</view>
  56. </view>
  57. </view>
  58. <!-- 分 -->
  59. <view class="score flexcj mb20">
  60. <view class="scorea">
  61. <image :src="bga"></image>
  62. <view class="box flexccc">
  63. <view class="num">{{scorecount.totalScore}}</view>
  64. <view class="f12 fw coe2">履职得分情况</view>
  65. <view class="f12 co22">(满分{{scorecount.fullScore||0}}分)</view>
  66. </view>
  67. </view>
  68. <view class="scorea">
  69. <image :src="bgb"></image>
  70. <view class="box flexccc">
  71. <view class="num">{{scorecount.rank||""}}</view>
  72. <view class="f12 fw co83">综合排名</view>
  73. <view class="f12 co22">(共{{scorecount.totalPeople||0}}名)</view>
  74. </view>
  75. </view>
  76. </view>
  77. <!-- tab -->
  78. <view class="tabs mb27">
  79. <view v-for="(ite,idx) in tabList" @click="getTabFn(ite.val)" :class="tabval==ite.val?'act':''" class="tab" :key="ite.val">{{ite.tit}}</view>
  80. </view>
  81. <block v-if="tabval==0">
  82. <view class="flexcw mb28">
  83. <view class="nums bga">
  84. <view class="tit flex1">政协提案</view>
  85. <view class="txt"><text>{{mapcount.proposalInfoNum}}</text>件</view>
  86. </view>
  87. <view class="nums bgb">
  88. <view class="tit flex1">社情民意</view>
  89. <view class="txt"><text>{{mapcount.sqmyInfoNum}}</text>件</view>
  90. </view>
  91. <view class="nums bga">
  92. <view class="tit flex1">全会</view>
  93. <view class="txt"><text>{{mapcount.plenarySessionNum}}</text>件</view>
  94. </view>
  95. <view class="nums bgb">
  96. <view class="tit flex1">活动</view>
  97. <view class="txt"><text>{{mapcount.activityNum}}</text>件</view>
  98. </view>
  99. <view class="nums bga">
  100. <view class="tit flex1">普通会议</view>
  101. <view class="txt"><text>{{mapcount.conferenceNum}}</text>件</view>
  102. </view>
  103. <view class="nums bgb">
  104. <view class="tit flex1">会议发言</view>
  105. <view class="txt"><text>{{mapcount.speakNum}}</text>件</view>
  106. </view>
  107. </view>
  108. <!-- 雷达图 -->
  109. <view class="mb32">
  110. <qiun-data-charts type="radar" :opts="opts" :chartData="chartData"></qiun-data-charts>
  111. </view>
  112. <!-- 各项得分 -->
  113. <view class="jinfo">
  114. <view class="tit mb14">各项得分</view>
  115. <view class="gsbox">
  116. <view class="gslist">
  117. <view class="gtit">活动</view>
  118. <view class="gtxt">{{scorecount.activityScore}}</view>
  119. </view>
  120. <view class="gslist">
  121. <view class="gtit">会议</view>
  122. <view class="gtxt">{{scorecount.conferenceScore}}</view>
  123. </view>
  124. <view class="gslist">
  125. <view class="gtit">社情民意</view>
  126. <view class="gtxt">{{scorecount.sqmyScore}}</view>
  127. </view>
  128. <view class="gslist">
  129. <view class="gtit">政协提案</view>
  130. <view class="gtxt">{{scorecount.proposalScore}}</view>
  131. </view>
  132. <!-- <view class="gslist">
  133. <view class="gtit">会议发言</view>
  134. <view class="gtxt">{{scorecount.conferenceScore}}</view>
  135. </view> -->
  136. <view class="gslist">
  137. <view class="gtit">其他</view>
  138. <view class="gtxt">{{scorecount.bonusScore}}</view>
  139. </view>
  140. </view>
  141. </view>
  142. </block>
  143. <!-- 提案方便 -->
  144. <view class="list" v-if="tabval!=0">
  145. <view class="zfbox" v-if="tabval==2">个人提案方面总计得分 <text class="znum">{{scorecount.proposalScore||0}}</text> 分</view>
  146. <view class="zfbox" v-if="tabval==3">个人社情民意方面总计得分 <text class="znum">{{scorecount.sqmyScore||0}}</text> 分</view>
  147. <view class="zfbox" v-if="tabval==4">个人会议参与情况总计得分 <text class="znum">{{scorecount.conferenceScore||0}}</text> 分</view>
  148. <view class="zfbox" v-if="tabval==5">个人活动参与情况总计得分 <text class="znum">{{scorecount.activityScore||0}}</text> 分</view>
  149. <report-list :type='tabval' :wtdt="wtdt" :tajdlist="tajdlist" :ztlxlist="ztlxlist" :hylxlist="hylxlist" :hdlxlist="hdlxlist" :datalist="list"></report-list>
  150. <!-- <view class="upmore flexccc">
  151. <image :src="upmimg"></image>
  152. <view>下拉更多</view>
  153. </view> -->
  154. </view>
  155. </view>
  156. <footers v-if="isfootflag" :footlist="footlist" :footerindex="footerindex" :color_checked="color_checked" :color_nochecked="color_nochecked" :isHomeIndex="true"></footers>
  157. </view>
  158. </template>
  159. <script>
  160. import config from '@/config'
  161. const baseUrl = config.baseUrl
  162. import { selectValue } from '@/utils/common.js';
  163. import {getInfomenberDetai} from "@/api/mine/report.js"
  164. import {getDictionaryFn} from "@/api/mine/register.js"
  165. import reportList from "@/work/components/report/list.vue"
  166. import footers from '@/components/footer/footer.vue'
  167. export default {
  168. components:{reportList,footers},
  169. data() {
  170. return {
  171. footlist:[
  172. {module:'home',title:'潜山政协',icon_checked:require('@/static/images/tabbar/home_.png'),icon_nochecked:require('@/static/images/tabbar/home.png')},
  173. {module:'report',title:'履职报告',icon_checked:require('@/static/images/tabbar/report_.png'),icon_nochecked:require('@/static/images/tabbar/report.png')},
  174. {module:'notice',title:'会议通知',icon_checked:require('@/static/images/tabbar/notice_.png'),icon_nochecked:require('@/static/images/tabbar/notice.png')},
  175. {module:'mine',title:'个人中心',icon_checked:require('@/static/images/tabbar/mine_.png'),icon_nochecked:require('@/static/images/tabbar/mine.png')},
  176. ],
  177. color_checked :'222327',
  178. color_nochecked :'AAAAAA',
  179. footerindex:'report',
  180. isfootflag:true,
  181. backgroundColor:'transparent',
  182. headimg:require("@/static/images/mine/header.png"),
  183. backimg:require("@/work/static/images/back.png"),
  184. bgimg: require("@/work/static/images/report/bg.png"),
  185. infoa:require("@/work/static/images/report/infoa.png"),
  186. infob:require("@/work/static/images/report/infob.png"),
  187. infoc:require("@/work/static/images/report/infoc.png"),
  188. infod:require("@/work/static/images/report/infod.png"),
  189. bga:require("@/work/static/images/report/bga.png"),
  190. bgb:require("@/work/static/images/report/bgb.png"),
  191. medala:require("@/work/static/images/report/medala.png"),
  192. medalb:require("@/work/static/images/report/medalb.png"),
  193. upimg:require("@/work/static/images/report/up.png"),
  194. upmimg:require("@/static/images/home/up.png"),
  195. backgroundColor:'transparent',
  196. year:'2024',
  197. wtdt:'',
  198. memberInfo:{},
  199. proposalInfoList:[],//提案集合
  200. sqmyInfoList:[],//社情民意集合
  201. zxConferenceList:[],//会议集合
  202. zxActivityList:[],//活动集合
  203. zxSpeakList:[],//发言集合
  204. jblist:[],
  205. dplist:[],
  206. tajdlist:[],
  207. ztlxlist:[],
  208. hylxlist:[],
  209. hdlxlist:[],
  210. mapcount:{},
  211. scorecount:{},
  212. tabval:0,
  213. list:[],
  214. tabList:[{tit:'履职状况',val:'0'},{tit:'提案方面',val:2},{tit:'社情民意方面',val:3},{tit:'会议参与情况',val:4},{tit:'活动参与情况',val:5},{tit:'会议发言情况',val:6}],
  215. chartData:{
  216. categories: ["活动","会议","社情民意","政协提案","其他"],
  217. series: [],
  218. },
  219. opts: {
  220. color: ["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],
  221. padding: [5,5,5,5],
  222. dataLabel: false,
  223. enableScroll: false,
  224. legend: {
  225. show: true,
  226. position: "right",
  227. lineHeight: 25
  228. },
  229. "legend": {"show": false,},
  230. extra: {
  231. radar: {
  232. gridType: "radar",
  233. gridColor: "#CCCCCC",
  234. gridCount: 3,
  235. opacity: 0.2,
  236. max: 200,
  237. labelShow: true,
  238. border: true
  239. }
  240. }
  241. }
  242. }
  243. },
  244. onPageScroll(e) {
  245. var scrollTop = Number(e.scrollTop);
  246. var listTop=Number(this.listTop)-Number(this.nvaHeight)
  247. if (scrollTop <=this.nvaHeight) {
  248. const opacity = scrollTop / 100 // 计算透明度值
  249. const color = `rgba(29, 100, 226, ${opacity})`
  250. this.backgroundColor = color // 更新盒子背景颜色
  251. } else {
  252. this.backgroundColor = '#1D64E2'
  253. }
  254. },
  255. onLoad(e) {
  256. this.id=e.id;
  257. this.getDetail()
  258. this.init()
  259. },
  260. methods: {
  261. getBack(){
  262. uni.navigateBack({
  263. delta:1
  264. })
  265. },
  266. kaType(ite,list){
  267. return selectValue(list, ite);
  268. },
  269. bindDateChange(e){
  270. var val=e.detail.value;
  271. this.year=val;
  272. this.getDetail()
  273. },
  274. getTabFn(val){
  275. this.tabval=val
  276. if(val==2){
  277. this.list=this.proposalInfoList
  278. }else if(val==3){
  279. this.list=this.sqmyInfoList
  280. }else if(val==4){
  281. this.list=this.zxConferenceList
  282. }else if(val==5){
  283. this.list=this.zxActivityList
  284. }else if(val==6){
  285. this.list=this.zxSpeakList
  286. }
  287. },
  288. init(){
  289. // 界别
  290. getDictionaryFn('circles').then(res=>{
  291. if(res.code==200&&res.data.length){
  292. this.jblist = res.data.map(v => {
  293. return {
  294. label: v.dictLabel,
  295. value:v.dictValue
  296. }
  297. })
  298. }
  299. })
  300. // 党派
  301. getDictionaryFn('political_parties').then(res=>{
  302. if(res.code==200&&res.data.length){
  303. this.dplist = res.data.map(v => {
  304. return {
  305. label: v.dictLabel,
  306. value: v.dictValue
  307. }
  308. })
  309. }
  310. })
  311. // 提案进度
  312. getDictionaryFn('proposal_progress').then(res=>{
  313. if(res.code==200){
  314. this.tajdlist = res.data.map(v => {
  315. return {
  316. label: v.dictLabel,
  317. value: v.dictValue
  318. }
  319. })
  320. }
  321. })
  322. //主题类型
  323. getDictionaryFn('sqmy_topic_type').then(res=>{
  324. if(res.code==200){
  325. this.ztlxlist = res.data.map(v => {
  326. return {
  327. label: v.dictLabel,
  328. value: v.dictValue
  329. }
  330. })
  331. }
  332. })
  333. //会议类型
  334. getDictionaryFn('conference_type').then(res=>{
  335. if(res.code==200){
  336. this.hylxlist = res.data.map(v => {
  337. return {
  338. label: v.dictLabel,
  339. value: v.dictValue
  340. }
  341. })
  342. }
  343. })
  344. //活动类型
  345. getDictionaryFn('activity_type').then(res=>{
  346. if(res.code==200){
  347. this.hdlxlist = res.data.map(v => {
  348. return {
  349. label: v.dictLabel,
  350. value: v.dictValue
  351. }
  352. })
  353. }
  354. })
  355. },
  356. getDetail(){
  357. var params={
  358. userId:this.id,
  359. year:this.year
  360. }
  361. getInfomenberDetai(params).then(res=>{
  362. if(res.code==200){
  363. this.datainfo=res.data;
  364. this.memberInfo=res.data.memberInfo;
  365. if(res.data.memberAssessmentInfo){
  366. this.scorecount=JSON.parse(JSON.stringify(res.data.memberAssessmentInfo));
  367. var score=res.data.memberAssessmentInfo
  368. var newArr=[score.activityScore||0,score.conferenceScore||0,score.sqmyScore||0,score.proposalScore||0,score.bonusScore||0]
  369. var obj={
  370. name:'分值',
  371. data:newArr
  372. }
  373. var series=[]
  374. series.push(obj)
  375. this.chartData.series=series
  376. }
  377. if(res.data.map){
  378. this.mapcount=JSON.parse(JSON.stringify(res.data.map));
  379. }
  380. this.proposalInfoList=res.data.proposalInfoList;
  381. this.sqmyInfoList=res.data.sqmyInfoList;
  382. this.zxConferenceList=res.data.zxConferenceList;
  383. this.zxActivityList=res.data.zxActivityList;
  384. this.zxSpeakList=res.data.zxSpeakList;
  385. }
  386. })
  387. },
  388. }
  389. }
  390. </script>
  391. <style lang="scss">
  392. page {background-color: #ffffff;}
  393. .navbox{position: fixed;left: 0;right: 0;top: 0;z-index: 4;
  394. .topl{width: 60rpx;height: 60rpx;display: flex;align-items: center;justify-content: center;
  395. image{width: 40rpx;height: 30rpx;}
  396. }
  397. .topr{width: 36rpx;height: 36rpx;position: relative;margin-right: 10rpx;
  398. image{width: 100%;height: 100%;}
  399. .cir{width: 14rpx;height: 14rpx;background: #DF0024;border-radius: 50%;position: absolute;right: -7rpx;top: -7rpx;}
  400. }
  401. }
  402. .zxbox{
  403. .bgimg{width: 100%;height: 196rpx;}
  404. .mbox{margin-top: -34rpx;padding: 34rpx 24rpx 30rpx;z-index: 1;position: relative;border-radius: 30rpx 30rpx 0 0;background-color: #ffffff;
  405. .head{
  406. .headimg{width: 140rpx;height: 140rpx;flex: 0 0 auto;margin-right: 34rpx;}
  407. .hinfo{
  408. .tit{font-weight: bold;font-size: 34rpx;color: #222327;margin-bottom: 26rpx;}
  409. .medal{
  410. .bg{position: relative;height: 40rpx;border-radius: 4rpx;min-width: 200rpx;font-weight: 500;
  411. font-size: 20rpx;padding-left: 16rpx;box-sizing: border-box;text-align: center;
  412. color: #FFFFFF;line-height: 40rpx;
  413. text{border-right: 2rpx solid #ffffff;margin: 0 8rpx;}
  414. &.bg1{background: #C8A46D;margin-right: 36rpx;}
  415. &.bg2{background: #BC2828;}
  416. image{width: 32rpx;height: 40rpx;position: absolute;left: -16rpx;top: 0;}
  417. }
  418. }
  419. }
  420. }
  421. .jinfo{padding-bottom: 22rpx;
  422. .tit{font-weight: bold;font-size: 30rpx;color: #222327;}
  423. .imgs{width: 30rpx;height: 34rpx;display: flex;align-items: center;justify-content: center;margin-right: 14rpx;
  424. .imga{width:30rpx;height: 24rpx;}
  425. .imgb{width:18rpx;height: 26rpx;}
  426. .imgc{width:30rpx;height: 26rpx;}
  427. .imgd{width:26rpx;height: 26rpx;}
  428. }
  429. .txt{font-weight: 500;font-size: 26rpx;color: #222327;}
  430. .gsbox{background: #ECF1FD;border-radius: 10rpx;padding: 48rpx 26rpx 18rpx;display: flex;flex-wrap: wrap;justify-content: space-between;
  431. .gslist{width: 242rpx;display: flex;align-items: center;margin-bottom: 28rpx;flex: 0 1 auto;
  432. .gtit{font-weight: bold;font-size: 26rpx;color: #222327;flex: 0 0 auto;}
  433. .gtxt{font-weight: bold;font-size: 30rpx;color: #004BF6;flex:1;text-align: right;}
  434. }
  435. }
  436. }
  437. .score{
  438. .scorea{width: 334rpx;height: 146rpx;position: relative;
  439. image{width: 100%;height: 100%;}
  440. .box{position: absolute;left: 0;right: 0;top: 0;bottom: 0;text-align: center;
  441. .num{font-weight: 800;font-size: 40rpx;color: #222327;}
  442. }
  443. }
  444. }
  445. .tabs{display: flex;align-items: center;overflow-x: auto;
  446. .tab{font-weight: 500;font-size: 26rpx;color: #666666;position: relative;height: 88rpx;line-height: 88rpx;margin-right: 40rpx;flex: 0 0 auto;
  447. &.act{font-size: 30rpx;font-weight: bold;color: #222327;
  448. &::after{content: '';width:52rpx;height: 10rpx;background: #1D64E2;border-radius: 6rpx;position: absolute;left: 50%;margin-left: -26rpx;bottom: 0rpx;}
  449. }
  450. }
  451. }
  452. .nums{width: 332rpx;height: 110rpx;border-radius: 10rpx;display: flex;align-items: center;padding: 0 26rpx;margin-bottom: 24rpx;margin-right: 38rpx;
  453. &:nth-child(2n){margin-right: 0;}
  454. .tit{font-weight: bold;font-size: 30rpx;}
  455. .txt{font-weight: 500;font-size: 24rpx;
  456. text{font-weight: 500;font-size: 40rpx;color: #343434;margin-right: 8rpx;}
  457. }
  458. &.bga{background: #E8EFFF;
  459. .tit{color: #004BF6;}
  460. text{color: #004BF6;}
  461. }
  462. &.bgb{background: #FFECE3;
  463. .tit{color: #FF4E00;}
  464. text{color: #FF4E00;}
  465. }
  466. }
  467. .zfbox{font-weight: bold;font-size:26rpx;color: #222327;margin-bottom: 36rpx;
  468. .znum{font-size: 40rpx;color: #1D64E2;padding: 0 8rpx;}
  469. }
  470. }
  471. }
  472. .picks{
  473. width: 160rpx;height: 56rpx;background-color: rgba(15, 57, 116, 0.5);display: flex;align-items: center;padding: 0 24rpx;box-sizing: border-box;border-radius: 10rpx;
  474. image{width: 16rpx;height: 10rpx;flex: 0 0 auto;}
  475. view{font-weight: bold;font-size: 26rpx;color: #FFFFFF;flex: 1;}
  476. }
  477. .upmore{
  478. image{width: 40rpx;height: 32rpx;margin-bottom: 16rpx;}
  479. view{font-weight: 500;font-size: 26rpx;color: #AAAAAA;}
  480. }
  481. </style>