增加设备编码处按钮操作

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

View File

@ -42,9 +42,9 @@ module.exports = {
// target: `https://test-cc.zhgkxt.com`,//线上环境-南网 // target: `https://test-cc.zhgkxt.com`,//线上环境-南网
// target: `https://z.csgmall.com.cn`, // 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://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://192.168.2.248:28080`, //帅
// target: `http://10.40.92.253:28080`, //福 // target: `http://10.40.92.253:28080`, //福