From d18aa016fdc3e99d613ca7f0d8002aca45a65dd5 Mon Sep 17 00:00:00 2001 From: xuwenbo <717567226@qq.com> Date: Thu, 3 Sep 2020 14:48:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=B6=B3=E8=BF=B9=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/shop/collect/index.vue | 4 +--- src/views/shop/foot/index.vue | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/views/shop/collect/index.vue b/src/views/shop/collect/index.vue index 5d35c6f..6ef6c7e 100644 --- a/src/views/shop/collect/index.vue +++ b/src/views/shop/collect/index.vue @@ -85,7 +85,7 @@ import pagination from '@crud/Pagination' import MaterialList from "@/components/material"; // crud交由presenter持有 -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) { diff --git a/src/views/shop/foot/index.vue b/src/views/shop/foot/index.vue index 247ddd0..10228bd 100644 --- a/src/views/shop/foot/index.vue +++ b/src/views/shop/foot/index.vue @@ -85,7 +85,7 @@ import pagination from '@crud/Pagination' import MaterialList from "@/components/material"; // crud交由presenter持有 -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) {