Explorar o código

fix: 商品待上架状态可上架

Sun %!s(int64=3) %!d(string=hai) anos
pai
achega
494ead7b2e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/views/business/goods/index.vue

+ 1 - 1
src/views/business/goods/index.vue

@@ -79,7 +79,7 @@
         <template slot-scope="{row}">
           <!-- <el-button v-hasPermi="['business:goods:query']" type="text">查看</el-button> -->
           <el-button v-hasPermi="['business:goods:edit']" type="text" @click="$router.push('/goods/edit?id=' + row.goodsId)">编辑</el-button>
-          <el-button v-if="row.status === 'off'" v-hasPermi="['business:goods:on']" type="text" @click="setStatus(row, 'on')">上架</el-button>
+          <el-button v-if="row.status === 'off' || row.status === 'init'" v-hasPermi="['business:goods:on']" type="text" @click="setStatus(row, 'on')">上架</el-button>
           <el-button v-if="row.status === 'on'" v-hasPermi="['business:goods:off']" type="text" @click="setStatus(row, 'off')">下架</el-button>
           <el-button v-if="row.status === 'off'" v-hasPermi="['business:coupon:remove']" class="del" type="text" @click="del(row)">删除</el-button>
         </template>