...
|
...
|
@@ -7,17 +7,6 @@ |
|
|
</div>
|
|
|
<el-tree :data="treeData" :props="props" @node-click="handleConfigNodeClick">
|
|
|
<template #default="{ node, data }">
|
|
|
<!--<div style="display: flex;flex-direction: row;width: 100%;">
|
|
|
<div style="width: calc(100% - 60px);max-width: calc(100% - 60px);overflow: hidden;text-overflow: ellipsis;text-align: left;"
|
|
|
@click="handleConfigNodeClick(data)" :title="node.label">
|
|
|
{{node.label }}
|
|
|
</div>
|
|
|
<div style="width: 60px;">
|
|
|
<a @click="editType(data)" style="margin-right: 10px;">
|
|
|
<i class="el-icon-setting"></i>
|
|
|
</a>
|
|
|
</div>
|
|
|
</div>-->
|
|
|
{{node.label }}
|
|
|
</template>
|
|
|
</el-tree>
|
...
|
...
|
@@ -67,7 +56,7 @@ |
|
|
</el-select>
|
|
|
</div>
|
|
|
|
|
|
<div v-else-if="prop == 'colComponents'">
|
|
|
<div v-else-if="prop == 'colComponents'" style="display: flex">
|
|
|
<!-- 展示下拉选项 -->
|
|
|
<el-select placeholder="请选择" size="small" style="width: 100%"
|
|
|
@change="changeProperty(row,prop,column)" v-model="row.colComponents"
|
...
|
...
|
@@ -81,6 +70,7 @@ |
|
|
<el-option label="机柜组件" :value="'machineRoomDetailComponents'"></el-option>
|
|
|
<el-option label="资产信息" :value="'assetsComponents'"></el-option>
|
|
|
</el-select>
|
|
|
<el-button size="mini" style="width: 20px;height: 20px;padding: 2px;margin-top: 2px;margin-left: 5px;" v-if="row.colComponents == 'machineRoomComponents'" @click="showMachineRoomDialog(true)"><i class="el-icon-setting"></i></el-button>
|
|
|
</div>
|
|
|
|
|
|
|
...
|
...
|
@@ -110,9 +100,7 @@ |
|
|
</div>
|
|
|
|
|
|
<div v-else-if="prop == 'colTypeExtendProps'">
|
|
|
|
|
|
<span v-if="row.colType == '' || row.colType == null || row.colType == 'INPUT'"> - </span>
|
|
|
|
|
|
<el-button v-else @click="showSettingCmDialog(true,row)" size="mini"
|
|
|
style="margin-left: 10px"> <i class="el-icon-setting"></i></el-button>
|
|
|
</div>
|
...
|
...
|
@@ -131,15 +119,6 @@ |
|
|
|
|
|
</div>
|
|
|
</template>
|
|
|
<!-- <template #tools>
|
|
|
<el-table-column fixed="right" label="操作" width="80" align="center">
|
|
|
<template #default="scope">
|
|
|
<el-button type="text" size="small" @click.prevent="deleteRow(row,scope.$index)">
|
|
|
<i class="el-icon-delete"/>
|
|
|
</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</template>-->
|
|
|
<template #tools="{scope}">
|
|
|
<el-button type="text" size="small" @click.prevent="deleteRow(scope.row,scope.$index)">
|
|
|
<i class="el-icon-delete"/>
|
...
|
...
|
@@ -212,4 +191,21 @@ |
|
|
</el-form>
|
|
|
</template>
|
|
|
</cm-dialog>
|
|
|
|
|
|
<!--关联机房配置-->
|
|
|
<cm-dialog title="关联机房配置" width="60%" :showDialogVisible="machineRoomDialog" @hidedialog="showMachineRoomDialog" @okfunc="saveMachineRoomConfig">
|
|
|
<template v-slot>
|
|
|
<cm-table-page :columns="machineRoomInfo.columns" :dataList="machineRoomInfo.dataList" :showIndex="true"
|
|
|
:showBorder="true" :loading="false" :showFooter="false"
|
|
|
:showPage="false" :height="400">
|
|
|
<template #default="{row,prop,column}">
|
|
|
<div v-if="prop == 'cmdbValue'" >
|
|
|
<el-input @blur="saveMachineRoomConfig(row)" type = "text"
|
|
|
size="small" placeholder="请填写" v-model="row[prop]">
|
|
|
</el-input>
|
|
|
</div>
|
|
|
</template>
|
|
|
</cm-table-page>
|
|
|
</template>
|
|
|
</cm-dialog>
|
|
|
</div> |
...
|
...
|
|