服务重启&设备配置应用添加确认提示框
This commit is contained in:
@@ -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 {
|
||||
// 验证表单
|
||||
|
||||
Reference in New Issue
Block a user