diff --git a/module/common/lang/zh-cn.php b/module/common/lang/zh-cn.php
index 79c89a9fe6..b130a688f5 100644
--- a/module/common/lang/zh-cn.php
+++ b/module/common/lang/zh-cn.php
@@ -179,7 +179,7 @@ $lang->testtask->common = '测试单';
$lang->score->common = '我的积分';
$lang->build->common = '版本';
$lang->testreport->common = '测试报告';
-$lang->automation->common = '自动化:';
+$lang->automation->common = '自动化:';
$lang->zahost->common = '宿主机';
$lang->zanode->common = '执行节点';
$lang->team->common = '团队';
diff --git a/module/zanode/control.php b/module/zanode/control.php
index b2ea7d500c..b52a2da2d4 100644
--- a/module/zanode/control.php
+++ b/module/zanode/control.php
@@ -246,8 +246,13 @@ class zanode extends control
* @param int $nodeID
* @return void
*/
- public function delete($nodeID)
+ public function delete($nodeID, $confirm = 'no')
{
+ if($confirm == 'no')
+ {
+ return print(js::confirm($this->lang->zanode->confirmDelete, inlink('delete', "zanodeID={$nodeID}&confirm=yes")));
+ }
+
$error = $this->zanode->destroy($nodeID);
if($error)
diff --git a/module/zanode/model.php b/module/zanode/model.php
index 4eb6802bed..0109a9a642 100644
--- a/module/zanode/model.php
+++ b/module/zanode/model.php
@@ -402,7 +402,7 @@ class zanodemodel extends model
*/
public function getListByHost($hostID, $orderBy = 'id_desc')
{
- $list = $this->dao->select('id, name, vnc, cpuCores, memory, diskSize, osName, status')->from(TABLE_ZAHOST)
+ $list = $this->dao->select('id, name, vnc, cpuCores, memory, diskSize, osName, status, heartbeat')->from(TABLE_ZAHOST)
->where('deleted')->eq(0)
->andWhere("parent")->eq($hostID)
->orderBy($orderBy)
diff --git a/module/zanode/view/browse.html.php b/module/zanode/view/browse.html.php
index 044ccb2a2b..6cf2808e59 100644
--- a/module/zanode/view/browse.html.php
+++ b/module/zanode/view/browse.html.php
@@ -95,7 +95,7 @@
common::printLink('zanode', 'getVNC', "id={$node->id}", " ", '_blank', "title='{$lang->zanode->getVNC}' class='btn " . (in_array($node->status ,array('running', 'launch')) ? '':'disabled') . "'", '');
common::printLink('zanode', 'createImage', "zanodeID={$node->id}", " ", '', "class='btn iframe createImage' title='{$lang->zanode->createImage}' data-width='50%'", '', true);
common::printIcon('zanode', 'edit', "id={$node->id}", $node, 'list');
- common::printLink('zanode', 'delete', "zanodeID={$node->id}", " ", '', "title='{$lang->zanode->destroy}' class='btn btn-primary' target='hiddenwin' onclick='if(confirm(\"{$lang->zanode->confirmDelete}\")==false) return false;'");
+ common::printLink('zanode', 'delete', "zanodeID={$node->id}", " ", '', "title='{$lang->zanode->destroy}' class='btn btn-primary' target='hiddenwin'");
common::printIcon('zanode', 'init', "hostID={$node->id}", $node, 'list', 'refresh', '', ' init', false, "data-placement='bottom'", $lang->zanode->init->title);
?>