| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <!--
- * @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>
|