Merge branch 'zenops_46_tanghucheng' into zenops_46
This commit is contained in:
@@ -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 = '团队';
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -95,7 +95,7 @@
|
||||
common::printLink('zanode', 'getVNC', "id={$node->id}", "<i class='icon icon-desktop'></i> ", '_blank', "title='{$lang->zanode->getVNC}' class='btn " . (in_array($node->status ,array('running', 'launch')) ? '':'disabled') . "'", '');
|
||||
common::printLink('zanode', 'createImage', "zanodeID={$node->id}", "<i class='icon icon-export'></i> ", '', "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}", "<i class='icon icon-trash'></i> ", '', "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}", "<i class='icon icon-trash'></i> ", '', "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);
|
||||
?>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user