Commit 90127c17 authored by yaya's avatar yaya

feat:增加新增拍品页面

parent ea5c74a6
...@@ -66,7 +66,7 @@ export function collectorItemConvertToAuction(data) { ...@@ -66,7 +66,7 @@ export function collectorItemConvertToAuction(data) {
}) })
} }
/** /**
* 转拍品 * 拍品列表
* @param data * @param data
* @returns {*} * @returns {*}
*/ */
...@@ -77,4 +77,16 @@ export function findAuctionList(data) { ...@@ -77,4 +77,16 @@ export function findAuctionList(data) {
data data
}) })
} }
/**
* 专场列表
* @param data
* @returns {*}
*/
export function findSpecialList(data) {
return request({
url: '/specialPerformance/findList',
method: 'post',
data
})
}
...@@ -499,6 +499,19 @@ export const asyncRouterMap = [ ...@@ -499,6 +499,19 @@ export const asyncRouterMap = [
}, },
hidden: true hidden: true
}, },
{
path: 'auctionAdd',
component: () => import('@/views/sale/auctionAdd'),
name: 'auctionAdd',
meta: {
perms: [],
title: '拍品编辑',
icon: 'list',
noCache: true,
keepAlive: true
},
hidden: true
},
{ {
path: 'specialList', path: 'specialList',
component: () => import('@/views/sale/specialList'), component: () => import('@/views/sale/specialList'),
......
This diff is collapsed.
...@@ -74,10 +74,9 @@ ...@@ -74,10 +74,9 @@
@click="handleToDetail(scope.row)">详情 @click="handleToDetail(scope.row)">详情
</el-button> </el-button>
<el-button <el-button
:disabled="(!scope.row.editAble && scope.row.type === 2)"
type="primary" type="primary"
size="mini" size="mini"
@click="handleToDetail(scope.row)">编辑 @click="handleToEdit(scope.row)">编辑
</el-button> </el-button>
<el-button <el-button
:disabled="(!scope.row.editAble && scope.row.type === 2)" :disabled="(!scope.row.editAble && scope.row.type === 2)"
...@@ -218,6 +217,12 @@ export default { ...@@ -218,6 +217,12 @@ export default {
handleToDetail(item) { handleToDetail(item) {
this.$router.push({ path: '/sale/AuctionDetail', query: { id: item.id }}) this.$router.push({ path: '/sale/AuctionDetail', query: { id: item.id }})
}, },
/**
* 详情
*/
handleToEdit(item) {
this.$router.push({ path: '/sale/AuctionAdd', query: { id: item.id }})
},
/** /**
* 删除 * 删除
*/ */
......
...@@ -12,32 +12,35 @@ ...@@ -12,32 +12,35 @@
border border
fit fit
highlight-current-row> highlight-current-row>
<el-table-column align="center" label="专场标题" min-width="150px" prop="name"> <el-table-column align="center" label="专场标题" min-width="150px" prop="title">
<template slot-scope="scope"> <template slot-scope="scope">
<Line2Hidden :text="scope.row.name" /> <Line2Hidden :text="scope.row.title" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="竞拍时间" prop="updateTime" /> <el-table-column align="center" label="竞拍时间" prop="updateTime" width="150" >
<el-table-column align="center" label="藏品数" prop="stock" /> <template slot-scope="scope">
<el-table-column align="center" label="状态" prop="stock" /> <span>{{ `${scope.row.startTime} 至 ${scope.row.endTime}` }}</span>
<el-table-column align="center" label="出价次数" prop="stock" /> </template>
</el-table-column>
<el-table-column align="center" label="藏品数" prop="itemNum" />
<el-table-column align="center" label="状态" prop="stateName" />
<el-table-column align="center" label="出价次数" prop="offerNum" />
<el-table-column align="center" label="更新时间" prop="updateTime" /> <el-table-column align="center" label="更新时间" prop="updateTime" />
<el-table-column align="center" label="操作" width="300"> <el-table-column align="center" label="操作" width="300">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
:disabled="(!scope.row.editAble && scope.row.type === 2)"
type="primary" type="primary"
size="mini" size="mini"
@click="handleToDetail(scope.row)">详情 @click="handleToDetail(scope.row)">详情
</el-button> </el-button>
<el-button <el-button
:disabled="(!scope.row.editAble && scope.row.type === 2)" :disabled="(scope.row.state === 2)"
type="primary" type="primary"
size="mini" size="mini"
@click="handleToDetail(scope.row)">编辑 @click="handleToDetail(scope.row)">编辑
</el-button> </el-button>
<el-button <el-button
:disabled="(!scope.row.editAble && scope.row.type === 2)" :disabled="(scope.row.state === 2)"
type="danger" type="danger"
size="mini" size="mini"
@click="handleDelete(scope.row)">删除 @click="handleDelete(scope.row)">删除
...@@ -60,7 +63,7 @@ ...@@ -60,7 +63,7 @@
<script> <script>
import Line2Hidden from '@/components/line2Hidden' import Line2Hidden from '@/components/line2Hidden'
import Pagination from '@/components/Pagination' import Pagination from '@/components/Pagination'
import { getSaleList, updateOnSale, deleteSaleItem } from '@/api/business/sale' import { findSpecialList, updateOnSale, deleteSaleItem } from '@/api/business/sale'
import { MessageBox } from 'element-ui' import { MessageBox } from 'element-ui'
export default { export default {
...@@ -144,7 +147,7 @@ export default { ...@@ -144,7 +147,7 @@ export default {
getList() { getList() {
localStorage.setItem('systemState', '') localStorage.setItem('systemState', '')
this.listLoading = true this.listLoading = true
getSaleList(this.listQuery).then(response => { findSpecialList(this.listQuery).then(response => {
this.list = response.data.data.dataList this.list = response.data.data.dataList
this.total = response.data.data.total this.total = response.data.data.total
this.listLoading = false this.listLoading = false
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment