diff --git a/src/components/index.vue b/src/components/index.vue index 59211b8..e95c91e 100644 --- a/src/components/index.vue +++ b/src/components/index.vue @@ -33,11 +33,11 @@
@@ -196,6 +196,8 @@ /** 查询药品作用管理列表 */ getList() { this.loading = true; + console.log("drug1:", this.queryParams.drug1); + console.log("drug2:", this.queryParams.drug2); listTable1(this.queryParams).then(response => { this.table1List = response.rows; this.total = response.total; diff --git a/src/utils/table1.js b/src/utils/table1.js index ac45900..ae69705 100644 --- a/src/utils/table1.js +++ b/src/utils/table1.js @@ -1,14 +1,13 @@ -import request from '@/utils/request' +import axios from 'axios'; -// 查询药品作用管理列表 export function listTable1(query) { - return request({ - url: '/system/table1/list', - method: 'get', - params: query - }) + const url = '/system/table1/list'; + return axios.get(url, { params: query }) + .then(response => response.data) + .catch(error => console.error(error)); } + // 查询药品作用管理详细 export function getTable1(id) { return request({