diff --git a/plugins/mariadb/index.html b/plugins/mariadb/index.html index 24065d6e0..1ff31dc0b 100755 --- a/plugins/mariadb/index.html +++ b/plugins/mariadb/index.html @@ -2,7 +2,7 @@
\ + 同步数据源:\ + \ +
"; } + + var loadOpen = layer.open({ + type: 1, + title: '全量同步['+db+']', + area: '500px', + content:"| 日志 | \IO | \SQL | \ + '+signThead_th+'\状态 | \操作 | \ \ @@ -2255,22 +2296,76 @@ function masterOrSlaveConf(version=''){ // $(".table_slave_status_list").html(con); + + $(".btn_delete_slave").click(function(){ + var id = $(this).data('id'); + var v = rdata.data[id]; + if ('Connection_name' in v){ + deleteSlave(v['Connection_name']); + } else{ + deleteSlave(); + } + }); + $('.db_error').click(function(){ + var id = $(this).data('id'); + var info = rdata.data[id]; + console.log(info); + + var err_line = ""; + err_line +="
|---|---|
| IO错误 | \ +"+ (info['Last_IO_Error'] == '' ? '无':info['Last_IO_Error'])+" | \ +
| SQL错误 | \ +"+(info['Last_SQL_Error'] == '' ? '无':info['Last_SQL_Error'])+" | \ +
| 状态 | \ +"+(info['Slave_SQL_Running_State'] == '' ? '无':info['Slave_SQL_Running_State']) +" | \ +