剩余报表
This commit is contained in:
@@ -61,11 +61,15 @@
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" size="small" @click="getDataList"
|
||||
<el-button type="primary" size="small" @click="getDataList('search')"
|
||||
>查询</el-button
|
||||
>
|
||||
<el-divider direction="vertical"></el-divider>
|
||||
<el-button type="primary" size="small" plain @click="handleExport"
|
||||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
plain
|
||||
@click="getDataList('export')"
|
||||
>导出</el-button
|
||||
>
|
||||
</el-form-item>
|
||||
@@ -93,8 +97,7 @@ export default {
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
getDataList() {
|
||||
console.log(this.form);
|
||||
getDataList(val) {
|
||||
let params = {};
|
||||
switch (this.form.type) {
|
||||
case 0:
|
||||
@@ -113,10 +116,11 @@ export default {
|
||||
break;
|
||||
}
|
||||
params.type = this.form.type;
|
||||
this.$emit("getSearch", params);
|
||||
},
|
||||
handleExport() {
|
||||
this.$emit("handleExport");
|
||||
if (val === "search") {
|
||||
this.$emit("getSearch", params);
|
||||
} else {
|
||||
this.$emit("handleExport", params);
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user