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