|
@@ -19,8 +19,8 @@
|
|
|
</el-col>
|
|
|
<el-col :span="11">
|
|
|
<el-form-item label="创建时间:" label-width="160px" prop="date">
|
|
|
- <el-date-picker v-model="queryParams.startTime" type="daterange" align="right" unlink-panels range-separator="至"
|
|
|
- start-placeholder="开始日期" end-placeholder="结束日期" size="small">
|
|
|
+ <el-date-picker v-model="queryParams.startTime" type="daterange" align="right" unlink-panels
|
|
|
+ range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" size="small">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -37,48 +37,42 @@
|
|
|
<!-- 表格 -->
|
|
|
<div class="list">
|
|
|
<el-row>
|
|
|
- <el-radio-group v-model="tabPosition" prop="type">
|
|
|
- <el-radio-button :label=0 @change="getList" >在售</el-radio-button>
|
|
|
- <el-radio-button label="预售" >预售</el-radio-button>
|
|
|
- <el-radio-button label="已过期" >已过期</el-radio-button>
|
|
|
- </el-radio-group>
|
|
|
- <el-table v-loading="loading" :data="seriesList" border>
|
|
|
- <el-table-column prop="id" label="ID" width="100px" align="center" />
|
|
|
- <!-- <el-table-column label="0在售 1预售 2已过期" align="center" prop="type" /> -->
|
|
|
- <el-table-column prop="name" label="藏品名称(套)" align="center" />
|
|
|
- <el-table-column prop="startTime" label="创建时间" align="center" />
|
|
|
- <el-table-column prop="endTime" label="截至时间" align="center" />
|
|
|
- <!-- <el-table-column prop=" " label="藏品数量" align="center"/> -->
|
|
|
- <el-table-column prop="status" label="状态" align="center">
|
|
|
- <template slot-scope="scope">
|
|
|
- <!-- <span>{{ scope.row.state == "0" ?"未上架" : "已上架" }}</span> -->
|
|
|
- <el-button v-show="scope.row.status" type="success" plain>已上架</el-button>
|
|
|
- <el-button v-show="!scope.row.status" type="warning" plain>未上链</el-button>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="操作" align="center">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-button type="text" size="mini" @click="handleDetail(scope.row)">藏品列表</el-button>
|
|
|
- <div>
|
|
|
- <el-button type="text" size="mini" v-show="!scope.row.status" @click="onShelf(scope.row)">上链</el-button>
|
|
|
- <el-button type="text" size="mini" v-show="scope.row.status"
|
|
|
- @click="onShelf(scope.row)">下架</el-button><el-button type="text" size="mini"
|
|
|
- @click="changeTime(scope.row)">修改</el-button>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
- </el-row>
|
|
|
+ <el-radio-group v-model="tabPosition" prop="type">
|
|
|
+ <el-radio-button :label=0 @change="getList">在售</el-radio-button>
|
|
|
+ <el-radio-button label="预售">预售</el-radio-button>
|
|
|
+ <el-radio-button label="已过期">已过期</el-radio-button>
|
|
|
+ </el-radio-group>
|
|
|
+ <el-table v-loading="loading" :data="seriesList" border>
|
|
|
+ <el-table-column prop="id" label="ID" width="100px" align="center" />
|
|
|
+ <!-- <el-table-column label="0在售 1预售 2已过期" align="center" prop="type" /> -->
|
|
|
+ <el-table-column prop="name" label="藏品名称(套)" align="center" />
|
|
|
+ <el-table-column prop="startTime" label="创建时间" align="center" />
|
|
|
+ <el-table-column prop="endTime" label="截至时间" align="center" />
|
|
|
+ <!-- <el-table-column prop=" " label="藏品数量" align="center"/> -->
|
|
|
+ <el-table-column prop="status" label="状态" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <!-- <span>{{ scope.row.state == "0" ?"未上架" : "已上架" }}</span> -->
|
|
|
+ <el-button v-show="scope.row.status" type="success" plain>已上架</el-button>
|
|
|
+ <el-button v-show="!scope.row.status" type="warning" plain>未上链</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column label="操作" align="center">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button type="text" size="mini" @click="handleDetail(scope.row)">藏品列表</el-button>
|
|
|
+ <div>
|
|
|
+ <el-button type="text" size="mini" v-show="!scope.row.status" @click="onShelf(scope.row)">上链</el-button>
|
|
|
+ <el-button type="text" size="mini" v-show="scope.row.status"
|
|
|
+ @click="onShelf(scope.row)">下架</el-button><el-button type="text" size="mini"
|
|
|
+ @click="changeTime(scope.row)">修改</el-button>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </el-row>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <el-pagination
|
|
|
- background
|
|
|
- :current-page="pages.currentPage"
|
|
|
- ayout="total,prev, pager, next"
|
|
|
- :total="pages.total"
|
|
|
- style="margin-right: 10px; float: right"
|
|
|
- :page-size.sync="pages.pageSize"
|
|
|
- @current-change="handleCurrentChange">
|
|
|
+ <el-pagination background :current-page="pages.currentPage" ayout="total,prev, pager, next" :total="pages.total"
|
|
|
+ style="margin-right: 10px; float: right" :page-size.sync="pages.pageSize" @current-change="handleCurrentChange">
|
|
|
</el-pagination>
|
|
|
</div>
|
|
|
|
|
@@ -108,12 +102,12 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
// 查询参数
|
|
|
- queryParams: {
|
|
|
+ queryParams: {
|
|
|
name: undefined,
|
|
|
},
|
|
|
//选项卡筛选参数---已售预售已过期
|
|
|
- queryParams2:{
|
|
|
- type:null,
|
|
|
+ queryParams2: {
|
|
|
+ type: null,
|
|
|
},
|
|
|
// 加载效果
|
|
|
loading: true,
|
|
@@ -130,7 +124,7 @@ export default {
|
|
|
pageSize: 10,
|
|
|
},
|
|
|
// 表单
|
|
|
- formInline: { },
|
|
|
+ formInline: {},
|
|
|
|
|
|
tabPosition: 0,
|
|
|
//套系列表表格数据
|
|
@@ -140,7 +134,7 @@ export default {
|
|
|
|
|
|
|
|
|
methods: {
|
|
|
-
|
|
|
+
|
|
|
/** 查询【套系】列表 */
|
|
|
getSeries() {
|
|
|
this.loading = true;
|
|
@@ -152,25 +146,25 @@ export default {
|
|
|
},
|
|
|
// 查询搜索
|
|
|
handleQuery() {
|
|
|
- this.pages.currentPage = 1;
|
|
|
- this.getSeries();
|
|
|
- },
|
|
|
+ this.pages.currentPage = 1;
|
|
|
+ this.getSeries();
|
|
|
+ },
|
|
|
// 重置表单
|
|
|
resetQuery() {
|
|
|
this.resetForm("formInline");
|
|
|
this.handleQuery();
|
|
|
},
|
|
|
//选择套系列表
|
|
|
- findType(){
|
|
|
+ findType() {
|
|
|
this.loading = true;
|
|
|
- listSystem({type: this.queryParams2.type}).then((res) => {
|
|
|
+ listSystem({ type: this.queryParams2.type }).then((res) => {
|
|
|
this.seriesList = res.rows;
|
|
|
this.total = res.total;
|
|
|
this.loading = false;
|
|
|
})
|
|
|
},
|
|
|
//得到分类列表
|
|
|
- getList(){
|
|
|
+ getList() {
|
|
|
this.pages.currentPage = 1;
|
|
|
this.findType();
|
|
|
},
|
|
@@ -185,7 +179,7 @@ export default {
|
|
|
},
|
|
|
// 修改
|
|
|
changeTime(row) {
|
|
|
- this.$router.push({ name:"createseries", params:{ row }});
|
|
|
+ this.$router.push({ name: "createseries", params: { row } });
|
|
|
},
|
|
|
//关闭修改时间的弹框
|
|
|
handleClose(done) {
|
|
@@ -224,14 +218,14 @@ export default {
|
|
|
handleAdd() {
|
|
|
this.$router.push({ path: "/createseries" });
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
handleCurrentChange(val) {
|
|
|
// console.log(`当前页: ${val}`);
|
|
|
this.pages.currentPage = val;
|
|
|
},
|
|
|
//商品列表
|
|
|
handleDetail(row) {
|
|
|
- this.$router.push({ name: "collections", params: { row } });
|
|
|
+ this.$router.push({ name: "collections", params: { row }, query: { id: row.id } });
|
|
|
},
|
|
|
},
|
|
|
};
|