.
This commit is contained in:
parent
e1b53fbc2e
commit
3d8707078c
@ -72,10 +72,18 @@ export function upgradeValve4G(code, dvId) {
|
||||
})
|
||||
}
|
||||
|
||||
// 基站升级
|
||||
// 基站/阀门重启
|
||||
export function resetStationDevice(code, dvId) {
|
||||
return request({
|
||||
url: `/system/dev-ops/resetStationDevice/${code}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 4G阀门重启
|
||||
export function reset4GDevice(code, dvId) {
|
||||
return request({
|
||||
url: `/system/dev-ops/reset4GDevice/${code}`,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
@ -138,18 +138,18 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="btn-grid">
|
||||
<u-button type="primary" size="normal" text="获取配置"
|
||||
@click="getValve4Config(item.device)" disabled />
|
||||
<!-- <u-button type="primary" size="normal" text="获取配置"
|
||||
@click="getValve4Config(item.device)" disabled /> -->
|
||||
<u-button type="primary" size="normal" text="重启"
|
||||
@click="restartValve4(item.device)" disabled />
|
||||
@click="restartValve4(item.device)" />
|
||||
<u-button type="primary" size="normal" text="升级"
|
||||
v-if="item.device.newDeviceVersionId"
|
||||
v-hasPermi="['iot:dev-ops:upgradeValve4G']"
|
||||
@click="upgradeValve4(item.device)" />
|
||||
<u-button type="primary" size="normal" text="压力校准"
|
||||
<!-- <u-button type="primary" size="normal" text="压力校准"
|
||||
@click="pressureCalibrationValve4(item.device)" disabled />
|
||||
<u-button type="primary" size="normal" text="压力查询"
|
||||
@click="pressureSelect(item.device)" disabled />
|
||||
@click="pressureSelect(item.device)" disabled /> -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -746,6 +746,11 @@
|
||||
// 重启
|
||||
restartValve4(item) {
|
||||
console.error("重启:", item);
|
||||
plugins.modal.confirm(`重启"${item.deviceCode}"`).then(() => {
|
||||
DevOpsApi.reset4GDevice(item.deviceCode).then(res => {
|
||||
plugins.modal.msg(res.msg)
|
||||
})
|
||||
}).catch(() => {});
|
||||
},
|
||||
// 设备升级
|
||||
upgradeValve4(item) {
|
||||
|
Loading…
Reference in New Issue
Block a user