|
|
|
@ -44,12 +44,14 @@ let erdatalist = yxdatalist.filter(it=>{ |
|
|
|
|
|
|
|
|
|
function selectsource(input) { |
|
|
|
|
let sourcenames = []; |
|
|
|
|
let sourcetypes = []; |
|
|
|
|
yidatalist.forEach(it=>{ |
|
|
|
|
if((getItem('listtype')=="group"?it.group||it.type:it.type)==input && sourcenames.indexOf(it.name)==-1){ |
|
|
|
|
if(Juconfig[runMode+'sourcename'] == it.name){ |
|
|
|
|
it.name = '‘‘’’<span style="color:red" title="'+it.name+'">'+it.name+'</span>'; |
|
|
|
|
} |
|
|
|
|
sourcenames.push(it.name); |
|
|
|
|
sourcetypes.push(it.type); |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
return $(sourcenames,3,"选择"+input+"主页源").select((runMode,sourcename,cfgfile,Juconfig) => { |
|
|
|
@ -92,7 +94,7 @@ function selectsource(input) { |
|
|
|
|
writeFile(cfgfile, JSON.stringify(Juconfig)); |
|
|
|
|
refreshPage(false); |
|
|
|
|
return 'toast://'+runMode+' 主页源已设置为:' + input; |
|
|
|
|
}, input, sourcename, cfgfile, Juconfig) |
|
|
|
|
}, sourcetypes[sourcenames.indexOf(input)], sourcename, cfgfile, Juconfig) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function rulePage(datatype,ispage) { |
|
|
|
|