Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-qa
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-qa
Commits
577e9175
提交
577e9175
authored
3月 01, 2022
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
2e2e967a
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
3 行增加
和
17 行删除
+3
-17
AddChidren.vue
src/modules/question/components/AddChidren.vue
+0
-1
Detail.vue
src/modules/question/components/Detail.vue
+0
-7
QTypeCheckbox.vue
src/modules/question/components/QTypeCheckbox.vue
+0
-1
QTypeSituation.vue
src/modules/question/components/QTypeSituation.vue
+0
-2
QuestionsChidren.vue
src/modules/question/components/QuestionsChidren.vue
+3
-6
没有找到文件。
src/modules/question/components/AddChidren.vue
浏览文件 @
577e9175
...
...
@@ -170,7 +170,6 @@ export default {
},
methods
:
{
handleSelectionChange
(
data
)
{
console
.
log
(
data
,
'datas'
)
this
.
checkedList
=
data
.
reduce
((
a
,
b
)
=>
{
const
data
=
{}
data
.
question_title
=
b
.
question_title
...
...
src/modules/question/components/Detail.vue
浏览文件 @
577e9175
...
...
@@ -163,14 +163,8 @@ export default {
},
methods
:
{
submitForm
(
formName
)
{
// if (parseInt(this.ruleForm.question_type) !== 3) {
// const isValue = this.$refs.options.datas.find(item => item.option === '')
// if (!isValue) this.ruleForm.question_options = this.$refs.options.datas
// }
console
.
log
(
this
.
ruleForm
.
question_options
)
this
.
$refs
[
formName
].
validate
(
valid
=>
{
if
(
valid
)
{
// console.log(JSON.stringify(this.ruleForm))
if
(
this
.
$route
.
query
.
id
)
{
updateQuestion
(
this
.
$route
.
query
.
id
,
this
.
ruleForm
).
then
(
res
=>
{
this
.
$router
.
push
({
...
...
@@ -239,7 +233,6 @@ export default {
},
// 知识点搜索
remoteMethod
(
query
)
{
console
.
log
(
query
)
searchTag
({
title
:
query
}).
then
(
res
=>
{
this
.
pointOptions
=
res
.
data
.
data
})
...
...
src/modules/question/components/QTypeCheckbox.vue
浏览文件 @
577e9175
...
...
@@ -55,7 +55,6 @@ export default {
this
.
checkboxValue
.
forEach
(
item
=>
{
this
.
option
[
item
].
checked
=
true
})
console
.
log
(
this
.
option
)
}
}
}
...
...
src/modules/question/components/QTypeSituation.vue
浏览文件 @
577e9175
...
...
@@ -240,7 +240,6 @@ export default {
},
// 知识点搜索
remoteMethod
(
query
)
{
console
.
log
(
query
)
searchTag
({
title
:
query
}).
then
(
res
=>
{
this
.
pointOptions
=
res
.
data
.
data
})
...
...
@@ -249,7 +248,6 @@ export default {
questionList
(
data
)
{
this
.
chidrenList
.
push
(
data
)
this
.
drawer
=
false
console
.
log
(
this
.
chidrenList
,
'list'
)
},
haveQuestion
(
data
)
{
data
.
forEach
(
item
=>
{
...
...
src/modules/question/components/QuestionsChidren.vue
浏览文件 @
577e9175
<
template
>
<div>
<el-form
:disabled=
"!!($route.query.type === 'view')"
:model=
"data"
ref=
"ruleForm"
label-width=
"100px"
class=
"demo-ruleForm"
>
<div
v-for=
"(ruleForm, index) in
data
List"
:key=
"index"
>
<div
v-for=
"(ruleForm, index) in
chidren
List"
:key=
"index"
>
<el-divider
content-position=
"center"
class=
"divider"
>
子题目
{{
index
+
1
}}
</el-divider>
<el-form-item
style=
"text-align: right;"
v-if=
"!!!($route.query.type === 'view')"
>
<el-button
type=
"primary"
v-if=
"!!!($route.query.type === 'edit')"
@
click=
"$emit('cacheChidren')"
>
保存子题目
</el-button>
...
...
@@ -32,7 +32,7 @@
<el-form-item
label=
"子题目解析"
prop=
"question_analysis"
>
<v-editor
:disabled=
"!!($route.query.type === 'view')"
v-model=
"ruleForm.question_analysis"
></v-editor>
</el-form-item>
<el-form-item
style=
"text-align: center;"
v-if=
"index + 1 ==
data
List.length"
>
<el-form-item
style=
"text-align: center;"
v-if=
"index + 1 ==
chidren
List.length"
>
<el-button
v-if=
"!!!($route.query.type === 'view')"
type=
"primary"
@
click=
"submitForm"
>
保存
</el-button>
</el-form-item>
</div>
...
...
@@ -58,7 +58,6 @@ export default {
data
()
{
return
{
ruleForm
:
{},
dataList
:
[],
rules
:
{
child_question_type
:
[{
required
:
true
,
message
:
' '
,
trigger
:
'blur'
}],
question_difficulty
:
[{
required
:
true
,
message
:
' '
,
trigger
:
'blur'
}],
...
...
@@ -70,12 +69,10 @@ export default {
}
},
mounted
()
{
this
.
dataList
=
this
.
chidrenList
console
.
log
(
this
.
chidrenList
,
'chi'
)
},
methods
:
{
removeChidren
(
n
)
{
this
.
data
List
.
splice
(
n
,
1
)
this
.
chidren
List
.
splice
(
n
,
1
)
},
submitForm
()
{
this
.
$emit
(
'submitForm'
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论