|
|
@@ -240,6 +240,9 @@
|
|
|
<el-button plain size="small" type="primary">点击上传</el-button>
|
|
|
</el-upload>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="EAI课程">
|
|
|
+ <el-switch v-model="form.eaiLink" :disabled="switchDisabled" active-text="创建" inactive-text="不创建"/>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="Coder课程">
|
|
|
<el-switch v-model="form.coderLink" :disabled="switchDisabled" active-text="创建" inactive-text="不创建"/>
|
|
|
</el-form-item>
|
|
|
@@ -531,6 +534,7 @@ export default {
|
|
|
moocUrl: null,
|
|
|
fileList: [],
|
|
|
imageUrl: null,
|
|
|
+ eaiLink: false,
|
|
|
coderLink: false,
|
|
|
evalLink: false,
|
|
|
},
|
|
|
@@ -714,6 +718,7 @@ export default {
|
|
|
moocUrl: _this.form.moocUrl,
|
|
|
createdTime: new Date(),
|
|
|
price: Number(_this.form.price),
|
|
|
+ eaiId: _this.form.eaiLink ? -1 : null,
|
|
|
coderId: _this.form.coderLink ? -1 : null,
|
|
|
evalId: _this.form.evalLink ? -1 : null,
|
|
|
}).then(async (res) => {
|
|
|
@@ -849,8 +854,13 @@ export default {
|
|
|
fetchProblemData(page = 1) { // 按需获得Coder题目
|
|
|
this.$apis.retrievePageProblem(page, this.dialogProblemLimit, this.dialogProblemTypeStr, this.dialogProblemName)
|
|
|
.then(_res => {
|
|
|
- this.problemPageInfo = _res.data.page;
|
|
|
- this.problemList = _res.data.res;
|
|
|
+ if(_res.data === ""){
|
|
|
+ console.log("未找到相关题目");
|
|
|
+ }else{
|
|
|
+ this.problemPageInfo = _res.data.page;
|
|
|
+ this.problemList = _res.data.res;
|
|
|
+ }
|
|
|
+
|
|
|
}).catch(err => {
|
|
|
console.log(err);
|
|
|
});
|