From 784e2ad4a58c677115566da804920fdf041f06ac Mon Sep 17 00:00:00 2001 From: zhh Date: Tue, 13 Nov 2018 13:44:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=93=E9=A2=98=E6=8E=A8=E8=8D=90=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/subject.js | 10 +++- .../components/ProductRelationDetail.vue | 2 +- src/views/sms/brand/index.vue | 2 +- src/views/sms/hot/index.vue | 2 +- src/views/sms/new/index.vue | 2 +- src/views/sms/subject/index.vue | 51 +++++++++++-------- 6 files changed, 43 insertions(+), 26 deletions(-) diff --git a/src/api/subject.js b/src/api/subject.js index c11e6ec..6c06c12 100644 --- a/src/api/subject.js +++ b/src/api/subject.js @@ -1,7 +1,15 @@ import request from '@/utils/request' -export function fetchList() { +export function fetchListAll() { return request({ url:'/subject/listAll', method:'get', }) } + +export function fetchList(params) { + return request({ + url:'/subject/list', + method:'get', + params:params + }) +} diff --git a/src/views/pms/product/components/ProductRelationDetail.vue b/src/views/pms/product/components/ProductRelationDetail.vue index a892c30..70e94ae 100644 --- a/src/views/pms/product/components/ProductRelationDetail.vue +++ b/src/views/pms/product/components/ProductRelationDetail.vue @@ -36,7 +36,7 @@