list.vue 9.7 KB

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