|
|
@ -100,7 +100,7 @@ |
|
|
|
<el-table-column prop="knowledgePoints" label="知识点" width="140" align="center"></el-table-column> |
|
|
|
<el-table-column prop="knowledgePoints" label="知识点" width="140" align="center"></el-table-column> |
|
|
|
<el-table-column prop="useNum" label="使用次数" width="100" align="center"></el-table-column> |
|
|
|
<el-table-column prop="useNum" label="使用次数" width="100" align="center"></el-table-column> |
|
|
|
<el-table-column prop="createTime" label="上传时间" width="140" align="center"></el-table-column> |
|
|
|
<el-table-column prop="createTime" label="上传时间" width="140" align="center"></el-table-column> |
|
|
|
<el-table-column label="操作" width="170" align="center"> |
|
|
|
<el-table-column label="操作" width="200" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button type="text" @click="show(scope.row)">查看</el-button> |
|
|
|
<el-button type="text" @click="show(scope.row)">查看</el-button> |
|
|
|
<el-button type="text" @click="edit(scope.row)">修改</el-button> |
|
|
|
<el-button type="text" @click="edit(scope.row)">修改</el-button> |
|
|
@ -151,52 +151,6 @@ |
|
|
|
<el-button type="primary" @click="uploadSure">确 定</el-button> |
|
|
|
<el-button type="primary" @click="uploadSure">确 定</el-button> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
<el-dialog title="批量取消共享" :visible.sync="cancelShareVisible" width="40%" @close="closeCancelShare" :close-on-click-modal="false"> |
|
|
|
|
|
|
|
<el-table |
|
|
|
|
|
|
|
:data="globalData" |
|
|
|
|
|
|
|
max-height="400" |
|
|
|
|
|
|
|
ref="table" |
|
|
|
|
|
|
|
row-key="id" |
|
|
|
|
|
|
|
class="table" |
|
|
|
|
|
|
|
stripe |
|
|
|
|
|
|
|
header-align="center" |
|
|
|
|
|
|
|
@selection-change="handleGlobalSelectionChange" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<el-table-column |
|
|
|
|
|
|
|
type="selection" |
|
|
|
|
|
|
|
width="55" |
|
|
|
|
|
|
|
align="center" |
|
|
|
|
|
|
|
:reserve-selection="true" |
|
|
|
|
|
|
|
></el-table-column> |
|
|
|
|
|
|
|
<el-table-column type="index" width="100" label="序号" align="center"> |
|
|
|
|
|
|
|
<template |
|
|
|
|
|
|
|
slot-scope="scope" |
|
|
|
|
|
|
|
>{{scope.$index + (page - 1) * pageSize + 1}}</template> |
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="questionStem" label="题干" align="center"> |
|
|
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
|
|
<div v-html="scope.row.questionStem"></div> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="name" label="试题类型" width="100" align="center"></el-table-column> |
|
|
|
|
|
|
|
</el-table> |
|
|
|
|
|
|
|
<div class="pagination"> |
|
|
|
|
|
|
|
<el-pagination |
|
|
|
|
|
|
|
background |
|
|
|
|
|
|
|
@current-change="handleGlobalCurrentChange" |
|
|
|
|
|
|
|
:current-page="pageGlobal" |
|
|
|
|
|
|
|
:page-size="pageSizeGlobal" |
|
|
|
|
|
|
|
layout="total,prev, pager, next" |
|
|
|
|
|
|
|
:total="totalGlobal" |
|
|
|
|
|
|
|
></el-pagination> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
|
|
|
|
<el-button @click="cancelShareVisible = false">取消</el-button> |
|
|
|
|
|
|
|
<el-button type="primary" @click="cancelShareSubmit">确定</el-button> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<script> |
|
|
|
<script> |
|
|
@ -334,10 +288,7 @@ export default { |
|
|
|
type: 'info' |
|
|
|
type: 'info' |
|
|
|
}) |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
.then(() => { |
|
|
|
let data = { |
|
|
|
this.$post(`${this.api.cancelByMySharing}?ids=${row.id}`).then(res => { |
|
|
|
ids: [row.id] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.$post(this.api.cancelByMySharing,data).then(res => { |
|
|
|
|
|
|
|
this.$message.success('取消共享成功'); |
|
|
|
this.$message.success('取消共享成功'); |
|
|
|
this.getData() |
|
|
|
this.getData() |
|
|
|
}).catch(res => {}); |
|
|
|
}).catch(res => {}); |
|
|
@ -364,13 +315,15 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
this.$post(this.api.batchSave,data).then(res => { |
|
|
|
this.$post(this.api.batchSave,data).then(res => { |
|
|
|
this.multipleSelection = []; |
|
|
|
this.multipleSelection = []; |
|
|
|
this.$message.success('共享成功'); |
|
|
|
this.$message.success('共享成功') |
|
|
|
this.getData() |
|
|
|
this.getData() |
|
|
|
}).catch(res => {}); |
|
|
|
}).catch(res => { |
|
|
|
|
|
|
|
this.getData() |
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
.catch(() => {}); |
|
|
|
.catch(() => {}); |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
this.$message.error('请先选择数据!'); |
|
|
|
this.$message.error('请先选择数据') |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
cancelShareBatch() { |
|
|
|
cancelShareBatch() { |
|
|
|