mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-16 06:16:44 +08:00
提交修改
This commit is contained in:
@@ -13,11 +13,7 @@
|
||||
</el-cascader>
|
||||
</el-col> -->
|
||||
<el-col :span="4">
|
||||
<el-select
|
||||
v-model="params.type"
|
||||
clearable
|
||||
placeholder="类型"
|
||||
>
|
||||
<el-select v-model="params.type" clearable placeholder="类型" >
|
||||
<el-option
|
||||
v-for="item in optionsList"
|
||||
:key="item.value"
|
||||
@@ -33,33 +29,20 @@
|
||||
clearable></el-input>
|
||||
</el-col>
|
||||
<el-col :span="14">
|
||||
<el-button
|
||||
|
||||
type="primary"
|
||||
@click="loadData(1)"
|
||||
style="margin-left: 20px"
|
||||
icon="el-icon-search"
|
||||
>搜索</el-button>
|
||||
<el-button
|
||||
icon="el-icon-refresh-right"
|
||||
type="primary" @click="reset">
|
||||
重置
|
||||
</el-button>
|
||||
<el-button type="primary" @click="loadData(1)" style="margin-left: 20px" icon="el-icon-search" >搜索</el-button>
|
||||
<el-button icon="el-icon-refresh-right" type="primary" @click="reset"> 重置 </el-button>
|
||||
<el-button type="primary" @click="addQuestion(1)" style="margin-left: 10px" icon="el-icon-plus"> 添加 </el-button>
|
||||
<div style="display: inline-block;margin-left: 10px;">
|
||||
|
||||
<file-upload
|
||||
dir="files"
|
||||
<file-upload
|
||||
dir="files"
|
||||
text="导入"
|
||||
:loading="true"
|
||||
size="medium"
|
||||
url="/xboe/m/exam/question/import"
|
||||
size="medium"
|
||||
url="/xboe/m/exam/question/import"
|
||||
:isShowTip="false"
|
||||
@success="uploadFile"
|
||||
@remove="removeFile"
|
||||
>
|
||||
|
||||
|
||||
@remove="removeFile" >
|
||||
</file-upload>
|
||||
</div>
|
||||
</el-col>
|
||||
@@ -96,7 +79,7 @@
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<div v-if="tableData.length > 0" style="text-align: center;margin-top:70px">
|
||||
<el-pagination
|
||||
<el-pagination
|
||||
background
|
||||
@size-change="handleSizeChange"
|
||||
@current-change="handleCurrentChange"
|
||||
@@ -154,15 +137,12 @@
|
||||
<el-checkbox
|
||||
v-else
|
||||
v-model="question.optionList[i].isAnswer"
|
||||
style="width: 80px; margin-right: 10px"
|
||||
>正确</el-checkbox>
|
||||
<el-button type="text" @click="removeOption(i)"
|
||||
>删除</el-button>
|
||||
style="width: 80px; margin-right: 10px">正确</el-checkbox>
|
||||
<el-button type="text" @click="removeOption(i)">删除</el-button>
|
||||
</el-form-item>
|
||||
</div>
|
||||
<center>
|
||||
<el-button type="text" @click="addOption"
|
||||
>添加选项</el-button>
|
||||
<el-button type="text" @click="addOption">添加选项</el-button>
|
||||
</center>
|
||||
<el-form-item label="难度">
|
||||
<el-select
|
||||
@@ -205,15 +185,10 @@
|
||||
label-width="80px"
|
||||
:model="question"
|
||||
ref="questionForm"
|
||||
:rules="questionRules"
|
||||
>
|
||||
<el-form-item label="资源归属">
|
||||
<el-cascader
|
||||
v-model="ownership"
|
||||
:options="resOwnerListMap"
|
||||
:props="resourceProps"
|
||||
></el-cascader>
|
||||
</el-form-item>
|
||||
:rules="questionRules">
|
||||
<!-- <el-form-item label="资源归属">
|
||||
<el-cascader v-model="ownership" :options="resOwnerListMap" :props="resourceProps" ></el-cascader>
|
||||
</el-form-item> -->
|
||||
<el-form-item label="题干" prop="title"
|
||||
><el-input
|
||||
type="textarea"
|
||||
@@ -471,7 +446,7 @@ export default {
|
||||
const result = res.result;
|
||||
this.tableData = result.list;
|
||||
this.count = result.count;
|
||||
}
|
||||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
this.$message({ type: "error", message: "查询数据错误:" + err });
|
||||
|
||||
Reference in New Issue
Block a user