list.vue 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. <template>
  2. <view>
  3. <view v-if="datalist.length>0">
  4. <!-- 我的提案 -->
  5. <block v-if="type">
  6. <view class="caselist" v-for="(ite,idx) in datalist" :key='idx' @click="getDetail(ite.conferenceId)">
  7. <view class="tit overtwo" v-if="type=='wdfy'">{{ite.speakTitle}}</view>
  8. <view v-else class="flexcj mb20">
  9. <view class="tit overtwo" style="margin-bottom: 0;">{{ite.conferenceTitle}}</view>
  10. <image :src="codeimg" class='codeimg' @click.stop="getTuiFn(ite,'qdm')"></image>
  11. </view>
  12. <block v-if="type!='wdfy'&&type!='hyfy'">
  13. <view class="ftxt">
  14. <text>会议时间</text>
  15. <view>{{ite.conferenceDate}}</view>
  16. </view>
  17. <view class="ftxt">
  18. <text>会议地点</text>
  19. <view>{{ite.conferenceAddress}}</view>
  20. </view>
  21. <view class="ftxt" >
  22. <text>发布时间</text>
  23. <view>{{ite.publishTime}}</view>
  24. </view>
  25. <view class="ftxt">
  26. <text>备注信息</text>
  27. <view>{{ite.remark}}</view>
  28. </view>
  29. </block>
  30. <block v-if="type=='wdfy'">
  31. <view class="flexcw" >
  32. <view class="ftxt">
  33. <text>发言人</text>
  34. <view>{{ite.name}}</view>
  35. </view>
  36. <view class="ftxt">
  37. <text>录入人</text>
  38. <view>{{ite.inputName}}</view>
  39. </view>
  40. </view>
  41. <view class="ftxt">
  42. <text>关联会议</text>
  43. <view>{{ite.conferenceTitle}}</view>
  44. </view>
  45. <view class="ftxt">
  46. <text>发言单位</text>
  47. <view>{{ite.speakUnit}}</view>
  48. </view>
  49. <view class="ftxt">
  50. <text>发言类型</text>
  51. <view>{{kaType(ite.speakType)}}</view>
  52. </view>
  53. <view class="ftxt">
  54. <text>提交时间</text>
  55. <view>{{ite.publishTime}}</view>
  56. </view>
  57. <view class="ftxt">
  58. <text>审核状态</text>
  59. <view class="co0b">{{ite.speakStatus==2?'已审核':'待审核'}}</view>
  60. </view>
  61. </block>
  62. <block v-if="type=='hyfy'">
  63. <view class="ftxt" >
  64. <text>关联会议</text>
  65. <view>{{ite.conferenceTitle}}</view>
  66. </view>
  67. <view class="ftxt" >
  68. <text>发言人数</text>
  69. <view>{{ite.conferenceTitle}}</view>
  70. </view>
  71. <view class="casebtn flexc">
  72. <view class="lfread">已审核({{ite.noRead}})<text class="lfdet">未审核({{ite.read}})</text></view>
  73. <view class="co1d" @click.stop="getReadFn(ite.conferenceId)">去审核</view>
  74. </view>
  75. </block>
  76. <!-- 会议活动,管理员 -->
  77. <view class="casebtn flexc" v-if="type=='hyhd'">
  78. <!-- <view class="lfread">未读人数({{ite.noRead}})<text class="lfdet">已读人数({{ite.read}})</text></view>
  79. <view class="co1d" @click.stop="getReadFn(ite.conferenceId)">查看阅读详情</view> -->
  80. <!-- 暂放 -->
  81. <view class="lftit">当前会议暂未签到</view>
  82. <view class="btn btn2" @click.stop="getTuiFn(ite,'hyqd')">去签到</view>
  83. </view>
  84. <!-- 答复情况 签到-->
  85. <view class="casebtn flexc" v-if="type=='hytz'">
  86. <block v-if="ite.zxConferenceUserList&&ite.zxConferenceUserList[0].isJoin=='Y'">
  87. <view class="lftit">是否参会已答复,查看<text class="lfdet">答复内容</text></view>
  88. <view class="btn btn3">已答复</view>
  89. </block>
  90. <block v-else>
  91. <view class="lftit">是否成参会暂未答复</view>
  92. <view class="btn btn2" @click.stop="getTuiFn(ite,'chdf')">参会答复</view>
  93. </block>
  94. <block v-if="ite.signIn">
  95. <view class="lftit">当前会议已结束,查看<text class="lfdet">签到情况</text></view>
  96. <view class="btn btn3">已签到</view>
  97. </block>
  98. <block v-if="ite.zxConferenceUserList&&ite.zxConferenceUserList[0].isJoin=='Y'">
  99. <view class="lftit">当前会议暂未签到</view>
  100. <view class="btn btn2" @click.stop="getTuiFn(ite,'hyhd')">去签到</view>
  101. </block>
  102. </view>
  103. </view>
  104. </block>
  105. <view class="shax" v-if="wtdt">{{wtdt}}</view>
  106. </view>
  107. <block v-else>
  108. <no-data></no-data>
  109. </block>
  110. </view>
  111. </template>
  112. <script>
  113. import { selectValue } from '@/utils/common.js';
  114. import noData from "@/components/nodata/nodata.vue"
  115. export default {
  116. props:{
  117. datalist: {
  118. type: Array,
  119. default () {
  120. return []
  121. }
  122. },
  123. tajdlist: {
  124. type: Array,
  125. default () {
  126. return []
  127. }
  128. },
  129. wtdt:{
  130. type: String,
  131. default () {
  132. return ''
  133. }
  134. },
  135. type:{
  136. type: [String,Number],
  137. default () {
  138. return ''
  139. }
  140. },
  141. listtype:{
  142. type: [String,Number],
  143. default () {
  144. return ''
  145. }
  146. },
  147. fylxlist:{
  148. type: Array,
  149. default () {
  150. return []
  151. }
  152. }
  153. },
  154. components:{
  155. noData
  156. },
  157. data(){
  158. return{
  159. start:require("@/work/static/images/start.png"),
  160. nstart:require("@/work/static/images/nstart.png"),
  161. zanimg:require("@/work/static/images/zanico.png"),
  162. nzanimg:require("@/work/static/images/nzanico.png"),
  163. flower:require("@/work/static/images/flower.png"),
  164. nflower:require("@/work/static/images/nflower.png"),
  165. codeimg:require("@/work/static/images/meeting/code.png"),
  166. }
  167. },
  168. onLoad: function() {
  169. },
  170. methods:{
  171. kaType(ite){
  172. console.log(this.fylxlist)
  173. return selectValue(this.fylxlist, ite);
  174. },
  175. getDetail(e){
  176. this.$emit('getDetail',e)
  177. },
  178. getReadFn(e){
  179. this.$emit('getReadFn',e)
  180. },
  181. getTuiFn(ite,txt,sh){
  182. var that=this;
  183. if(txt=='scfk'&&sh==0){
  184. uni.showModal({
  185. title: '确认立案',
  186. content: "是否确认立案",
  187. cancelText: '取消',
  188. confirmText: '确认',
  189. success: function(res) {
  190. if (res.confirm) {
  191. var obj={
  192. id:ite.conferenceId,
  193. type:txt,
  194. sh:sh,
  195. }
  196. that.$emit('getTuiFn',obj)
  197. } else if (res.cancel) {
  198. // console.log('用户点击取消');
  199. }
  200. }
  201. });
  202. }else{
  203. var obj={
  204. id:ite.conferenceId,
  205. type:txt,
  206. sh:sh,
  207. }
  208. this.$emit('getTuiFn',obj)
  209. }
  210. },
  211. typeFn(data){
  212. if(data){
  213. var newArr=[]
  214. var astr=data.split('-')
  215. astr.forEach(ite=>{
  216. var a=ite.substring(0,5);
  217. newArr.push(a)
  218. })
  219. return newArr.join('-')
  220. }else{
  221. return ''
  222. }
  223. },
  224. },
  225. }
  226. </script>
  227. <style lang="scss" scoped>
  228. .caselist{background: #FFFFFF;border-radius: 30rpx;margin-top: 24rpx;padding: 38rpx 24rpx 8rpx;
  229. .tit{font-weight: bold;font-size: 32rpx;color: #222327;margin-bottom: 42rpx;}
  230. .ftxt{display: flex;align-items: flex-start;margin-bottom: 32rpx;flex:0 1 auto;min-width: 50%;
  231. text{font-weight: bold;font-size: 26rpx;color: #CACACA;flex: 0 0 auto;min-width: 104rpx;text-align-last: justify;}
  232. view{flex: 1;color: #343434;font-size: 26rpx;margin-left: 20rpx;line-height: 34rpx;}
  233. }
  234. .codeimg{width: 42rpx;height: 42rpx;flex: 0 0 auto;margin-left: 20rpx;}
  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. .lfread{font-weight: bold;font-size: 26rpx;color: #FF0000;flex:1;
  243. .lfdet{color: #222327;margin-left: 16rpx;}
  244. }
  245. .zanimg{width: 22rpx;height: 20rpx;margin-right: 14rpx;}
  246. .staimg{width: 24rpx;height: 24rpx;margin-right: 14rpx;}
  247. .btn{min-width: 118rpx;height: 52rpx;border-radius: 26rpx;font-weight: bold;flex: 0 0 auto;display: flex;align-items: center;
  248. font-size: 26rpx;margin-left: 26rpx;line-height: 52rpx;text-align: center;padding: 0 32rpx;box-sizing: border-box;
  249. &.btn1{background: #FFEDED;color: #FF4141;}
  250. &.btn2{background: #E4EEFF;color: #1D64E2;}
  251. &.btn3{background: #ECECEC;color: #666666;}
  252. }
  253. }
  254. }
  255. </style>