From 489836df6b7f28581e648a2d1c613600521e6fb5 Mon Sep 17 00:00:00 2001 From: linwenling <3256558519@qq.com> Date: 星期四, 06 四月 2023 16:02:07 +0800 Subject: [PATCH] 更改家大事记查看详情 --- ruoyi-ui/src/views/bignote/index.vue | 85 +++++++++++++++++++++++++++++++++--------- 1 files changed, 66 insertions(+), 19 deletions(-) diff --git a/ruoyi-ui/src/views/bignote/index.vue b/ruoyi-ui/src/views/bignote/index.vue index b4eeb2f..ac674b5 100644 --- a/ruoyi-ui/src/views/bignote/index.vue +++ b/ruoyi-ui/src/views/bignote/index.vue @@ -1,13 +1,20 @@ <template> - <div class="app-container"> - <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch"> + <div class="app-container" style="opacity: 1;"> + <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" > <el-form-item label="澶т簨鏍囬" prop="title"> <el-input + v-model="queryParams.title" placeholder="璇疯緭鍏ユ爣棰�" clearable - style="width: 240px" + style=" + width: 197px; + height: 30px; + background: #FFFFFF; + border-radius: 14px 14px 14px 14px; + opacity: 0.5; + border: 1px solid rgba(0,0,0,0.25);" @keyup.enter.native="handleQuery" /> </el-form-item> @@ -17,7 +24,12 @@ v-model="queryParams.people" placeholder="璇疯緭鍏ヤ汉鐗�" clearable - style="width: 240px" + style="width: 197px; + height: 30px; +background: #FFFFFF; +border-radius: 14px 14px 14px 14px; +opacity: 0.5; +border: 1px solid rgba(0,0,0,0.25);" @keyup.enter.native="handleQuery" /> </el-form-item> @@ -26,7 +38,12 @@ v-model="queryParams.address" placeholder="璇疯緭鍏ュ湴鐐�" clearable - style="width: 240px" + style="width: width: 197px; +height: 30px; +background: #FFFFFF; +border-radius: 14px 14px 14px 14px; +opacity: 0.5; +border: 1px solid rgba(0,0,0,0.25);" @keyup.enter.native="handleQuery" /> @@ -34,7 +51,12 @@ <el-form-item label="鏃堕棿"> <el-date-picker v-model="dateRange" - style="width: 240px" + style="width: width: 197px; +height: 30px; +background: #FFFFFF; +border-radius: 14px 14px 14px 14px; +opacity: 0.5; +border: 1px solid rgba(0,0,0,0.25);" value-format="yyyy-MM-dd HH-MM" type="daterange" range-separator="-" @@ -47,7 +69,15 @@ <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">閲嶇疆</el-button> </el-form-item> </el-form> - + + <div style="width: 72px; +height: 24px; +font-size: 18px; +font-family: Microsoft YaHei-Regular, Microsoft YaHei; +font-weight: 400; +color: #000000; +line-height: 21px; +">瀹跺ぇ浜嬭</div> <el-row :gutter="10" class="mb8"> <el-col :span="1.5"> <el-button @@ -70,6 +100,7 @@ @click="handleDelete" v-hasPermi="['system:role:remove']" >鍒犻櫎</el-button> + </el-col> <el-col :span="1.5"> <el-button @@ -85,7 +116,7 @@ </el-row> <!-- 搴忓彿銆佹椂闂淬�佷汉鐗┿�佸湴鐐广�佸ぇ浜嬫爣棰樸�佺數瀛愭枃浠躲�佸娉� --> <!-- 杩欓噷鏈変釜familyList鏁扮粍 鏄湪data()涓畾涔夌殑 --> - <el-table v-loading="loading" :data="familyList" @selection-change="handleSelectionChange"> + <el-table v-loading="loading" :data="familyList" @selection-change="handleSelectionChange" > <el-table-column type="selection" width="55" align="center" /> <el-table-column label="搴忓彿" prop="id" sortable width="120" /> @@ -117,7 +148,7 @@ v-hasPermi="['system:role:remove']" >鍒犻櫎</el-button> <el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)" v-hasPermi="['system:role:edit']"> - <el-button size="mini" type="text" icon="el-icon-d-arrow-right" @click="handleCheck(scope.row)">鏌ョ湅璇︽儏</el-button> + <el-button size="mini" type="text" icon="el-icon-d-arrow-right" @click="handleCheck(scope.row)">鏌ョ湅璇︽儏</el-button> </el-dropdown> </template> @@ -142,7 +173,7 @@ </el-form-item> <el-form-item label="浜虹墿" prop="people"> - <el-input v-model="formDat.holder" placeholder="璇疯緭鍏ヤ汉鐗�" clearable :style="{width: '100%'}" > + <el-input v-model="formDat.people" placeholder="璇疯緭鍏ヤ汉鐗�" clearable :style="{width: '100%'}" > </el-input> </el-form-item> <el-form-item label="鍦扮偣" prop="address"> @@ -226,6 +257,8 @@ </div> </template> + + <script> import { listRole, getRole, delRole, addRole, updateRole, dataScope, changeRoleStatus, deptTreeSelect } from "@/api/system/role"; import { treeselect as menuTreeselect, roleMenuTreeselect } from "@/api/system/menu"; @@ -323,11 +356,11 @@ message: '璇疯緭鍏ュ湴鐐�', trigger: 'blur' }], - remark: [{ - required: true, - message: '璇疯緭鍏ュ娉�', - trigger: 'blur' - }], + // remark: [{ + // required: true, + // message: '璇疯緭鍏ュ娉�', + // trigger: 'blur' + // }], createTime: [{ required: true, message: '璇烽�夋嫨鏃ユ湡閫夋嫨', @@ -348,6 +381,20 @@ this.open = false; this.reset(); }, + + //闅旇鍙樿壊 + + methods: { + tableRowClassName({row, rowIndex}) { + if (rowIndex === 1) //=>杩欓噷鍙互鏀规垚 rowIndex%2=== 1锛屽悗闈㈢洿鎺lse鍗冲彲杈惧埌闅旇鍙樿壊鏁堟灉銆� + { + return 'warning-row'; + } else if (rowIndex === 3) { + return 'success-row'; + } + return ''; + } + }, /** 鏌ヨ瑙掕壊鍒楄〃 */ //鍒楄〃鏄剧ず瀹跺ぇ浜嬭 @@ -430,7 +477,7 @@ /** 鏌ョ湅璇︾粏淇℃伅 */ handleCheck(row){ const id = row.id; - this.$router.push("/family1/bignote1/familyeventInfo/" + id); + this.$router.push("/family1/bignote/familyeventInfo/" + id); }, /** 淇敼鎸夐挳鎿嶄綔 */ handleUpdate(row) { @@ -438,7 +485,7 @@ let jd = true this.$router.push({ - path:"/family1/bignote1/familyeventInfo/" + id, + path:"/family1/bignote/familyeventInfo/" + id, query:{ detail:jd } @@ -500,7 +547,7 @@ this.$modal.confirm('鏄惁纭鍒犻櫎搴忓彿涓�"' + Ids + '"鐨勬暟鎹」锛�').then(function() { return delFamilyevent(Ids); }).then(() => { - this.getList1(); + this.getList(); this.$modal.msgSuccess("鍒犻櫎鎴愬姛"); }).catch(() => {}); }, @@ -513,4 +560,4 @@ } }; </script> - \ No newline at end of file + -- Gitblit v1.9.1