From 0357cd11e6cd7ce095ab72eb41c563cccb0f9617 Mon Sep 17 00:00:00 2001 From: ZZJ <zzjdsg2300@163.com> Date: 星期四, 11 十一月 2021 15:42:41 +0800 Subject: [PATCH] 暂存 --- src/pages/syslog/views/operationLog.vue | 43 +++++++++++++++++++++++++++++++++++++------ 1 files changed, 37 insertions(+), 6 deletions(-) diff --git a/src/pages/syslog/views/operationLog.vue b/src/pages/syslog/views/operationLog.vue index a7425ec..5c67956 100644 --- a/src/pages/syslog/views/operationLog.vue +++ b/src/pages/syslog/views/operationLog.vue @@ -51,8 +51,8 @@ > <el-option label="鍏ㄩ儴" :value="''"> </el-option> <el-option - v-for="item in moduleOptions" - :key="item.proc_name" + v-for="(item, i) in moduleOptions" + :key="i" :label="item.proc_name" :value="item.proc_name" > @@ -70,8 +70,8 @@ > <!-- :disabled="gongnengOptions.length==0" --> <el-option - v-for="item in gongnengOptions" - :key="item.name" + v-for="(item, i) in gongnengOptions" + :key="i" :label="item.name" :value="item.name" > @@ -87,8 +87,8 @@ @change="getOperationLog(1)" > <el-option - v-for="item in resultOptions" - :key="item.value" + v-for="(item, i) in resultOptions" + :key="i" :label="item.label" :value="item.value" > @@ -105,7 +105,11 @@ :data="tableData" :header-cell-style="{ background: '#f8f8f8', color: '#222222' }" style="width: 100%" + border > + <template slot="empty"> + <img :src="png" class="empty_img" alt="" /> + </template> <el-table-column :align="'center'" label="搴忓彿" type="index" width="50"> </el-table-column> <el-table-column @@ -175,6 +179,7 @@ name: "operationLog", data() { return { + png: "", loading: false, loadingText: "", input3: "", @@ -288,6 +293,7 @@ }).then((res) => { this.tableData = res.data.logs; this.total = res.data.total; + this.png = require("../../../../public/images/syslog/娌℃暟鎹�.png"); }); }, getTimeStr(date) { @@ -445,16 +451,41 @@ border-radius: 5px; padding: 12px; background-color: white; + .empty_img { + margin: 80px auto; + width: 164px; + } .tableBox { + border: none; + &::before, + &::after { + display: none; + } + tr { + &.current-row td { + background-color: #4e94ff !important; + color: #fff; + } + &:hover td { + background-color: rgb(242, 242, 247); + } + } th { padding: 0 !important; height: 40px; line-height: 40px; + border-color: #fff !important; + border-right: 2px solid #fff; + border-radius: 4px; + font-size: 12px; + background: #f2f2f7; } td { padding: 0 !important; height: 34px; line-height: 34px; + border: none; + font-size: 12px; } } } -- Gitblit v1.8.0