From bcac500a760877dc9140f1f381739793706c1af6 Mon Sep 17 00:00:00 2001 From: feige <feige@qq.com> Date: 星期五, 10 十一月 2023 10:29:38 +0800 Subject: [PATCH] 修改图片大小 --- ruoyi-ui/src/views/healthy/index.vue | 80 +++++++++++++++++++++++----------------- 1 files changed, 46 insertions(+), 34 deletions(-) diff --git a/ruoyi-ui/src/views/healthy/index.vue b/ruoyi-ui/src/views/healthy/index.vue index cac3708..42b2455 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> @@ -119,7 +114,7 @@ > <el-button size="mini" type="primary" plain - icon="el-icon-plus" >瀵煎叆</el-button> + icon="el-icon-top">瀵煎叆</el-button> </el-upload> </el-col> @@ -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> @@ -166,8 +161,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 +182,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 +206,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 +307,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 +625,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 +652,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 +683,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