Compare commits
4 Commits
b0615ba36d
...
d1715a03a3
Author | SHA1 | Date | |
---|---|---|---|
d1715a03a3 | |||
60d9e78b89 | |||
6cb9ae40dc | |||
e2bd373db2 |
|
@ -4,7 +4,7 @@ import router from '../router'
|
|||
|
||||
const myAxios = axios.create({
|
||||
withCredentials:true,
|
||||
baseURL: 'http://localhost:8888/api'//测试服务器
|
||||
baseURL: 'http://localhost:9092/api'//测试服务器
|
||||
});
|
||||
// 添加请求拦截器
|
||||
axios.interceptors.request.use(function (config) {
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
</template>
|
||||
</el-popconfirm>
|
||||
</div>
|
||||
<!-- 数据展示 -->
|
||||
<el-table :data="tableData" border stripe header-cell-class-name="headerBg" :cell-style="{textAlign: 'center'}"
|
||||
@selection-change="handleSelectionChange" :header-cell-style="{'text-align': 'center'}"
|
||||
>
|
||||
|
@ -47,7 +48,7 @@
|
|||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="商品图片">
|
||||
<el-table-column prop="goodImg" label="商品图片">
|
||||
<template #default="scope">
|
||||
<div>
|
||||
<img :src="scope.row.goodImg" alt="" style="height: 50px;">
|
||||
|
@ -124,9 +125,9 @@
|
|||
<el-pagination
|
||||
@size-change="handleSizeChange"
|
||||
@current-change="handleCurrentChange"
|
||||
:current-page="pageNum"
|
||||
:page-size="pageSize"
|
||||
:page-sizes="[2, 5, 10, 20]"
|
||||
:current-page="searchParams.current"
|
||||
:page-size="searchParams.pageSize"
|
||||
:page-sizes="[5, 10, 15, 20]"
|
||||
:small="null"
|
||||
:disabled="null"
|
||||
:background="null"
|
||||
|
@ -270,6 +271,8 @@ const Region = ref('');
|
|||
let selectedProduct = ref('');
|
||||
const loading = ref(false)
|
||||
const tableData = ref([]);
|
||||
//商品状态
|
||||
const status = ref(0)
|
||||
let editForm = ref({
|
||||
id: '',
|
||||
goodImg: '',
|
||||
|
|
Loading…
Reference in New Issue
Block a user