From d0136913a2c74a44f5bb30327ebbb3fd85e24fce Mon Sep 17 00:00:00 2001 From: feige <feige@qq.com> Date: 星期二, 23 一月 2024 10:56:30 +0800 Subject: [PATCH] 修改了很多 --- ruoyi-ui/src/views/healthy/index.vue | 96 +++++++++++++++++++++++++++++------------------- 1 files changed, 58 insertions(+), 38 deletions(-) diff --git a/ruoyi-ui/src/views/healthy/index.vue b/ruoyi-ui/src/views/healthy/index.vue index cac3708..f714dc4 100644 --- a/ruoyi-ui/src/views/healthy/index.vue +++ b/ruoyi-ui/src/views/healthy/index.vue @@ -3,10 +3,10 @@ <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; + style="width: 240px; height: 35px; border-radius: 16px 16px 16px 16px; opacity: 0.5;" @@ -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 @@ -55,11 +44,7 @@ /> </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> - </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> @@ -119,21 +104,36 @@ > <el-button size="mini" type="primary" plain - icon="el-icon-plus" >瀵煎叆</el-button> + icon="el-icon-top">瀵煎叆</el-button> </el-upload> + </el-col> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> + <el-col></el-col> + <el-col> +<el-button size="mini" type="text" @click="toYearhealthy" v-hasPermi="['person:healthy:healthYear']"> + <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;margin-right: 20px; + font-family: Microsoft YaHei-Regular, Microsoft YaHei; color: #EBA4AA;">鍘嗗勾浣撴鎯呭喌</span></div> + </el-button> + </el-col> </el-row> <el-table v-loading="loading" :data="healthList" @selection-change="handleSelectionChange" @row-click="handleCheck" :row-class-name="tableRowClassName" style="background: #FFEFF2; border-radius: 14px 14px 14px 14px;"> <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> @@ -166,8 +166,9 @@ <el-table-column label="澶囨敞" prop="remark" sortable width="120" > <template slot-scope="scope">{{scope.row.remark? scope.row.remark: '鈥斺�斺�斺��'}}</template> </el-table-column> - <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width"> + <el-table-column label="鎿嶄綔" align="center" width="250" class-name="small-padding fixed-width"> <template slot-scope="scope" v-if="scope.row.roleId !== 1"> + <div class="button-container"> <el-button size="mini" type="text" @@ -186,6 +187,7 @@ <el-button size="mini" type="text" icon="el-icon-d-arrow-right" @click="handleCheck(scope.row)">鏌ョ湅璇︽儏</el-button> </el-dropdown> + </div> </template> </el-table-column> </el-table> @@ -209,13 +211,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 +312,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", @@ -351,7 +348,10 @@ // 鏃ユ湡鑼冨洿 dateRange: [], // 鏁版嵁鑼冨洿閫夐」 - fot:[".jpg",".jif"], + + fot:['.bmp','.jpg','.jpeg','.png','.tif','.gif','.pcx','.tga','.exif','.fpx', + '.svg','.psd','.cdr','.pcd','.dxf','.ufo','.eps','.ai','.aw','.WMF','.webp','.apng'], + fileList:[ ], fileListOther:[ ], @@ -633,13 +633,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 +660,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 +691,22 @@ 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; + +} +.el-table__cell { + font-size: 14px; /* 璁剧疆瀛椾綋澶у皬 */ +} +.button-container { + display: inline-flex; /* 璁剧疆鎸夐挳瀹瑰櫒涓鸿鍐呭厓绱� */ +} </style> -- Gitblit v1.9.1