From 31d4f1af2415091ce8171a48372795c0f1a16e14 Mon Sep 17 00:00:00 2001 From: linwenling <3256558519@qq.com> Date: 星期六, 28 十月 2023 15:30:44 +0800 Subject: [PATCH] 1028 修改健康表 --- ruoyi-ui/src/views/healthy/index.vue | 68 ++++++++++++++++++---------------- 1 files changed, 36 insertions(+), 32 deletions(-) diff --git a/ruoyi-ui/src/views/healthy/index.vue b/ruoyi-ui/src/views/healthy/index.vue index cac3708..b41b7e8 100644 --- a/ruoyi-ui/src/views/healthy/index.vue +++ b/ruoyi-ui/src/views/healthy/index.vue @@ -3,7 +3,7 @@ <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"> - <el-form-item label="浣撴/鐪嬬梾鏃堕棿" prop="checkTime"> + <el-form-item label="鐪嬬梾鏃堕棿" prop="checkTime"> <el-date-picker v-model="dateRange" style="width: 200px; @@ -29,18 +29,7 @@ @keyup.enter.native="handleQuery" /> </el-form-item> - <el-form-item label="绫诲埆" prop="type"> - <el-input - v-model="queryParams.type" - placeholder="璇疯緭鍏ョ被鍒�" - clearable - style="width: 200px; - height: 35px; - border-radius: 16px 16px 16px 16px; - opacity: 0.5;" - @keyup.enter.native="handleQuery" - /> - </el-form-item> + <el-form-item label="棰樺悕" prop="title"> <el-input @@ -56,10 +45,16 @@ </el-form-item> <el-button size="mini" type="text" @click="toYearhealthy" v-hasPermi="['person:healthy:healthYear']"> - <div class="form" ><el-icon style="padding-right:110px;"></el-icon> - <span class="text" style="width: 69px;height: 26px;font-size: 16px;padding-left:50px; - font-family: Microsoft YaHei-Regular, Microsoft YaHei; color: #EBA4AA;">骞村害鍋ュ悍鎯呭喌</span></div> + <div class="form1" ><el-icon style="padding-right:100px;"></el-icon> + <span class="text" style="width: 69px;height: 26px;font-size: 16px; + font-family: Microsoft YaHei-Regular, Microsoft YaHei; color: #EBA4AA;">鍋ュ悍鎯呭喌</span></div> </el-button> + + <el-button size="mini" type="text" @click="toExamination" v-hasPermi="['person:healthy:healthYear']"> + <div class="form2" ><el-icon style="padding-right:50px;"></el-icon> + <span class="text" style="width: 69px;height: 26px;font-size: 16px; + font-family: Microsoft YaHei-Regular, Microsoft YaHei; color: #EBA4AA;">鍘嗗勾浣撴鎯呭喌</span></div> + </el-button> <el-form-item> <el-button size="mini" @click="handleQuery" style=" width: 65px; height: 32px;background: #FFDDE3;border-radius:6px 6px 6px 6px;opacity:1;">鎼滅储</el-button> @@ -130,10 +125,10 @@ <el-table-column type="selection" width="55" align="center" /> <el-table-column label="搴忓彿" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="120"/> - <el-table-column label="浣撴/鐪嬬梾鏃堕棿" prop="checkTime" sortable width="200" align="center"> + <el-table-column label="鐪嬬梾鏃堕棿" prop="checkTime" sortable width="200" align="center"> <template slot-scope="scope">{{scope.row.checkTime? scope.row.checkTime: '鈥斺�斺�斺��'}}</template> </el-table-column> - <el-table-column label="绫诲埆" prop="type" sortable width="120" /> + <el-table-column label="灏辩梾鍖婚櫌" prop="hospital" sortable width="120" > </el-table-column> @@ -209,13 +204,7 @@ ></el-date-picker> </el-form-item> - <el-form-item label="绫诲埆" prop="type"> - <el-select v-model="formDat.type" placeholder="璇烽�夋嫨"> - <el-option label="浣撴" value="浣撴"></el-option> - <el-option label="鐪嬬梾" value="鐪嬬梾"></el-option> - </el-select> - </el-form-item> <el-form-item label="灏辩梾鍖婚櫌" prop="hospital"> <el-input v-model="formDat.hospital" placeholder="璇疯緭鍏ュ氨鐥呭尰闄�" clearable :style="{width: '100%'}" > </el-input> @@ -316,6 +305,7 @@ //鍦╯ystem/note/index.js涓鍏ユ帴鍙e嚱鏁� --鎺ュソ浜� import {listHealth,enload,delHealth,uploadPic, addHealth} from "@/api/healthy/index"; +import {Message} from "element-ui"; export default { name: "Role", @@ -633,13 +623,14 @@ }, //骞村害鍋ュ悍鎶ュ憡 toYearhealthy(){ - // console.log(this.HealthyBaseList.uid) - // this.$router.push("/self/healthy/healthYear/" + this.HealthyBaseList.uid); - // this.$router.push("/self/healthy/healthYear" ); this.$router.push("/self/healthy/healthYear" ); }, - + //浣撴琛� + toExamination(){ + this.$router.push("/self/healthy/Examination" ); + }, /** 瀵煎嚭鎸夐挳鎿嶄綔 */ + handleExport() { const Ids = this.ids; @@ -659,20 +650,21 @@ }, `zYearInfo${new Date().getTime()}.xlsx`) }, /** 瀵煎叆鎿嶄綔*/ - handleEnport(params) { + handleEnport(params){ var file = params.file; var formData = new FormData(); formData.append('excelImport', file); let _this = this - alert(file) enload(formData).then(response => { _this.getList(); - Message({message: "瀵煎叆鎴愬姛", type: 'warning'}) + Message({ message: "瀵煎叆鎴愬姛", type: 'warning' }) }).catch(err) { - Message({message: "瀵煎叆澶辫触", type: 'error'}) + Message({ message: "瀵煎叆澶辫触", type: 'error' }) } + + } } @@ -689,4 +681,16 @@ background: #FFEFF2; } +.form1 { + position: absolute; + right: 60px; + top:20px; + background:center/11% no-repeat url('../../assets/icons/form.png') ; +} +.form2 { + position: absolute; + right: 200px; + top:20px; + +} </style> -- Gitblit v1.9.1