Browse Source

调整足迹首页页面

master
xuwenbo 4 years ago
parent
commit
d18aa016fd
  1. 4
      src/views/shop/collect/index.vue
  2. 4
      src/views/shop/foot/index.vue

4
src/views/shop/collect/index.vue

@ -85,7 +85,7 @@ import pagination from '@crud/Pagination'
import MaterialList from "@/components/material";
// crudpresenter
const defaultCrud = CRUD({ title: 'ProductRelation', url: 'api/yxStoreProductRelation', sort: 'creat_time,desc', crudMethod: { ...crudYxStoreProductRelation }})
const defaultCrud = CRUD({ title: 'ProductRelation', url: 'api/yxStoreProductRelation', type:'collect',sort: 'creat_time,desc', crudMethod: { ...crudYxStoreProductRelation }})
const defaultForm = { id: null, uid: null, productId: null, type: null, category: null, createTime: null, updateTime: null, isDel: null }
export default {
name: 'YxStoreProductRelation',
@ -116,8 +116,6 @@ export default {
methods: {
//
[CRUD.HOOK.beforeRefresh]() {
const query = this.query
this.crud.params[query.type] = 'collect'
return true
}, //
[CRUD.HOOK.afterToCU](crud, form) {

4
src/views/shop/foot/index.vue

@ -85,7 +85,7 @@ import pagination from '@crud/Pagination'
import MaterialList from "@/components/material";
// crudpresenter
const defaultCrud = CRUD({ title: 'ProductRelation', url: 'api/yxStoreProductRelation', sort: 'creat_time,desc', crudMethod: { ...crudYxStoreProductRelation }})
const defaultCrud = CRUD({ title: 'ProductRelation', url: 'api/yxStoreProductRelation', type:'foot',sort: 'creat_time,desc', crudMethod: { ...crudYxStoreProductRelation }})
const defaultForm = { id: null, uid: null, productId: null, type: null, category: null, createTime: null, updateTime: null, isDel: null }
export default {
name: 'YxStoreProductRelation',
@ -116,8 +116,6 @@ export default {
methods: {
//
[CRUD.HOOK.beforeRefresh]() {
const query = this.query
this.crud.params[query.type] = 'foot'
return true
}, //
[CRUD.HOOK.afterToCU](crud, form) {

Loading…
Cancel
Save