From dc91db9bb3473c3ed058f86f74359e15c035a8a5 Mon Sep 17 00:00:00 2001
From: zhengpz <1838927346@qq.com>
Date: Mon, 23 Aug 2021 22:13:10 +0800
Subject: [PATCH] 表查询完善
---
src/views/securityUnitOperation/operationTable.vue | 43 +++++--------------------------------------
1 files changed, 5 insertions(+), 38 deletions(-)
diff --git a/src/views/securityUnitOperation/operationTable.vue b/src/views/securityUnitOperation/operationTable.vue
index 43bcb26..a78a129 100644
--- a/src/views/securityUnitOperation/operationTable.vue
+++ b/src/views/securityUnitOperation/operationTable.vue
@@ -7,8 +7,6 @@
:page.sync="page"
:permission="permissionList"
ref="crud"
- @row-update="rowUpdates"
- @row-save="rowSave"
@search-change="searchChange"
@search-reset="searchReset"
@current-change="currentChange"
@@ -20,8 +18,6 @@
</basic-container>
</template>
<script>
-import FileSaver from "file-saver";
-import XLSX from "xlsx";
import { selectTb } from "../../api/securityUnitOperation/securityUnitOperation";
import { lazyTreeJu } from "../../api/index/index";
export default {
@@ -33,6 +29,7 @@
currentPage: 1,
total: 0
},
+ query:{},
value1: "",
value2: "",
tableData: [
@@ -243,38 +240,6 @@
};
},
methods: {
- rowSave(row, done, loading) {
- adddata(row).then(
- () => {
- this.onLoad(this.page);
- this.$message({
- type: "success",
- message: "操作成功!"
- });
- done();
- },
- error => {
- window.console.log(error);
- loading();
- }
- );
- },
- rowUpdates(row, index, done, loading) {
- update(row).then(
- () => {
- this.onLoad(this.page);
- this.$message({
- type: "success",
- message: "操作成功!"
- });
- done();
- },
- error => {
- window.console.log(error);
- loading();
- }
- );
- },
searchChange(params, done) {
this.query = params;
this.page.currentPage = 1;
@@ -288,9 +253,11 @@
},
currentChange(currentPage) {
this.page.currentPage = currentPage;
+ this.onLoad(this.page, this.query)
},
sizeChange(pageSize) {
this.page.pageSize = pageSize;
+ this.onLoad(this.page, this.query)
},
refreshChange() {
this.onLoad(this.page, this.query);
@@ -305,7 +272,7 @@
selectTb(param).then(res => {
const data = res.data.data;
this.page.total = data.total;
- this.tableData = res.data.data;
+ this.tableData = data.records;
this.loading = false;
});
},
@@ -330,7 +297,7 @@
let mm = urlArr[i].split("=");
object[decodeURIComponent(mm[0])] = decodeURIComponent(mm[1]);
}
- let jurisdiction = object["jurisdiction"] || "";
+ let jurisdiction = object["jurisdiction1"] || "";
let enterpriseName = object["enterpriseName"] || "";
let obj = { jurisdiction: jurisdiction, enterpriseName: enterpriseName };
this.onLoad(this.page, obj);
--
Gitblit v1.9.3