提交 7a5bd910 authored 作者: yujiejie's avatar yujiejie

学生提交页面优化2.0

上级 c3447af9
......@@ -3288,23 +3288,23 @@ function buildDeployArtifactPanel() {
<div class="grid grid-cols-2 gap-4">
<div>
<label class="text-sm font-medium text-[#4E5969] block mb-2">API 地址</label>
<input class="input-field font-mono" placeholder="https://xxx.autodl.com/v1/chat/completions" value="` + escapeAutodlHtml(a.apiUrl || '') + `" oninput="setDeployArtifact('apiUrl', this.value)" ` + (locked ? 'disabled' : '') + `>
<input class="input-field font-mono ` + (locked ? 'bg-[#F2F3F5] cursor-not-allowed' : '') + `" placeholder="https://xxx.autodl.com/v1/chat/completions" value="` + escapeAutodlHtml(a.apiUrl || '') + `" oninput="setDeployArtifact('apiUrl', this.value)" ` + (locked ? 'disabled' : '') + `>
</div>
<div>
<label class="text-sm font-medium text-[#4E5969] block mb-2">API Key</label>
<input class="input-field font-mono" placeholder="sk-..." value="` + escapeAutodlHtml(a.apiKey || '') + `" oninput="setDeployArtifact('apiKey', this.value)" ` + (locked ? 'disabled' : '') + `>
<input class="input-field font-mono ` + (locked ? 'bg-[#F2F3F5] cursor-not-allowed' : '') + `" placeholder="sk-..." value="` + escapeAutodlHtml(a.apiKey || '') + `" oninput="setDeployArtifact('apiKey', this.value)" ` + (locked ? 'disabled' : '') + `>
</div>
<div>
<label class="text-sm font-medium text-[#4E5969] block mb-2">模型名称 <span class="text-rose-500">*</span></label>
<input class="input-field font-mono" placeholder="qwen3.5-4b" value="` + escapeAutodlHtml(a.modelName || '') + `" oninput="setDeployArtifact('modelName', this.value)" ` + (locked ? 'disabled' : '') + `>
<input class="input-field font-mono ` + (locked ? 'bg-[#F2F3F5] cursor-not-allowed' : '') + `" placeholder="qwen3.5-4b" value="` + escapeAutodlHtml(a.modelName || '') + `" oninput="setDeployArtifact('modelName', this.value)" ` + (locked ? 'disabled' : '') + `>
</div>
<div>
<label class="text-sm font-medium text-[#4E5969] block mb-2">请求路径</label>
<input class="input-field font-mono" placeholder="/v1/chat/completions" value="` + escapeAutodlHtml(a.apiPath || '') + `" oninput="setDeployArtifact('apiPath', this.value)" ` + (locked ? 'disabled' : '') + `>
<input class="input-field font-mono ` + (locked ? 'bg-[#F2F3F5] cursor-not-allowed' : '') + `" placeholder="/v1/chat/completions" value="` + escapeAutodlHtml(a.apiPath || '') + `" oninput="setDeployArtifact('apiPath', this.value)" ` + (locked ? 'disabled' : '') + `>
</div>
<div>
<label class="text-sm font-medium text-[#4E5969] block mb-2">端口 <span class="text-rose-500">*</span></label>
<input class="input-field font-mono" placeholder="8000" value="` + escapeAutodlHtml(a.port || '') + `" oninput="setDeployArtifact('port', this.value)" ` + (locked ? 'disabled' : '') + `>
<input class="input-field font-mono ` + (locked ? 'bg-[#F2F3F5] cursor-not-allowed' : '') + `" placeholder="8000" value="` + escapeAutodlHtml(a.port || '') + `" oninput="setDeployArtifact('port', this.value)" ` + (locked ? 'disabled' : '') + `>
</div>
</div>
<div class="flex gap-3">
......@@ -3331,11 +3331,11 @@ function buildDeployReportPanel() {
<p class="text-sm text-[#86909C] leading-relaxed">部署产物提交时可以同步提交实操报告,也可以先保存报告、后保存产物。</p>
<div>
<label class="text-sm font-medium text-[#4E5969] block mb-2">本次任务目标 <span class="text-rose-500">*</span></label>
<input class="input-field" placeholder="例如:完成 Qwen3.5-4B OpenAI 兼容 API 部署验收" value="` + escapeAutodlHtml(r.taskName || '') + `" oninput="setDeployReportField('taskName', this.value)" ` + (locked ? 'disabled' : '') + `>
<input class="input-field ` + (locked ? 'bg-[#F2F3F5] cursor-not-allowed' : '') + `" placeholder="例如:完成 Qwen3.5-4B OpenAI 兼容 API 部署验收" value="` + escapeAutodlHtml(r.taskName || '') + `" oninput="setDeployReportField('taskName', this.value)" ` + (locked ? 'disabled' : '') + `>
</div>
<div>
<label class="text-sm font-medium text-[#4E5969] block mb-2">部署过程 <span class="text-rose-500">*</span></label>
<textarea class="input-field min-h-[110px] resize-none" placeholder="描述环境检查、启动过程、遇到的问题和关键操作" oninput="setDeployReportField('process', this.value)" ` + (locked ? 'disabled' : '') + `>` + escapeAutodlHtml(r.process || '') + `</textarea>
<textarea class="input-field min-h-[110px] resize-none ` + (locked ? 'bg-[#F2F3F5] cursor-not-allowed' : '') + `" placeholder="描述环境检查、启动过程、遇到的问题和关键操作" oninput="setDeployReportField('process', this.value)" ` + (locked ? 'disabled' : '') + `>` + escapeAutodlHtml(r.process || '') + `</textarea>
</div>
<div>
<label class="text-sm font-medium text-[#4E5969] block mb-2">问题与解决</label>
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论