paper-1.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <template>
  2. <div id="personnel-1">
  3. <van-row>
  4. <van-col span="24" class="main">
  5. <van-col span="24" class="list" v-for="(item, index) in list" :key="index">
  6. <van-col span="24" class="title textOver">
  7. {{ item.name }}
  8. </van-col>
  9. <van-col span="24" class="other">
  10. <van-col span="24" class="otherInfo">
  11. 单位:<span>{{ item.unit || '暂无' }}</span>
  12. </van-col>
  13. <van-col span="24" class="otherInfo">
  14. 职务:<span>{{ item.job || '暂无' }}</span>
  15. </van-col>
  16. </van-col>
  17. </van-col>
  18. </van-col>
  19. </van-row>
  20. </div>
  21. </template>
  22. <script>
  23. import { mapState, createNamespacedHelpers } from 'vuex';
  24. export default {
  25. name: 'personnel-1',
  26. props: {
  27. list: { type: Array },
  28. },
  29. components: {},
  30. data: function () {
  31. return {};
  32. },
  33. created() {},
  34. methods: {},
  35. computed: {
  36. ...mapState(['user']),
  37. },
  38. metaInfo() {
  39. return { title: this.$route.meta.title };
  40. },
  41. watch: {
  42. test: {
  43. deep: true,
  44. immediate: true,
  45. handler(val) {},
  46. },
  47. },
  48. };
  49. </script>
  50. <style lang="less" scoped>
  51. .main {
  52. padding: 0 10px;
  53. .list {
  54. background-color: #fff;
  55. margin: 0 0 8px 0;
  56. padding: 8px;
  57. border-radius: 5px;
  58. border: 1px solid #f1f1f1;
  59. .title {
  60. font-size: 16px;
  61. font-weight: bold;
  62. margin: 0 0 5px 0;
  63. }
  64. .other {
  65. margin: 0 0 5px 0;
  66. .otherInfo {
  67. font-size: 14px;
  68. color: #666;
  69. margin: 0 0 5px 0;
  70. span {
  71. color: #000;
  72. }
  73. }
  74. }
  75. .btn {
  76. text-align: center;
  77. .van-button {
  78. margin: 0 5px;
  79. }
  80. }
  81. }
  82. }
  83. </style>