服务重启&设备配置应用添加确认提示框

This commit is contained in:
wu
2022-08-23 14:50:01 +08:00
parent fd549832e6
commit f845494607
3 changed files with 44 additions and 21 deletions

View File

@@ -61,7 +61,7 @@
<el-button
class="header-button"
type="primary"
@click="setDeviceConfigure"
@click="setDeviceConfigureConfirm"
>应用</el-button
>
</div>
@@ -735,6 +735,20 @@ export default {
this.$set(this.devicePointData[index], "@Binding", row.nodeCode)
done();
},
setDeviceConfigureConfirm(){
this.$confirm('是否要应用该配置信息,更改配置后需要重启改服务才能使服务生效?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.setDeviceConfigure()
}).catch(() => {
this.$message({
type: 'info',
message: '已取消应用服务配置'
});
});
},
async setDeviceConfigure() {
try {
// 验证表单