index.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <template>
  2. <div v-loading="loading" class="container" style="position:relactive">
  3. </div>
  4. </template>
  5. <script>
  6. import draggable from 'vuedraggable'
  7. import { GetDataByName } from '@/api/common'
  8. import Cookies from 'js-cookie'
  9. export default {
  10. name: 'Addboard2',
  11. components: { draggable },
  12. data() {
  13. return {
  14. isRoleEdit: [],
  15. isEdit: 'view',
  16. dashboardList: [],
  17. currentDashboard: undefined,
  18. editDialogVisible: false,
  19. dbObj: {},
  20. loading: false,
  21. isCollapse: false,
  22. did: undefined,
  23. isTitle: '2',
  24. editBtn: false,
  25. control_btn: '编辑',
  26. control_btn_l: false,
  27. }
  28. },
  29. created() {
  30. // console.log('this.$route.params.id', this.$route.params.id)
  31. // const isEdit = this.$route.params.isEdit
  32. // this.isEdit = isEdit
  33. this.getList()
  34. },
  35. methods: {
  36. getList() {
  37. this.loading = true
  38. // if (this.$route.params.id) {
  39. // this.did = this.$route.params.id
  40. // } else {
  41. // this.did = this.did
  42. // }
  43. }
  44. }
  45. }
  46. </script>
  47. <style lang="scss" scoped>
  48. .container {
  49. display: flex;
  50. min-height: calc(100vh - 62px);
  51. // align-items: stretch;
  52. .dashboard-list {
  53. width: 250px;
  54. min-height: 100%;
  55. padding: 20px 10px;
  56. /deep/ .el-card__header {
  57. div {
  58. display: flex;
  59. justify-content: space-between;
  60. font-size: 14px;
  61. color: #606266;
  62. i {
  63. cursor: pointer;
  64. }
  65. }
  66. padding: 5px 0px;
  67. }
  68. .dashboard-list-item {
  69. display: flex;
  70. justify-content: space-between;
  71. line-height: 35px;
  72. font-size: 14px;
  73. cursor: pointer;
  74. color: #606266;
  75. i {
  76. margin-right: 10px;
  77. line-height: 35px;
  78. }
  79. }
  80. .high-light-dashboard {
  81. color: #205cd8;
  82. }
  83. }
  84. .dashboard-wrapper {
  85. width: 100%;
  86. }
  87. }
  88. </style>