brandTool.vue 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. this.$emit("addbrand")
  53. },
  54. }
  55. }
  56. </script>
  57. <style lang="scss" scoped>
  58. .saga-toolbar-box {
  59. position: absolute;
  60. top: 48px;
  61. left: 0;
  62. width: 100%;
  63. height: 70px;
  64. background: #fff;
  65. box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.5);
  66. z-index: 11;
  67. .saga-toolbar-main {
  68. width: 1200px;
  69. height: 100%;
  70. margin: auto;
  71. line-height: 70px;
  72. }
  73. .box-name {
  74. color: #646C73;
  75. display: inline-block;
  76. margin-right: 68px;
  77. span {
  78. color: #3A8DDE;
  79. font-size: 20px;
  80. }
  81. }
  82. .reset-input {
  83. /deep/ .el-input__inner {
  84. background: #F6F6F6;
  85. }
  86. }
  87. }
  88. </style>