brandTool.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <!--
  2. * @Author: zhangyu
  3. * @Date: 2020-05-08 18:37:31
  4. * @Info:
  5. * @LastEditTime: 2020-05-18 14:17:04
  6. -->
  7. <template>
  8. <div class="saga-toolbar-box">
  9. <div class="saga-toolbar-main">
  10. <div class="box-name">
  11. 品牌总数
  12. <span>&nbsp;{{count}}&nbsp;</span>个
  13. </div>
  14. <div class="box-name">
  15. 可能重复的品牌
  16. <span>&nbsp;{{repeatCount}}&nbsp;</span>个
  17. </div>
  18. <div class="box-name">
  19. 信息不完整品牌
  20. <span>&nbsp;{{incompleteCount}}&nbsp;</span>个
  21. </div>
  22. <span style="float: right;">
  23. <el-button type="primary" @click="handBrand">添加品牌</el-button>
  24. </span>
  25. </div>
  26. </div>
  27. </template>
  28. <script>
  29. import { brandCount } from "@/api/brand"
  30. export default {
  31. created() {
  32. this.getBrandCount()
  33. },
  34. mounted() {
  35. },
  36. data() {
  37. return {
  38. count: "",
  39. repeatCount: "",
  40. incompleteCount: ""
  41. }
  42. },
  43. methods: {
  44. getBrandCount() {
  45. brandCount({},res => {
  46. this.count = res.Count
  47. this.repeatCount = res.RepeatCount
  48. this.incompleteCount = res.IncompleteCount
  49. })
  50. },
  51. handBrand() {
  52. //添加品牌弹窗
  53. this.$emit("addbrand")
  54. },
  55. }
  56. }
  57. </script>
  58. <style lang="scss" scoped>
  59. .saga-toolbar-box {
  60. position: absolute;
  61. top: 48px;
  62. left: 0;
  63. width: 100%;
  64. height: 70px;
  65. background: #fff;
  66. box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.5);
  67. z-index: 11;
  68. .saga-toolbar-main {
  69. width: 1200px;
  70. height: 100%;
  71. margin: auto;
  72. line-height: 70px;
  73. }
  74. .box-name {
  75. color: #646C73;
  76. display: inline-block;
  77. margin-right: 68px;
  78. span {
  79. color: #3A8DDE;
  80. font-size: 20px;
  81. }
  82. }
  83. .reset-input {
  84. /deep/ .el-input__inner {
  85. background: #F6F6F6;
  86. }
  87. }
  88. }
  89. </style>