Commit c9341363 authored by neogcg's avatar neogcg

3/2/18:21

parent 804af074
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
} }
.leakage-cable .leakage-top{ .leakage-cable .leakage-top{
padding-right: 10px; padding-right: 10px;
transform: translateY(-40px);
} }
.el-table{ .el-table{
height: 613px; height: 613px;
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<el-button type="primary" @click="exportData">导出</el-button> <el-button type="primary" @click="exportData">导出</el-button>
</div> </div>
</div> </div>
<div> <div :class="block==0?'search-div' : 'none'">
<div class="search-input-box"> <div class="search-input-box">
<label>设备名称:</label> <label>设备名称:</label>
<el-input <el-input
...@@ -84,6 +84,10 @@ ...@@ -84,6 +84,10 @@
></el-option> ></el-option>
</el-select> </el-select>
</div> </div>
<div class="search-input-box">
<el-button class="seabtn" @click="searchQuery()">查询</el-button>
<el-button class="seabtn" @click="reset()">重置</el-button>
</div>
</div> </div>
<el-table <el-table
ref="multipleTable" ref="multipleTable"
...@@ -232,6 +236,7 @@ export default { ...@@ -232,6 +236,7 @@ export default {
total: 10, total: 10,
multipleSelection: [], multipleSelection: [],
ids: [], ids: [],
block: 1,
}; };
}, },
computed: { computed: {
...@@ -272,7 +277,17 @@ export default { ...@@ -272,7 +277,17 @@ export default {
refresh() { refresh() {
this.getTableData(); this.getTableData();
}, },
query() {}, searchQuery() {},
reset() {
},
query() {
if (this.block == 1) {
this.block = 0;
} else {
this.block = 1;
}
},
exportData() {}, exportData() {},
handleSelectionChange(val) { handleSelectionChange(val) {
this.multipleSelection = val; this.multipleSelection = val;
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<el-button type="primary" @click="exportData">导出</el-button> <el-button type="primary" @click="exportData">导出</el-button>
</div> </div>
</div> </div>
<div :class="block==0?'search-div' : 'none'"> <div :class="block == 0 ? 'search-div' : 'none'">
<div class="search-input-box"> <div class="search-input-box">
<label>漏缆描述:</label> <label>漏缆描述:</label>
<el-input <el-input
...@@ -36,8 +36,6 @@ ...@@ -36,8 +36,6 @@
v-model="leakyCableForm.leakyCableCode" v-model="leakyCableForm.leakyCableCode"
clearable clearable
> >
</el-input> </el-input>
</div> </div>
<div class="search-input-box"> <div class="search-input-box">
...@@ -128,10 +126,10 @@ ...@@ -128,10 +126,10 @@
></el-option> ></el-option>
</el-select> </el-select>
</div> </div>
<div class="search-input-box"> <div class="search-input-box">
<el-button class="seabtn" @click="searchQuery()">查询</el-button> <el-button class="seabtn" @click="searchQuery()">查询</el-button>
<el-button class="seabtn" @click="reset()">重置</el-button> <el-button class="seabtn" @click="reset()">重置</el-button>
</div> </div>
</div> </div>
<el-table <el-table
ref="multipleTable" ref="multipleTable"
...@@ -248,7 +246,7 @@ export default { ...@@ -248,7 +246,7 @@ export default {
components: { Pagination }, components: { Pagination },
data() { data() {
return { return {
leakySelect:[], leakySelect: [],
railWaySelect: [], railWaySelect: [],
stationSelect2: [], stationSelect2: [],
fsuSelect2: [], fsuSelect2: [],
...@@ -272,7 +270,7 @@ export default { ...@@ -272,7 +270,7 @@ export default {
total: 10, total: 10,
multipleSelection: [], multipleSelection: [],
ids: [], ids: [],
block:1, block: 1,
}; };
}, },
computed: { computed: {
...@@ -327,9 +325,9 @@ export default { ...@@ -327,9 +325,9 @@ export default {
refresh() { refresh() {
this.getTableData(); this.getTableData();
}, },
searchQuery(){}, searchQuery() {},
reset(){ reset() {
this.leakyCableForm= { this.leakyCableForm = {
wayId: "", wayId: "",
parentId: "", parentId: "",
siteId: "", siteId: "",
...@@ -339,15 +337,14 @@ export default { ...@@ -339,15 +337,14 @@ export default {
leakyCableDescribe: "", leakyCableDescribe: "",
leakyCableMode: "", leakyCableMode: "",
} };
}, },
query() { query() {
if (this.block==1) { if (this.block == 1) {
this.block=0 this.block = 0;
} else { } else {
this.block=1 this.block = 1;
} }
}, },
exportData() {}, exportData() {},
handleSelectionChange(val) { handleSelectionChange(val) {
...@@ -437,5 +434,4 @@ if (this.block==1) { ...@@ -437,5 +434,4 @@ if (this.block==1) {
padding: 5px !important; padding: 5px !important;
} }
} }
</style> </style>
\ No newline at end of file
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<el-button type="primary" @click="exportData">导出</el-button> <el-button type="primary" @click="exportData">导出</el-button>
</div> </div>
</div> </div>
<div> <div :class="block==0?'search-div' : 'none'">
<div class="search-input-box"> <div class="search-input-box">
<label>设备名称:</label> <label>设备名称:</label>
<el-input <el-input
...@@ -102,6 +102,10 @@ ...@@ -102,6 +102,10 @@
></el-option> ></el-option>
</el-select> </el-select>
</div> </div>
<div class="search-input-box">
<el-button class="seabtn" @click="searchQuery()">查询</el-button>
<el-button class="seabtn" @click="reset()">重置</el-button>
</div>
</div> </div>
<el-table <el-table
ref="multipleTable" ref="multipleTable"
...@@ -229,6 +233,7 @@ export default { ...@@ -229,6 +233,7 @@ export default {
total: 10, total: 10,
multipleSelection: [], multipleSelection: [],
ids: [], ids: [],
block: 1,
}; };
}, },
computed: { computed: {
...@@ -276,7 +281,17 @@ export default { ...@@ -276,7 +281,17 @@ export default {
refresh() { refresh() {
this.getTableData(); this.getTableData();
}, },
query() {}, searchQuery() {},
reset() {
},
query() {
if (this.block == 1) {
this.block = 0;
} else {
this.block = 1;
}
},
exportData() {}, exportData() {},
handleSelectionChange(val) { handleSelectionChange(val) {
this.multipleSelection = val; this.multipleSelection = val;
......
...@@ -49,6 +49,10 @@ ...@@ -49,6 +49,10 @@
> >
</el-input> </el-input>
</div> </div>
<div class="search-input-box">
<el-button class="seabtn" @click="searchQuery()">查询</el-button>
<el-button class="seabtn" @click="reset()">重置</el-button>
</div>
</div> </div>
<el-table <el-table
ref="multipleTable" ref="multipleTable"
...@@ -135,6 +139,7 @@ export default { ...@@ -135,6 +139,7 @@ export default {
total: 10, total: 10,
multipleSelection: [], multipleSelection: [],
ids: [], ids: [],
block: 1,
}; };
}, },
computed: {}, computed: {},
...@@ -163,10 +168,16 @@ export default { ...@@ -163,10 +168,16 @@ export default {
refresh() { refresh() {
this.getTableData(); this.getTableData();
}, },
searchQuery() {},
reset() {
},
query() { query() {
if (this.block == 1) {
this.getTableData(); this.block = 0;
} else {
this.block = 1;
}
}, },
exportData() {}, exportData() {},
handleSelectionChange(val) { handleSelectionChange(val) {
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<el-button type="primary" @click="exportData">导出</el-button> <el-button type="primary" @click="exportData">导出</el-button>
</div> </div>
</div> </div>
<div> <div :class="block==0?'search-div' : 'none'">
<div class="search-input-box"> <div class="search-input-box">
<label>站名:</label> <label>站名:</label>
<el-input <el-input
...@@ -66,6 +66,10 @@ ...@@ -66,6 +66,10 @@
></el-option> ></el-option>
</el-select> </el-select>
</div> </div>
<div class="search-input-box">
<el-button class="seabtn" @click="searchQuery()">查询</el-button>
<el-button class="seabtn" @click="reset()">重置</el-button>
</div>
</div> </div>
<el-table <el-table
ref="multipleTable" ref="multipleTable"
...@@ -182,6 +186,7 @@ export default { ...@@ -182,6 +186,7 @@ export default {
total: 10, total: 10,
multipleSelection: [], multipleSelection: [],
ids: [], ids: [],
block: 1,
}; };
}, },
computed: { computed: {
...@@ -215,15 +220,16 @@ export default { ...@@ -215,15 +220,16 @@ export default {
refresh() { refresh() {
this.getTableData(); this.getTableData();
}, },
searchQuery() {},
reset() {
},
query() { query() {
// sitelist(this.siteForm).then((res) => { if (this.block == 1) {
// console.log(this.siteForm); this.block = 0;
// console.log(res.records); } else {
// let list = res.records || []; this.block = 1;
// this.tableData = list; }
// this.total = res.total;
// });
this.getTableData();
}, },
exportData() {}, exportData() {},
handleSelectionChange(val) { handleSelectionChange(val) {
......
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