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/note/index.vue | 38 ++++++++++++++++++++++++++++++-------- 1 files changed, 30 insertions(+), 8 deletions(-) diff --git a/ruoyi-ui/src/views/note/index.vue b/ruoyi-ui/src/views/note/index.vue index e6ea2a7..c8e82d5 100644 --- a/ruoyi-ui/src/views/note/index.vue +++ b/ruoyi-ui/src/views/note/index.vue @@ -64,8 +64,10 @@ ></el-date-picker> </el-form-item> <el-form-item> - <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">鎼滅储</el-button> - <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">閲嶇疆</el-button> + <el-button size="mini" @click="handleQuery" style=" width: 65px; height: 32px;background: #FFDDE3; + border-radius: 6px 6px 6px 6px;opacity:1;">鎼滅储</el-button> + <el-button size="mini" @click="resetQuery" style=" width: 65px; height: 32px;background: #FFDDE3; + border-radius: 6px 6px 6px 6px;opacity:1;">閲嶇疆</el-button> </el-form-item> </el-form> @@ -105,7 +107,7 @@ <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> </el-row> - <el-table v-loading="loading" :data="propertyList" @selection-change="handleSelectionChange"> + <el-table v-loading="loading" :data="propertyList" @selection-change="handleSelectionChange" :row-class-name="tableRowClassName"> <el-table-column type="selection" width="55" align="center" /> <el-table-column label="璧勪骇缂栧彿" prop="id" sortable width="120" /> <el-table-column label="绫诲瀷" prop="type" sortable :show-overflow-tooltip="true" width="150" /> @@ -129,7 +131,7 @@ type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" - v-hasPermi="['system:role:edit']" + v-hasPermi="['familymodel:property:info']" >淇敼</el-button> <el-button size="mini" @@ -138,7 +140,7 @@ @click="handleDelete(scope.row)" v-hasPermi="['system:role:remove']" >鍒犻櫎</el-button> - <el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)" v-hasPermi="['system:role:edit']"> + <el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)" v-hasPermi="['familymodel:property:info']"> <el-button size="mini" type="text" icon="el-icon-d-arrow-right" @click="handleCheck(scope.row)">鏌ョ湅璇︽儏</el-button> </el-dropdown> @@ -152,6 +154,7 @@ :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" + style="background: #FEF7FC;" /> <!-- 娣诲姞鎴栦慨鏀硅祫浜т俊鎭厤缃璇濇 --> @@ -396,6 +399,16 @@ this.open = false; this.reset(); }, + + //闅旇鍙樿壊 + tableRowClassName({ row, rowIndex }) { + if (rowIndex % 2 == 0) { + return "statistics-warning-row1"; + } else { + return "statistics-warning-row"; + } + }, + /** 鏌ヨ瑙掕壊鍒楄〃 */ getList() { this.loading = true; @@ -487,8 +500,7 @@ /** 鏌ョ湅璇︾粏淇℃伅 */ handleCheck(row){ const id = row.id; - - this.$router.push("/family/note1/propertyInfo/" + id); + this.$router.push("/familymodel/property/propertyInfo/" + id); }, /** 淇敼鎸夐挳鎿嶄綔 */ handleUpdate(row) { @@ -496,7 +508,7 @@ let jd = true this.$router.push({ - path:"/family/note1/propertyInfo/" + id, + path:"/familymodel/property/propertyInfo/" + id, query:{ detail:jd } @@ -571,3 +583,13 @@ } }; </script> +<style> +.el-table__row.statistics-warning-row { + background: #E0EEFE; + +} +.el-table__row.statistics-warning-row1 { + background: #FFEFF2; + +} +</style> -- Gitblit v1.9.1