|
@@ -6,11 +6,19 @@
|
|
|
{{item.Group}}
|
|
|
</template>
|
|
|
<div class="collapse-item">
|
|
|
- <div style="line-height: 40px;padding-left: 5px;box-sizing:border-box;">
|
|
|
- <el-input v-model="fillData" placeholder="批量填充空白的设备标识" style="width: 180px;"></el-input>
|
|
|
- <el-button @click="fillClick">填充</el-button>
|
|
|
+ <div style="display: flex;justify-content: space-between; height: 40px; line-height: 40px;padding:0 5px;box-sizing:border-box;">
|
|
|
+ <p>
|
|
|
+ <el-input v-model="fillData" placeholder="批量填充空白的设备标识" style="width: 180px; margin-right: 10px;"></el-input>
|
|
|
+ <el-button @click="fillClick">填充</el-button>
|
|
|
+ </p>
|
|
|
+ <p style="display: flex">
|
|
|
+ <span style="margin-right: 10px; color: #909399;" >AI建议的设备标识</span>
|
|
|
+ <span class='ai-eq' :title="item.EquipmentMark" @click="aiHandle(item.EquipmentMark)">{{item.EquipmentMark || '--'}}</span>
|
|
|
+ </p>
|
|
|
+ </div>
|
|
|
+ <div style="flex: 1">
|
|
|
+ <handsontable-component ref="handsontable"></handsontable-component>
|
|
|
</div>
|
|
|
- <handsontable-component ref="handsontable"></handsontable-component>
|
|
|
</div>
|
|
|
</el-collapse-item>
|
|
|
</el-collapse>
|
|
@@ -52,9 +60,14 @@
|
|
|
"protocolType"
|
|
|
])
|
|
|
},
|
|
|
- created() {},
|
|
|
- mounted() {},
|
|
|
methods: {
|
|
|
+ aiHandle(value) {
|
|
|
+ if(value == '--') {
|
|
|
+ return false;
|
|
|
+ } else {
|
|
|
+ this.fillData = value;
|
|
|
+ }
|
|
|
+ },
|
|
|
save() {
|
|
|
console.log(this.renderData,'renderData')
|
|
|
// let data = this.hotArr[this.activeName - 1].getSourceData()
|
|
@@ -318,6 +331,15 @@
|
|
|
}
|
|
|
.collapse-item {
|
|
|
height: 230px;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ .ai-eq {
|
|
|
+ cursor: pointer;
|
|
|
+ width: 60px;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ white-space: nowrap;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</style>
|