|
@@ -66,7 +66,7 @@
|
|
<el-table-column
|
|
<el-table-column
|
|
align="center"
|
|
align="center"
|
|
label="名称"
|
|
label="名称"
|
|
- prop="useOrgName"
|
|
|
|
|
|
+ prop="name"
|
|
min-width="100"
|
|
min-width="100"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -134,7 +134,7 @@ export default {
|
|
dataList: [], // 表格数据
|
|
dataList: [], // 表格数据
|
|
|
|
|
|
isShow: true,
|
|
isShow: true,
|
|
- screenForm: {
|
|
|
|
|
|
+ searchForm: {
|
|
// 筛选表单数据
|
|
// 筛选表单数据
|
|
name: "",
|
|
name: "",
|
|
},
|
|
},
|
|
@@ -167,17 +167,7 @@ export default {
|
|
console.log(this.$refs.searchForm);
|
|
console.log(this.$refs.searchForm);
|
|
this.$refs.searchForm.resetFields();
|
|
this.$refs.searchForm.resetFields();
|
|
},
|
|
},
|
|
- // 提交筛选表单
|
|
|
|
- submitScreenForm() {
|
|
|
|
- this.currentPage = 1;
|
|
|
|
- this.getList({ pageNum: 1, pageSize: 10 });
|
|
|
|
- },
|
|
|
|
- // 重置筛选表单
|
|
|
|
- resetScreenForm() {
|
|
|
|
- this.$refs.screenForm.resetFields();
|
|
|
|
- this.currentPage = 1;
|
|
|
|
- this.getList({ pageNum: 1, pageSize: 10 });
|
|
|
|
- },
|
|
|
|
|
|
+
|
|
// 更改每页数量
|
|
// 更改每页数量
|
|
handleSizeChange(val) {
|
|
handleSizeChange(val) {
|
|
this.pageSize = val;
|
|
this.pageSize = val;
|
|
@@ -194,46 +184,23 @@ export default {
|
|
const res = await getInfoApi({ id });
|
|
const res = await getInfoApi({ id });
|
|
this.infoList = res.data;
|
|
this.infoList = res.data;
|
|
},
|
|
},
|
|
- getList() {
|
|
|
|
- this.listLoading = true;
|
|
|
|
- let params = {
|
|
|
|
- pageNum: this.currentPage,
|
|
|
|
- pageSize: this.pageSize,
|
|
|
|
- auditName: "",
|
|
|
|
- groupName: "",
|
|
|
|
- name: this.screenForm.name,
|
|
|
|
- number: "",
|
|
|
|
- shortName: "",
|
|
|
|
- useOrgName: "",
|
|
|
|
- useOrgNumber: "",
|
|
|
|
- };
|
|
|
|
- getSupplierList(params).then((res) => {
|
|
|
|
- this.dataList = res.data.records;
|
|
|
|
- this.listTotal = res.data.total;
|
|
|
|
- this.listLoading = false;
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
- // 提交筛选表单
|
|
|
|
- submitScreenForm() {
|
|
|
|
- this.currentPage = 1;
|
|
|
|
- this.getList();
|
|
|
|
- },
|
|
|
|
- // 重置筛选表单
|
|
|
|
- resetScreenForm() {
|
|
|
|
- this.$refs.screenForm.resetFields();
|
|
|
|
- this.currentPage = 1;
|
|
|
|
- this.getList();
|
|
|
|
|
|
+ async getList(data) {
|
|
|
|
+ let res = await getList(data);
|
|
|
|
+ console.log(res);
|
|
|
|
+ this.dataList = res.data.records;
|
|
|
|
+ this.listTotal = res.data.total;
|
|
},
|
|
},
|
|
|
|
+
|
|
// 更改每页数量
|
|
// 更改每页数量
|
|
handleSizeChange(val) {
|
|
handleSizeChange(val) {
|
|
this.pageSize = val;
|
|
this.pageSize = val;
|
|
this.currentPage = 1;
|
|
this.currentPage = 1;
|
|
- this.getList();
|
|
|
|
|
|
+ this.getList({ pageNum: 1, pageSize: this.pageSize });
|
|
},
|
|
},
|
|
// 更改当前页
|
|
// 更改当前页
|
|
handleCurrentChange(val) {
|
|
handleCurrentChange(val) {
|
|
this.currentPage = val;
|
|
this.currentPage = val;
|
|
- this.getList();
|
|
|
|
|
|
+ this.getList({ pageNum: val, pageSize: 10 });
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|
|
};
|