|
@@ -67,7 +67,7 @@
|
|
<!-- 列表 -->
|
|
<!-- 列表 -->
|
|
<el-table v-loading="loading" :data="list">
|
|
<el-table v-loading="loading" :data="list">
|
|
<el-table-column label="商品信息" align="center" width="260">
|
|
<el-table-column label="商品信息" align="center" width="260">
|
|
- <template slot-scope="scope">
|
|
|
|
|
|
+ <template v-slot="scope">
|
|
<div class="product-info">
|
|
<div class="product-info">
|
|
<img v-if="scope.row.picUrls" :src="scope.row.picUrls[0]" alt="分类图片" class="img-height" />
|
|
<img v-if="scope.row.picUrls" :src="scope.row.picUrls[0]" alt="分类图片" class="img-height" />
|
|
<div class="message">{{ scope.row.name }}</div>
|
|
<div class="message">{{ scope.row.name }}</div>
|
|
@@ -80,17 +80,17 @@
|
|
<el-table-column label="销量" align="center" prop="salesCount"/>
|
|
<el-table-column label="销量" align="center" prop="salesCount"/>
|
|
<el-table-column label="排序" align="center" prop="sort"/>
|
|
<el-table-column label="排序" align="center" prop="sort"/>
|
|
<el-table-column label="创建时间" align="center" prop="createTime" width="180">
|
|
<el-table-column label="创建时间" align="center" prop="createTime" width="180">
|
|
- <template slot-scope="scope">
|
|
|
|
|
|
+ <template v-slot="scope">
|
|
<span>{{ parseTime(scope.row.createTime) }}</span>
|
|
<span>{{ parseTime(scope.row.createTime) }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="状态" align="center" prop="status">
|
|
<el-table-column label="状态" align="center" prop="status">
|
|
- <template slot-scope="scope">
|
|
|
|
|
|
+ <template v-slot="scope">
|
|
<dict-tag :type="DICT_TYPE.PRODUCT_SPU_STATUS" :value="scope.row.status"/>
|
|
<dict-tag :type="DICT_TYPE.PRODUCT_SPU_STATUS" :value="scope.row.status"/>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
- <template slot-scope="scope">
|
|
|
|
|
|
+ <template v-slot="scope">
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
|
|
v-hasPermi="['product:spu:update']">修改</el-button>
|
|
v-hasPermi="['product:spu:update']">修改</el-button>
|
|
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
|
|
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
|
|
@@ -105,7 +105,7 @@
|
|
<!-- 列表 -->
|
|
<!-- 列表 -->
|
|
<el-table v-loading="loading" :data="list">
|
|
<el-table v-loading="loading" :data="list">
|
|
<el-table-column label="商品信息" align="center" width="260">
|
|
<el-table-column label="商品信息" align="center" width="260">
|
|
- <template slot-scope="scope">
|
|
|
|
|
|
+ <template v-slot="scope">
|
|
<div class="product-info">
|
|
<div class="product-info">
|
|
<img v-if="scope.row.picUrls" :src="scope.row.picUrls[0]" alt="分类图片" class="img-height"/>
|
|
<img v-if="scope.row.picUrls" :src="scope.row.picUrls[0]" alt="分类图片" class="img-height"/>
|
|
<div class="message">{{ scope.row.name }}</div>
|
|
<div class="message">{{ scope.row.name }}</div>
|
|
@@ -117,17 +117,17 @@
|
|
<el-table-column label="销量" align="center" prop="salesCount"/>
|
|
<el-table-column label="销量" align="center" prop="salesCount"/>
|
|
<el-table-column label="排序" align="center" prop="sort"/>
|
|
<el-table-column label="排序" align="center" prop="sort"/>
|
|
<el-table-column label="创建时间" align="center" prop="createTime" width="180">
|
|
<el-table-column label="创建时间" align="center" prop="createTime" width="180">
|
|
- <template slot-scope="scope">
|
|
|
|
|
|
+ <template v-slot="scope">
|
|
<span>{{ parseTime(scope.row.createTime) }}</span>
|
|
<span>{{ parseTime(scope.row.createTime) }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="状态" align="center" prop="status">
|
|
<el-table-column label="状态" align="center" prop="status">
|
|
- <template slot-scope="scope">
|
|
|
|
|
|
+ <template v-slot="scope">
|
|
<dict-tag :type="DICT_TYPE.PRODUCT_SPU_STATUS" :value="scope.row.status"/>
|
|
<dict-tag :type="DICT_TYPE.PRODUCT_SPU_STATUS" :value="scope.row.status"/>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
- <template slot-scope="scope">
|
|
|
|
|
|
+ <template v-slot="scope">
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
|
|
v-hasPermi="['product:spu:update']">修改</el-button>
|
|
v-hasPermi="['product:spu:update']">修改</el-button>
|
|
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
|
|
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
|
|
@@ -142,7 +142,7 @@
|
|
<!-- 列表 -->
|
|
<!-- 列表 -->
|
|
<el-table v-loading="loading" :data="list">
|
|
<el-table v-loading="loading" :data="list">
|
|
<el-table-column label="商品信息" align="center" width="260">
|
|
<el-table-column label="商品信息" align="center" width="260">
|
|
- <template slot-scope="scope">
|
|
|
|
|
|
+ <template v-slot="scope">
|
|
<div class="product-info">
|
|
<div class="product-info">
|
|
<img v-if="scope.row.picUrls" :src="scope.row.picUrls[0]" alt="分类图片" class="img-height"/>
|
|
<img v-if="scope.row.picUrls" :src="scope.row.picUrls[0]" alt="分类图片" class="img-height"/>
|
|
<div class="message">{{ scope.row.name }}</div>
|
|
<div class="message">{{ scope.row.name }}</div>
|
|
@@ -154,17 +154,17 @@
|
|
<el-table-column label="销量" align="center" prop="salesCount"/>
|
|
<el-table-column label="销量" align="center" prop="salesCount"/>
|
|
<el-table-column label="排序" align="center" prop="sort"/>
|
|
<el-table-column label="排序" align="center" prop="sort"/>
|
|
<el-table-column label="创建时间" align="center" prop="createTime" width="180">
|
|
<el-table-column label="创建时间" align="center" prop="createTime" width="180">
|
|
- <template slot-scope="scope">
|
|
|
|
|
|
+ <template v-slot="scope">
|
|
<span>{{ parseTime(scope.row.createTime) }}</span>
|
|
<span>{{ parseTime(scope.row.createTime) }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="状态" align="center" prop="status">
|
|
<el-table-column label="状态" align="center" prop="status">
|
|
- <template slot-scope="scope">
|
|
|
|
|
|
+ <template v-slot="scope">
|
|
<dict-tag :type="DICT_TYPE.PRODUCT_SPU_STATUS" :value="scope.row.status"/>
|
|
<dict-tag :type="DICT_TYPE.PRODUCT_SPU_STATUS" :value="scope.row.status"/>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
- <template slot-scope="scope">
|
|
|
|
|
|
+ <template v-slot="scope">
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
|
|
v-hasPermi="['product:spu:update']">修改</el-button>
|
|
v-hasPermi="['product:spu:update']">修改</el-button>
|
|
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
|
|
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
|
|
@@ -179,7 +179,7 @@
|
|
<!-- 列表 -->
|
|
<!-- 列表 -->
|
|
<el-table v-loading="loading" :data="list">
|
|
<el-table v-loading="loading" :data="list">
|
|
<el-table-column label="商品信息" align="center" width="260">
|
|
<el-table-column label="商品信息" align="center" width="260">
|
|
- <template slot-scope="scope">
|
|
|
|
|
|
+ <template v-slot="scope">
|
|
<div class="product-info">
|
|
<div class="product-info">
|
|
<img v-if="scope.row.picUrls" :src="scope.row.picUrls[0]" alt="分类图片" class="img-height"/>
|
|
<img v-if="scope.row.picUrls" :src="scope.row.picUrls[0]" alt="分类图片" class="img-height"/>
|
|
<div class="message">{{ scope.row.name }}</div>
|
|
<div class="message">{{ scope.row.name }}</div>
|
|
@@ -191,17 +191,17 @@
|
|
<el-table-column label="销量" align="center" prop="salesCount"/>
|
|
<el-table-column label="销量" align="center" prop="salesCount"/>
|
|
<el-table-column label="排序" align="center" prop="sort"/>
|
|
<el-table-column label="排序" align="center" prop="sort"/>
|
|
<el-table-column label="创建时间" align="center" prop="createTime" width="180">
|
|
<el-table-column label="创建时间" align="center" prop="createTime" width="180">
|
|
- <template slot-scope="scope">
|
|
|
|
|
|
+ <template v-slot="scope">
|
|
<span>{{ parseTime(scope.row.createTime) }}</span>
|
|
<span>{{ parseTime(scope.row.createTime) }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="状态" align="center" prop="status">
|
|
<el-table-column label="状态" align="center" prop="status">
|
|
- <template slot-scope="scope">
|
|
|
|
|
|
+ <template v-slot="scope">
|
|
<dict-tag :type="DICT_TYPE.PRODUCT_SPU_STATUS" :value="scope.row.status"/>
|
|
<dict-tag :type="DICT_TYPE.PRODUCT_SPU_STATUS" :value="scope.row.status"/>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
- <template slot-scope="scope">
|
|
|
|
|
|
+ <template v-slot="scope">
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
|
|
v-hasPermi="['product:spu:update']">修改</el-button>
|
|
v-hasPermi="['product:spu:update']">修改</el-button>
|
|
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
|
|
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
|