|
@@ -5,10 +5,9 @@
|
|
|
<i class="el-icon-fa el-icon-fa-compass"></i>
|
|
|
</span>
|
|
|
<span style="float:left;">当前选择的设备类型:{{category.name}}</span>
|
|
|
- <div style="width:200px;display:inline-block;text-align:left;color:gray;">
|
|
|
- <span>隐藏自动填充的信息</span>
|
|
|
- <el-checkbox v-model="showTypeFlag" @change="getTableHeader"></el-checkbox>
|
|
|
- </div>
|
|
|
+ <el-select v-model="showType" @change="initTable" style="width:125px;margin-right:10px;vertical-align:bottom;">
|
|
|
+ <el-option v-for="item in showTypes" :key="item.value" :label="item.label" :value="item.value"></el-option>
|
|
|
+ </el-select>
|
|
|
<span>增加</span>
|
|
|
<el-input v-model="addNum" style="width:50px;" size="small"></el-input>
|
|
|
<span>个{{category.name}}</span>
|
|
@@ -95,6 +94,7 @@ export default {
|
|
|
return {
|
|
|
addNum: 1,
|
|
|
onlyRead: false,
|
|
|
+ showTypes: [{ value: "partInfo", label: '隐藏信息点' }, { value: "all", label: '全部' }, { value: "Visible", label: '只看采集信息' }],
|
|
|
tableHeader: [],
|
|
|
tableData: session.get("deviceAddData")
|
|
|
? session.get("deviceAddData").length
|
|
@@ -128,7 +128,7 @@ export default {
|
|
|
systemId: null,
|
|
|
graphyId: null,
|
|
|
id: 0,
|
|
|
- showTypeFlag: true,
|
|
|
+ showType: 'partInfo',
|
|
|
EquipmentList: [],
|
|
|
firmId: "", //品牌型号所需字段--族id三位编码(传设备类id或部件类id)
|
|
|
buildFloorData: [],
|
|
@@ -342,8 +342,7 @@ export default {
|
|
|
//格式化表头显示的数据
|
|
|
formatHeaderData(list) {
|
|
|
let arr = tools.copyArr(list);
|
|
|
- let showType = this.showTypeFlag ? 'partInfo' : 'all';
|
|
|
- let data = showTools.headerTextFilter(arr, 'equipment', this.onlyRead, showType, true);
|
|
|
+ let data = showTools.headerTextFilter(arr, 'equipment', this.onlyRead, this.showType, true);
|
|
|
data.unshift("同时创建资产", "所属系统实例");
|
|
|
if (this.floorFlag) {
|
|
|
data.splice(1, 0, "所属建筑楼层")
|
|
@@ -353,8 +352,7 @@ export default {
|
|
|
formatHeaderType(list) {
|
|
|
//格式化表头头映射的数据
|
|
|
let arr = tools.copyArr(list);
|
|
|
- let showType = this.showTypeFlag ? 'partInfo' : 'all';
|
|
|
- let data = showTools.headerTypeFilter(arr, 'equipment', this.onlyRead, showType, true);
|
|
|
+ let data = showTools.headerTypeFilter(arr, 'equipment', this.onlyRead, this.showType, true);
|
|
|
data.unshift({
|
|
|
type: "checkbox",
|
|
|
checkedTemplate: 1,
|