Pārlūkot izejas kodu

供应商添加商品暂存

jiandexin1 1 gadu atpakaļ
vecāks
revīzija
0a353ea8a4
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      src/views/store/storegoods/index.vue

+ 3 - 0
src/views/store/storegoods/index.vue

@@ -24,6 +24,8 @@
 
 
       <template slot="isSale" slot-scope="scope" >
+        <el-tag v-if="scope.row.$isSale === '上架'" type="success">{{scope.row.$isSale}}</el-tag>
+        <el-tag v-if="scope.row.$isSale === '下架'" type="danger">{{scope.row.$isSale}}</el-tag>
         <el-button type="success"
                    icon="el-icon-upload"
                    size="small"
@@ -127,6 +129,7 @@
   import {getByParentId} from "../../../api/mall/categoryinfo";
   import {getList as getStoreList} from "@/api/mall/store";
   import {getToken} from '@/util/auth';
+  import { baseUrl } from '@/config/env'
 
   export default {