|
@@ -1,13 +1,13 @@
|
|
<template>
|
|
<template>
|
|
<div id="handsonStep1">
|
|
<div id="handsonStep1">
|
|
<div class="btns-view">
|
|
<div class="btns-view">
|
|
- <el-button style="float:right;margin-top:4px;margin-left:10px;" type="primary" @click="saveData">保存</el-button>
|
|
|
|
- <el-button style="float:right;margin-top:4px;" type="primary" @click="addRow">新增行</el-button>
|
|
|
|
- <el-button style="float:right;margin-top:4px;" type="primary" @click="downData">下载数据</el-button>
|
|
|
|
- <el-button style="float:right;margin-top:4px;" type="primary" @click="updateExcel = true">导入Excel</el-button>
|
|
|
|
- <el-button style="float:right;margin-top:4px;" type="primary" @click="downloadExcel = true">导出Excel模板</el-button>
|
|
|
|
|
|
+ <el-button style="float:right;margin-top:4px;margin-left:10px;" @click="saveData">保存</el-button>
|
|
|
|
+ <el-button style="float:right;margin-top:4px;" @click="addRow">新增行</el-button>
|
|
|
|
+ <el-button style="float:right;margin-top:4px;" @click="downData">下载数据</el-button>
|
|
|
|
+ <el-button style="float:right;margin-top:4px;" @click="updateExcel = true">导入Excel</el-button>
|
|
|
|
+ <el-button style="float:right;margin-top:4px;" @click="downloadExcel = true">导出Excel模板</el-button>
|
|
<el-checkbox style="float:right;line-height:40px;" @change="getData" v-model="checked">只显示使用的原始点位</el-checkbox>
|
|
<el-checkbox style="float:right;line-height:40px;" @change="getData" v-model="checked">只显示使用的原始点位</el-checkbox>
|
|
- <el-button type="primary">获取原始点位当前值</el-button>
|
|
|
|
|
|
+ <el-button>获取原始点位当前值</el-button>
|
|
</div>
|
|
</div>
|
|
<div id="handsontableSteps1" v-loading="isLoading">
|
|
<div id="handsontableSteps1" v-loading="isLoading">
|
|
<handsontable-component v-if="!!allData.length" @delete="delePoint" ref="handsontable" @mouseDown="clickTable" @change="changeHand"></handsontable-component>
|
|
<handsontable-component v-if="!!allData.length" @delete="delePoint" ref="handsontable" @mouseDown="clickTable" @change="changeHand"></handsontable-component>
|
|
@@ -250,6 +250,9 @@
|
|
clickTable(info, row) {
|
|
clickTable(info, row) {
|
|
let activeCell = this.hot.getActiveEditor()
|
|
let activeCell = this.hot.getActiveEditor()
|
|
console.log(activeCell, 'activeCell')
|
|
console.log(activeCell, 'activeCell')
|
|
|
|
+ if(activeCell.prop == "Used"){
|
|
|
|
+ info.Used = !info.Used
|
|
|
|
+ }
|
|
if (activeCell.prop == "LocationFlag") {
|
|
if (activeCell.prop == "LocationFlag") {
|
|
this.renderData = info
|
|
this.renderData = info
|
|
this.localtionDialog = true
|
|
this.localtionDialog = true
|
|
@@ -382,7 +385,6 @@
|
|
if (createList.length) {
|
|
if (createList.length) {
|
|
this.createList(createList)
|
|
this.createList(createList)
|
|
}
|
|
}
|
|
- this.getData()
|
|
|
|
} else {
|
|
} else {
|
|
this.$message.error("请确保存在数据")
|
|
this.$message.error("请确保存在数据")
|
|
}
|
|
}
|
|
@@ -395,6 +397,7 @@
|
|
await this.create(createList[i])
|
|
await this.create(createList[i])
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ this.getData()
|
|
this.changeFlag = true
|
|
this.changeFlag = true
|
|
},
|
|
},
|
|
async create(obj) {
|
|
async create(obj) {
|
|
@@ -430,6 +433,7 @@
|
|
type: this.protocolType
|
|
type: this.protocolType
|
|
}, res => {
|
|
}, res => {
|
|
console.log(res)
|
|
console.log(res)
|
|
|
|
+ this.getData()
|
|
})
|
|
})
|
|
},
|
|
},
|
|
//没有保存的时候弹窗
|
|
//没有保存的时候弹窗
|