|
|
@@ -407,8 +407,25 @@ export default { |
|
|
}, |
|
|
}, |
|
|
modifyModelStatus(id, name, rowKey,isPrivate) { |
|
|
modifyModelStatus(id, name, rowKey,isPrivate) { |
|
|
let data = {'id':id,'isPrivate':isPrivate,'repo':this.repo}; |
|
|
let data = {'id':id,'isPrivate':isPrivate,'repo':this.repo}; |
|
|
modifyModelStatus(data); |
|
|
|
|
|
this.getModelList(); |
|
|
|
|
|
|
|
|
modifyModelStatus(data).then(res => { |
|
|
|
|
|
res = res.data; |
|
|
|
|
|
if (res && res.code == '0') { |
|
|
|
|
|
this.getModelList(); |
|
|
|
|
|
} else { |
|
|
|
|
|
this.$message({ |
|
|
|
|
|
type: 'error', |
|
|
|
|
|
message: this.$t('modelManage.infoModificationFailed'), |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
console.log(err); |
|
|
|
|
|
this.$message({ |
|
|
|
|
|
type: 'error', |
|
|
|
|
|
message: this.$t('modelManage.infoModificationFailed'), |
|
|
|
|
|
}); |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
deleteModel(id, name, rowKey) { |
|
|
deleteModel(id, name, rowKey) { |
|
|
let row = { cName: name, id: id, rowKey: rowKey }; |
|
|
let row = { cName: name, id: id, rowKey: rowKey }; |
|
|
|