From 6481be87ea6081a3cb83a4d90096ae62f579fdf2 Mon Sep 17 00:00:00 2001 From: pengjun <158915633@qq.com> Date: Wed, 24 Jan 2024 15:41:45 +0800 Subject: [PATCH] doctor --- package.json | 1 + src/api/api.js | 12 +++++----- src/api/request.js | 1 + src/assets/css/global_table.css | 6 +++-- src/components/doctorCheck/CheckItemList.vue | 22 +++++++++++-------- src/components/doctorCheck/CheckSumSug.vue | 10 +++++++-- .../doctorCheck/RegisterCheckList.vue | 6 ++--- .../patientRegister/PatientRegisterList.vue | 2 +- src/views/doctorCheck/doctorCheck.vue | 20 +++++++++-------- 9 files changed, 48 insertions(+), 32 deletions(-) diff --git a/package.json b/package.json index 9122a50..efad5c8 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "0.1.0", "private": true, "scripts": { + "test": "echo \"Error: no test specified\" && exit 1", "serve": "vue-cli-service serve", "build": "vue-cli-service build", "lint": "vue-cli-service lint" diff --git a/src/api/api.js b/src/api/api.js index 77d393e..ce07197 100644 --- a/src/api/api.js +++ b/src/api/api.js @@ -20,14 +20,14 @@ export async function getapi(url, params = {}, config) { //axios封装post export async function postapi(url, paramsdata = {}, config) { return new Promise((resolve, reject) => { - request.post(`${mm.apiurl}${url}`, paramsdata, config).then( - (res) => { + request + .post(`${mm.apiurl}${url}`, paramsdata, config) + .then((res) => { resolve(res); - }, - (err) => { + }) + .catch((err) => { reject(err.data); - } - ); + }); }); } //axios封装deleteapi diff --git a/src/api/request.js b/src/api/request.js index ff35e15..46f0375 100644 --- a/src/api/request.js +++ b/src/api/request.js @@ -9,6 +9,7 @@ import { Message } from "element-ui"; const instance = axios.create({ baseURL: mm.apiurl, timeout: 500000, + withCredentials: true, // 允许跨域 }); //请求拦截 diff --git a/src/assets/css/global_table.css b/src/assets/css/global_table.css index 2647748..04142ab 100644 --- a/src/assets/css/global_table.css +++ b/src/assets/css/global_table.css @@ -12,7 +12,7 @@ /* 表格 行列间距控制 ,默认 10 px*/ .el-table--small .el-table__cell { - padding: 0 0; /* 原始 默认值 8px 0 */ + padding: 0; /* 原始 默认值 8px 0 */ } .el-table .el-table__cell { padding: 2px 0; /* 原始 默认 12px 0 */ @@ -22,11 +22,13 @@ } .el-table .cell { padding: 0px 2px; /* 原始 默认 0px 10px; */ + line-height: 20px; /* 表格size="small"时 默认值 23px*/ } /* 表格单元格 .el-table .cell ,默认 10 px*/ .cell { padding-left: 2px; - padding-right: 2px; + padding-right: 2px; + line-height: 20px; /* 表格size="small"时 默认值 23px*/ } diff --git a/src/components/doctorCheck/CheckItemList.vue b/src/components/doctorCheck/CheckItemList.vue index a4b4e5a..5267020 100644 --- a/src/components/doctorCheck/CheckItemList.vue +++ b/src/components/doctorCheck/CheckItemList.vue @@ -8,16 +8,14 @@ ? Math.floor(((420 - 40 - (isCheckPicture ? 110:0)) * 3) / 5) : Math.floor(((window.pageHeight - 260 - 40 - (isCheckPicture ? 110:0)) * 3) / 5) " - :row-style="{ height: '30px' }" border highlight-current-row - @row-click="rowClick" + @row-click="rowClick" size="small" > - + - + @@ -105,7 +103,7 @@ export default { restaurants.forEach((item) => { return (item.value = item.result); }); - console.log("restaurants", restaurants); + // console.log("restaurants", restaurants); var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants; @@ -123,7 +121,7 @@ export default { }; }, handleSelect(item) { - console.log(item); + console.log('item',item); }, //回车替代tab键 @@ -192,6 +190,12 @@ export default { .el-table th.el-table__cell.is-leaf { padding: 0; } +::v-deep .el-textarea__inner { + min-height: 23px; + height: 23px; + line-height: 1.25; + padding: 2px 15px 2px 2px; +} diff --git a/src/components/doctorCheck/CheckSumSug.vue b/src/components/doctorCheck/CheckSumSug.vue index c16ef55..326ddd1 100644 --- a/src/components/doctorCheck/CheckSumSug.vue +++ b/src/components/doctorCheck/CheckSumSug.vue @@ -32,7 +32,7 @@ - @@ -50,7 +50,7 @@ - @@ -206,5 +206,11 @@ export default { height: 22px; padding: 2px 2px; /*原始 默认值 500 */ } +::v-deep .el-textarea__inner { + min-height: 23px; + height: 23px; + line-height: 1.25; + padding: 1px 15px 1px 2px; +} \ No newline at end of file diff --git a/src/components/doctorCheck/RegisterCheckList.vue b/src/components/doctorCheck/RegisterCheckList.vue index 605c37e..7376fe8 100644 --- a/src/components/doctorCheck/RegisterCheckList.vue +++ b/src/components/doctorCheck/RegisterCheckList.vue @@ -9,13 +9,13 @@