123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <!--
- * @Author: zhangyu
- * @Date: 2020-05-08 18:37:31
- * @Info:
- * @LastEditTime: 2020-05-18 14:17:04
- -->
- <template>
- <div class="saga-toolbar-box">
- <div class="saga-toolbar-main">
- <div class="box-name">
- 品牌总数
- <span> {{count}} </span>个
- </div>
- <div class="box-name">
- 可能重复的品牌
- <span> {{repeatCount}} </span>个
- </div>
- <div class="box-name">
- 信息不完整品牌
- <span> {{incompleteCount}} </span>个
- </div>
- <span style="float: right;">
- <el-button type="primary" @click="handBrand">添加品牌</el-button>
- </span>
- </div>
- </div>
- </template>
- <script>
- import { brandCount } from "@/api/brand"
- export default {
- created() {
- this.getBrandCount()
- },
- mounted() {
- },
- data() {
- return {
- count: "",
- repeatCount: "",
- incompleteCount: ""
- }
- },
- methods: {
- getBrandCount() {
- brandCount({},res => {
- this.count = res.Count
- this.repeatCount = res.RepeatCount
- this.incompleteCount = res.IncompleteCount
- })
- },
- handBrand() {
- this.$emit("addbrand")
- },
- }
- }
- </script>
- <style lang="scss" scoped>
- .saga-toolbar-box {
- position: absolute;
- top: 48px;
- left: 0;
- width: 100%;
- height: 70px;
- background: #fff;
- box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.5);
- z-index: 11;
- .saga-toolbar-main {
- width: 1200px;
- height: 100%;
- margin: auto;
- line-height: 70px;
- }
- .box-name {
- color: #646C73;
- display: inline-block;
- margin-right: 68px;
- span {
- color: #3A8DDE;
- font-size: 20px;
- }
- }
- .reset-input {
- /deep/ .el-input__inner {
- background: #F6F6F6;
- }
- }
- }
- </style>
|