From 3b27872f10a6618af42fd86ff5c4602894fab589 Mon Sep 17 00:00:00 2001 From: Tcsm <1377977403@qq.com> Date: 星期一, 24 四月 2023 20:38:18 +0800 Subject: [PATCH] 4.24日新增收藏与荣誉模块 --- ruoyi-ui/src/views/doctor/index.vue | 36 ++++++++++++++++++++++++++++++++++-- 1 files changed, 34 insertions(+), 2 deletions(-) diff --git a/ruoyi-ui/src/views/doctor/index.vue b/ruoyi-ui/src/views/doctor/index.vue index 7fbb84a..7662c76 100644 --- a/ruoyi-ui/src/views/doctor/index.vue +++ b/ruoyi-ui/src/views/doctor/index.vue @@ -94,6 +94,16 @@ <i slot="prefix" class="el-input__icon el-icon-search"></i> </el-input> </el-form-item> + <el-form-item label="鍔熸晥" prop="effect"> + <el-input + v-model="queryParams.effect" + placeholder="璇疯緭鍏ュ姛鏁�" + clearable + style="width: 240px" + @keyup.enter.native="handleQuery"> + <i slot="prefix" class="el-input__icon el-icon-search"></i> + </el-input> + </el-form-item> <el-form-item label="閫傜敤浜�" prop="suitable"> <el-input v-model="queryParams.suitable" @@ -153,7 +163,7 @@ <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> </el-row> </div> - <el-table v-loading="loading" :data="doctorList" @selection-change="handleSelectionChange"> + <el-table v-loading="loading" :data="doctorList" @selection-change="handleSelectionChange" :row-class-name="tableRowClassName" style="background: #FFEFF2; border-radius: 14px 14px 14px 14px;"> <el-table-column type="selection" width="25" align="center" /> <el-table-column label="搴忓彿" prop="id" sortable width="80" /> <el-table-column label="绫诲瀷" prop="type" sortable width="80"> @@ -323,7 +333,7 @@ <h4 class="form-header"> </h4> <div slot="footer" class="dialog-footer"> - <el-button type="primary" @click="submitDataScope">纭� 瀹�</el-button> + <el-button type="primary" @click="submitDataScope">淇� 瀛�</el-button> <el-button @click="cancelData">鍙� 娑�</el-button> </div> </el-dialog> @@ -417,6 +427,7 @@ symptom:undefined, cmedical:undefined, suitable:undefined, + effect:undefined, }, // searchVal:"", @@ -489,6 +500,14 @@ this.reset(); }, + //闅旇鍙樿壊 + tableRowClassName({ row, rowIndex }) { + if (rowIndex % 2 == 0) { + return "statistics-warning-row1"; + } else { + return "statistics-warning-row"; + } + }, /** 鏌ヨ璁板綍鍒楄〃 */ getList() { this.loading = true; @@ -671,3 +690,16 @@ } }; </script> +<style> + +.el-table__row.statistics-warning-row { + background: #E0EEFE; + +} +.el-table__row.statistics-warning-row1 { + background: #FFEFF2; + +} + + +</style> -- Gitblit v1.9.1