|
|
@@ -106,7 +106,7 @@ |
|
|
|
<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,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> |
|
|
|
<a :class="{'disabled':!scope.row.IsCanDelete}" @click="deleteModel(scope.row.ID,scope.row.cName)">删除</a> |
|
|
|
</div> |
|
|
|
|
|
|
|
</template> |
|
|
@@ -263,8 +263,10 @@ export default { |
|
|
|
let cName = $("input[name='Name']").val() |
|
|
|
let version = $("input[name='Version']").val() |
|
|
|
let data = $("#formId").serialize() |
|
|
|
const initModel = $("input[name='initModel']").val() |
|
|
|
let url_href = version === '0.0.1' ? context.url_create_newModel : context.url_create_newVersion |
|
|
|
$("#mask").css({"display":"block","z-index":"9999"}) |
|
|
|
|
|
|
|
$.ajax({ |
|
|
|
url:url_href, |
|
|
|
type:'POST', |
|
|
@@ -273,6 +275,9 @@ export default { |
|
|
|
// context.loadrefresh1(row) |
|
|
|
context.getModelList() |
|
|
|
$('.ui.modal.second').modal('hide') |
|
|
|
if(initModel==='0'){ |
|
|
|
location.reload() |
|
|
|
} |
|
|
|
}, |
|
|
|
error: function(xhr){ |
|
|
|
// 隐藏 loading |
|
|
|