修改秒杀商品拼团商品规格图片问题,商品词条增加搜索
This commit is contained in:
@@ -96,6 +96,11 @@ export default {
|
||||
this.page = e - 1
|
||||
this.init()
|
||||
},
|
||||
// 改变页码
|
||||
pageChanges(e) {
|
||||
this.page = e
|
||||
this.init()
|
||||
},
|
||||
// 改变每页显示数
|
||||
sizeChange(e) {
|
||||
this.page = 0
|
||||
|
||||
@@ -489,8 +489,8 @@ export default {
|
||||
let header = res.header;
|
||||
header.pop();
|
||||
if (!this.$route.params.id && this.formValidate.spec_type === 1) {
|
||||
this.manyFormValidate.map((item) => {
|
||||
item.pic = this.formValidate.image
|
||||
this.manyFormValidate.map((item,index) => {
|
||||
item.pic = this.manyFormValidate[index].pic
|
||||
});
|
||||
this.oneFormBatch[0].pic = this.formValidate.image;
|
||||
}
|
||||
|
||||
@@ -474,8 +474,8 @@ export default {
|
||||
let header = res.header;
|
||||
header.pop();
|
||||
if (!this.$route.params.id && this.formValidate.spec_type === 1) {
|
||||
this.manyFormValidate.map((item) => {
|
||||
item.pic = this.formValidate.image
|
||||
this.manyFormValidate.map((item,index) => {
|
||||
item.pic = this.manyFormValidate[index].pic
|
||||
});
|
||||
this.oneFormBatch[0].pic = this.formValidate.image;
|
||||
}
|
||||
|
||||
@@ -119,11 +119,11 @@
|
||||
<!--分页组件-->
|
||||
<el-pagination
|
||||
:total="total"
|
||||
:current-page="page + 1"
|
||||
:current-page="page"
|
||||
style="margin-top: 20px; float: right"
|
||||
layout="total, prev, pager, next, sizes"
|
||||
@size-change="sizeChange"
|
||||
@current-change="pageChange" />
|
||||
@current-change="pageChanges" />
|
||||
|
||||
<!-- 审核、订单详情 -->
|
||||
<CheckDialog ref="addForm" :visible="addVisible" @checkSuccess="toQuery"/>
|
||||
|
||||
@@ -977,7 +977,9 @@ export default {
|
||||
type: 'success'
|
||||
});
|
||||
setTimeout(() => {
|
||||
this.resetForm();
|
||||
if(!this.formValidate.id){
|
||||
this.resetForm();
|
||||
}
|
||||
this.$router.push({ path: '/bxg/shop/goods' });
|
||||
}, 500);
|
||||
}).catch(res => {
|
||||
|
||||
@@ -3,6 +3,11 @@
|
||||
<!--工具栏-->
|
||||
<div class="head-container">
|
||||
<!--如果想在工具栏加入更多按钮,可以使用插槽方式, 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" />
|
||||
<!--表单组件-->
|
||||
<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