mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-13 04:46:44 +08:00
fix:试题管理操作不便
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<el-container>
|
||||
<el-header style="height:70px;padding: 12px 20px 10px 20px;" >
|
||||
<el-row>
|
||||
<!-- <el-col :span="4">
|
||||
<el-col :span="4">
|
||||
<el-cascader
|
||||
:options="resOwnerListMap"
|
||||
v-model="params.ownership"
|
||||
@@ -11,7 +11,7 @@
|
||||
clearable
|
||||
:props="resourceProps">
|
||||
</el-cascader>
|
||||
</el-col> -->
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-select v-model="params.type" clearable placeholder="类型" >
|
||||
<el-option v-for="item in optionsList" :key="item.value" :label="item.label" :value="item.value"> </el-option>
|
||||
@@ -47,13 +47,13 @@
|
||||
<span class="previewStyle" @click="viewTopic(scope.row)">{{ scope.row.title }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column prop="resSysId" label="资源归属" width="240px" show-overflow-tooltip>
|
||||
<el-table-column prop="resSysId" label="资源归属" width="240px" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
<span>{{resOwnerName(scope.row.resOwner1)}}</span>
|
||||
<span v-if="scope.row.resOwner2 != ''">/{{resOwnerName(scope.row.resOwner2)}}</span>
|
||||
<span v-if="scope.row.resOwner3 != ''">/{{resOwnerName(scope.row.resOwner3)}}</span>
|
||||
</template>
|
||||
</el-table-column> -->
|
||||
</el-table-column>
|
||||
<el-table-column prop="type" label="类型" width="70px">
|
||||
<template slot-scope="scope">
|
||||
{{ scope.row.type == 1 ? "单选" : scope.row.type == 2 ? "多选" : scope.row.type == 3 ? "判断题" : "" }}
|
||||
@@ -92,9 +92,9 @@
|
||||
<div style="padding-top: 10px; overflow: auto">
|
||||
<div>
|
||||
<el-form size="mini" label-width="80px" :model="question" ref="questionForm" :rules="questionRules">
|
||||
<!-- <el-form-item label="资源归属">
|
||||
<el-form-item label="资源归属">
|
||||
<el-cascader v-model="ownership" :options="resOwnerListMap" :props="resourceProps"></el-cascader>
|
||||
</el-form-item> -->
|
||||
</el-form-item>
|
||||
<el-form-item label="题干" prop="title">
|
||||
<el-col :span="15">
|
||||
<el-input class="inputclass" type="textarea" :rows="5" maxlength="500" show-word-limit v-model="question.title" placeholder="请输入题干"></el-input>
|
||||
@@ -180,9 +180,9 @@
|
||||
<div style="padding-top: 10px; overflow: auto">
|
||||
<div>
|
||||
<el-form size="mini" label-width="80px" :model="question" ref="questionForm" :rules="questionRules">
|
||||
<!-- <el-form-item label="资源归属">
|
||||
<el-form-item label="资源归属">
|
||||
<el-cascader v-model="ownership" :options="resOwnerListMap" :props="resourceProps" ></el-cascader>
|
||||
</el-form-item> -->
|
||||
</el-form-item>
|
||||
<el-form-item label="题干" prop="title">
|
||||
<el-col :span="15">
|
||||
<el-input class="inputclass" type="textarea" :rows="5" maxlength="500" show-word-limit v-model="question.title" placeholder="请输入题干"></el-input>
|
||||
@@ -278,7 +278,7 @@
|
||||
<div>
|
||||
<div>【判断题】{{question.title}}({{question.defaultScore}}分)</div>
|
||||
<div v-if="question.images" style="padding-left: 40px;"><el-image :src="imageBaseUrl+question.images" style="width: 60px;height: 50px;"></el-image> </div>
|
||||
</div>
|
||||
</div>
|
||||
<el-radio disabled :value="question.answer" :label="true" style="margin-right: 0px;"> </el-radio><span style="margin-right: 30px;">正确</span>
|
||||
<el-radio disabled :value="question.answer" :label="false" style="margin-right: 0px;"> </el-radio><span>错误</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user