list.vue 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. <template>
  2. <view>
  3. <view v-if="datalist.length>0">
  4. <!-- 履职信息 -->
  5. <block v-if="type==1">
  6. <view class="caselist" v-for="(ite,idx) in datalist" :key='idx' @click="getDetail(ite.proposalId)">
  7. <view class="head flexc mb18">
  8. <image :src="avatarimg"></image>
  9. <view class="headr">
  10. <view class="name">吴爱妮</view>
  11. <view class="unit">中国共产党;中国共产党</view>
  12. </view>
  13. </view>
  14. <!-- <view class="tit overtwo">{{ite.title}}</view> -->
  15. <view class="ftxt">
  16. <text>工作单位及职位</text>
  17. <view>潜山市政协委员会 委员</view>
  18. </view>
  19. <view class="ftxt">
  20. <text>联系方式 </text>
  21. <view>13700562888</view>
  22. </view>
  23. <view class="flexw">
  24. <view class="ftxt">
  25. <text>履职得分</text>
  26. <view class="cofe">86</view>
  27. </view>
  28. <view class="ftxt">
  29. <text>综合排名</text>
  30. <view class="cofe">3</view>
  31. </view>
  32. </view>
  33. <view class="casebtn">
  34. <view class="btn btn2">审核</view>
  35. <view class="btn btn4">修改</view>
  36. <view class="btn btn1">删除</view>
  37. </view>
  38. </view>
  39. </block>
  40. <!-- 提案方便 -->
  41. <block v-if="type==2">
  42. <view class="talist">
  43. <view class="tit overtwo">关于拓展市校合作,助推高质量发展的建议</view>
  44. <view class="flexc">
  45. <view class="f12 co6 fw5 mr24">个人提案</view>
  46. <view class="f12 co6 fw5">2024-01-01</view>
  47. </view>
  48. <view class="mt9 flexcj">
  49. <!-- <view class="btna">已立案</view> -->
  50. <view class="btna">办理中</view>
  51. <!-- <view class="btna">已办结</view> -->
  52. <view class="btnb">4.3 <text></text></view>
  53. </view>
  54. </view>
  55. </block>
  56. <view class="shax" v-if="wtdt">{{wtdt}}</view>
  57. </view>
  58. <block v-else>
  59. <no-data></no-data>
  60. </block>
  61. </view>
  62. </template>
  63. <script>
  64. import { selectValue } from '@/utils/common.js';
  65. import noData from "@/components/nodata/nodata.vue"
  66. export default {
  67. props:{
  68. datalist: {
  69. type: Array,
  70. default () {
  71. return []
  72. }
  73. },
  74. tajdlist: {
  75. type: Array,
  76. default () {
  77. return []
  78. }
  79. },
  80. wtdt:{
  81. type: String,
  82. default () {
  83. return ''
  84. }
  85. },
  86. type:{
  87. type: [String,Number],
  88. default () {
  89. return ''
  90. }
  91. },
  92. },
  93. components:{
  94. noData
  95. },
  96. data(){
  97. return{
  98. avatarimg:require("@/static/images/mine/header.png"),
  99. start:require("@/work/static/images/start.png"),
  100. nstart:require("@/work/static/images/nstart.png"),
  101. zanimg:require("@/work/static/images/zanico.png"),
  102. nzanimg:require("@/work/static/images/nzanico.png"),
  103. flower:require("@/work/static/images/flower.png"),
  104. nflower:require("@/work/static/images/nflower.png"),
  105. }
  106. },
  107. onLoad: function() {
  108. },
  109. methods:{
  110. kaType(ite){
  111. return selectValue(this.tajdlist, ite);
  112. },
  113. getDetail(e){
  114. this.$emit('getDetail',e)
  115. },
  116. getTuiFn(txt){
  117. var obj={
  118. type:txt,
  119. id:1,
  120. }
  121. this.$emit('getTuiFn',obj)
  122. },
  123. typeFn(data){
  124. if(data){
  125. var newArr=[]
  126. var astr=data.split('-')
  127. astr.forEach(ite=>{
  128. var a=ite.substring(0,5);
  129. newArr.push(a)
  130. })
  131. return newArr.join('-')
  132. }else{
  133. return ''
  134. }
  135. },
  136. },
  137. }
  138. </script>
  139. <style lang="scss" scoped>
  140. .caselist{background: #FFFFFF;border-radius: 30rpx;margin-top: 24rpx;padding: 38rpx 24rpx 8rpx;
  141. .head{
  142. image{width: 120rpx;height: 120rpx;margin-right: 36rpx;flex: 0 0 auto;border-radius: 50%;}
  143. .headr{
  144. .name{font-weight: bold;font-size: 30rpx;color: #222327;margin-bottom: 14rpx;}
  145. .unit{font-weight: 500;font-size: 26rpx;color: #666666;}
  146. }
  147. }
  148. .tit{font-weight: bold;font-size: 32rpx;color: #222327;margin-bottom: 42rpx;}
  149. .ftxt{display: flex;align-items: flex-start;margin-bottom: 32rpx;flex:0 1 auto;min-width: 50%;
  150. text{font-weight: bold;font-size: 26rpx;color: #CACACA;flex: 0 0 auto;min-width: 104rpx;text-align-last: justify;}
  151. view{flex: 1;color: #343434;font-size: 26rpx;margin-left: 20rpx;line-height: 34rpx;}
  152. }
  153. .casebtn{padding: 26rpx 0;border-top: 2rpx solid #E6E6E6;display: flex;align-items: center;justify-content: flex-end;
  154. .ftit{font-weight: bold;font-size: 26rpx;color: #CACACA;flex: 1;
  155. text{color: $com-cd3;margin-left: 20rpx;font-weight:500;min-width: 104rpx;text-align-last: justify;}
  156. }
  157. .lftit{font-weight: 500;font-size: 26rpx;color: #666666;flex:1;
  158. .lfdet{color: $com-cd3;text-decoration: underline;}
  159. }
  160. .zanimg{width: 22rpx;height: 20rpx;margin-right: 14rpx;}
  161. .staimg{width: 24rpx;height: 24rpx;margin-right: 14rpx;}
  162. .btn{min-width: 128rpx;height: 52rpx;border-radius: 26rpx;font-weight: bold;flex: 0 0 auto;
  163. font-size: 26rpx;margin-left: 24rpx;line-height: 52rpx;text-align: center;padding: 0 32rpx;box-sizing: border-box;
  164. &.btn1{background: #FFEDED;color: #FF4141;}
  165. &.btn2{background: #E4EEFF;color: #1D64E2;}
  166. &.btn3{background: #ECECEC;color: #666666;}
  167. &.btn4{background: #E9FFE9;color: #28C529;}
  168. }
  169. }
  170. }
  171. .talist{width: 100%;background: #F2F6FF;border-radius: 10rpx;padding: 24rpx 24rpx;
  172. .tit{font-weight: bold;font-size: 30rpx;color: #222327;margin-bottom: 16rpx;}
  173. .btna{font-weight: bold;font-size: 24rpx;color: #FF4E00;}
  174. .btnb{font-weight: bold;font-size: 46rpx;color: #1D64E2;
  175. text{font-size: 24rpx;color: #222327;margin-left: 8rpx;}
  176. }
  177. }
  178. </style>