增加设备编码处按钮操作

This commit is contained in:
BianLzhaoMin 2024-07-24 10:44:25 +08:00
parent 140b30f7d4
commit 8aac72612e
2 changed files with 17 additions and 14 deletions

View File

@ -220,21 +220,16 @@
>
</template>
</el-table-column>
<!-- <el-table-column
label="IOT设备"
align="center"
prop="ownHouseName"
/> -->
<el-table-column label="IOT设备" align="center" prop="ownHouseName">
<el-button type="text" @click="handleBindIOT">未绑定</el-button>
</el-table-column>
<el-table-column
label="所在仓库"
label="位置信息"
align="center"
prop="ownHouseName"
/>
<!-- <el-table-column label="创建时间" align="center" prop="createTime" width="180">-->
<!-- <template slot-scope="scope">-->
<!-- <span>{{ parseTime(scope.row.createTime) }}</span>-->
<!-- </template>-->
<!-- </el-table-column>-->
>
<i class="el-icon-location location-icon" @click="handleMap" />
</el-table-column>
<el-table-column
label="操作"
align="center"
@ -822,6 +817,7 @@ export default {
`编码设备管理_${new Date().getTime()}.xlsx`,
)
},
// iot
handleBindIOT(row) {
console.log('🚀 ~ handleBindIOT ~ row:', row)
this.props = {
@ -830,6 +826,7 @@ export default {
maCode: row.maCode,
}
},
//
handleMap(row) {
console.log('~ handleMap ~ 地图', row)
const params = {
@ -867,4 +864,10 @@ export default {
width: 60px !important;
margin-bottom: 10px;
}
.location-icon {
font-size: 20px;
cursor: pointer;
color: #409eff;
}
</style>

View File

@ -42,9 +42,9 @@ module.exports = {
// target: `https://test-cc.zhgkxt.com`,//线上环境-南网
// target: `https://z.csgmall.com.cn`,
// target: `http://192.168.2.76:28080`, //超
target: `http://192.168.2.134:48080`, //超
// target: `http://10.40.92.81:8080`, //韩/
target: `http://192.168.2.81:28080`,//旭/
// target: `http://192.168.2.81:28080`,//旭/
// target: `http://192.168.2.248:28080`, //帅
// target: `http://10.40.92.253:28080`, //福