|
@@ -125,15 +125,16 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
async searchForm() {
|
|
async searchForm() {
|
|
- this.tableData = (
|
|
|
|
- await searchOrgs({
|
|
|
|
- enable: this.form.enableState,
|
|
|
|
- code: this.form.code,
|
|
|
|
- name: this.form.name,
|
|
|
|
- pageNumber: this.currentPage,
|
|
|
|
- pageSize: this.pageSize,
|
|
|
|
- })
|
|
|
|
- ).data.data.records;
|
|
|
|
|
|
+ const res = await searchOrgs({
|
|
|
|
+ enable: this.form.enableState,
|
|
|
|
+ code: this.form.code,
|
|
|
|
+ name: this.form.name,
|
|
|
|
+ pageNumber: this.currentPage,
|
|
|
|
+ pageSize: this.pageSize,
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ this.tableData = res.data.data.records;
|
|
|
|
+ this.total = res.data.data.total;
|
|
},
|
|
},
|
|
handleCurrentChange(val) {
|
|
handleCurrentChange(val) {
|
|
this.currentPage = val;
|
|
this.currentPage = val;
|