report.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385
  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">85</view>
  64. <view class="f12 fw coe2">履职得分情况</view>
  65. <view class="f12 co22">(满分100分)</view>
  66. </view>
  67. </view>
  68. <view class="scorea">
  69. <image :src="bgb"></image>
  70. <view class="box flexccc">
  71. <view class="num">85</view>
  72. <view class="f12 fw co83">综合排名</view>
  73. <view class="f12 co22">(共436名)</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. <view class="flexcw mb28">
  82. <view class="nums bga">
  83. <view class="tit flex1">政协提案</view>
  84. <view class="txt"><text>5</text>件</view>
  85. </view>
  86. <view class="nums bgb">
  87. <view class="tit flex1">社情民意</view>
  88. <view class="txt"><text>5</text>件</view>
  89. </view>
  90. <view class="nums bga">
  91. <view class="tit flex1">全会</view>
  92. <view class="txt"><text>5</text>件</view>
  93. </view>
  94. <view class="nums bgb">
  95. <view class="tit flex1">活动</view>
  96. <view class="txt"><text>5</text>件</view>
  97. </view>
  98. <view class="nums bga">
  99. <view class="tit flex1">普通会议</view>
  100. <view class="txt"><text>5</text>件</view>
  101. </view>
  102. <view class="nums bgb">
  103. <view class="tit flex1">会议发言</view>
  104. <view class="txt"><text>5</text>件</view>
  105. </view>
  106. </view>
  107. <!-- 雷达图 -->
  108. <view class="mb32">
  109. <qiun-data-charts type="radar" :opts="opts" :chartData="chartData"></qiun-data-charts>
  110. </view>
  111. <!-- 各项得分 -->
  112. <view class="jinfo">
  113. <view class="tit mb14">各项得分</view>
  114. <view class="gsbox">
  115. <view class="gslist">
  116. <view class="gtit">活动</view>
  117. <view class="gtxt">3.1</view>
  118. </view>
  119. <view class="gslist">
  120. <view class="gtit">会议 </view>
  121. <view class="gtxt">3.1</view>
  122. </view>
  123. <view class="gslist">
  124. <view class="gtit">社情民意</view>
  125. <view class="gtxt">3.1</view>
  126. </view>
  127. <view class="gslist">
  128. <view class="gtit">政协提案</view>
  129. <view class="gtxt">3.1</view>
  130. </view>
  131. <view class="gslist">
  132. <view class="gtit">会议发言</view>
  133. <view class="gtxt">3.1</view>
  134. </view>
  135. <view class="gslist">
  136. <view class="gtit">其他</view>
  137. <view class="gtxt">3.1</view>
  138. </view>
  139. </view>
  140. </view>
  141. <!-- 提案方便 -->
  142. <view class="list">
  143. <report-list type='2' :wtdt="wtdt" :datalist="tabList"></report-list>
  144. <view class="upmore flexccc">
  145. <image :src="upmimg"></image>
  146. <view>下拉更多</view>
  147. </view>
  148. </view>
  149. </view>
  150. </view>
  151. </template>
  152. <script>
  153. import config from '@/config'
  154. const baseUrl = config.baseUrl
  155. import { selectValue } from '@/utils/common.js';
  156. import {getInfojopDetai} from "@/api/mine/report.js"
  157. import {getDictionaryFn} from "@/api/mine/register.js"
  158. import reportList from "@/work/components/report/list.vue"
  159. export default {
  160. components:{reportList},
  161. data() {
  162. return {
  163. headimg:require("@/static/images/mine/header.png"),
  164. backimg:require("@/work/static/images/back.png"),
  165. bgimg: require("@/work/static/images/report/bg.png"),
  166. infoa:require("@/work/static/images/report/infoa.png"),
  167. infob:require("@/work/static/images/report/infob.png"),
  168. infoc:require("@/work/static/images/report/infoc.png"),
  169. infod:require("@/work/static/images/report/infod.png"),
  170. bga:require("@/work/static/images/report/bga.png"),
  171. bgb:require("@/work/static/images/report/bgb.png"),
  172. medala:require("@/work/static/images/report/medala.png"),
  173. medalb:require("@/work/static/images/report/medalb.png"),
  174. upimg:require("@/work/static/images/report/up.png"),
  175. upmimg:require("@/static/images/home/up.png"),
  176. backgroundColor:'transparent',
  177. year:'2024',
  178. tabval:0,
  179. wtdt:'',
  180. memberInfo:{},
  181. proposalInfoList:{},
  182. sqmyInfoList:{},
  183. zxConferenceList:{},
  184. zxActivityList:{},
  185. zxSpeakList:{},
  186. jblist:[],
  187. dplist:[],
  188. tabList:[{tit:'履职状况',val:'0'},{tit:'提案方面',val:'1'},{tit:'社情民意方面',val:'2'},{tit:'会议参与情况',val:'3'},{tit:'活动参与情况',val:'4'}],
  189. chartData:{
  190. categories: ["活动","其他","维度3","维度4","维度5","维度6"],
  191. series: [{ name: "成交量1", data: [90,110,165,195,187,172]},],
  192. },
  193. opts: {
  194. color: ["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],
  195. padding: [5,5,5,5],
  196. dataLabel: false,
  197. enableScroll: false,
  198. legend: {
  199. show: true,
  200. position: "right",
  201. lineHeight: 25
  202. },
  203. "legend": {"show": false,},
  204. extra: {
  205. radar: {
  206. gridType: "radar",
  207. gridColor: "#CCCCCC",
  208. gridCount: 3,
  209. opacity: 0.2,
  210. max: 200,
  211. labelShow: true,
  212. border: true
  213. }
  214. }
  215. }
  216. }
  217. },
  218. onPageScroll(e) {
  219. var scrollTop = Number(e.scrollTop);
  220. var listTop=Number(this.listTop)-Number(this.nvaHeight)
  221. if (scrollTop <=this.nvaHeight) {
  222. const opacity = scrollTop / 100 // 计算透明度值
  223. const color = `rgba(29, 100, 226, ${opacity})`
  224. this.backgroundColor = color // 更新盒子背景颜色
  225. } else {
  226. this.backgroundColor = '#1D64E2'
  227. }
  228. },
  229. onLoad(e) {
  230. this.id=e.id;
  231. this.getDetail()
  232. this.init()
  233. },
  234. methods: {
  235. getBack(){
  236. uni.navigateBack({
  237. delta:1
  238. })
  239. },
  240. kaType(ite,list){
  241. return selectValue(list, ite);
  242. },
  243. bindDateChange(e){
  244. var val=e.detail.value;
  245. this.year=val;
  246. this.getDetail()
  247. },
  248. getTabFn(val){
  249. this.tabval=val
  250. },
  251. init(){
  252. // 界别
  253. getDictionaryFn('circles').then(res=>{
  254. if(res.code==200&&res.data.length){
  255. this.jblist = res.data.map(v => {
  256. return {
  257. label: v.dictLabel,
  258. value:v.dictValue
  259. }
  260. })
  261. }
  262. })
  263. // 党派
  264. getDictionaryFn('political_parties').then(res=>{
  265. if(res.code==200&&res.data.length){
  266. this.dplist = res.data.map(v => {
  267. return {
  268. label: v.dictLabel,
  269. value: v.dictValue
  270. }
  271. })
  272. }
  273. })
  274. },
  275. getDetail(){
  276. var params={
  277. id:this.id,
  278. year:this.year
  279. }
  280. getInfojopDetai(this.id).then(res=>{
  281. if(res.code==200){
  282. this.datainfo=res.data;
  283. this.memberInfo=res.data.memberInfo;
  284. this.proposalInfoList=res.data.proposalInfoList;
  285. this.sqmyInfoList=res.data.sqmyInfoList;
  286. this.zxConferenceList=res.data.zxConferenceList;
  287. this.zxActivityList=res.data.zxActivityList;
  288. this.zxSpeakList=res.data.zxSpeakList;
  289. }
  290. })
  291. },
  292. }
  293. }
  294. </script>
  295. <style lang="scss">
  296. page {background-color: #ffffff;}
  297. .navbox{position: fixed;left: 0;right: 0;top: 0;z-index: 4;
  298. .topl{width: 60rpx;height: 60rpx;display: flex;align-items: center;justify-content: center;
  299. image{width: 40rpx;height: 30rpx;}
  300. }
  301. .topr{width: 36rpx;height: 36rpx;position: relative;margin-right: 10rpx;
  302. image{width: 100%;height: 100%;}
  303. .cir{width: 14rpx;height: 14rpx;background: #DF0024;border-radius: 50%;position: absolute;right: -7rpx;top: -7rpx;}
  304. }
  305. }
  306. .zxbox{
  307. .bgimg{width: 100%;height: 196rpx;}
  308. .mbox{margin-top: -34rpx;padding: 34rpx 24rpx 30rpx;z-index: 1;position: relative;border-radius: 30rpx 30rpx 0 0;background-color: #ffffff;
  309. .head{
  310. .headimg{width: 140rpx;height: 140rpx;flex: 0 0 auto;margin-right: 34rpx;}
  311. .hinfo{
  312. .tit{font-weight: bold;font-size: 34rpx;color: #222327;margin-bottom: 26rpx;}
  313. .medal{
  314. .bg{position: relative;height: 40rpx;border-radius: 4rpx;min-width: 200rpx;font-weight: 500;
  315. font-size: 20rpx;padding-left: 16rpx;box-sizing: border-box;text-align: center;
  316. color: #FFFFFF;line-height: 40rpx;
  317. text{border-right: 2rpx solid #ffffff;margin: 0 8rpx;}
  318. &.bg1{background: #C8A46D;margin-right: 36rpx;}
  319. &.bg2{background: #BC2828;}
  320. image{width: 32rpx;height: 40rpx;position: absolute;left: -16rpx;top: 0;}
  321. }
  322. }
  323. }
  324. }
  325. .jinfo{padding-bottom: 22rpx;
  326. .tit{font-weight: bold;font-size: 30rpx;color: #222327;}
  327. .imgs{width: 30rpx;height: 34rpx;display: flex;align-items: center;justify-content: center;margin-right: 14rpx;
  328. .imga{width:30rpx;height: 24rpx;}
  329. .imgb{width:18rpx;height: 26rpx;}
  330. .imgc{width:30rpx;height: 26rpx;}
  331. .imgd{width:26rpx;height: 26rpx;}
  332. }
  333. .txt{font-weight: 500;font-size: 26rpx;color: #222327;}
  334. .gsbox{background: #ECF1FD;border-radius: 10rpx;padding: 48rpx 26rpx 18rpx;display: flex;flex-wrap: wrap;justify-content: space-between;
  335. .gslist{width: 242rpx;display: flex;align-items: center;margin-bottom: 28rpx;flex: 0 1 auto;
  336. .gtit{font-weight: bold;font-size: 26rpx;color: #222327;flex: 0 0 auto;}
  337. .gtxt{font-weight: bold;font-size: 30rpx;color: #004BF6;flex:1;text-align: right;}
  338. }
  339. }
  340. }
  341. .score{
  342. .scorea{width: 334rpx;height: 146rpx;position: relative;
  343. image{width: 100%;height: 100%;}
  344. .box{position: absolute;left: 0;right: 0;top: 0;bottom: 0;text-align: center;
  345. .num{font-weight: 800;font-size: 40rpx;color: #222327;}
  346. }
  347. }
  348. }
  349. .tabs{display: flex;align-items: center;overflow-x: auto;
  350. .tab{font-weight: 500;font-size: 26rpx;color: #666666;position: relative;height: 88rpx;line-height: 88rpx;margin-right: 40rpx;flex: 0 0 auto;
  351. &.act{font-size: 30rpx;font-weight: bold;color: #222327;
  352. &::after{content: '';width:52rpx;height: 10rpx;background: #1D64E2;border-radius: 6rpx;position: absolute;left: 50%;margin-left: -26rpx;bottom: 0rpx;}
  353. }
  354. }
  355. }
  356. .nums{width: 332rpx;height: 110rpx;border-radius: 10rpx;display: flex;align-items: center;padding: 0 26rpx;margin-bottom: 24rpx;margin-right: 38rpx;
  357. &:nth-child(2n){margin-right: 0;}
  358. .tit{font-weight: bold;font-size: 30rpx;}
  359. .txt{font-weight: 500;font-size: 24rpx;
  360. text{font-weight: 500;font-size: 40rpx;color: #343434;margin-right: 8rpx;}
  361. }
  362. &.bga{background: #E8EFFF;
  363. .tit{color: #004BF6;}
  364. text{color: #004BF6;}
  365. }
  366. &.bgb{background: #FFECE3;
  367. .tit{color: #FF4E00;}
  368. text{color: #FF4E00;}
  369. }
  370. }
  371. }
  372. }
  373. .picks{
  374. 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;
  375. image{width: 16rpx;height: 10rpx;flex: 0 0 auto;}
  376. view{font-weight: bold;font-size: 26rpx;color: #FFFFFF;flex: 1;}
  377. }
  378. .upmore{
  379. image{width: 40rpx;height: 32rpx;margin-bottom: 16rpx;}
  380. view{font-weight: 500;font-size: 26rpx;color: #AAAAAA;}
  381. }
  382. </style>