Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Q
qualityTesting_adminHome
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
tobacco
qualityTesting_adminHome
Commits
a8fe9f60
提交
a8fe9f60
authored
3月 15, 2023
作者:
wangjialong209
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
细节修改
上级
835cc2d7
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
68 行增加
和
46 行删除
+68
-46
index.vue
src/views/student/area_breed/index.vue
+1
-1
TableMoudel.vue
.../student/examination_questions/components/TableMoudel.vue
+1
-1
index.vue
src/views/student/examination_questions/detail/index.vue
+58
-36
index.vue
src/views/student/examination_questions/list/index.vue
+5
-5
index.vue
src/views/student/personnel/index.vue
+2
-2
index.vue
src/views/student/test_results/detail/index.vue
+1
-1
没有找到文件。
src/views/student/area_breed/index.vue
浏览文件 @
a8fe9f60
...
...
@@ -22,7 +22,7 @@
</el-table-column>
<el-table-column
prop=
"name"
label=
"烟草产地"
>
<template
slot-scope=
"scope"
>
<div
v-for=
"(item, index) in scope.row.tobacco_breed_place"
:key=
"index"
>
<div
v-for=
"(item, index) in scope.row.tobacco_breed_place"
:key=
"index"
>
{{
item
.
area
}}
.
{{
item
.
place_of_production
}}
;
</div>
</
template
>
...
...
src/views/student/examination_questions/components/TableMoudel.vue
浏览文件 @
a8fe9f60
...
...
@@ -98,7 +98,7 @@
<td>
得分
</td>
<td
style=
"width: 150px;"
>
<div
class=
"select_container"
>
<el-input
placeholder=
"请输入得分"
v-model=
"table_info.fraction"
type=
"number"
:min=
"
3
"
<el-input
placeholder=
"请输入得分"
v-model=
"table_info.fraction"
type=
"number"
:min=
"
1
"
:disabled=
"table_info.examination_question_detail_id != null && table_info.examination_question_detail_id != ''"
>
</el-input>
</div>
...
...
src/views/student/examination_questions/detail/index.vue
浏览文件 @
a8fe9f60
...
...
@@ -54,14 +54,13 @@
<el-dialog
:title=
"is_updata_type == 'add' ? '新增' : '修改'"
:visible
.
sync=
"is_dialogVisible"
width=
"60%"
:before-close=
"handleClose"
>
<div>
<table-moudel
v-if=
"is_dialogVisible && Object.keys(province_data).length == 3"
ref=
"detail_info"
:table_data=
"detailed_information"
:position_datas=
"position_data"
:province_datas=
"province_data"
:tobacco_all_lists=
"tobacco_all_lists"
:tobacco_grades_all_lists=
"tobacco_grades_all_lists"
:is_updata_type=
"is_updata_type"
:examination_questions_all_lists=
"examination_questions_all_list"
></table-moudel>
<table-moudel
v-if=
"is_dialogVisible && province_data != {}"
ref=
"detail_info"
:table_data=
"detailed_information"
:position_datas=
"position_data"
:province_datas=
"province_data"
:tobacco_all_lists=
"tobacco_all_lists"
:tobacco_grades_all_lists=
"tobacco_grades_all_lists"
:is_updata_type=
"is_updata_type"
:examination_questions_all_lists=
"examination_questions_all_list"
:key=
"new Date().getTime()"
></table-moudel>
<div
v-else
style=
"text-align: center;"
>
<p><i
class=
"el-icon-loading"
></i></p>
<p>
加载中...
</p>
<p>
加载中...
,请关闭弹框重新打开
</p>
</div>
</div>
<span
slot=
"footer"
class=
"dialog-footer"
>
...
...
@@ -93,12 +92,12 @@ import { get_examination_questions_detail, get_province_list, get_tobacco_all_in
import
{
exportText
}
from
'@/utils/tool'
;
const
standard_template
=
{
area
:
"南方"
,
fraction
:
3
,
fraction
:
1
,
province_id
:
"70000"
,
breed_name
:
"中烟100"
,
grades_code
:
"C2F"
,
explain_in_detail
:
"
fasfas
"
,
image
:
"
/
"
,
explain_in_detail
:
""
,
image
:
""
,
examination_questions_id
:
null
,
examination_question_detail_id
:
null
,
//关联试题id
}
...
...
@@ -307,13 +306,14 @@ export default {
}
/* { name_is_value: true } 获取汉字值的列表 */
get_province_list
({
area
:
val
}).
then
(
res
=>
{
if
(
res
.
length
)
{
// this.province_list = removeNodeInTree(res);
this
.
province_data
[
val
]
=
removeNodeInTree
(
res
);
}
else
{
// this.province_list = [];
this
.
province_data
[
val
]
=
[];
}
this
.
province_data
[
val
]
=
removeNodeInTree
(
res
);
// if (res.length) {
// // this.province_list = removeNodeInTree(res);
// } else {
// // this.province_list = [];
// this.province_data[val] = [];
// }
})
},
//获取全部烟草等级
...
...
@@ -332,16 +332,29 @@ export default {
//新增信息
addInformation
()
{
this
.
is_updata_type
=
'add'
;
this
.
detailed_information
=
{
...
standard_template
};
this
.
detailed_information
[
'question_no'
]
=
this
.
table_list
.
length
+
1
;
//获取当前试题配置图片
get_image_path
(
this
.
examination_questions_id
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
detailed_information
[
'image'
]
=
res
.
message
||
'/'
;
this
.
is_dialogVisible
=
true
;
}
})
console
.
log
(
'省市区数据'
);
console
.
log
(
this
.
province_data
);
if
(
Object
.
keys
(
this
.
province_data
).
length
==
3
)
{
this
.
is_updata_type
=
'add'
;
this
.
detailed_information
=
{
...
standard_template
};
this
.
detailed_information
[
'question_no'
]
=
this
.
table_list
.
length
+
1
;
//获取当前试题配置图片
get_image_path
(
this
.
examination_questions_id
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
detailed_information
[
'image'
]
=
res
.
message
||
'/'
;
this
.
is_dialogVisible
=
true
;
}
})
}
else
{
const
h
=
this
.
$createElement
;
this
.
$notify
({
title
:
'提示'
,
// message: h('i', { style: 'color: teal' }, '这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案'),
message
:
'数据加载中,请稍后'
,
duration
:
1000
,
});
}
},
//修改信息
updateInformation
(
index
,
item
)
{
...
...
@@ -350,18 +363,27 @@ export default {
console
.
log
(
'item单条信息'
);
console
.
log
(
item
);
//获取详情
let
{
id
,
area
,
fraction
,
province_id
,
breed_name
,
grades_code
,
explain_in_detail
,
image
,
examination_questions_id
,
examination_question_detail_id
}
=
{
...
item
};
this
.
detailed_information
=
{
id
,
area
,
fraction
,
province_id
,
breed_name
,
grades_code
,
explain_in_detail
,
image
};
/* examination_questions_id, examination_question_detail_id */
if
(
item
.
quote
)
{
this
.
detailed_information
[
'examination_questions_id'
]
=
item
.
quote
.
examination_questions_id
;
this
.
detailed_information
[
'examination_question_detail_id'
]
=
item
.
quote
.
id
;
if
(
Object
.
keys
(
this
.
province_data
).
length
==
3
)
{
let
{
id
,
area
,
fraction
,
province_id
,
breed_name
,
grades_code
,
explain_in_detail
,
image
,
examination_questions_id
,
examination_question_detail_id
}
=
{
...
item
};
this
.
detailed_information
=
{
id
,
area
,
fraction
,
province_id
,
breed_name
,
grades_code
,
explain_in_detail
,
image
};
if
(
item
.
quote
)
{
this
.
detailed_information
[
'examination_questions_id'
]
=
item
.
quote
.
examination_questions_id
;
this
.
detailed_information
[
'examination_question_detail_id'
]
=
item
.
quote
.
id
;
}
else
{
this
.
detailed_information
[
'examination_questions_id'
]
=
null
;
this
.
detailed_information
[
'examination_question_detail_id'
]
=
null
;
}
this
.
detailed_information
[
'question_no'
]
=
index
+
1
;
this
.
is_dialogVisible
=
true
;
}
else
{
this
.
detailed_information
[
'examination_questions_id'
]
=
null
;
this
.
detailed_information
[
'examination_question_detail_id'
]
=
null
;
const
h
=
this
.
$createElement
;
this
.
$notify
({
title
:
'提示'
,
// message: h('i', { style: 'color: teal' }, '这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案这是提示文案'),
message
:
'数据加载中,请稍后'
,
duration
:
1000
,
});
}
this
.
detailed_information
[
'question_no'
]
=
index
+
1
;
this
.
is_dialogVisible
=
true
;
},
//删除
deleteInformation
(
item
)
{
...
...
src/views/student/examination_questions/list/index.vue
浏览文件 @
a8fe9f60
...
...
@@ -56,7 +56,7 @@
<!--
<el-button
v-if=
"scope.row.status == '1'"
size=
"mini"
type=
"text"
style=
"color: #000;"
@
click=
"examinationQuestionsPublish(scope.row)"
title=
"试题发布"
>
发布
</el-button>
<el-button
v-if=
"scope.row.status != '6'"
size=
"mini"
type=
"text"
style=
"color: #F56C6C;"
@
click=
"deleteInformation(scope.row)"
>
停用
</el-button>
-->
@
click=
"deleteInformation(scope.row)"
>
停用
</el-button>
-->
<el-popover
placement=
"right"
width=
"160"
>
<div>
...
...
@@ -198,14 +198,14 @@ import TableHead from '@/components/TableHead/index';
import
{
get_examination_questions_list
,
add_examination_questions
,
updata_examination_questions
,
create_answer_card
,
examination_questions_copy
,
examination_questions_publish
,
delete_examination_questions
,
get_examination_questions_all
,
get_student_all
,
examination_reservation
,
examination_batch_reservation
,
updata_examination_questions_status
}
from
'@/api/student'
;
import
{
exportText
}
from
'@/utils/tool'
;
const
standard_template
=
{
title
:
"
河南把烟测试2
"
,
title
:
""
,
type
:
"把烟"
,
opening_tip
:
"
1.考生按照省级承办机构公布的报名流程进行网。
"
,
opening_tip
:
" "
,
begin_date
:
""
,
end_date
:
""
,
duration
:
"
24
0"
,
duration
:
"
6
0"
,
examiners_max
:
100
,
remarks
:
"
a
"
remarks
:
""
}
export
default
{
data
()
{
...
...
src/views/student/personnel/index.vue
浏览文件 @
a8fe9f60
...
...
@@ -107,8 +107,8 @@
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"工作
信息
"
>
<el-input
v-model=
"detailed_information.work_info"
placeholder=
"工作
信息"
type=
"textarea"
:rows=
"2
"
<el-form-item
label=
"工作
单位
"
>
<el-input
v-model=
"detailed_information.work_info"
placeholder=
"工作
单位
"
:disabled=
"is_updata_type == 'view'"
></el-input>
</el-form-item>
</el-col>
...
...
src/views/student/test_results/detail/index.vue
浏览文件 @
a8fe9f60
...
...
@@ -9,7 +9,7 @@
<el-card
class=
"box-card"
v-if=
"questions_list.length > 0"
>
<answer-card
:questions_lists=
"questions_list"
:test_results_lists=
"test_results_list"
></answer-card>
</el-card>
<el-card
class=
"box-card"
>
<el-card
class=
"box-card"
v-if=
"false"
>
<div>
<div
class=
"line_header"
>
易错、对等级分析
</div>
<el-row>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论