parent
87b03ed8b6
commit
016dd0a9ab
4 changed files with 253 additions and 115 deletions
@ -0,0 +1,80 @@ |
||||
<template> |
||||
<el-dialog title="提示" :visible.sync="listVisible" width="800px" :close-on-click-modal="false"> |
||||
<el-alert title="以下试题在试卷中疑似出现重复,是否要继续发布!" type="warning" effect="dark" :closable="false"> |
||||
</el-alert> |
||||
<el-table class="m-t-10" :data="list" stripe header-align="center" row-key="id"> |
||||
<el-table-column prop="name" label="大题名称" align="center" width="90"></el-table-column> |
||||
<el-table-column prop="name" label="题号" align="center" width="60"></el-table-column> |
||||
<el-table-column prop="stem" label="题干" align="center" min-width="120" show-overflow-tooltip></el-table-column> |
||||
<el-table-column label="操作" align="center" width="240"> |
||||
<template slot-scope="scope"> |
||||
<el-button type="text">详情</el-button> |
||||
<el-button type="text">移除</el-button> |
||||
<el-button type="text">替换</el-button> |
||||
</template> |
||||
</el-table-column> |
||||
</el-table> |
||||
|
||||
<span slot="footer" class="dialog-footer"> |
||||
<el-button type="primary" @click="check">检查一下</el-button> |
||||
<el-button @click="submit">继续发布</el-button> |
||||
</span> |
||||
</el-dialog> |
||||
</template> |
||||
<script> |
||||
import Setting from '@/setting' |
||||
import Util from '@/libs/util' |
||||
import _ from 'lodash' |
||||
export default { |
||||
props: ['visible', 'list'], |
||||
data () { |
||||
return { |
||||
listVisible: false, |
||||
// list: [], |
||||
submiting: false, |
||||
}; |
||||
}, |
||||
watch: { |
||||
visible () { |
||||
this.listVisible = this.visible |
||||
this.visible && this.init() |
||||
} |
||||
}, |
||||
mounted () { |
||||
|
||||
}, |
||||
methods: { |
||||
init () { |
||||
|
||||
}, |
||||
// 获取模板列表 |
||||
async getList () { |
||||
try { |
||||
const res = await this.$post(this.api.examPaperTemplateList, { |
||||
pageNum: this.page, |
||||
pageSize: this.pageSize, |
||||
...this.filter |
||||
}) |
||||
this.list = res.pageList.records |
||||
this.total = res.pageList.total |
||||
} catch (e) { } |
||||
}, |
||||
// 检查一下 |
||||
async check () { |
||||
this.listVisible = false |
||||
}, |
||||
// 提交 |
||||
async submit () { |
||||
if (this.submiting) return false |
||||
this.submiting = true |
||||
this.$parent.saveTestPaper() |
||||
}, |
||||
// 弹框关闭回调 |
||||
closeDia () { |
||||
this.$emit('update:visible', false) |
||||
} |
||||
} |
||||
}; |
||||
</script> |
||||
|
||||
<style lang="scss" scoped></style> |
Loading…
Reference in new issue