|
|
|
@@ -104,7 +104,7 @@ |
|
|
|
<el-table-column label="操作" min-width="18%" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div class="space-around"> |
|
|
|
<a :style="{visibility:!scope.row.Children ? 'visible':'hidden'}" :class="{'disabled':!scope.row.IsCanOper}" @click="showcreateVue(scope.row.Name,scope.row.Version)">创建新版本</a> |
|
|
|
<a :style="{visibility:!scope.row.Children ? 'visible':'hidden'}" :class="{'disabled':!scope.row.IsCanOper}" @click="showcreateVue(scope.row.Name,scope.row.Version,scope.row.Label)">创建新版本</a> |
|
|
|
<a :href="loadhref+scope.row.ID" :class="{'disabled':!scope.row.IsCanOper}">下载</a> |
|
|
|
<a :class="{'disabled':!scope.row.IsCanOper}" @click="deleteModel(scope.row.ID,scope.row.cName)">删除</a> |
|
|
|
</div> |
|
|
|
@@ -194,7 +194,7 @@ export default { |
|
|
|
this.params.page = val |
|
|
|
this.getModelList() |
|
|
|
}, |
|
|
|
showcreateVue(name,version){ |
|
|
|
showcreateVue(name,version,label){ |
|
|
|
$('.ui.modal.second') |
|
|
|
.modal({ |
|
|
|
centered: false, |
|
|
|
@@ -206,6 +206,7 @@ export default { |
|
|
|
$('.ui.dimmer').css({"background-color":"rgb(136, 136, 136,0.7)"}) |
|
|
|
$("#job-name").empty() |
|
|
|
$('#name').val(name) |
|
|
|
$('#label').val(label) |
|
|
|
let version_string = versionAdd(version) |
|
|
|
$('#version').val(version_string) |
|
|
|
loadTrainList() |
|
|
|
@@ -253,31 +254,13 @@ export default { |
|
|
|
$("#verionname").removeClass("error") |
|
|
|
} |
|
|
|
return true |
|
|
|
|
|
|
|
}, |
|
|
|
// getFirstChildLabel(cName){ |
|
|
|
// this.$axios.get(this.url+'show_model_child_api',{params:{ |
|
|
|
// name:cName |
|
|
|
// }}).then((res)=>{ |
|
|
|
// console.log(res) |
|
|
|
// let initLabel = $("input[name='Label']").val() |
|
|
|
// let addLabel=res.data[0].Label + ' ' + initLabel |
|
|
|
// $("input[name='Label']").val(addLabel) |
|
|
|
// this.data = $("#formId").serialize() |
|
|
|
// }) |
|
|
|
// }, |
|
|
|
submit(){ |
|
|
|
let context = this |
|
|
|
let flag= this.check() |
|
|
|
if(flag){ |
|
|
|
let cName = $("input[name='Name']").val() |
|
|
|
let version = $("input[name='Version']").val() |
|
|
|
// if(!(version==='0.0.1')){ |
|
|
|
// context.getFirstChildLabel(cName) |
|
|
|
// }else{ |
|
|
|
// context.data = $("#formId").serialize() |
|
|
|
// } |
|
|
|
// console.log(context.data) |
|
|
|
let data = $("#formId").serialize() |
|
|
|
$("#mask").css({"display":"block","z-index":"9999"}) |
|
|
|
$.ajax({ |
|
|
|
|