.
This commit is contained in:
parent
aac2059932
commit
415ed7b20b
@ -55,26 +55,26 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="btn-grid">
|
||||
<u-button type="primary" size="normal" text="更换基站" @click="changeStation(item)"
|
||||
disabled />
|
||||
<!-- <u-button type="primary" size="normal" text="更换基站" @click="changeStation(item)"
|
||||
disabled /> -->
|
||||
<u-button type="primary" size="normal" text="下发列表"
|
||||
v-hasPermi="['iot:dev-ops:gvl']" @click="sendTopoList(item)" />
|
||||
<u-button type="primary" size="normal" text="修改频段"
|
||||
v-hasPermi="['iot:dev-ops:slf']" @click="SLF(item)" />
|
||||
<u-button type="primary" size="normal" text="获取配置"
|
||||
v-hasPermi="['iot:dev-ops:gsc']" @click="getStationConfig(item)" />
|
||||
<u-button type="primary" size="normal" text="压力校准"
|
||||
@click="pressureCalibrationTopo(item)" disabled />
|
||||
<u-button type="primary" size="normal" text="重启" @click="stationRestart(item)"
|
||||
disabled />
|
||||
<!-- <u-button type="primary" size="normal" text="压力校准"
|
||||
@click="pressureCalibrationTopo(item)" disabled /> -->
|
||||
<u-button type="primary" size="normal" text="重启"
|
||||
@click="restartStation(item)" />
|
||||
<u-button type="primary" v-hasPermi="['iot:dev-ops:valve']"
|
||||
@click="topoDevice(item)">
|
||||
子设备<u-badge type="success" max="999" :value="item.topoCount" />
|
||||
</u-button>
|
||||
<u-button type="primary" size="normal" text="基站升级"
|
||||
v-hasPermi="['iot:dev-ops:upgradeStation']" @click="upgradeStation(item)" />
|
||||
<u-button type="primary" size="normal" text="阀门升级"
|
||||
@click="upgradeTopoValve(item)" disabled />
|
||||
<!-- <u-button type="primary" size="normal" text="阀门升级"
|
||||
@click="upgradeTopoValve(item)" disabled /> -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -689,9 +689,11 @@
|
||||
},
|
||||
// 重启
|
||||
restartStation(item) {
|
||||
console.error("重启:", item);
|
||||
|
||||
|
||||
plugins.modal.confirm(`重启"${item.deviceCode}"`).then(() => {
|
||||
DevOpsApi.resetStationDevice(item.deviceCode).then(res => {
|
||||
plugins.modal.msg(res.msg)
|
||||
})
|
||||
}).catch(() => {});
|
||||
},
|
||||
// 子设备
|
||||
topoDevice(item) {
|
||||
@ -800,18 +802,16 @@
|
||||
return;
|
||||
}
|
||||
let m = item.data.items.m.value == 1 ? 0 : 1;
|
||||
plugins.modal.confirm(`切换运行模式为"${(m == 1 ? "自动" : "手动" )}"?`).then(() => {
|
||||
let par = {
|
||||
controlKey: "m",
|
||||
deviceTypeId: 7,
|
||||
operationType: 11,
|
||||
deviceCode: item.deviceCode,
|
||||
controlValve: item.data.items.m.value == 1 ? 0 : 1
|
||||
controlValve: m
|
||||
};
|
||||
plugins.modal.confirm(`切换运行模式为"${(m == 1 ? "自动" : "手动" )}"?`).then(() => {
|
||||
controlHeadSwitch(par).then(res => {
|
||||
item.data.items.m.value = m;
|
||||
}) controlHeadSwitch(par).then(res => {
|
||||
item.data.items.m.value = m;
|
||||
})
|
||||
}).catch(() => {});
|
||||
},
|
||||
|
@ -53,23 +53,23 @@
|
||||
</view>
|
||||
</uni-col>
|
||||
<uni-col :span="8">
|
||||
<u-button type="success" @click="restart(item)" disabled>重启</u-button>
|
||||
<u-button type="primary" @click="restart(item)">重启</u-button>
|
||||
</uni-col>
|
||||
<uni-col :span="8" v-hasPermi="['iot:dev-ops:vlf']">
|
||||
<u-button type="success" @click="editRolaFrequency(item)">修改频段</u-button>
|
||||
<u-button type="primary" @click="editRolaFrequency(item)">修改频段</u-button>
|
||||
</uni-col>
|
||||
<uni-col :span="8" v-hasPermi="['iot:dev-ops:gvc']">
|
||||
<u-button type="success" @click="getConfig(item)">获取配置</u-button>
|
||||
</uni-col>
|
||||
<uni-col :span="8">
|
||||
<u-button type="success" @click="" disabled>压力校准</u-button>
|
||||
</uni-col>
|
||||
<uni-col :span="8">
|
||||
<u-button type="success" @click="" disabled>桥接</u-button>
|
||||
</uni-col>
|
||||
<uni-col :span="8">
|
||||
<u-button type="success" @click="" disabled>删除桥接</u-button>
|
||||
<u-button type="primary" @click="getConfig(item)">获取配置</u-button>
|
||||
</uni-col>
|
||||
<!-- <uni-col :span="8">
|
||||
<u-button type="primary" @click="" disabled>压力校准</u-button>
|
||||
</uni-col> -->
|
||||
<!-- <uni-col :span="8">
|
||||
<u-button type="primary" @click="" disabled>桥接</u-button>
|
||||
</uni-col> -->
|
||||
<!-- <uni-col :span="8">
|
||||
<u-button type="primary" @click="" disabled>删除桥接</u-button>
|
||||
</uni-col> -->
|
||||
</uni-row>
|
||||
</view>
|
||||
</view>
|
||||
@ -192,7 +192,11 @@
|
||||
},
|
||||
// 重启
|
||||
restart(item) {
|
||||
console.error("重启:", item);
|
||||
plugins.modal.confirm(`重启"${item.device.deviceCode}"`).then(() => {
|
||||
DevOpsApi.resetStationDevice(item.device.deviceCode).then(res => {
|
||||
plugins.modal.msg(res.msg)
|
||||
})
|
||||
}).catch(() => {});
|
||||
},
|
||||
// 修改频段
|
||||
editRolaFrequency(item) {
|
||||
|
Loading…
Reference in New Issue
Block a user