tools
This commit is contained in:
@@ -131,7 +131,7 @@
|
||||
temp = $('#main_show')
|
||||
temp.empty()
|
||||
temp.append(String.raw`{% include 'tools/blast.html' %}`)
|
||||
up_file_blast()
|
||||
blast_run()
|
||||
form.render();
|
||||
|
||||
}
|
||||
@@ -194,11 +194,17 @@
|
||||
temp = $('#main_show')
|
||||
temp.empty()
|
||||
temp.append(String.raw`{% include 'tools/fastqc.html' %}`)
|
||||
up_file("select_file", {})
|
||||
fastqc_run()
|
||||
form.render();
|
||||
}
|
||||
|
||||
|
||||
// blast
|
||||
function blast_run() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
// gen to fa
|
||||
function gen_to_fa() {
|
||||
layui.use(['upload'], function () {
|
||||
@@ -464,6 +470,39 @@
|
||||
|
||||
}
|
||||
|
||||
// fastqc
|
||||
function fastqc_run() {
|
||||
|
||||
layui.use(['upload'], function () {
|
||||
var $ = layui.jquery
|
||||
, layer = layui.layer;
|
||||
upload.render({
|
||||
elem: '#select_fastqc'
|
||||
, url: url_up + '/tools/' + "fastqc"
|
||||
, auto: false
|
||||
, accept: 'file'
|
||||
, data: {
|
||||
csrfmiddlewaretoken: '{{ csrf_token }}',
|
||||
format: document.getElementById("format").value,
|
||||
}
|
||||
, before: function (obj) { //obj参数包含的信息,跟 choose回调完全一致,可参见上文。
|
||||
layer.load(1); //上传loading
|
||||
}
|
||||
, bindAction: '#fastqc_run'
|
||||
, done: function (res, index) {
|
||||
layer.closeAll('loading'); //关闭loading
|
||||
ab = '<a href= "' + url_up + '/chart/down?file_id=' + res.id + "&file_downlode_type=7z&ee=1" + '">' + ' <button type="button" class="layui-btn">downlode</button></a>'
|
||||
$("#down").append(ab)
|
||||
}
|
||||
, error: function (index, upload) {
|
||||
layer.closeAll('loading'); //关闭loading
|
||||
}
|
||||
})
|
||||
;
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user