Browse Source

供应商添加商品暂存

jiandexin1 1 year ago
parent
commit
0a353ea8a4
1 changed files with 3 additions and 0 deletions
  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 {