agency.vue 722 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <div class="full-width flex flex-col">
  3. <div class="bold font-16 full-width text-left">{{ title }}</div>
  4. <el-empty description="暂无数据"></el-empty>
  5. </div>
  6. </template>
  7. <script>
  8. export default {
  9. name: 'agency',
  10. props: {
  11. type: {
  12. type: Number,
  13. default: 1
  14. }
  15. },
  16. watch: {
  17. type: {
  18. handler(val) {
  19. if (val === 2) {
  20. this.title = '内容更新'
  21. }
  22. },
  23. immediate: true
  24. }
  25. },
  26. data() {
  27. return {
  28. title: '代办事项'
  29. }
  30. }
  31. }
  32. </script>
  33. <style lang="scss" scoped>
  34. .read {
  35. background: #bf863c;
  36. padding: 2px;
  37. color: white;
  38. border-radius: 3px;
  39. font-size: 12px;
  40. width: 40px;
  41. font-weight: 500;
  42. }
  43. </style>