sc
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
</el-row>
|
||||
</el-form>
|
||||
<div style="display: flex; padding: 10px; border: 1px solid #eee; height: calc(100vh - 80px)">
|
||||
<div style="width: 350px; border-right: 1px solid #eee">
|
||||
<div style="width: 300px; border-right: 1px solid #eee">
|
||||
<div style="display: flex; justify-content: space-between; padding-right: 20px">
|
||||
<div style="font-size: 18px; font-weight: bold">密卷</div>
|
||||
<el-button type="primary" link @click="addMjItem">新增</el-button>
|
||||
@@ -47,7 +47,12 @@
|
||||
<div style="margin-left: 10px; margin-right: 10px"> 题目数:{{ tableList.length }} </div>
|
||||
<el-button type="primary" @click="addMjDetail">新增密卷试题</el-button>
|
||||
</div>
|
||||
<el-table v-loading="loading" :data="tableList" style="margin-top: 20px">
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="tableList"
|
||||
style="margin-top: 10px"
|
||||
max-height="calc(100vh - 280px)"
|
||||
>
|
||||
<el-table-column type="index" width="55" align="center" />
|
||||
<el-table-column label="题目" align="left" prop="question" min-width="140" />
|
||||
<el-table-column label="选项" align="left" min-width="140">
|
||||
@@ -165,17 +170,18 @@ function addMjItem() {
|
||||
})
|
||||
}
|
||||
function getMjTitle(idx) {
|
||||
const cjObj = {
|
||||
1001: '小车',
|
||||
1002: '摩托车'
|
||||
}
|
||||
const kmObj = {
|
||||
1: '科一',
|
||||
4: '科四'
|
||||
}
|
||||
return `${cjObj[queryParams.value.carTypeId]}${kmObj[queryParams.value.subject]}考前密卷 第${
|
||||
idx + 1
|
||||
}套`
|
||||
// const cjObj = {
|
||||
// 1001: '小车',
|
||||
// 1002: '摩托车'
|
||||
// }
|
||||
// const kmObj = {
|
||||
// 1: '科一',
|
||||
// 4: '科四'
|
||||
// }
|
||||
// return `${cjObj[queryParams.value.carTypeId]}${kmObj[queryParams.value.subject]}考前密卷 第${
|
||||
// idx + 1
|
||||
// }套`
|
||||
return `考前密卷 第${idx + 1}套`
|
||||
}
|
||||
function removeMj(item) {
|
||||
message
|
||||
|
||||
Reference in New Issue
Block a user