阅行客电子档案
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
1.7 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
3 months ago
2 years ago
  1. <template>
  2. <div>
  3. <AnjuanContent v-if="selectedCategory.arrangeType === 1 || selectedCategory.arrangeType === 2" ref="ajContent" class="ajContent" :selected-category="selectedCategory" :is-recycle="isRecycle" :smart-query="smartQuery" />
  4. <el-drawer
  5. v-else
  6. class="anjuan-drawer"
  7. :with-header="false"
  8. :visible.sync="anjuanDrawer"
  9. :modal="false"
  10. :wrapper-closable="true"
  11. :show-close="false"
  12. direction="rtl"
  13. size="90%"
  14. >
  15. <AnjuanContent ref="ajContent" :selected-category="selectedCategory" :is-recycle="isRecycle" :smart-query="smartQuery" />
  16. <span class="closed-btn" @click="closeDrawer" />
  17. </el-drawer>
  18. </div>
  19. </template>
  20. <script>
  21. import AnjuanContent from './content'
  22. export default {
  23. name: 'Anjuan',
  24. components: { AnjuanContent },
  25. props: {
  26. data: {
  27. type: String,
  28. default: ''
  29. },
  30. selectedCategory: {
  31. type: Object,
  32. default: function() {
  33. return {}
  34. }
  35. },
  36. isRecycle: {
  37. type: Boolean,
  38. default: false
  39. },
  40. smartQuery: {
  41. type: Object,
  42. default: function() {
  43. return {}
  44. }
  45. }
  46. },
  47. data() {
  48. return {
  49. anjuanDrawer: false
  50. }
  51. },
  52. created() {
  53. },
  54. mounted() {
  55. },
  56. methods: {
  57. closeDrawer() {
  58. this.anjuanDrawer = false
  59. this.$parent.parentsProjectId = null
  60. this.$parent.parentsProjectRow = null
  61. localStorage.removeItem('currentPageSize')
  62. localStorage.removeItem('currentPage')
  63. }
  64. }
  65. }
  66. </script>
  67. <style lang='scss' scoped>
  68. [data-theme=light] .ajContent{
  69. padding-top: 2px;
  70. }
  71. </style>