Commit 0a438959 authored by neogcg's avatar neogcg

3.1

parent 3ade77ab
......@@ -319,7 +319,13 @@ export default {
},
handleView(row) {
this.$router.push({
path:'/',
query:{
id:row.id
}
})
let id = row.id;
fsudetail({ id }).then((res) => {
this.Info=res
......
......@@ -164,7 +164,13 @@ export default {
},
handleView(row) {
this.$router.push({
path:'/',
query:{
id:row.id
}
})
let id = row.id;
leakyCabledetail({ id }).then((res) => {
......
......@@ -161,7 +161,13 @@ export default {
},
handleView(row) {
this.$router.push({
path:'/',
query:{
id:row.id
}
})
let id = row.id;
monitorEquipdetail({ id }).then((res) => {
......
......@@ -63,62 +63,53 @@
</template>
</el-table-column>
</el-table>
<el-dialog
:showClose="false"
title="铁路线详情"
:visible.sync="visible"
width="500px">
<table style="margin: auto" class="device-detail-tb">
<tr style="line-height: 50px">
<td style="width: 145px">
<label >铁路名:</label>
</td>
<td style="width: 180px; text-align: left">
<label v-text="Info.name"></label>
</td>
</tr>
<el-dialog
:showClose="false"
title="铁路线详情"
:visible.sync="visible"
width="500px"
>
<table style="margin: auto" class="device-detail-tb">
<tr style="line-height: 50px">
<td style="width: 145px">
<label>铁路名:</label>
</td>
<td style="width: 180px; text-align: left">
<label v-text="Info.name"></label>
</td>
</tr>
<tr style="line-height: 50px">
<td style="width: 145px">
<label >铁路线起点站名:</label>
</td>
<td style="width: 180px; text-align: left">
<label v-text="Info.startPointName"></label>
</td>
</tr>
<tr style="line-height: 50px">
<td style="width: 145px">
<label >铁路线终点站名:</label>
</td>
<td style="width: 180px; text-align: left">
<label v-text="Info.endPointName"></label>
</td>
</tr>
<tr style="line-height: 50px">
<td style="width: 145px">
<label >铁路全长(公里):</label>
</td>
<td style="width: 180px; text-align: left">
<label v-text="Info.totalLong"></label>
</td>
</tr>
</table>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="visible=false"
>关闭</el-button
></span>
</el-dialog>
<tr style="line-height: 50px">
<td style="width: 145px">
<label>铁路线起点站名:</label>
</td>
<td style="width: 180px; text-align: left">
<label v-text="Info.startPointName"></label>
</td>
</tr>
<tr style="line-height: 50px">
<td style="width: 145px">
<label>铁路线终点站名:</label>
</td>
<td style="width: 180px; text-align: left">
<label v-text="Info.endPointName"></label>
</td>
</tr>
<tr style="line-height: 50px">
<td style="width: 145px">
<label>铁路全长(公里):</label>
</td>
<td style="width: 180px; text-align: left">
<label v-text="Info.totalLong"></label>
</td>
</tr>
</table>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="visible = false"
>关闭</el-button
></span
>
</el-dialog>
<pagination
:limit="params.pageSize"
:page="params.pageNum"
......@@ -131,14 +122,14 @@
<script>
import Pagination from "@/components/Pagination";
import { railWaylist, railWaybatchDelete, railWaydetail } from "../../api";
import { successAlert,warningAlert } from "@/utils/alert";
import { successAlert, warningAlert } from "@/utils/alert";
export default {
props: [],
components: { Pagination },
data() {
return {
visible: false,
Info:[],
visible: false,
Info: [],
tableData: [],
params: {
pageNum: 1,
......@@ -151,7 +142,6 @@ export default {
},
computed: {},
methods: {
tableRowClassName({ row, rowIndex }) {
return rowIndex % 2 === 0 ? "" : "single-row";
},
......@@ -161,14 +151,13 @@ export default {
delData() {
let ids = this.ids;
railWaybatchDelete({ ids }).then((res) => {
if (res.code==200) {
if (res.code == 200) {
successAlert("删除成功");
this.getTableData();
}else{
warningAlert("删除失败")
this.getTableData();
} else {
warningAlert("删除失败");
}
});
},
refresh() {
this.getTableData();
......@@ -182,13 +171,17 @@ export default {
},
handleView(row) {
this.$router.push({
path:'/',
query:{
id:row.id
}
})
let id = row.id;
railWaydetail({ id }).then((res) => {
console.log(res);
// this.$router.push('/')
// this.visible=true
this.Info=res
console.log(this.Info);
this.Info = res;
});
},
handlePageChange(pageData) {
......@@ -197,10 +190,7 @@ export default {
this.getTableData();
},
getTableData() {
// this.tableData2 = this.tableData.slice(( this.params.pageNum - 1) * this.params.pageSize,
// this.params.pageNum * this.params.pageSize
// );
// this.total = this.tableData.length
let params = {
current: this.params.pageNum,
size: this.params.pageSize,
......
......@@ -260,7 +260,13 @@ export default {
},
handleView(row) {
this.$router.push({
path:'/',
query:{
id:row.id
}
})
let id = row.id;
sitedetail({ id }).then((res) => {
this.Info=res
......
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