Commit 691d89e9 authored by zhengke's avatar zhengke

修改

parent f51e46c6
...@@ -20,7 +20,7 @@ export default { ...@@ -20,7 +20,7 @@ export default {
</script> </script>
<style> <style>
@import url("//at.alicdn.com/t/font_2077629_4texnaxzfra.css"); @import url("//at.alicdn.com/t/font_2077629_ou0hmd4zmr8.css");
.q-scrollarea__thumb { .q-scrollarea__thumb {
z-index: 999999 !important; z-index: 999999 !important;
} }
......
...@@ -25,6 +25,17 @@ ...@@ -25,6 +25,17 @@
background-color: rgb(238, 238, 239); background-color: rgb(238, 238, 239);
} }
.Exam_PaperName {
width: 300px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.Exam_PaperName i {
font-size: 18px;
}
</style> </style>
<template> <template>
<div class="page-body"> <div class="page-body">
...@@ -37,19 +48,37 @@ ...@@ -37,19 +48,37 @@
</div> </div>
<div class="page-option"> <div class="page-option">
<q-btn color="accent" size="sm" class="q-mr-md" label="新增文件夹" @click="showExamFolder(null)" /> <q-btn color="accent" size="sm" class="q-mr-md" label="新增文件夹" @click="showExamFolder(null)" />
<q-btn color="accent" size="sm" class="q-mr-md" label="新增试卷" @click="CreatePaper()" /> <q-btn-dropdown flat size="xs" color="dark" label="新增试卷" style="margin-left:10px;">
<q-list>
<q-item clickable v-close-popup @click="CreatePaper()">
<q-item-section>
<q-item-label>手动组卷</q-item-label>
</q-item-section>
</q-item>
<q-item clickable v-close-popup @click="goExameEdit(null)">
<q-item-section>
<q-item-label>自动组卷</q-item-label>
</q-item-section>
</q-item>
</q-list>
</q-btn-dropdown>
</div> </div>
</div> </div>
<div class="page-content"> <div class="page-content">
<el-table :data="dataList" v-loading="loading" :expand-row-keys="expandKeys" :default-expand-all="true" <el-table :data="dataList" v-loading="loading" :expand-row-keys="expandKeys" :default-expand-all="true"
class="tree-tab-chapter" style="width: 100%;margin-bottom: 20px;" row-key="PaperId" ref="examPaperTab" class="tree-tab-chapter" style="width: 100%;margin-bottom: 20px;" row-key="PaperId" ref="examPaperTab"
@row-click="rowsClick" :tree-props="{ children: 'ChildList', hasChildren: 'hasChildren' }"> @row-click="rowsClick" :tree-props="{ children: 'ChildList', hasChildren: 'hasChildren' }">
<el-table-column prop="PaperName" label="文件夹/试卷" width="450"> <el-table-column prop="PaperName" label="文件夹/试卷" width="400">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.PaperName }} <div class="Exam_PaperName">
{{ scope.row.PaperName }}
<i v-if="scope.row.PaperType==1" title="文件夹" class="iconfont icon-wenjianjia"></i>
<i v-if="scope.row.PaperType==2" title="试卷" class="iconfont icon-icon-test1"></i>
<q-tooltip v-if="scope.row.PaperName.length>10" :offset="[10, 10]">{{ scope.row.PaperName }}</q-tooltip>
</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="QuestionCount" label="题量" width="100"> <el-table-column prop="QuestionCount" label="题量">
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="scope.row.PaperType==1"> <template v-if="scope.row.PaperType==1">
--- ---
...@@ -59,7 +88,7 @@ ...@@ -59,7 +88,7 @@
</template> </template>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="DifficultyTypeName" label="难度" width="200"> <el-table-column prop="DifficultyTypeName" label="难度">
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="scope.row.PaperType==1"> <template v-if="scope.row.PaperType==1">
--- ---
...@@ -69,7 +98,7 @@ ...@@ -69,7 +98,7 @@
</template> </template>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="PublishCount" label="发放次数" width="200"> <el-table-column prop="PublishCount" label="发放次数">
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="scope.row.PaperType==1"> <template v-if="scope.row.PaperType==1">
--- ---
...@@ -79,12 +108,12 @@ ...@@ -79,12 +108,12 @@
</template> </template>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="CreateByName" label="创建人" width="200"> <el-table-column prop="CreateByName" label="创建人">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.CreateByName }} {{ scope.row.CreateByName }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="CreateTimeStr" label="创建时间" width="200"> <el-table-column prop="CreateTimeStr" label="创建时间">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.CreateTimeStr }} {{ scope.row.CreateTimeStr }}
</template> </template>
...@@ -175,8 +204,12 @@ ...@@ -175,8 +204,12 @@
}, },
//点击编辑 跳转 //点击编辑 跳转
goExameEdit(item) { goExameEdit(item) {
let PaperId = 0;
if(item){
PaperId = item.PaperId
}
this.OpenNewUrl('/exam/examEdit', { this.OpenNewUrl('/exam/examEdit', {
Id: item.PaperId Id: PaperId
}) })
}, },
//新增修改文件夹 //新增修改文件夹
......
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