|
|
|
@@ -315,15 +315,28 @@ |
|
|
|
</div> |
|
|
|
{{template "base/footer" .}} |
|
|
|
<script> |
|
|
|
function getParams(){ |
|
|
|
const params = new URLSearchParams(window.location.search) |
|
|
|
let jobType = !params.get('jobType')? '{{.i18n.Tr "admin.cloudbrain.all_task_types"}}' : params.get('jobType') |
|
|
|
let listType = !params.get('listType')? '{{.i18n.Tr "admin.cloudbrain.all_computing_resources"}}' : params.get('listType') |
|
|
|
let jobStatus = !params.get('jobStatus')? '{{.i18n.Tr "admin.cloudbrain.all_status"}}' : params.get('jobStatus').toUpperCase() |
|
|
|
const dropdownValueArray = [jobType,listType,jobStatus] |
|
|
|
$('#adminCloud .default.text ').each(function(index,e){ |
|
|
|
$(e).text(dropdownValueArray[index]) |
|
|
|
}) |
|
|
|
} |
|
|
|
getParams() |
|
|
|
import Vue from 'vue'; |
|
|
|
import enLocale from 'element-ui/lib/locale/lang/en' |
|
|
|
import zhLocale from 'element-ui/lib/locale/lang/zh-CN' |
|
|
|
import locale from 'element-ui/lib/locale' |
|
|
|
|
|
|
|
var text_langName = document.getElementById("langName").innerText |
|
|
|
if (text_langName == '简体中文'){ |
|
|
|
locale.use(zhLocale) |
|
|
|
} |
|
|
|
else if (text_langName == 'English'){ |
|
|
|
locale.use(enLocale) |
|
|
|
} |
|
|
|
|
|
|
|
function getParams(){ |
|
|
|
const params = new URLSearchParams(window.location.search) |
|
|
|
let jobType = !params.get('jobType')? '{{.i18n.Tr "admin.cloudbrain.all_task_types"}}' : params.get('jobType') |
|
|
|
let listType = !params.get('listType')? '{{.i18n.Tr "admin.cloudbrain.all_computing_resources"}}' : params.get('listType') |
|
|
|
let jobStatus = !params.get('jobStatus')? '{{.i18n.Tr "admin.cloudbrain.all_status"}}' : params.get('jobStatus').toUpperCase() |
|
|
|
const dropdownValueArray = [jobType,listType,jobStatus] |
|
|
|
$('#adminCloud .default.text ').each(function(index,e){ |
|
|
|
$(e).text(dropdownValueArray[index]) |
|
|
|
}) |
|
|
|
} |
|
|
|
getParams() |
|
|
|
</script> |