多语言+拓展包拖拽上传
This commit is contained in:
@@ -1363,7 +1363,13 @@
|
||||
|
||||
<el-divider style="margin: 12px 0;"></el-divider>
|
||||
|
||||
<div v-if="false" style="padding:10px; background:#fff; border:1px solid #dcdfe6; border-radius:0px;">
|
||||
<<<<<<< HEAD
|
||||
<div @dragover.prevent @drop.prevent="handleLightweightExtensionFolderDrop($event)"
|
||||
style="padding:10px; background:#fff; border:1px dashed #409EFF; border-radius:0px;">
|
||||
=======
|
||||
<div @dragover.prevent @drop.prevent="handleLightweightExtensionFolderDrop($event)"
|
||||
style="padding:10px; background:#fff; border:1px dashed #409EFF; border-radius:0px;">
|
||||
>>>>>>> 272d13b41 (多语言+拓展包拖拽上传)
|
||||
<div style="display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px;">
|
||||
<el-tooltip content="上传已跑通过的代码和测试数据;执行通过自然语言触发。" placement="top">
|
||||
<h4 style="margin:0; color:#303133; cursor:help;">拓展分析阶段</h4>
|
||||
@@ -1422,10 +1428,6 @@
|
||||
</el-input>
|
||||
</div>
|
||||
<div style="display:flex; gap:6px; margin-top:9px; align-items:center; justify-content:space-between; flex-wrap:nowrap;">
|
||||
<div @dragover.prevent @drop.prevent="handleLightweightExtensionFolderDrop($event)"
|
||||
style="flex:1;border:1px dashed #409EFF;padding:8px;font-size:11px;color:#606266;background:#f8fbff;margin-right:8px;">
|
||||
拖入拓展包到此自动填充
|
||||
</div>
|
||||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
@@ -1786,7 +1788,7 @@
|
||||
</div>
|
||||
<!-- lightWeightExtensionTest:start -->
|
||||
<div id="lightweight-extension-test-drop-zone"
|
||||
style="margin-top:8px;border:1px dashed #409EFF;padding:10px;font-size:12px;color:#606266;background:#f8fbff;"
|
||||
style="display:none;margin-top:8px;border:1px dashed #409EFF;padding:10px;font-size:12px;color:#606266;background:#f8fbff;"
|
||||
@dragover.prevent
|
||||
@drop.prevent="handleLightweightExtensionFolderDrop($event)">
|
||||
<div style="font-weight:600;color:#303133;">拖入固定结构拓展包</div>
|
||||
|
||||
@@ -2267,7 +2267,7 @@
|
||||
:file-list="uploadedFiles"
|
||||
:show-file-list="false">
|
||||
<el-button type="info" size="small" style="display:flex;align-items:center;gap:4px;">
|
||||
<el-icon><upload-filled /></el-icon><span>Upload Files</span>
|
||||
<el-icon><upload-filled /></el-icon><span>{{ uploadBtnText }}</span>
|
||||
<span v-if="uploadedFiles && uploadedFiles.length" style="font-size:11px;color:#c6e2ff;margin-left:2px;">({{ uploadedFiles.length }})</span>
|
||||
</el-button>
|
||||
</el-upload>
|
||||
@@ -7574,6 +7574,9 @@ RNA-seq KEGG/fgsea 会优先使用物种级 KEGG gene set;没有物种级缓
|
||||
if (!elLocale.value) {
|
||||
elLocale.value = (typeof zhCn !== "undefined") ? zhCn : (typeof en !== "undefined" ? en : null);
|
||||
}
|
||||
var uploadBtnText = Vue.computed(function() {
|
||||
return currentLang.value === "en" ? "Select Files" : "选择文件";
|
||||
});
|
||||
var I18N_EN = window.__I18N_EN__ || {};
|
||||
function t(key) {
|
||||
if (!key) return "";
|
||||
@@ -7588,7 +7591,7 @@ RNA-seq KEGG/fgsea 会优先使用物种级 KEGG gene set;没有物种级缓
|
||||
}
|
||||
function switchLang(lang) {
|
||||
currentLang.value = lang;
|
||||
elLocale.value = lang === "zh" ? zhCn : en;
|
||||
elLocale.value = (lang === "zh" ? (typeof zhCn !== "undefined" ? zhCn : elLocale.value) : (typeof en !== "undefined" ? en : elLocale.value));
|
||||
window.__CROPAI_LANG__ = lang;
|
||||
window.t = t;
|
||||
window.tp = tp;
|
||||
@@ -23720,6 +23723,7 @@ compare: [[flesh, peel]]`;
|
||||
currentLang,
|
||||
elLocale,
|
||||
switchLang,
|
||||
uploadBtnText,
|
||||
t,
|
||||
tp
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user