|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="ele-body">
|
|
<div class="ele-body">
|
|
|
<el-card shadow="never">
|
|
<el-card shadow="never">
|
|
|
- <search ref="search" @search="search"></search>
|
|
|
|
|
|
|
+ <search ref="search" @search="reload"></search>
|
|
|
<ele-pro-table ref="table" :columns="columns" :datasource="datasource">
|
|
<ele-pro-table ref="table" :columns="columns" :datasource="datasource">
|
|
|
<!-- 表头工具栏 -->
|
|
<!-- 表头工具栏 -->
|
|
|
<template v-slot:toolbar>
|
|
<template v-slot:toolbar>
|
|
@@ -139,7 +139,7 @@
|
|
|
size: limit
|
|
size: limit
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
- search(where) {
|
|
|
|
|
|
|
+ reload(where) {
|
|
|
this.$refs.table.reload({
|
|
this.$refs.table.reload({
|
|
|
where: where,
|
|
where: where,
|
|
|
page: 1
|
|
page: 1
|
|
@@ -150,8 +150,11 @@
|
|
|
this.editObj = row || {};
|
|
this.editObj = row || {};
|
|
|
this.showEdit = true;
|
|
this.showEdit = true;
|
|
|
},
|
|
},
|
|
|
- close() {
|
|
|
|
|
|
|
+ close(val) {
|
|
|
this.showEdit = false;
|
|
this.showEdit = false;
|
|
|
|
|
+ if(val) {
|
|
|
|
|
+ this.reload()
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
downloadFile(file) {
|
|
downloadFile(file) {
|
|
@@ -161,7 +164,7 @@
|
|
|
removeItem([row.id])
|
|
removeItem([row.id])
|
|
|
.then((message) => {
|
|
.then((message) => {
|
|
|
this.$message.success(message);
|
|
this.$message.success(message);
|
|
|
- this.done();
|
|
|
|
|
|
|
+
|
|
|
})
|
|
})
|
|
|
.catch((e) => {});
|
|
.catch((e) => {});
|
|
|
}
|
|
}
|