From feaf0a9778879ef211c5587a513ba4cbdabb52d0 Mon Sep 17 00:00:00 2001 From: ZZJ <10913410+zzj2100@user.noreply.gitee.com> Date: 星期四, 23 六月 2022 17:42:58 +0800 Subject: [PATCH] bug修复 --- src/pages/syslog/views/pollingLog.vue | 76 ++++++++++++++++++++++++++++++++----- 1 files changed, 65 insertions(+), 11 deletions(-) diff --git a/src/pages/syslog/views/pollingLog.vue b/src/pages/syslog/views/pollingLog.vue index e8f92d5..92bcb10 100644 --- a/src/pages/syslog/views/pollingLog.vue +++ b/src/pages/syslog/views/pollingLog.vue @@ -19,7 +19,7 @@ v-model="fuzzySearch" size="small" class="input-with-select" - @keyup.enter.native="getOperationLog(1)" + @keyup.enter.native="getScheduleLog(1)" > <span class="icon iconfont icon_clear" @@ -31,9 +31,8 @@ </span> <span class="icon iconfont icon_search" - @click="getOperationLog(1)" + @click="getScheduleLog(1)" slot="append" - v-else >  </span> @@ -58,6 +57,7 @@ @change="dateChange" end-placeholder="缁撴潫鏃ユ湡" :picker-options="pickerOptions" + popper-class="pollingLog_timePicker" > </el-date-picker> </div> @@ -95,7 +95,7 @@ <el-table-column :align="'center'" sortable - prop="procName" + prop="info" label="鎽勫儚鏈�" ></el-table-column> <el-table-column @@ -153,7 +153,7 @@ export default { data() { return { - png: "", + png: require("../../../../public/images/syslog/娌℃暟鎹�.png"), loading: false, loadingText: "", tableData: [], @@ -219,11 +219,11 @@ methods: { handleSizeChange(val) { this.pageSize = val; - this.getOperationLog(); + this.getScheduleLog(); }, handleCurrentChange(val) { this.page = val; - this.getOperationLog(); + this.getScheduleLog(); }, cancelShow() { this.dialogVisible = false; @@ -265,19 +265,23 @@ this.moduleOptions = res.data; }); }, - getScheduleLog() { + getScheduleLog(typ) { + if (typ == 1) { + this.page = 1; + } + const data = { timeStart: this.timeStart, timeEnd: this.timeEnd, page: this.page, pageSize: this.pageSize, + fuzzySearch: this.fuzzySearch, procID: this.procID, procName: this.procName, }; queryScheduleLog(data).then((res) => { this.tableData = res.data.logs; this.total = res.data.total; - this.png = require("../../../../public/images/syslog/娌℃暟鎹�.png"); }); }, dateChange(val) { @@ -301,10 +305,9 @@ }, handleSelectionChange() {}, handleClose() {}, - getOperationLog() {}, clearSearch() { this.fuzzySearch = ""; - this.getOperationLog(1); + this.getScheduleLog(1); }, }, }; @@ -515,4 +518,55 @@ background-color: white; } } + +.pollingLog_timePicker { + width: 520px !important; + * { + font-size: 12px !important; + min-width: 0px !important; + } + + .el-date-range-picker__time-header { + border: none; + } + + .el-date-range-picker__content { + padding: 2px 9px; + } + + .el-date-table th { + pad: 0 5px; + } + + .el-picker-panel__shortcut { + padding-left: 20px; + padding-bottom: 10px; + } + + .el-picker-panel__footer { + padding: 0 20px 10px 0; + background-color: none; + display: flex; + justify-content: end; + border: none; + button { + display: block; + width: 54px; + height: 24px; + border: 1px solid #e0e0e0; + border-radius: 25px; + line-height: 9px; + + &:first-child { + color: #4f4f4f !important; + } + + &:last-child { + color: #fff !important; + background-color: #4e94ff !important; + border-color: #4e94ff !important; + } + } + } +} </style> -- Gitblit v1.8.0