list.vue 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  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.reservatId)">
  7. <view class="tit overtwo">关于拓展市校合作,助推高质量发展的建议</view>
  8. <view class="ftxt">
  9. <text>提案类别</text>
  10. <view>社会建设类/教育事业</view>
  11. </view>
  12. <view class="ftxt">
  13. <text>提交时间</text>
  14. <view>2024-02-22 14:12:38</view>
  15. </view>
  16. <view class="ftxt">
  17. <text>提案状态</text>
  18. <view class="co0b">审核中</view>
  19. </view>
  20. <view class="casebtn flexc">
  21. <view class="ftit">办理状态<text>待反馈</text></view>
  22. <view class="btn btn2">反馈意见</view>
  23. </view>
  24. </view>
  25. </block>
  26. <!-- 联名提案 -->
  27. <block v-if="type==2">
  28. <view class="caselist" v-for="(ite,idx) in datalist" :key='idx' @click="getDetail(ite.reservatId)">
  29. <view class="tit overtwo">关于拓展市校合作,助推高质量发展的建议</view>
  30. <view class="flex">
  31. <view class="ftxt w50">
  32. <text>提案者</text>
  33. <view>何潇潇</view>
  34. </view>
  35. <view class="ftxt w50">
  36. <text>案号</text>
  37. <view>222</view>
  38. </view>
  39. </view>
  40. <view class="ftxt">
  41. <text>提案类别</text>
  42. <view>社会建设类/教育事业</view>
  43. </view>
  44. <view class="ftxt">
  45. <text>提交时间</text>
  46. <view>2024-02-22 14:12:38</view>
  47. </view>
  48. <view class="ftxt">
  49. <text>联名状态</text>
  50. <view class="co0b">办理中</view>
  51. </view>
  52. <view class="casebtn flexc">
  53. <view class="lftit">您的联名提案未反馈</view>
  54. <!-- <view class="lftit">您的联名提案已反馈,查看<text class="lfdet">反馈详情</text></view> -->
  55. <view class="btn btn1">反对</view>
  56. <view class="btn btn2">同意</view>
  57. <view class="btn btn3">已同意</view>
  58. </view>
  59. </view>
  60. </block>
  61. <!-- 推荐优秀 -->
  62. <block v-if="type==3">
  63. <view class="caselist" v-for="(ite,idx) in datalist" :key='idx' @click="getDetail(ite.reservatId)">
  64. <view class="tit overtwo">关于拓展市校合作,助推高质量发展的建议</view>
  65. <view class="flex">
  66. <view class="ftxt w50">
  67. <text>提案者</text>
  68. <view>何潇潇</view>
  69. </view>
  70. <view class="ftxt w50">
  71. <text>案号</text>
  72. <view>222</view>
  73. </view>
  74. </view>
  75. <view class="ftxt">
  76. <text>推荐截止</text>
  77. <view>2024-02-22</view>
  78. </view>
  79. <view class="casebtn flexc">
  80. <view class="lftit">该提案暂未推荐为优秀</view>
  81. <!-- <view class="lftit">该提案已推荐为优秀,查看<text class="lfdet">推荐理由</text></view> -->
  82. <!-- <view class="btn btn2"><image :src="zanimg" class="zanimg"></image>推荐优秀</view> -->
  83. <view class="btn btn3" @click="getTuiFn('tjyx')"><image :src="nzanimg" class="zanimg"></image>推荐优秀</view>
  84. </view>
  85. </view>
  86. </block>
  87. <!-- 推荐重点 -->
  88. <block v-if="type==4">
  89. <view class="caselist" v-for="(ite,idx) in datalist" :key='idx' @click="getDetail(ite.reservatId)">
  90. <view class="tit overtwo">关于拓展市校合作,助推高质量发展的建议</view>
  91. <view class="flex">
  92. <view class="ftxt w50">
  93. <text>提案者</text>
  94. <view>何潇潇</view>
  95. </view>
  96. <view class="ftxt w50">
  97. <text>案号</text>
  98. <view>222</view>
  99. </view>
  100. </view>
  101. <view class="ftxt">
  102. <text>推荐截止</text>
  103. <view>2024-02-22</view>
  104. </view>
  105. <view class="casebtn flexc">
  106. <view class="lftit">该提案暂未推荐为重点</view>
  107. <!-- <view class="lftit">该提案已推荐为重点,查看<text class="lfdet">推荐理由</text></view> -->
  108. <view class="btn btn2"><image :src="start" class="staimg"></image>推荐重点</view>
  109. <!-- <view class="btn btn3"><image :src="nstart" class="staimg"></image>推荐重点</view> -->
  110. </view>
  111. </view>
  112. </block>
  113. <!-- 公开提案 -->
  114. <block v-if="type==5">
  115. <view class="caselist" v-for="(ite,idx) in datalist" :key='idx' @click="getDetail(ite.reservatId)">
  116. <view class="tit overtwo">关于拓展市校合作,助推高质量发展的建议</view>
  117. <view class="ftxt">
  118. <text>案号</text>
  119. <view>222</view>
  120. </view>
  121. <view class="ftxt">
  122. <text>提案类别</text>
  123. <view>社会建设类/教育事业</view>
  124. </view>
  125. <view class="ftxt">
  126. <text>提交时间</text>
  127. <view>2024-02-22 14:12:38</view>
  128. </view>
  129. <view class="ftxt">
  130. <text>办理状态</text>
  131. <view class="co0b">审核中</view>
  132. </view>
  133. </view>
  134. </block>
  135. <!-- 办理质量评议 -->
  136. <block v-if="type==6">
  137. <view class="caselist" v-for="(ite,idx) in datalist" :key='idx' @click="getDetail(ite.reservatId)">
  138. <view class="tit overtwo">关于拓展市校合作,助推高质量发展的建议</view>
  139. <view class="ftxt">
  140. <text>案号</text>
  141. <view>222</view>
  142. </view>
  143. <view class="ftxt">
  144. <text>承办单位</text>
  145. <view>市教育局</view>
  146. </view>
  147. <view class="casebtn flexc">
  148. <view class="lftit">该提案暂未进行质量评议</view>
  149. <!-- <view class="lftit">该提案已评议,查看<text class="lfdet">评议详情</text></view> -->
  150. <view class="btn btn2" @click="getTuiFn('zlpy')"><image :src="flower" class="staimg"></image>质量评议</view>
  151. <!-- <view class="btn btn3"><image :src="nflower" class="staimg"></image>已评议</view> -->
  152. </view>
  153. </view>
  154. </block>
  155. <view class="shax" v-if="wtdt">{{wtdt}}</view>
  156. </view>
  157. <block v-else>
  158. <no-data></no-data>
  159. </block>
  160. </view>
  161. </template>
  162. <script>
  163. import { selectDictValue } from '@/utils/common.js';
  164. import noData from "@/components/nodata/nodata.vue"
  165. export default {
  166. props:{
  167. datalist: {
  168. type: Array,
  169. default () {
  170. return []
  171. }
  172. },
  173. wtdt:{
  174. type: String,
  175. default () {
  176. return ''
  177. }
  178. },
  179. type:{
  180. type: [String,Number],
  181. default () {
  182. return ''
  183. }
  184. },
  185. },
  186. components:{
  187. noData
  188. },
  189. data(){
  190. return{
  191. start:require("@/work/static/images/start.png"),
  192. nstart:require("@/work/static/images/nstart.png"),
  193. zanimg:require("@/work/static/images/zanico.png"),
  194. nzanimg:require("@/work/static/images/nzanico.png"),
  195. flower:require("@/work/static/images/flower.png"),
  196. nflower:require("@/work/static/images/nflower.png"),
  197. }
  198. },
  199. onLoad: function() {
  200. },
  201. methods:{
  202. getDetail(e){
  203. this.$emit('getDetail',e)
  204. },
  205. getTuiFn(txt){
  206. var obj={
  207. type:txt,
  208. id:1,
  209. }
  210. this.$emit('getTuiFn',obj)
  211. },
  212. typeFn(data){
  213. if(data){
  214. var newArr=[]
  215. var astr=data.split('-')
  216. astr.forEach(ite=>{
  217. var a=ite.substring(0,5);
  218. newArr.push(a)
  219. })
  220. return newArr.join('-')
  221. }else{
  222. return ''
  223. }
  224. },
  225. },
  226. }
  227. </script>
  228. <style lang="scss" scoped>
  229. .caselist{background: #FFFFFF;border-radius: 30rpx;margin-top: 24rpx;padding: 38rpx 24rpx 8rpx;
  230. .tit{font-weight: bold;font-size: 32rpx;color: #222327;margin-bottom: 42rpx;}
  231. .ftxt{display: flex;align-items: flex-start;margin-bottom: 32rpx;
  232. text{font-weight: bold;font-size: 26rpx;color: #CACACA;flex: 0 0 auto;min-width: 104rpx;text-align-last: justify;}
  233. view{flex: 1;color: #343434;font-size: 26rpx;margin-left: 20rpx;line-height: 34rpx;}
  234. }
  235. .casebtn{padding: 24rpx 0;border-top: 2rpx solid #E6E6E6;
  236. .ftit{font-weight: bold;font-size: 26rpx;color: #CACACA;flex: 1;
  237. text{color: $com-cd3;margin-left: 20rpx;font-weight:500;min-width: 104rpx;text-align-last: justify;}
  238. }
  239. .lftit{font-weight: 500;font-size: 26rpx;color: #666666;flex:1;
  240. .lfdet{color: $com-cd3;text-decoration: underline;}
  241. }
  242. .zanimg{width: 22rpx;height: 20rpx;margin-right: 14rpx;}
  243. .staimg{width: 24rpx;height: 24rpx;margin-right: 14rpx;}
  244. .btn{min-width: 118rpx;height: 52rpx;border-radius: 26rpx;font-weight: bold;flex: 0 0 auto;display: flex;align-items: center;
  245. font-size: 26rpx;margin-left: 26rpx;line-height: 52rpx;text-align: center;padding: 0 32rpx;box-sizing: border-box;
  246. &.btn1{background: #FFEDED;color: #FF4141;}
  247. &.btn2{background: #E4EEFF;color: #1D64E2;}
  248. &.btn3{background: #ECECEC;color: #666666;}
  249. }
  250. }
  251. }
  252. </style>