|
@@ -1,21 +1,10 @@
|
|
|
<template>
|
|
|
|
|
|
- <el-dialog
|
|
|
- :visible.sync="dialogVisible"
|
|
|
- :close-on-click-modal="false"
|
|
|
- title="选择试题"
|
|
|
- width="60%"
|
|
|
- @close="handleClose"
|
|
|
- >
|
|
|
+ <el-dialog :visible.sync="dialogVisible" :close-on-click-modal="false" title="选择试题" width="60%" @close="handleClose">
|
|
|
|
|
|
<div class="app-container">
|
|
|
|
|
|
- <data-table
|
|
|
- ref="pagingTable"
|
|
|
- :options="options"
|
|
|
- :list-query="listQuery"
|
|
|
- @select-changed="handleSelected"
|
|
|
- >
|
|
|
+ <data-table ref="pagingTable" :options="options" :list-query="listQuery" @select-changed="handleSelected">
|
|
|
<template slot="filter-content">
|
|
|
|
|
|
<el-row>
|
|
@@ -23,9 +12,11 @@
|
|
|
|
|
|
<repo-select v-model="listQuery.params.repoId" :is-exam="true" />
|
|
|
|
|
|
- <el-input v-model="listQuery.params.content" placeholder="试题内容" style="width: 200px;" class="filter-item" />
|
|
|
+ <el-input v-model="listQuery.params.content" placeholder="试题内容" style="width: 200px;"
|
|
|
+ class="filter-item" />
|
|
|
|
|
|
- <el-button type="primary" class="filter-item" style="float: right" @click="handleConfirm">{{ selectedLabel }}</el-button>
|
|
|
+ <el-button type="primary" class="filter-item" style="float: right" @click="handleConfirm">{{
|
|
|
+ selectedLabel }}</el-button>
|
|
|
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -34,35 +25,20 @@
|
|
|
|
|
|
<template slot="data-columns">
|
|
|
|
|
|
- <el-table-column
|
|
|
- label="试题类型"
|
|
|
- align="center"
|
|
|
- width="100px"
|
|
|
- prop="quType_dictText"
|
|
|
- />
|
|
|
-
|
|
|
- <el-table-column
|
|
|
- label="试题内容"
|
|
|
- show-overflow-tooltip
|
|
|
- >
|
|
|
+ <el-table-column label="试题类型" align="center" width="100px" prop="quType_dictText" />
|
|
|
+
|
|
|
+ <el-table-column label="试题内容" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
- <router-link :to="{ name: 'UpdateQu', params:{ id: scope.row.id}}">
|
|
|
- {{ scope.row.contentText }}
|
|
|
- </router-link>
|
|
|
+ <a href="javascript:;" @click="funPush('UpdateQu', {id: scope.row.id})">{{ scope.row.contentText }}</a>
|
|
|
+ <!-- <router-link :to="{ name: 'UpdateQu', params:{ id: scope.row.id}}"> -->
|
|
|
+
|
|
|
+ <!-- </router-link> -->
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
- <el-table-column
|
|
|
- label="所属题库"
|
|
|
- align="center"
|
|
|
- prop="repoId_dictText"
|
|
|
- />
|
|
|
+ <el-table-column label="所属题库" align="center" prop="repoId_dictText" />
|
|
|
|
|
|
- <el-table-column
|
|
|
- label="级别"
|
|
|
- align="center"
|
|
|
- prop="level_dictText"
|
|
|
- />
|
|
|
+ <el-table-column label="级别" align="center" prop="level_dictText" />
|
|
|
|
|
|
</template>
|
|
|
|
|
@@ -168,6 +144,15 @@ export default {
|
|
|
this.$emit('update:dialogShow', false)
|
|
|
this.$emit('select', this.selectedList)
|
|
|
this.$refs.pagingTable.clearSelection()
|
|
|
+ },
|
|
|
+ funPush(name, params) {
|
|
|
+ this.$emit('update:dialogShow', false)
|
|
|
+ this.$emit('select', this.selectedList)
|
|
|
+ this.$refs.pagingTable.clearSelection()
|
|
|
+ this.$router.push({
|
|
|
+ name,
|
|
|
+ params
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -175,9 +160,7 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
|
-
|
|
|
- ::v-deep
|
|
|
- .el-dialog__body{
|
|
|
- padding: 0px;
|
|
|
- }
|
|
|
+::v-deep .el-dialog__body {
|
|
|
+ padding: 0px;
|
|
|
+}
|
|
|
</style>
|