list.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  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. var aite=selectValue(this.tajdlist, ite);
  112. return aite.actions;
  113. },
  114. getDetail(e){
  115. this.$emit('getDetail',e)
  116. },
  117. getTuiFn(txt){
  118. var obj={
  119. type:txt,
  120. id:1,
  121. }
  122. this.$emit('getTuiFn',obj)
  123. },
  124. typeFn(data){
  125. if(data){
  126. var newArr=[]
  127. var astr=data.split('-')
  128. astr.forEach(ite=>{
  129. var a=ite.substring(0,5);
  130. newArr.push(a)
  131. })
  132. return newArr.join('-')
  133. }else{
  134. return ''
  135. }
  136. },
  137. },
  138. }
  139. </script>
  140. <style lang="scss" scoped>
  141. .caselist{background: #FFFFFF;border-radius: 30rpx;margin-top: 24rpx;padding: 38rpx 24rpx 8rpx;
  142. .head{
  143. image{width: 120rpx;height: 120rpx;margin-right: 36rpx;flex: 0 0 auto;border-radius: 50%;}
  144. .headr{
  145. .name{font-weight: bold;font-size: 30rpx;color: #222327;margin-bottom: 14rpx;}
  146. .unit{font-weight: 500;font-size: 26rpx;color: #666666;}
  147. }
  148. }
  149. .tit{font-weight: bold;font-size: 32rpx;color: #222327;margin-bottom: 42rpx;}
  150. .ftxt{display: flex;align-items: flex-start;margin-bottom: 32rpx;flex:0 1 auto;min-width: 50%;
  151. text{font-weight: bold;font-size: 26rpx;color: #CACACA;flex: 0 0 auto;min-width: 104rpx;text-align-last: justify;}
  152. view{flex: 1;color: #343434;font-size: 26rpx;margin-left: 20rpx;line-height: 34rpx;}
  153. }
  154. .casebtn{padding: 26rpx 0;border-top: 2rpx solid #E6E6E6;display: flex;align-items: center;justify-content: flex-end;
  155. .ftit{font-weight: bold;font-size: 26rpx;color: #CACACA;flex: 1;
  156. text{color: $com-cd3;margin-left: 20rpx;font-weight:500;min-width: 104rpx;text-align-last: justify;}
  157. }
  158. .lftit{font-weight: 500;font-size: 26rpx;color: #666666;flex:1;
  159. .lfdet{color: $com-cd3;text-decoration: underline;}
  160. }
  161. .zanimg{width: 22rpx;height: 20rpx;margin-right: 14rpx;}
  162. .staimg{width: 24rpx;height: 24rpx;margin-right: 14rpx;}
  163. .btn{min-width: 128rpx;height: 52rpx;border-radius: 26rpx;font-weight: bold;flex: 0 0 auto;
  164. font-size: 26rpx;margin-left: 24rpx;line-height: 52rpx;text-align: center;padding: 0 32rpx;box-sizing: border-box;
  165. &.btn1{background: #FFEDED;color: #FF4141;}
  166. &.btn2{background: #E4EEFF;color: #1D64E2;}
  167. &.btn3{background: #ECECEC;color: #666666;}
  168. &.btn4{background: #E9FFE9;color: #28C529;}
  169. }
  170. }
  171. }
  172. .talist{width: 100%;background: #F2F6FF;border-radius: 10rpx;padding: 24rpx 24rpx;
  173. .tit{font-weight: bold;font-size: 30rpx;color: #222327;margin-bottom: 16rpx;}
  174. .btna{font-weight: bold;font-size: 24rpx;color: #FF4E00;}
  175. .btnb{font-weight: bold;font-size: 46rpx;color: #1D64E2;
  176. text{font-size: 24rpx;color: #222327;margin-left: 8rpx;}
  177. }
  178. }
  179. </style>