From 975cf97d476e6e38bd207efc42f383d46ecc7c0e Mon Sep 17 00:00:00 2001
From: wangting <675591594@qq.com>
Date: 星期一, 02 十二月 2024 14:54:06 +0800
Subject: [PATCH] 修改sourceData传值
---
Source/plt-web/plt-web-ui/src/views/system/log/index.vue | 19 ++++++++++++++++---
1 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/Source/plt-web/plt-web-ui/src/views/system/log/index.vue b/Source/plt-web/plt-web-ui/src/views/system/log/index.vue
index 9b02091..cf0cfe1 100644
--- a/Source/plt-web/plt-web-ui/src/views/system/log/index.vue
+++ b/Source/plt-web/plt-web-ui/src/views/system/log/index.vue
@@ -11,6 +11,7 @@
@search-change="handleSearch"
@search-reset="handleReset"
@size-change="sizeChange"
+ @row-click="rowClickHandler"
@current-change="currentChange"
>
<template slot="menuLeft" slot-scope="scope">
@@ -100,7 +101,9 @@
total: 0,
pageSizes: [10, 30, 50, 100],
},
- searchParams: {}
+ searchParams: {},
+ selectList: [],
+
}
},
watch: {
@@ -112,7 +115,7 @@
// 琛ㄦ牸璇锋眰
getTableList() {
this.tableLoading = true;
- getLogListByContion(this.page.currentPage, this.page.pageSize, {'logType': this.$route.query.logType, ...this.searchParams}).then(res => {
+ getLogListByContion(this.page.currentPage, this.page.pageSize, {'logType': this.$route.query.logType,'roleType':this.$route.query.roleType, ...this.searchParams}).then(res => {
this.tableData = res.data.data;
this.page.total = res.data.total;
this.tableLoading = false;
@@ -154,13 +157,23 @@
// 瀵煎嚭
exportClickHandler() {
const loading = this.$loading({});
- exportLog().then(res => {
+ exportLog({'pageNo':1,'pageSize':-1,'logType': this.$route.query.logType,'roleType':this.$route.query.roleType, ...this.searchParams}).then(res => {
func.downloadFileByBlobHandler(res);
this.createdLoading = false
this.$message.success('瀵煎嚭鎴愬姛');
loading.close();
})
},
+ // 琛屽崟閫�
+ rowClickHandler(row) {
+ func.rowClickHandler(
+ row,
+ this.$refs.logCrud,
+ this.lastIndex,
+ (newIndex) => { this.lastIndex = newIndex; },
+ () => { this.selectList = []; }
+ );
+ },
}
}
</script>
--
Gitblit v1.9.3