|
@@ -1,21 +1,21 @@
|
|
|
<template>
|
|
|
- <el-dialog title="关联设备" :before-close="close" :visible.sync="dialog.relevance" width="1000px">
|
|
|
+ <el-dialog title="关联设备" :before-close="close" :visible.sync="dialog.relevance" width="900px">
|
|
|
<div id="tableTransfers">
|
|
|
<div class="main-left">
|
|
|
<h4>未关联该系统的设备</h4>
|
|
|
<div class="border-view">
|
|
|
<div class="search">
|
|
|
- <div class="search-small">
|
|
|
+ <div class="search-small" style="padding: 10px 10px 0 10px">
|
|
|
<el-input
|
|
|
placeholder="输入设备名称进行查询"
|
|
|
v-model="search.filter"
|
|
|
- style="width:280px;"
|
|
|
+ style="width:300px;margin-right: 10px;"
|
|
|
size="small"
|
|
|
clearable
|
|
|
></el-input>
|
|
|
<el-button @click="getLeftData" size="small">查找</el-button>
|
|
|
</div>
|
|
|
- <div class="search-small">
|
|
|
+ <div class="search-small" style="padding: 10px">
|
|
|
<floor-cascader :isWidth="false"></floor-cascader>
|
|
|
<cascader :isWidth="false" @change="changeCascader" :isAll="true"></cascader>
|
|
|
</div>
|
|
@@ -23,11 +23,13 @@
|
|
|
<el-table
|
|
|
ref="multipleTable"
|
|
|
:data="tableData"
|
|
|
- height="350px"
|
|
|
+ height="300px"
|
|
|
tooltip-effect="dark"
|
|
|
style="width: 100%"
|
|
|
+ class="data-table"
|
|
|
@selection-change="handleSelectionChange"
|
|
|
v-loading="isLoading1"
|
|
|
+ border
|
|
|
>
|
|
|
<el-table-column type="selection" width="55"></el-table-column>
|
|
|
<el-table-column label="设备名称" width="120">
|
|
@@ -45,7 +47,9 @@
|
|
|
<template slot-scope="scope">{{ scope.row.infos.InstallLocation || "--" }}</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
- <my-pagination @change="changePages1" :page="pages1"></my-pagination>
|
|
|
+ <div class="right">
|
|
|
+ <my-pagination @change="changePages1" :page="pages1"></my-pagination>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="main-button">
|
|
@@ -74,7 +78,7 @@
|
|
|
<el-input
|
|
|
placeholder="输入设备名称、设备类名称进行查询"
|
|
|
v-model="search2.filter"
|
|
|
- style="width:220px;"
|
|
|
+ style="width:200px; margin-bottom: 10px;"
|
|
|
size="small"
|
|
|
clearable
|
|
|
></el-input>
|
|
@@ -84,11 +88,13 @@
|
|
|
<el-table
|
|
|
ref="multipleTable"
|
|
|
:data="table2Data"
|
|
|
- height="350px"
|
|
|
+ height="300px"
|
|
|
tooltip-effect="dark"
|
|
|
style="width: 100%"
|
|
|
+ class="data-table"
|
|
|
@selection-change="tableChange"
|
|
|
v-loading="isLoading2"
|
|
|
+ border
|
|
|
>
|
|
|
<el-table-column type="selection" width="55"></el-table-column>
|
|
|
<el-table-column label="设备名称">
|
|
@@ -97,7 +103,9 @@
|
|
|
>{{ scope.row.infos.EquipLocalName || scope.row.infos.EquipName }}</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
- <my-pagination :page="pages2" @change="changePages2" :isSmall="false"></my-pagination>
|
|
|
+ <div class="right">
|
|
|
+ <my-pagination :page="pages2" @change="changePages2" :isSmall="false"></my-pagination>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -412,26 +420,26 @@ export default {
|
|
|
</script>
|
|
|
<style lang="less">
|
|
|
#tableTransfers {
|
|
|
+ height: 500px;
|
|
|
width: 100%;
|
|
|
- overflow: hidden;
|
|
|
+ overflow-x: hidden;
|
|
|
+ overflow-y: auto;
|
|
|
h4 {
|
|
|
font-size: 20px;
|
|
|
font-weight: 500;
|
|
|
}
|
|
|
.search {
|
|
|
- height: 100px;
|
|
|
.search-small {
|
|
|
- height: 45px;
|
|
|
- padding: 5px;
|
|
|
+ overflow: hidden;
|
|
|
}
|
|
|
border-bottom: #dcdfe6 1px solid;
|
|
|
.search-big {
|
|
|
- padding: 25px 5px;
|
|
|
+ padding: 10px;
|
|
|
}
|
|
|
}
|
|
|
.main-left {
|
|
|
float: left;
|
|
|
- width: 600px;
|
|
|
+ width: 550px;
|
|
|
height: 500px;
|
|
|
}
|
|
|
.border-view {
|
|
@@ -457,9 +465,9 @@ export default {
|
|
|
margin: 0;
|
|
|
}
|
|
|
.main-right {
|
|
|
- height: 500px;
|
|
|
+ height: 300px;
|
|
|
float: left;
|
|
|
- width: 300px;
|
|
|
+ width: 230px;
|
|
|
}
|
|
|
}
|
|
|
</style>
|