readdetail.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <template>
  2. <view class="check" >
  3. <view class="navbox">
  4. <view class="plr12 mt18">
  5. <view class="search flex0 mb10">
  6. <image :src="searchimg"></image>
  7. <input placeholder="输入委员姓名进行查询" />
  8. </view>
  9. </view>
  10. <!-- <view class="tablists flexc mb20">
  11. <view v-for="(ite,idx) in tabList" @click="getTabFn(ite.val)" :class="{act:tabidx==ite.val}" :key="idx">{{ite.tit}}</view>
  12. </view> -->
  13. </view>
  14. <view class="ctip flex0">请左右滑动查看详细信息</view>
  15. <!-- 表格 -->
  16. <view class="tables">
  17. <view class="table">
  18. <zb-table
  19. :show-header="true"
  20. :columns="columns"
  21. :headbgColor="headbgColor"
  22. :stripe="false"
  23. :fit="true"
  24. @rowClick="rowClick"
  25. @toggleRowSelection="toggleRowSelection"
  26. @toggleAllSelection="toggleAllSelection"
  27. :border="border"
  28. :borderr="borderr"
  29. @detail="getDetail"
  30. :data="tableData"></zb-table>
  31. </view>
  32. </view>
  33. <!-- 弹窗 -->
  34. <pop-up :type='ptype' @getClose="getClose"></pop-up>
  35. </view>
  36. </template>
  37. <script>
  38. import zbTable from "@/work/components/zb-table/zb-tables.vue"
  39. import {getMeetDetaiFn} from "@/api/mine/meeting.js"
  40. import popUp from "@/work/components/popup/popup.vue"
  41. import {getDictionaryFn} from "@/api/mine/register.js"
  42. export default{
  43. components:{popUp,zbTable},
  44. data(){
  45. return{
  46. searchimg: require("@/work/static/images/search.png"),
  47. ccicoimg:require("@/work/static/images/ccico.png"),
  48. lbicoimg:require("@/work/static/images/lbico.png"),
  49. backimg:require("@/work/static/images/back.png"),
  50. upimg:require("@/work/static/images/up.png"),
  51. backgroundColor:"#1D64E2",
  52. tabidx:0,
  53. tabList:[{tit:'全部',val:0},{tit:'已读',val:1},{tit:'未读',val:2},{tit:'请假',val:3}],
  54. talbList:[{},],
  55. taztList:[{label:'是',value:'0'},{label:'否',value:'1'}],
  56. talbidx:'',
  57. datainfo:{
  58. talb:'',
  59. },
  60. columns: [
  61. { name: 'userName', label: '姓名',width:130,align:'center', },
  62. { name: 'postName', label: '职务',align:'center'},
  63. { name: 'replyTime', label: '答复时间',align:'center'},
  64. // { name: 'unit', label: '是否参会',align:'center'},
  65. { name: 'isJoin', type:'operation',label: '是否参会',renders:[
  66. {
  67. name:'isJoin',
  68. type:'detail',
  69. func:"detail"
  70. },
  71. ]},
  72. ],
  73. ptype:'',//弹窗类型
  74. border:true,
  75. borderr:false,
  76. headbgColor:'#F1F1F1',
  77. tableData:[],
  78. id:'',
  79. }
  80. },
  81. onUnload(){
  82. uni.$off('refreshlist')
  83. },
  84. onLoad(e) {
  85. this.id=e.id;
  86. this.getDataFn()
  87. // this.getDataFn()
  88. // this.init()
  89. // uni.$on('refreshlist', (e) => {
  90. // this.getDataFn()
  91. // })
  92. },
  93. mounted() {
  94. },
  95. methods:{
  96. // 提案状态
  97. init(){
  98. // getDictionaryFn('proposal_progress').then(res=>{
  99. // if(res.code==200&&res.data.length){
  100. // this.tajdlist = res.data.map(v => {
  101. // return {
  102. // label: v.dictLabel,
  103. // value: v.dictValue
  104. // }
  105. // })
  106. // }
  107. // })
  108. },
  109. getClose(){
  110. this.ptype=""
  111. },
  112. getTabFn(idx){
  113. this.tabidx=idx;
  114. },
  115. getBack(){
  116. uni.navigateBack({
  117. delta:1
  118. })
  119. },
  120. bindDateChangea(e){
  121. console.log(e,2)
  122. },
  123. getChFn(){
  124. this.$tab.navigateTo('/work/pages/case/tacheck')
  125. },
  126. getTuiFn(ite){
  127. this.ptype=ite.type
  128. },
  129. rowClick(){
  130. },
  131. getDetail(data){
  132. console.log(52)
  133. // this.$tab.navigateTo('/work/pages/case/details?id='+data)
  134. },
  135. getDataFn(){
  136. getMeetDetaiFn(this.id).then(res=>{
  137. if(res.code==200){
  138. if(res.data&&res.data.zxConferenceUserList){
  139. this.tableData=res.data.zxConferenceUserList
  140. }
  141. }
  142. })
  143. },
  144. }
  145. }
  146. </script>
  147. <style scoped lang="scss">
  148. page{background-color: #FFFFFF;}
  149. .check{height: 100vh;display: flex;flex-direction: column;
  150. .tables{flex:0 1 auto;overflow: auto;padding: 0 24rpx;
  151. .table{
  152. height: 100%;
  153. }
  154. }
  155. .ctip{font-weight: 500;padding: 22rpx 24rpx 26rpx;font-size: 26rpx;color: #FF0000;}
  156. .cbtn{margin: 0 24rpx;height: 80rpx;background: #1D64E2;border-radius: 80rpx;font-weight: bold;font-size: 30rpx;color: #FFFFFF;}
  157. }
  158. .navbox{background-color: $com-cd3;flex: 0 0 auto;
  159. .tablists{
  160. overflow: auto;flex-wrap: nowrap;
  161. view{font-weight: bold;font-size: 26rpx;color: #FFFFFF;position: relative;flex: 1;padding: 22rpx 24rpx;margin-right: 6rpx;box-sizing: border-box;
  162. text-align: center;
  163. &:last-child{margin-right: 0;}
  164. &.act{font-size: 30rpx;
  165. &::after{content: '';width: 62rpx;height: 10rpx;background: #FFFFFF;border-radius: 4rpx;left: 50%;margin-left: -31rpx;bottom: 0rpx;position: absolute;}
  166. }
  167. }
  168. }
  169. }
  170. </style>