From 92301a6d7283cabf3fddaa4481636193c27b474a Mon Sep 17 00:00:00 2001 From: heimawl <1785969728@qq.com> Date: 星期五, 16 六月 2023 16:08:21 +0800 Subject: [PATCH] 测试接口 --- src/views/patient/patient/index.vue | 40 ++++++++++------------------------------ 1 files changed, 10 insertions(+), 30 deletions(-) diff --git a/src/views/patient/patient/index.vue b/src/views/patient/patient/index.vue index fd80b99..487ba90 100644 --- a/src/views/patient/patient/index.vue +++ b/src/views/patient/patient/index.vue @@ -172,14 +172,12 @@ align="center" key="userId" prop="userId" - v-if="columns[0].visible" /> <el-table-column label="濮撳悕" align="center" key="userName" prop="userName" - v-if="columns[1].visible" :show-overflow-tooltip="true" /> <el-table-column @@ -187,7 +185,6 @@ align="center" key="nickName" prop="nickName" - v-if="columns[2].visible" :show-overflow-tooltip="true" /> <el-table-column @@ -195,7 +192,6 @@ align="center" key="deptName" prop="dept.deptName" - v-if="columns[3].visible" :show-overflow-tooltip="true" /> <el-table-column @@ -203,14 +199,12 @@ align="center" key="phonenumber" prop="phonenumber" - v-if="columns[4].visible" width="120" /><el-table-column label="璇佷欢鍙风爜" align="center" key="phonenumber" prop="phonenumber" - v-if="columns[4].visible" width="120" /> <el-table-column @@ -221,21 +215,6 @@ v-if="columns[4].visible" width="120" /> - <!-- <el-table-column - label="鐘舵��" - align="center" - key="status" - v-if="columns[5].visible" - > - <template slot-scope="scope"> - <el-switch - v-model="scope.row.status" - active-value="0" - inactive-value="1" - @change="handleStatusChange(scope.row)" - ></el-switch> - </template> - </el-table-column> --> <el-table-column label="鑱旂郴鏂瑰紡" @@ -545,6 +524,7 @@ changeUserStatus, deptTreeSelect, } from "@/api/system/user"; +import { listpatient } from "@/api/patient/homepage"; import { getToken } from "@/utils/auth"; import Treeselect from "@riophae/vue-treeselect"; import "@riophae/vue-treeselect/dist/vue-treeselect.css"; @@ -642,6 +622,7 @@ // 鏌ヨ鍙傛暟 queryParams: { pageNum: 1, + name: "鐜嬪ぇ", pageSize: 10, userName: undefined, phonenumber: undefined, @@ -721,16 +702,15 @@ }); }, methods: { - /** 鏌ヨ鐢ㄦ埛鍒楄〃 */ + /** 鏌ヨ鎮h�呭垪琛� */ getList() { this.loading = true; - listUser(this.addDateRange(this.queryParams, this.dateRange)).then( - (response) => { - this.userList = response.rows; - this.total = response.total; - this.loading = false; - } - ); + listUser(this.queryParams).then((response) => { + console.log(response); + this.userList = response.rows; + this.total = response.total; + this.loading = false; + }); }, // 鏌ヨ瀵煎叆灞曠ず鍒楄〃 geterryList() { @@ -911,7 +891,7 @@ /** 瀵煎嚭鎸夐挳鎿嶄綔 */ handleExport() { this.download( - "system/user/export", + "smartor/patarchive/export", { ...this.queryParams, }, -- Gitblit v1.9.3