@@ -19,5 +19,6 @@ func ToFineTuneJobShow(cloudbrain *models.Cloudbrain) *api.FinetuneJobShow { | |||||
CreatedUnix: int64(cloudbrain.CreatedUnix), | CreatedUnix: int64(cloudbrain.CreatedUnix), | ||||
JobCategory: cloudbrain.FineTuneCategory, | JobCategory: cloudbrain.FineTuneCategory, | ||||
DeployStatus: deployStatus, | DeployStatus: deployStatus, | ||||
Cleared: cloudbrain.Cleared, | |||||
} | } | ||||
} | } |
@@ -10,4 +10,5 @@ type FinetuneJobShow struct { | |||||
CreatedUnix int64 `json:"created_unix"` | CreatedUnix int64 `json:"created_unix"` | ||||
JobCategory int `json:"job_category"` | JobCategory int `json:"job_category"` | ||||
DeployStatus string `json:"deploy_status"` | DeployStatus string `json:"deploy_status"` | ||||
Cleared bool `json:"cleared"` | |||||
} | } |
@@ -52,7 +52,7 @@ | |||||
<div class="row-title"></div> | <div class="row-title"></div> | ||||
<div class="row-content" style="padding-top:6px;"> | <div class="row-content" style="padding-top:6px;"> | ||||
<el-button type="primary" class="btn confirm-btn" size="default" :disabled="alreadyMsgBoxShow" | <el-button type="primary" class="btn confirm-btn" size="default" :disabled="alreadyMsgBoxShow" | ||||
@click="submitClick" :loading="loading"> | |||||
@click="repoCheck" :loading="loading"> | |||||
提 交</el-button> | 提 交</el-button> | ||||
<el-button @click="cancel" class="btn" size="default">取 消</el-button> | <el-button @click="cancel" class="btn" size="default">取 消</el-button> | ||||
</div> | </div> | ||||
@@ -108,7 +108,26 @@ export default { | |||||
}, | }, | ||||
components: { TaskName, ModelBaseDatasetSelect, ResourceSpecification, RunParameters, LoadingMask }, | components: { TaskName, ModelBaseDatasetSelect, ResourceSpecification, RunParameters, LoadingMask }, | ||||
methods: { | methods: { | ||||
submitClick() { | |||||
repoCheck() { | |||||
this.loading = true; | |||||
getCheckRepo().then(res => { | |||||
this.loading = false; | |||||
res = res.data; | |||||
if (res.code == 0) { | |||||
this.datasetId = res.message; | |||||
this.submitCheck(); | |||||
} else { | |||||
this.$message({ | |||||
type: 'error', | |||||
message: res.message, | |||||
}); | |||||
} | |||||
}).catch(err => { | |||||
this.loading = false; | |||||
console.log(err); | |||||
}); | |||||
}, | |||||
submitCheck() { | |||||
const r1 = this.$refs.taskNameRef.check(); | const r1 = this.$refs.taskNameRef.check(); | ||||
const r2 = this.$refs.modelBaseDatasetSelectRef.check(); | const r2 = this.$refs.modelBaseDatasetSelectRef.check(); | ||||
const r3 = this.$refs.resourceSpecificationRef.check(); | const r3 = this.$refs.resourceSpecificationRef.check(); | ||||
@@ -135,7 +154,6 @@ export default { | |||||
if (datasetTab == 1) { // 本地上传 | if (datasetTab == 1) { // 本地上传 | ||||
this.loading = true; | this.loading = true; | ||||
this.$refs.modelBaseDatasetSelectRef.localUpload().then(res => { | this.$refs.modelBaseDatasetSelectRef.localUpload().then(res => { | ||||
console.log(res); | |||||
if (res) { | if (res) { | ||||
if (res.status == '1') { | if (res.status == '1') { | ||||
this.loading = false; | this.loading = false; | ||||
@@ -243,19 +261,6 @@ export default { | |||||
const uname = metaEl[0].getAttribute('content-ext'); | const uname = metaEl[0].getAttribute('content-ext'); | ||||
this.userName = uname; | this.userName = uname; | ||||
} | } | ||||
getCheckRepo().then(res => { | |||||
res = res.data; | |||||
if (res.code == 0) { | |||||
this.datasetId = res.message; | |||||
} else { | |||||
this.$message({ | |||||
type: 'error', | |||||
message: res.message, | |||||
}); | |||||
} | |||||
}).catch(err => { | |||||
console.log(err); | |||||
}); | |||||
getPointAccountInfo().then(res => { | getPointAccountInfo().then(res => { | ||||
const data = res.data; | const data = res.data; | ||||
this.pointShow = data.cloudBrainPaySwitch ? true : false; | this.pointShow = data.cloudBrainPaySwitch ? true : false; | ||||
@@ -177,8 +177,8 @@ export default { | |||||
taskJob.canStopTrain = ['RUNNING', 'WAITING'].includes(taskJob.status); | taskJob.canStopTrain = ['RUNNING', 'WAITING'].includes(taskJob.status); | ||||
taskJob.canDelete = ['STOPPED', 'FAILED', 'START_FAILED', 'KILLED', 'COMPLETED', 'SUCCEEDED', 'CREATE_FAILED'].includes(taskJob.status) | taskJob.canDelete = ['STOPPED', 'FAILED', 'START_FAILED', 'KILLED', 'COMPLETED', 'SUCCEEDED', 'CREATE_FAILED'].includes(taskJob.status) | ||||
&& ['', 'STOP', 'FAILED'].includes(taskJob.deploy_status); | && ['', 'STOP', 'FAILED'].includes(taskJob.deploy_status); | ||||
taskJob.canDeploy = ['SUCCEEDED', 'COMPLETED'].includes(taskJob.status) && !['BUILDING', 'WAITING', 'DEPLOYING', 'SUCCEEDED', 'STOP', 'FAILED'].includes(taskJob.deploy_status); | |||||
taskJob.canReDeploy = ['SUCCEEDED', 'COMPLETED'].includes(taskJob.status) && ['STOP'].includes(taskJob.deploy_status); | |||||
taskJob.canDeploy = !taskJob.cleared && ['SUCCEEDED', 'COMPLETED'].includes(taskJob.status) && !['BUILDING', 'WAITING', 'DEPLOYING', 'SUCCEEDED', 'STOP', 'FAILED'].includes(taskJob.deploy_status); | |||||
taskJob.canReDeploy = !taskJob.cleared && ['SUCCEEDED', 'COMPLETED'].includes(taskJob.status) && ['STOP'].includes(taskJob.deploy_status); | |||||
taskJob.canStopDeploy = ['SUCCEEDED', 'COMPLETED'].includes(taskJob.status) && ['DEPLOYING', 'SUCCEEDED'].includes(taskJob.deploy_status); | taskJob.canStopDeploy = ['SUCCEEDED', 'COMPLETED'].includes(taskJob.status) && ['DEPLOYING', 'SUCCEEDED'].includes(taskJob.deploy_status); | ||||
taskJob.canInference = ['SUCCEEDED', 'COMPLETED'].includes(taskJob.status) && ['SUCCEEDED'].includes(taskJob.deploy_status); | taskJob.canInference = ['SUCCEEDED', 'COMPLETED'].includes(taskJob.status) && ['SUCCEEDED'].includes(taskJob.deploy_status); | ||||
}, | }, | ||||
@@ -269,7 +269,7 @@ export default { | |||||
type: 'error', | type: 'error', | ||||
message: '操作失败', | message: '操作失败', | ||||
}); | }); | ||||
}) | |||||
}) | |||||
}).catch(() => { }); | }).catch(() => { }); | ||||
}, | }, | ||||
deploy(taskJob) { | deploy(taskJob) { | ||||
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》