|
@@ -32,7 +32,11 @@
|
|
|
</el-radio-group>
|
|
|
</div>
|
|
|
<div class="search-input">
|
|
|
- <el-input placeholder="请输入..." v-model="queryString">
|
|
|
+ <el-input
|
|
|
+ placeholder="请输入..."
|
|
|
+ v-model="queryString"
|
|
|
+ @keyup.enter.native="getList"
|
|
|
+ >
|
|
|
<el-button
|
|
|
slot="append"
|
|
|
@click="getList"
|
|
@@ -87,27 +91,29 @@ export default {
|
|
|
methods: {
|
|
|
// 获取列表数据
|
|
|
getList() {
|
|
|
- getListLog(this.queryParams).then((res) => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.tableData = this.getTableData(
|
|
|
- res.rows.map((item) => item.resultMap)
|
|
|
- );
|
|
|
- console.log(this.tableData);
|
|
|
- this.total = res.total;
|
|
|
- } else {
|
|
|
- this.$message.error("网络异常,请稍后再试");
|
|
|
- }
|
|
|
+ getListLog({ ...this.queryParams, taskName: this.queryString }).then(
|
|
|
+ (res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.tableData = this.getTableData(
|
|
|
+ res.rows.map((item) => item.resultMap)
|
|
|
+ );
|
|
|
+ console.log(this.tableData);
|
|
|
+ this.total = res.total;
|
|
|
+ } else {
|
|
|
+ this.$message.error("网络异常,请稍后再试");
|
|
|
+ }
|
|
|
|
|
|
- return;
|
|
|
- if (res.code == 200) {
|
|
|
- this.tableData = this.getTableData(
|
|
|
- res.rows.map((item) => item.resultMap)
|
|
|
- );
|
|
|
- this.total = res.total;
|
|
|
- } else {
|
|
|
- this.$message.error("网络异常,请稍后再试");
|
|
|
+ return;
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.tableData = this.getTableData(
|
|
|
+ res.rows.map((item) => item.resultMap)
|
|
|
+ );
|
|
|
+ this.total = res.total;
|
|
|
+ } else {
|
|
|
+ this.$message.error("网络异常,请稍后再试");
|
|
|
+ }
|
|
|
}
|
|
|
- });
|
|
|
+ );
|
|
|
},
|
|
|
// 获取表格展示数据
|
|
|
getTableData(dataList) {
|