hfduban.vue 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <template>
  2. <view class="alldata flexcj">
  3. <!-- :start="startDate" :end="endDate" -->
  4. <view class="flexc">
  5. <picker range-key='label' :value="hfindex" :range="hflist" @change="bindDateChange" >
  6. <view class="alldatain" :style="isHf?'':'color:#808080;'">{{isHf|| '请选择是否回复'}}</view></picker>
  7. <image :src="upimg"></image>
  8. </view>
  9. <!-- <view @click="getReset" class="rbox">重置回复</view> -->
  10. </view>
  11. </template>
  12. <script>
  13. export default{
  14. props:{
  15. },
  16. data(){
  17. return{
  18. upimg:require("@/static/images/index/up.png"),
  19. isHf:'',
  20. hfindex:[0],
  21. hflist:[{label:'是',id:'Y'},{label:'否',id:'N'},],//回复
  22. }
  23. },
  24. mounted() {
  25. if(this.timedate){
  26. this.date=this.timedate;
  27. }
  28. },
  29. methods:{
  30. bindDateChange(e){
  31. var val=e.detail.value
  32. this.isHf=this.hflist[val].label;
  33. var id=this.hflist[val].id
  34. this.$emit("bindDateChange",id)
  35. },
  36. getReset(){
  37. this.isHf='';
  38. this.hfindex=[0];
  39. this.$emit("bindDateChange",'')
  40. }
  41. }
  42. }
  43. </script>
  44. <style lang="scss" scoped>
  45. // 选择年份
  46. .alldata{padding: 20rpx;height: 80rpx;box-sizing: border-box;
  47. image{width: 22rpx;height: 16rpx;margin-left: 14rpx;}
  48. .alldatain{min-width: 124rpx;font-weight: 500;font-size: 30rpx;color:#FE5706 ;}
  49. }
  50. .rbox{padding: 0 12rpx;color: #ff0000;}
  51. </style>