personnelSampling.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <template>
  2. <view>
  3. <view class="search-box" >
  4. <view class="search" >
  5. <uni-search-bar @confirm="search" :focus="true" v-model="searchValue" @input="input"
  6. @cancel="cancel" @clear="clear" bgColor="#ffffff">
  7. </uni-search-bar>
  8. </view>
  9. </view>
  10. <ul style="list-style: none;padding-left: 0px;">
  11. <li v-for="data in msgdata" :key="data.customerId" style="margin:0 40rpx 40rpx;padding: 20rpx;background-color: #ffffff;">
  12. <view class="slot-text-filename" @click="clickDetail(data)">
  13. <text>{{data.ApplyMan}}</text>
  14. </view>
  15. <view class="slot-text-msg" @click="clickDetail(data)" style="display: flex;flex-direction: column;">
  16. <text class="slot-text-msg-data" style="font-size: 30rpx;">隔离点:{{data.IsolationPiontName}}</text>
  17. <text class="slot-text-msg-data" style="font-size: 30rpx;">批次:{{data.SamplingBatch}}</text>
  18. <text class="slot-text-msg-data" style="font-size: 30rpx;">创建人:{{data.CreateMan}}</text>
  19. </view>
  20. </li>
  21. </ul>
  22. </view>
  23. </template>
  24. <script>
  25. import {getAdmissionsList} from "../../api/sampling.js"
  26. export default {
  27. data() {
  28. return {
  29. msgdata:[]
  30. };
  31. },
  32. methods:{
  33. search(res) {
  34. uni.showToast({
  35. title: '搜索:' + res.value,
  36. icon: 'none'
  37. })
  38. },
  39. input(res) {
  40. console.log('----input:', res)
  41. },
  42. clear(res) {
  43. uni.showToast({
  44. title: 'clear事件,清除值为:' + res.value,
  45. icon: 'none'
  46. })
  47. },
  48. blur(res) {
  49. uni.showToast({
  50. title: 'blur事件,输入值为:' + res.value,
  51. icon: 'none'
  52. })
  53. },
  54. focus(e) {
  55. uni.showToast({
  56. title: 'focus事件,输出值为:' + e.value,
  57. icon: 'none'
  58. })
  59. },
  60. cancel(res) {
  61. uni.showToast({
  62. title: '点击取消,输入值为:' + res.value,
  63. icon: 'none'
  64. })
  65. }
  66. },
  67. onLoad() {
  68. getAdmissionsList().then(res=>{
  69. this.msgdata = res
  70. })
  71. }
  72. }
  73. </script>
  74. <style lang="scss">
  75. page{
  76. background-color: #Faf8f8;
  77. }
  78. .search-box{
  79. // background-color: white;
  80. margin: 20rpx;
  81. // padding: 30rpx;
  82. }
  83. .search{
  84. // display: flex;
  85. margin-bottom: 20rpx;
  86. }
  87. .slot-text-filename{
  88. font-size: 40rpx;
  89. // border-bottom: 2px solid #c9c9cd;
  90. }
  91. .slot-text-btn{
  92. margin-top: 30rpx;
  93. display: flex;
  94. justify-content: space-around;
  95. button{
  96. width: 25%;
  97. font-size: 20rpx;
  98. color: white;
  99. background-color: blue;
  100. }
  101. }
  102. </style>