Commit 8eaf119a authored by neogcg's avatar neogcg

3/4

parent 0305343c
......@@ -226,6 +226,7 @@ export default {
multipleSelection: [],
ids: [],
block: 0,
istrue:0
};
},
computed: {
......@@ -268,6 +269,7 @@ export default {
this.getTableData();
},
searchQuery() {
this.istrue=1
this.getTableData();
},
......@@ -316,8 +318,25 @@ export default {
let list = res.records || [];
this.tableData = list;
this.total = res.total;
if (this.istrue == 1) {
if (this.tableData.length) {
successAlert("查询成功");
} else {
warningAlert("查询结果为空");
}
this.istrue = 0;
}
});
},
},
created() {
var that = this;
document.onkeydown = function (e) {
var key = window.event.keyCode;
if (key == 13 || key == 100) {
that.searchQuery();
}
};
},
mounted() {
this.getTableData();
......
......@@ -259,6 +259,7 @@ export default {
multipleSelection: [],
ids: [],
block: 0,
istrue:0
};
},
computed: {
......@@ -315,6 +316,7 @@ export default {
this.getTableData();
},
searchQuery() {
this.istrue=1
this.getTableData();
},
......@@ -366,6 +368,14 @@ export default {
let list = res.records || [];
this.tableData = list;
this.total = res.total;
if (this.istrue == 1) {
if (this.tableData.length) {
successAlert("查询成功");
} else {
warningAlert("查询结果为空");
}
this.istrue = 0;
}
});
},
getLeakyCablel() {
......@@ -374,6 +384,15 @@ export default {
this.equipTypeList = list;
});
},
},
created() {
var that = this;
document.onkeydown = function (e) {
var key = window.event.keyCode;
if (key == 13 || key == 100) {
that.searchQuery();
}
};
},
mounted() {
this.getTableData();
......
......@@ -222,6 +222,7 @@ export default {
multipleSelection: [],
ids: [],
block: 0,
istrue:0
};
},
computed: {
......@@ -271,6 +272,7 @@ export default {
this.getTableData();
},
searchQuery() {
this.istrue=1
this.getTableData();
},
reset() {
......@@ -319,8 +321,25 @@ export default {
let list = res.records || [];
this.tableData = list;
this.total = res.total;
if (this.istrue == 1) {
if (this.tableData.length) {
successAlert("查询成功");
} else {
warningAlert("查询结果为空");
}
this.istrue = 0;
}
});
},
},
created() {
var that = this;
document.onkeydown = function (e) {
var key = window.event.keyCode;
if (key == 13 || key == 100) {
that.searchQuery();
}
};
},
mounted() {
this.getTableData();
......
......@@ -24,7 +24,6 @@
>
<el-form-item label="铁路名称:">
<el-input
placeholder="请输入铁路名称"
style="width: 180px"
v-model="railData.name"
......@@ -35,7 +34,6 @@
<el-form-item label="铁路起点站名:">
<el-input
placeholder="请输入起点站名"
v-model="railData.startPointName"
style="width: 180px"
......@@ -46,7 +44,6 @@
<el-form-item label="铁路终点站名:">
<el-input
placeholder="请输入终点站名"
v-model="railData.endPointName"
style="width: 180px"
......@@ -119,7 +116,6 @@
</div>
</template>
<script>
import {
railWaylist,
railWaydetail,
......@@ -130,7 +126,7 @@ import { mapGetters, mapActions } from "vuex";
import { successAlert, warningAlert } from "@/utils/alert";
export default {
props: [],
components: { },
components: {},
data() {
return {
railData: {
......@@ -141,7 +137,7 @@ export default {
size: 10,
},
visible: false,
tableData: [],
params: {
pageNum: 1,
......@@ -151,6 +147,7 @@ export default {
multipleSelection: [],
ids: [],
block: 0,
istrue: 0,
};
},
computed: {},
......@@ -177,22 +174,21 @@ export default {
});
},
refresh() {
this.reset()
this.reset();
this.getTableData();
},
searchQuery() {
this.getTableData()
this.istrue = 1;
this.getTableData();
},
reset() {
this.railData={
this.railData = {
endPointName: "",
name: "",
startPointName: "",
current: 1,
size: 10,
}
};
},
exportData() {},
......@@ -212,9 +208,7 @@ export default {
});
let id = row.id;
railWaydetail({ id }).then((res) => {
});
railWaydetail({ id }).then((res) => {});
},
handlePageChange(pageData) {
this.railData.size = pageData.size;
......@@ -230,9 +224,26 @@ export default {
let list = res.records || [];
this.tableData = list;
this.total = res.total;
if (this.istrue == 1) {
if (this.tableData.length) {
successAlert("查询成功");
} else {
warningAlert("查询结果为空");
}
this.istrue = 0;
}
});
},
},
created() {
var that = this;
document.onkeydown = function (e) {
var key = window.event.keyCode;
if (key == 13 || key == 100) {
that.searchQuery();
}
};
},
mounted() {
this.getTableData();
},
......
......@@ -180,6 +180,7 @@ export default {
multipleSelection: [],
ids: [],
block: 0,
istrue:0
};
},
computed: {
......@@ -215,6 +216,7 @@ export default {
this.getTableData();
},
searchQuery() {
this.istrue=1
this.getTableData();
},
......@@ -264,8 +266,25 @@ export default {
let list = res.records || [];
this.tableData = list;
this.total = res.total;
if (this.istrue == 1) {
if (this.tableData.length) {
successAlert("查询成功");
} else {
warningAlert("查询结果为空");
}
this.istrue = 0;
}
});
},
},
created() {
var that = this;
document.onkeydown = function (e) {
var key = window.event.keyCode;
if (key == 13 || key == 100) {
that.searchQuery();
}
};
},
mounted() {
this.getTableData();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment