update
This commit is contained in:
parent
bcdfeb03a8
commit
6817cafbfa
|
|
@ -269,6 +269,15 @@ label.checkbox_label span {
|
|||
<ul id="db_li"></ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="checkbox_data">
|
||||
<div class="checkbox_item">
|
||||
<label class="checkbox_label">
|
||||
<input type="checkbox" id="plugin_All" checked>
|
||||
<span>插件</span>
|
||||
</label>
|
||||
<ul id="plugin_li"></ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="line mtb20" style="margin:20px 0 0 50px">
|
||||
<button class="btn btn-default btn-sm mr20 dataBack">上一步</button>
|
||||
|
|
|
|||
|
|
@ -952,6 +952,9 @@ def get_src_info(args):
|
|||
my_db_pos = mw.getServerDir() + '/mysql'
|
||||
conn = mw.M('databases').dbPos(my_db_pos, 'mysql')
|
||||
data['databases'] = conn.field('id,name,ps').order("id desc").select()
|
||||
|
||||
|
||||
data['plugin'] = ["webssh"]
|
||||
return data
|
||||
|
||||
|
||||
|
|
@ -1000,11 +1003,13 @@ def stepFour():
|
|||
|
||||
sites = args['sites']
|
||||
databases = args['databases']
|
||||
plugin = args['plugin']
|
||||
|
||||
data = getCfgData()
|
||||
args = {
|
||||
'sites': sites.strip(',').split(','),
|
||||
'databases': databases.strip(',').split(',')
|
||||
'databases': databases.strip(',').split(','),
|
||||
'plugin': plugin.strip(',').split(',')
|
||||
}
|
||||
api = classApi(data['url'], data['app_id'],data['app_secret'])
|
||||
return api.set_sync_info(args)
|
||||
|
|
|
|||
|
|
@ -187,6 +187,18 @@ function initStep3(){
|
|||
}
|
||||
$('#db_li').html(db_li);
|
||||
|
||||
|
||||
var plugin_li = '';
|
||||
for (var i = 0; i < pdata.plugin.length; i++) {
|
||||
plugin_li+='<li>\
|
||||
<label>\
|
||||
<input type="checkbox" data-id="'+i+'" id="plugin_'+pdata.plugin[i]+'" value="'+pdata.plugin[i]+'" name="plugin" checked="">\
|
||||
<span title="'+pdata.plugin[i]+'">'+pdata.plugin[i]+'</span>\
|
||||
</label>\
|
||||
</li>';
|
||||
}
|
||||
$('#plugin_li').html(plugin_li);
|
||||
|
||||
$('.psync_path').hide();
|
||||
$('.psync_data').show();
|
||||
}
|
||||
|
|
@ -242,7 +254,12 @@ function initStep4(){
|
|||
databases_checked+=$(this).val()+',';
|
||||
});
|
||||
|
||||
maPost('step_four',{sites:site_checked,databases:databases_checked}, function(rdata){
|
||||
var plugin_checked = '';
|
||||
$('input[name="plugin"]:checked').each(function(){
|
||||
plugin_checked+=$(this).val()+',';
|
||||
});
|
||||
|
||||
maPost('step_four',{sites:site_checked,databases:databases_checked,plugin:plugin_checked}, function(rdata){
|
||||
var rdata = $.parseJSON(rdata.data);
|
||||
selectProgress(4);
|
||||
|
||||
|
|
@ -318,6 +335,11 @@ function initStep(){
|
|||
$('#db_li input').prop('checked',ch);
|
||||
});
|
||||
|
||||
$('#plugin_All').on('click',function(){
|
||||
var ch = $(this).prop('checked');
|
||||
$('#plugin_li input').prop('checked',ch);
|
||||
});
|
||||
|
||||
$('.psync_migrate').on('click', '.okBtn', function(){
|
||||
$('.psync_migrate').hide();
|
||||
$('.psync_info').show();
|
||||
|
|
|
|||
Loading…
Reference in New Issue