Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Q
qualityTesting_adminHome
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
tobacco
qualityTesting_adminHome
Commits
e2247469
提交
e2247469
authored
4月 21, 2023
作者:
Yroc
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
'按钮异常修复'
上级
a03a374b
全部展开
显示空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
135 行增加
和
84 行删除
+135
-84
index.vue
src/components/TableHead/index.vue
+0
-14
index.vue
src/views/student/area_breed/index.vue
+1
-1
index.vue
src/views/student/display_board/index.vue
+0
-0
index.vue
src/views/student/examination_questions/detail/index.vue
+10
-6
index.vue
src/views/student/personnel/index.vue
+10
-3
index.vue
src/views/student/test_results/list/index.vue
+105
-58
index.vue
src/views/student/tobacco_grades/index.vue
+9
-2
index.vue
src/views/system/department/index.vue
+0
-0
index.vue
src/views/system/roles/index.vue
+0
-0
没有找到文件。
src/components/TableHead/index.vue
浏览文件 @
e2247469
...
...
@@ -75,20 +75,6 @@
width=
"320"
trigger=
"hover"
>
<!-- <el-table height="400" :data="examination_questions_select_data">
<el-table-column
align="center"
prop="name"
label="每道题得分选择"
>
</el-table-column>
<el-table-column align="center" label="操作" width="100">
<template slot-scope="scope">
>
</template>
</el-table-column>
</el-table> -->
<el-row>
<el-col
:span=
"16"
>
<el-input
...
...
src/views/student/area_breed/index.vue
浏览文件 @
e2247469
...
...
@@ -241,7 +241,7 @@ export default {
btnClick
(
val
)
{
console
.
log
(
'右侧按钮'
);
console
.
log
(
val
);
if
(
val
==
'add'
)
this
.
addTobaccoInfo
();
if
(
val
.
val
==
'add'
)
this
.
addTobaccoInfo
();
},
init
()
{
...
...
src/views/student/display_board/index.vue
浏览文件 @
e2247469
差异被折叠。
点击展开。
src/views/student/examination_questions/detail/index.vue
浏览文件 @
e2247469
...
...
@@ -3,7 +3,7 @@
* @Author: AnthonyD
* @Date: 2023-03-28 10:34:24
* @Last Modified by: AnthonyD
* @Last Modified time: 2023-04-2
0 15:34:11
* @Last Modified time: 2023-04-2
1 13:49:45
*/
</
script
>
<
template
>
...
...
@@ -305,11 +305,12 @@ export default {
btnClick
(
val
)
{
// console.log('右侧按钮');
// console.log(val);
if
(
val
==
'add'
)
this
.
addInformation
();
if
(
val
.
val
==
'add'
)
this
.
addInformation
();
if
(
val
.
val
==
'template_download'
)
this
.
templateDownload
(
val
.
data
);
/* pictureBatchUpload */
if
(
val
==
'batch_upload'
)
this
.
pictureBatchUpload
();
if
(
val
==
'examination_download'
)
this
.
createAnswerCard
();
if
(
val
.
val
==
'batch_upload'
)
this
.
pictureBatchUpload
();
if
(
val
.
val
==
'examination_download'
)
this
.
createAnswerCard
();
if
(
val
.
val
==
'select_score'
)
this
.
selectScoreData
(
val
.
data
);
},
...
...
@@ -553,10 +554,11 @@ export default {
},
//试题下载
createAnswerCard
()
{
console
.
log
(
'11111'
);
let
id
=
this
.
examination_questions_id
;
create_answer_card
(
id
).
then
((
res
)
=>
{
//
console.log('下载答题卡回调');
//
console.log(res);
console
.
log
(
'下载答题卡回调'
);
console
.
log
(
res
);
if
(
res
.
code
==
200
)
{
let
s
=
res
.
message
.
split
(
'='
);
let
name
=
s
[
s
.
length
-
1
];
...
...
@@ -567,7 +569,9 @@ export default {
},
//得分选择
selectScoreData
(
val
)
{
console
.
log
(
val
);
let
amendData
=
this
.
$handleParams
({
fraction
:
val
});
let
id
=
this
.
examination_questions_id
;
console
.
log
(
amendData
);
console
.
log
(
id
);
...
...
src/views/student/personnel/index.vue
浏览文件 @
e2247469
<
script
>
/**
* @Author: AnthonyD
* @Date: 2023-03-28 10:34:24
* @Last Modified by: AnthonyD
* @Last Modified time: 2023-04-21 13:45:13
*/
</
script
>
<
template
>
<div
class=
"module_container"
>
<div
class=
"card_container"
>
...
...
@@ -282,8 +289,8 @@ export default {
btnClick
(
val
)
{
console
.
log
(
'右侧按钮'
);
console
.
log
(
val
);
if
(
val
==
'add'
)
this
.
addInformation
();
if
(
val
==
'download'
)
this
.
downloadFormwork
();
if
(
val
.
val
==
'add'
)
this
.
addInformation
();
if
(
val
.
val
==
'download'
)
this
.
downloadFormwork
();
},
init
()
{
...
...
src/views/student/test_results/list/index.vue
浏览文件 @
e2247469
...
...
@@ -9,15 +9,34 @@
<div
class=
"module_container"
>
<div
class=
"card_container"
>
<el-card
class=
"box-card"
>
<table-head
:head_data=
"head_data"
@
search=
"searchEvent"
@
resetting=
"resetting"
@
btnClick=
"btnClick"
></table-head>
<table-head
:head_data=
"head_data"
@
search=
"searchEvent"
@
resetting=
"resetting"
@
btnClick=
"btnClick"
></table-head>
<div
class=
"table_container"
>
<el-table
v-loading=
"is_loading"
:data=
"tableData"
style=
"width: 100%;margin-bottom: 20px;"
height=
"650"
>
<el-table
v-loading=
"is_loading"
:data=
"tableData"
style=
"width: 100%; margin-bottom: 20px"
height=
"650"
>
<el-table-column
prop=
"id"
label=
"编号"
width=
"50"
>
</el-table-column>
<el-table-column
prop=
"examination_questions_title"
label=
"考试标题"
>
<el-table-column
prop=
"examination_questions_title"
label=
"考试标题"
>
<template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-document"
style=
"color: #005FC2;"
@
click=
"toDetail(scope.row)"
>
{{
scope
.
row
.
examination_questions_title
}}
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-document"
style=
"color: #005fc2"
@
click=
"toDetail(scope.row)"
>
{{
scope
.
row
.
examination_questions_title
}}
</el-button
>
</
template
>
</el-table-column>
<el-table-column
prop=
"name"
label=
"学员姓名"
>
...
...
@@ -27,48 +46,81 @@
</el-table-column>
<el-table-column
prop=
"begin_answer_time"
label=
"开始时间"
>
</el-table-column>
<el-table-column
prop=
"answer_duration"
label=
"答题时间"
width=
"100"
>
<el-table-column
prop=
"answer_duration"
label=
"答题时间"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<div
v-if=
"scope.row.answer_duration"
>
{{
seconds_to_minutes
(
scope
.
row
.
answer_duration
)
}}
</div>
<div
v-if=
"scope.row.answer_duration"
>
{{
seconds_to_minutes
(
scope
.
row
.
answer_duration
)
}}
</div>
<div
v-else
>
暂无
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"score"
label=
"得分"
>
</el-table-column>
<el-table-column
prop=
"score"
label=
"得分"
>
</el-table-column>
<el-table-column
prop=
"created_at"
label=
"创建时间"
>
</el-table-column>
<el-table-column
prop=
"path"
label=
"状态"
>
<
template
slot-scope=
"scope"
>
<div>
<el-tag
v-if=
"scope.row.status == 1"
type=
"success"
>
预约完成
</el-tag>
<el-tag
v-if=
"scope.row.status == 2"
type=
"success"
style=
"background-color: #b4d7c6;border-color: #71b7a0;color: #038D6E;"
>
考试完成
</el-tag>
<el-tag
v-if=
"scope.row.status == 3"
type=
"success"
>
已发布
</el-tag>
<el-tag
v-if=
"scope.row.status == 1"
type=
"success"
>
预约完成
</el-tag
>
<el-tag
v-if=
"scope.row.status == 2"
type=
"success"
style=
"
background-color: #b4d7c6;
border-color: #71b7a0;
color: #038d6e;
"
>
考试完成
</el-tag
>
<el-tag
v-if=
"scope.row.status == 3"
type=
"success"
>
已发布
</el-tag
>
<el-tag
v-if=
"scope.row.status == 4"
type=
"info"
>
取消
</el-tag>
<el-tag
v-if=
"scope.row.status == 6"
type=
"danger"
>
失效
</el-tag>
<el-tag
v-if=
"scope.row.status == 6"
type=
"danger"
>
失效
</el-tag
>
</div>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
width=
"120"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"text"
style=
"color: #F56C6C;"
@
click=
"cancelReservation(scope.row)"
v-if=
"scope.row.status == 1"
>
取消预约
</el-button>
<el-button
size=
"mini"
type=
"text"
style=
"color: #f56c6c"
@
click=
"cancelReservation(scope.row)"
v-if=
"scope.row.status == 1"
>
取消预约
</el-button
>
</
template
>
</el-table-column>
</el-table>
</div>
<div
style=
"text-align: right;"
>
<el-pagination
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"request_params.page"
:page-size=
"request_params.limit"
layout=
"total, prev, pager, next"
:total=
"request_params.total"
>
<div
style=
"text-align: right"
>
<el-pagination
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"request_params.page"
:page-size=
"request_params.limit"
layout=
"total, prev, pager, next"
:total=
"request_params.total"
>
</el-pagination>
</div>
</el-card>
</div>
<el-dialog
title=
"提示"
:visible
.
sync=
"is_dialogVisible"
width=
"60%"
:before-close=
"handleClose"
>
<div>
</div>
<el-dialog
title=
"提示"
:visible
.
sync=
"is_dialogVisible"
width=
"60%"
:before-close=
"handleClose"
>
<div></div>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"handleClose"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"submitData"
>
确 定
</el-button>
...
...
@@ -83,17 +135,17 @@ import { get_test_results_list, cancel_reservation } from '@/api/student';
import
{
secondsToMinutes
}
from
'@/utils/tool'
;
const
standard_template
=
{
id
:
null
,
father_id
:
-
1
,
//父级id
is_show
:
false
,
//是否展示为菜单
name
:
null
,
//英文名称
name_zh
:
null
,
//中文名称
path
:
null
,
//路由路径
sort
:
null
,
//排序
status
:
1
,
//状态
type
:
1
,
//类型:菜单/按钮
view_path
:
null
,
//视图路径
icon
:
null
,
//图标
}
father_id
:
-
1
,
//父级id
is_show
:
false
,
//是否展示为菜单
name
:
null
,
//英文名称
name_zh
:
null
,
//中文名称
path
:
null
,
//路由路径
sort
:
null
,
//排序
status
:
1
,
//状态
type
:
1
,
//类型:菜单/按钮
view_path
:
null
,
//视图路径
icon
:
null
,
//图标
}
;
export
default
{
data
()
{
return
{
...
...
@@ -101,7 +153,7 @@ export default {
//头部按钮
head_data
:
{
is_search_show
:
true
,
search_placeholder
:
"学员姓名/手机号"
,
search_placeholder
:
'学员姓名/手机号'
,
right_buttons
:
[
// {
// text: '新增',
...
...
@@ -129,12 +181,10 @@ export default {
components
:
{
TableHead
},
computed
:
{
},
computed
:
{},
mounted
()
{
this
.
init
()
this
.
init
()
;
},
methods
:
{
...
...
@@ -153,8 +203,7 @@ export default {
btnClick
(
val
)
{
console
.
log
(
'右侧按钮'
);
console
.
log
(
val
);
if
(
val
==
'add'
)
this
.
addInformation
();
if
(
val
.
val
==
'add'
)
this
.
addInformation
();
},
init
()
{
...
...
@@ -166,20 +215,18 @@ export default {
this
.
is_dialogVisible
=
false
;
},
//提交
submitData
()
{
},
submitData
()
{},
//获取列表数据
getListData
()
{
let
params
=
this
.
$removeProperty
(
this
.
request_params
);
this
.
is_loading
=
true
;
get_test_results_list
(
params
).
then
(
res
=>
{
get_test_results_list
(
params
).
then
(
(
res
)
=>
{
console
.
log
(
'列表数据'
);
console
.
log
(
res
);
this
.
tableData
=
res
.
data
||
[];
this
.
request_params
.
total
=
res
.
total
;
this
.
is_loading
=
false
;
})
})
;
},
//分页
handleCurrentChange
(
val
)
{
...
...
@@ -206,24 +253,25 @@ export default {
this
.
$confirm
(
'确认取消?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
type
:
'warning'
,
})
.
then
(()
=>
{
let
id
=
item
.
id
;
cancel_reservation
(
id
).
then
(
res
=>
{
cancel_reservation
(
id
).
then
((
res
)
=>
{
console
.
log
(
'取消预约'
);
console
.
log
(
res
);
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
res
.
message
);
this
.
getListData
();
}
});
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
this
.
$message
({
type
:
'info'
,
message
:
'已取消'
message
:
'已取消'
,
});
});
},
//跳转详情
toDetail
(
item
)
{
...
...
@@ -232,9 +280,9 @@ export default {
this
.
$router
.
push
({
path
:
'/student/test_results_detail'
,
query
:
{
id
:
id
id
:
id
,
},
})
})
;
},
//秒转分
...
...
@@ -242,11 +290,10 @@ export default {
if
(
num
)
{
return
secondsToMinutes
(
num
);
}
else
{
return
'暂无'
}
return
'暂无'
;
}
},
}
},
};
</
script
>
<
style
lang=
"scss"
scoped
></
style
>
src/views/student/tobacco_grades/index.vue
浏览文件 @
e2247469
<
script
>
/**
* @Author: AnthonyD
* @Date: 2023-03-28 10:34:24
* @Last Modified by: AnthonyD
* @Last Modified time: 2023-04-21 13:58:02
*/
</
script
>
<
template
>
<div
class=
"module_container"
>
<div
class=
"card_container"
>
...
...
@@ -164,7 +171,7 @@ export default {
btnClick
(
val
)
{
console
.
log
(
'右侧按钮'
);
console
.
log
(
val
);
if
(
val
==
'add'
)
this
.
addTobaccoGrades
();
if
(
val
.
val
==
'add'
)
this
.
addTobaccoGrades
();
},
init
()
{
...
...
src/views/system/department/index.vue
浏览文件 @
e2247469
差异被折叠。
点击展开。
src/views/system/roles/index.vue
浏览文件 @
e2247469
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论