Commit aec16fab authored by 黄奎's avatar 黄奎

页面修改

parent 0cfb94bd
...@@ -207,7 +207,7 @@ ...@@ -207,7 +207,7 @@
</div> </div>
<div class="Exam-right f1"> <div class="Exam-right f1">
<div class="Left-btn"> <div class="Left-btn">
          <div>  <div>
<template v-for="(fItem,fIndex) in firstTypeList"> <template v-for="(fItem,fIndex) in firstTypeList">
<q-btn :key="fIndex" color="accent" :id="commonIndex==fIndex?'btn1':''" size="sm" :label="fItem.Name" <q-btn :key="fIndex" color="accent" :id="commonIndex==fIndex?'btn1':''" size="sm" :label="fItem.Name"
style="margin-left:5px;" @click="onItemClick(fItem,fIndex)" /> style="margin-left:5px;" @click="onItemClick(fItem,fIndex)" />
...@@ -223,10 +223,9 @@ ...@@ -223,10 +223,9 @@
</q-list> </q-list>
</q-btn-dropdown> </q-btn-dropdown>
</div> </div>
          <div>  <div>
            
<q-btn color="accent" size="sm" @click="isShowQuestion=true" class="q-mr-md" label="题库选题"  /> <q-btn color="accent" size="sm" @click="isShowQuestion=true" class="q-mr-md" label="题库选题"  />
          </div>  </div>
</div> </div>
<div class="row wrap" v-if="ChooseItem" style="padding:20px;"> <div class="row wrap" v-if="ChooseItem" style="padding:20px;">
<div class="edit_stem"> <div class="edit_stem">
...@@ -400,6 +399,12 @@ ...@@ -400,6 +399,12 @@
this.GetPaperInfo() this.GetPaperInfo()
}, },
methods: { methods: {
//获取子组件内容
getChildData(obj) {
if (obj) {
this.ChooseItem.QuestionContent = JSON.stringify(obj);
}
},
//获取题型列表 //获取题型列表
getQuestionType() { getQuestionType() {
queryQuestionTypeList({}).then(res => { queryQuestionTypeList({}).then(res => {
......
...@@ -51,17 +51,32 @@ ...@@ -51,17 +51,32 @@
</el-table-column> </el-table-column>
<el-table-column prop="QuestionCount" label="题量" width="100"> <el-table-column prop="QuestionCount" label="题量" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.QuestionCount }} <template v-if="scope.row.PaperType==1">
---
</template>
<template v-if="scope.row.PaperType==2">
{{ scope.row.QuestionCount }}
</template>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="DifficultyTypeName" label="难度" width="200"> <el-table-column prop="DifficultyTypeName" label="难度" width="200">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.DifficultyTypeName }} <template v-if="scope.row.PaperType==1">
---
</template>
<template v-if="scope.row.PaperType==2">
{{ scope.row.DifficultyTypeName }}
</template>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="PublishCount" label="发放次数" width="200"> <el-table-column prop="PublishCount" label="发放次数" width="200">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.PublishCount }} <template v-if="scope.row.PaperType==1">
---
</template>
<template v-if="scope.row.PaperType==2">
{{ scope.row.PublishCount }}
</template>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="CreateByName" label="创建人" width="200"> <el-table-column prop="CreateByName" label="创建人" width="200">
...@@ -91,7 +106,8 @@ ...@@ -91,7 +106,8 @@
<q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="pageCount" <q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="pageCount"
:input="true" @input="changePage" /> :input="true" @input="changePage" />
</div> </div>
<paperfolderForm v-if="isShowExamFolder" :saveObj="examObj"  @close="closeExamForm"  @success="refreshPage"></paperfolderForm> <paperfolderForm v-if="isShowExamFolder" :saveObj="examObj"  @close="closeExamForm"  @success="refreshPage">
</paperfolderForm>
</div> </div>
</template> </template>
<script> <script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment