This commit is contained in:
DESKTOP-GMUNQ1B\k 2024-04-03 17:50:54 +08:00
parent 59a58021c3
commit 46b6d92a36
3 changed files with 525 additions and 1023 deletions

File diff suppressed because it is too large Load Diff

View File

@ -23,7 +23,7 @@
</el-table-column>
</el-table>
<div class="block">
<el-pagination background :page-size="tableFrom.limit" :current-page="tableFrom.page" background
<el-pagination background :page-size="tableFrom.limit" :current-page="tableFrom.page"
layout="total, prev, pager, next, jumper" :total="tableData.total" @size-change="handleSizeChange"
@current-change="pageChange" />
</div>

View File

@ -83,7 +83,7 @@
@click="batchOff">批量下架</el-button>
<el-button size="small" :disabled="tableFrom.type != 2 || checkedIds.length == 0 && !allCheck"
@click="batchShelf">批量上架</el-button>
<el-button size="small" @click="joinCloud">加入云</el-button>
<el-button size="small" @click="joinCloud">加入云商品</el-button>
</div>
<el-alert v-if="checkedIds.length > 0 || allCheck"
:title="allCheck ? `已选择 ${tableData.total} 项` : `已选择 ${checkedIds.length} 项`" type="info" show-icon
@ -219,7 +219,7 @@
</el-table-column>
</el-table>
<div class="block">
<el-pagination background :page-size="tableFrom.limit" :current-page="tableFrom.page" background
<el-pagination background :page-size="tableFrom.limit" :current-page="tableFrom.page"
layout="total, prev, pager, next, jumper" :total="tableData.total" @size-change="handleSizeChange"
@current-change="pageChange" />
</div>
@ -443,8 +443,7 @@
<pro-detail ref="proDetail" :productId="product_id" :configData="configData" @closeDrawer="closeDrawer"
@changeDrawer="changeDrawer" :drawer="drawer"></pro-detail>
<el-dialog title="上传云仓" :visible.sync="showShow" width="650px" :before-close="handleClose">
<el-dialog title="上传云商品" :visible.sync="showShow" width="650px" :before-close="handleClose">
<el-form>
<el-form-item label="商品分类">
<el-select multiple v-model="selectedCategoryIds" style="width:300px;">
@ -622,6 +621,7 @@ export default {
this.$message.success("加入成功!");
this.checkedIds = [];
this.selectedCategoryIds = [];
this.showShow = false;
}).catch(err => {
this.$message.success(err.message)
})
@ -629,7 +629,7 @@ export default {
//
joinCloud() {
if (this.checkedIds.length == 0) return this.$message.error("请至少选择一条数据!");
if (this.checkedIds.length == 0) return this.$message.error("请至少选择一个商品!");
this.showShow = true;
},