From 0d3db253cad1fb49c4fae9b9a537c8c318c7172f Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期三, 29 十一月 2023 10:23:59 +0800 Subject: [PATCH] 优化应用中心卸载 --- src/pages/syslog/views/pollingLog.vue | 28 +++++++++++++++++----------- 1 files changed, 17 insertions(+), 11 deletions(-) diff --git a/src/pages/syslog/views/pollingLog.vue b/src/pages/syslog/views/pollingLog.vue index 01dea06..2897bf9 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> @@ -96,7 +95,7 @@ <el-table-column :align="'center'" sortable - prop="procName" + prop="info" label="鎽勫儚鏈�" ></el-table-column> <el-table-column @@ -132,6 +131,7 @@ show-checkbox check-on-click-node default-expand-all + :default-checked-keys="selectedIDs" ></el-tree> <span slot="footer" class="dialog-footer"> @@ -154,7 +154,7 @@ export default { data() { return { - png: "", + png: require("../../../../public/images/syslog/娌℃暟鎹�.png"), loading: false, loadingText: "", tableData: [], @@ -179,6 +179,7 @@ procID: "", procName: "", pickNum: 0, + selectedIDs: [], pickerOptions: { shortcuts: [ { @@ -220,11 +221,11 @@ methods: { handleSizeChange(val) { this.pageSize = val; - this.getOperationLog(); + this.getScheduleLog(); }, handleCurrentChange(val) { this.page = val; - this.getOperationLog(); + this.getScheduleLog(); }, cancelShow() { this.dialogVisible = false; @@ -238,6 +239,8 @@ }, confirmCamera() { const selectedIDs = this.$refs.cameraTree.getCheckedKeys(); + this.selectedIDs = selectedIDs; + console.log(selectedIDs); this.pickNum = selectedIDs.length; this.procID = selectedIDs.join(","); this.getScheduleLog(); @@ -266,19 +269,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) { @@ -302,10 +309,9 @@ }, handleSelectionChange() {}, handleClose() {}, - getOperationLog() {}, clearSearch() { this.fuzzySearch = ""; - this.getOperationLog(1); + this.getScheduleLog(1); }, }, }; -- Gitblit v1.8.0