提交 1c727c14 authored 作者: lihuihui's avatar lihuihui

修改bug

上级 42b35aae
...@@ -115,6 +115,9 @@ export default { ...@@ -115,6 +115,9 @@ export default {
remote: { remote: {
httpRequest: getAppList, httpRequest: getAppList,
params: { params: {
question_title: '',
question_tag: '',
question_content: '',
question_types: [1, 2, 3, 6], question_types: [1, 2, 3, 6],
permission: this.questionBank, permission: this.questionBank,
project_prefix: this.activeProject.tag, project_prefix: this.activeProject.tag,
......
...@@ -59,9 +59,13 @@ export default { ...@@ -59,9 +59,13 @@ export default {
category_name: this.treeParams.name || 'node' category_name: this.treeParams.name || 'node'
} }
if (this.treeParams.type === 'add') { if (this.treeParams.type === 'add') {
addQuestionCategory(data).then((res) => { res.code === 0 && init() }) addQuestionCategory(data).then(res => {
res.code === 0 && init()
})
} else { } else {
updateQuestionCategory(data.pid, { category_name: data.category_name }).then((res) => { res.code === 0 && init() }) updateQuestionCategory(data.pid, { category_name: data.category_name }).then(res => {
res.code === 0 && init()
})
} }
const _this = this const _this = this
function init() { function init() {
......
<template> <template>
<app-card> <app-card>
<div style="margin-bottom:25px;"> <div style="margin-bottom: 25px">
<span style="font-size: 14px;color: #606266;padding-right:12px;">题库范围:</span> <span style="font-size: 14px; color: #606266; padding-right: 12px">题库范围:</span>
<el-radio @change="refetchList" v-model="permission" :label="1">我的题库</el-radio> <el-radio @change="refetchList" v-model="permission" :label="1">我的题库</el-radio>
<el-radio @change="refetchList" v-model="permission" :label="2">公共题库</el-radio> <el-radio @change="refetchList" v-model="permission" :label="2">公共题库</el-radio>
</div> </div>
...@@ -113,6 +113,9 @@ export default { ...@@ -113,6 +113,9 @@ export default {
remote: { remote: {
httpRequest: getAppList, httpRequest: getAppList,
params: { params: {
question_title: '',
question_tag: '',
question_content: '',
permission: this.permission, permission: this.permission,
project_prefix: this.activeProject.tag, project_prefix: this.activeProject.tag,
question_category: '' question_category: ''
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论