Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.6.1^2
zouap 3 years ago
parent
commit
b999fb3069
2 changed files with 1 additions and 12 deletions
  1. +0
    -10
      templates/repo/modelmanage/index.tmpl
  2. +1
    -2
      web_src/js/components/Model.vue

+ 0
- 10
templates/repo/modelmanage/index.tmpl View File

@@ -330,15 +330,5 @@
$("#choice_Engine").removeClass('disabled');
}
}
let isChange = false;
const inputEl = document.getElementById("JobId");
inputEl.addEventListener("change", function(ev) {
console.log(ev.target.value);
isChange = true;
});
window.onbeforeunload = function(e) {
return !isChange && null;
};

</script>


+ 1
- 2
web_src/js/components/Model.vue View File

@@ -218,6 +218,7 @@ export default {
$('input[name="Name"]').removeAttr('readonly')
$('#choice_model').dropdown('clear')
$('#choice_version').dropdown('clear')
$('#choice_Engine').dropdown('clear')
$('.ui.dimmer').css({"background-color":""})
$('.ui.error.message').text()
$('.ui.error.message').css('display','none')
@@ -278,8 +279,6 @@ export default {
if(initModel==='0'){
location.reload()
}
console.log("clear form....");
$("#formId").form("clear")
},
error: function(xhr){
// 隐藏 loading


Loading…
Cancel
Save