修改秒杀商品拼团商品规格图片问题,商品词条增加搜索
This commit is contained in:
@@ -96,6 +96,11 @@ export default {
|
|||||||
this.page = e - 1
|
this.page = e - 1
|
||||||
this.init()
|
this.init()
|
||||||
},
|
},
|
||||||
|
// 改变页码
|
||||||
|
pageChanges(e) {
|
||||||
|
this.page = e
|
||||||
|
this.init()
|
||||||
|
},
|
||||||
// 改变每页显示数
|
// 改变每页显示数
|
||||||
sizeChange(e) {
|
sizeChange(e) {
|
||||||
this.page = 0
|
this.page = 0
|
||||||
|
|||||||
@@ -489,8 +489,8 @@ export default {
|
|||||||
let header = res.header;
|
let header = res.header;
|
||||||
header.pop();
|
header.pop();
|
||||||
if (!this.$route.params.id && this.formValidate.spec_type === 1) {
|
if (!this.$route.params.id && this.formValidate.spec_type === 1) {
|
||||||
this.manyFormValidate.map((item) => {
|
this.manyFormValidate.map((item,index) => {
|
||||||
item.pic = this.formValidate.image
|
item.pic = this.manyFormValidate[index].pic
|
||||||
});
|
});
|
||||||
this.oneFormBatch[0].pic = this.formValidate.image;
|
this.oneFormBatch[0].pic = this.formValidate.image;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -474,8 +474,8 @@ export default {
|
|||||||
let header = res.header;
|
let header = res.header;
|
||||||
header.pop();
|
header.pop();
|
||||||
if (!this.$route.params.id && this.formValidate.spec_type === 1) {
|
if (!this.$route.params.id && this.formValidate.spec_type === 1) {
|
||||||
this.manyFormValidate.map((item) => {
|
this.manyFormValidate.map((item,index) => {
|
||||||
item.pic = this.formValidate.image
|
item.pic = this.manyFormValidate[index].pic
|
||||||
});
|
});
|
||||||
this.oneFormBatch[0].pic = this.formValidate.image;
|
this.oneFormBatch[0].pic = this.formValidate.image;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -119,11 +119,11 @@
|
|||||||
<!--分页组件-->
|
<!--分页组件-->
|
||||||
<el-pagination
|
<el-pagination
|
||||||
:total="total"
|
:total="total"
|
||||||
:current-page="page + 1"
|
:current-page="page"
|
||||||
style="margin-top: 20px; float: right"
|
style="margin-top: 20px; float: right"
|
||||||
layout="total, prev, pager, next, sizes"
|
layout="total, prev, pager, next, sizes"
|
||||||
@size-change="sizeChange"
|
@size-change="sizeChange"
|
||||||
@current-change="pageChange" />
|
@current-change="pageChanges" />
|
||||||
|
|
||||||
<!-- 审核、订单详情 -->
|
<!-- 审核、订单详情 -->
|
||||||
<CheckDialog ref="addForm" :visible="addVisible" @checkSuccess="toQuery"/>
|
<CheckDialog ref="addForm" :visible="addVisible" @checkSuccess="toQuery"/>
|
||||||
|
|||||||
@@ -977,7 +977,9 @@ export default {
|
|||||||
type: 'success'
|
type: 'success'
|
||||||
});
|
});
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
if(!this.formValidate.id){
|
||||||
this.resetForm();
|
this.resetForm();
|
||||||
|
}
|
||||||
this.$router.push({ path: '/bxg/shop/goods' });
|
this.$router.push({ path: '/bxg/shop/goods' });
|
||||||
}, 500);
|
}, 500);
|
||||||
}).catch(res => {
|
}).catch(res => {
|
||||||
|
|||||||
@@ -3,6 +3,11 @@
|
|||||||
<!--工具栏-->
|
<!--工具栏-->
|
||||||
<div class="head-container">
|
<div class="head-container">
|
||||||
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, slot = 'left' or 'right'-->
|
||||||
|
<div v-if="crud.props.searchToggle">
|
||||||
|
<!-- 搜索 -->
|
||||||
|
<el-input v-model="query.entryName" clearable size="small" placeholder="输入词条名称搜索" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
|
||||||
|
<rrOperation :crud="crud" />
|
||||||
|
</div>
|
||||||
<crudOperation :permission="permission" />
|
<crudOperation :permission="permission" />
|
||||||
<!--表单组件-->
|
<!--表单组件-->
|
||||||
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="500px">
|
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="500px">
|
||||||
|
|||||||
Reference in New Issue
Block a user