|
@@ -2,12 +2,7 @@
|
|
|
<el-dialog :title="title" :visible.sync="dialogVisible" width="900px" id="addEqDialog">
|
|
|
<el-row class="filters">
|
|
|
<el-col :span="7" style="width:268px">
|
|
|
- <el-input
|
|
|
- placeholder="输入设备名称或设备本地编码进行查询"
|
|
|
- v-model="keycode"
|
|
|
- clearable
|
|
|
- @keyup.enter.native="getTableData"
|
|
|
- >
|
|
|
+ <el-input placeholder="输入设备名称或设备本地编码进行查询" v-model="keycode" clearable @keyup.enter.native="getTableData">
|
|
|
<i slot="suffix" class="el-input__icon el-icon-search" @click="getTableData"></i>
|
|
|
</el-input>
|
|
|
</el-col>
|
|
@@ -15,38 +10,21 @@
|
|
|
<floor-cascader @change="changeFloor" style="margin-left:5px;"></floor-cascader>
|
|
|
</el-col>
|
|
|
<el-col :span="8.5" style="padding-right:0;">
|
|
|
- <myCascader @change="changeDevice" :params="params"></myCascader>
|
|
|
+ <myCascader @change="changeDevice" :all="true" :params="childParams"></myCascader>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
|
|
|
<div class="table-box">
|
|
|
- <el-table
|
|
|
- :data="tableData"
|
|
|
- style="width: 100%"
|
|
|
- height="350"
|
|
|
- v-loading="loading"
|
|
|
- :header-cell-style="headerStyle"
|
|
|
- ref="multipleTable"
|
|
|
- @selection-change="handleSelectionChange"
|
|
|
- >
|
|
|
+ <el-table :data="tableData" style="width: 100%" height="350" v-loading="loading" :header-cell-style="headerStyle" ref="multipleTable"
|
|
|
+ @selection-change="handleSelectionChange">
|
|
|
<el-table-column type="selection" width="55"></el-table-column>
|
|
|
<el-table-column :label="`${inSpaceType}名称`" show-overflow-tooltip min-width="100">
|
|
|
<template slot-scope="scope">
|
|
|
<div>{{scope.row.EquipLocalName||scope.row.EquipName||''}}</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="EquipLocalID"
|
|
|
- :label="`${inSpaceType}本地编码`"
|
|
|
- show-overflow-tooltip
|
|
|
- min-width="100"
|
|
|
- ></el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="EquipCategory.EquipName"
|
|
|
- :label="`${inSpaceType}类`"
|
|
|
- show-overflow-tooltip
|
|
|
- min-width="100"
|
|
|
- ></el-table-column>
|
|
|
+ <el-table-column prop="EquipLocalID" :label="`${inSpaceType}本地编码`" show-overflow-tooltip min-width="100"></el-table-column>
|
|
|
+ <el-table-column prop="EquipCategory.EquipName" :label="`${inSpaceType}类`" show-overflow-tooltip min-width="100"></el-table-column>
|
|
|
<el-table-column prop="action" label="操作" min-width="100">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button size="mini" @click="toDetail(scope.$index, scope.row)" plain>查看详情</el-button>
|
|
@@ -54,17 +32,9 @@
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
<!-- 分页 -->
|
|
|
- <el-pagination
|
|
|
- class="fr"
|
|
|
- v-show="tableData && tableData.length"
|
|
|
- @size-change="handleSizeChange"
|
|
|
- @current-change="handleCurrentChange"
|
|
|
- :current-page="page.pageNumber"
|
|
|
- :page-sizes="page.pageSizes"
|
|
|
- :page-size="page.pageSize"
|
|
|
- layout="total, sizes, prev, pager, next, jumper"
|
|
|
- :total="page.total"
|
|
|
- ></el-pagination>
|
|
|
+ <el-pagination class="fr" v-show="tableData && tableData.length" @size-change="handleSizeChange" @current-change="handleCurrentChange"
|
|
|
+ :current-page="page.pageNumber" :page-sizes="page.pageSizes" :page-size="page.pageSize" layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ :total="page.total"></el-pagination>
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
<el-button size="small" @click="dialogVisible = false">取 消</el-button>
|
|
@@ -107,14 +77,21 @@ export default {
|
|
|
backgroundColor: "#e1e4e5",
|
|
|
color: "#2b2b2b",
|
|
|
lineHeight: "30px"
|
|
|
- } // 列表样式
|
|
|
+ } // 列表样式,
|
|
|
};
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ childParams() {
|
|
|
+ let temp = JSON.parse(JSON.stringify(this.params));
|
|
|
+ temp.SysType = null;
|
|
|
+ return temp;
|
|
|
+ }
|
|
|
+ },
|
|
|
props: {
|
|
|
type: String, //选中的tab页
|
|
|
params: Object //查看的竖井关系信息
|
|
|
},
|
|
|
- created() {},
|
|
|
+ created() { },
|
|
|
methods: {
|
|
|
//修改建筑楼层
|
|
|
changeFloor(value) {
|
|
@@ -153,9 +130,9 @@ export default {
|
|
|
if (this.keycode != "") {
|
|
|
params.data.Filters += `;EquipName contain '${this.keycode}' or EquipLocalName contain '${this.keycode}' or EquipLocalID contain '${this.keycode}'`;
|
|
|
}
|
|
|
- // if (this.Equipcategory) {
|
|
|
- // params.data.Filters += `;category='${this.Equipcategory}'`;
|
|
|
- // }
|
|
|
+ if (this.Equipcategory) {
|
|
|
+ params.data.Filters += `;category='${this.Equipcategory}'`;
|
|
|
+ }
|
|
|
unSysEq(params, res => {
|
|
|
res.Content.forEach(item => {
|
|
|
item.ShaftListName = "";
|
|
@@ -226,4 +203,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+/deep/ #buildFloor .buildFloor {
|
|
|
+ margin: 0 5px 0 5px;
|
|
|
+}
|
|
|
</style>
|