From b8b0c99db6c6da3096ef1d6c39fa6203304a8005 Mon Sep 17 00:00:00 2001 From: ynmlzdwsp <2727940448@qq.com> Date: Fri, 5 Jan 2024 15:11:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E7=AB=AF=E6=9F=A5=E8=AF=A2=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=8E=A5=E5=8F=A3=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/index.vue | 6 ++++-- src/utils/table1.js | 13 ++++++------- 2 files changed, 10 insertions(+), 9 deletions(-) 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({