Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-register
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-register
Commits
bd9aef80
提交
bd9aef80
authored
3月 24, 2022
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
8d681f7e
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
16 行增加
和
17 行删除
+16
-17
importPeople.vue
src/modules/register/components/importPeople.vue
+15
-16
setTabelHeade.vue
src/modules/register/components/setTabelHeade.vue
+1
-1
没有找到文件。
src/modules/register/components/importPeople.vue
浏览文件 @
bd9aef80
<
template
>
<el-dialog
v-bind=
"$attrs"
v-on=
"$listeners"
center
>
<el-dialog
v-bind=
"$attrs"
v-on=
"$listeners"
>
<el-form
:model=
"form"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"100px"
class=
"demo-ruleForm"
>
<el-form-item
label=
"活动名称"
prop=
"activity_id"
>
<el-select
@
change=
"change"
v-model=
"form.activity_id"
placeholder=
"请选择"
>
<el-option
v-for=
"(item, index) in activityOption"
:label=
"item.name"
:value=
"item.id"
:key=
"index"
></el-option>
<el-option
v-for=
"(item, index) in activityOption"
:label=
"item.name"
:value=
"item.id"
:key=
"index"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"步骤名称"
prop=
"activity_detail_id"
>
...
...
@@ -29,13 +34,7 @@
<div
class=
"el-upload__text"
>
将文件拖到此处,或
<em>
点击上传
</em></div>
</el-upload>
<div
style=
"text-align: center"
>
<a
:href=
"file"
download=
"试题模板.xlsx"
style=
"color: #c01c40"
>
<i
class=
"el-icon-download"
></i>
试题模板.xlsx
</a
>
<a
:href=
"file"
download=
"试题模板.xlsx"
style=
"color: #c01c40"
>
<i
class=
"el-icon-download"
></i>
试题模板.xlsx
</a>
<!--
<a
href=
"https://webapp-pub.oss-cn-beijing.aliyuncs.com/qbs/question.xlsx"
:download=
"试题模版"
></a>
-->
</div>
<div
style=
"text-align: center; margin-top: 15px"
>
...
...
@@ -56,12 +55,8 @@ export default {
activity_detail_id
:
''
},
rules
:
{
activity_id
:
[
{
required
:
true
,
message
:
'请选择'
,
trigger
:
'change'
}
],
activity_detail_id
:
[
{
required
:
true
,
message
:
'请选择'
,
trigger
:
'change'
}
]
activity_id
:
[{
required
:
true
,
message
:
'请选择'
,
trigger
:
'change'
}],
activity_detail_id
:
[{
required
:
true
,
message
:
'请选择'
,
trigger
:
'change'
}]
},
file
:
''
,
activityOption
:
[],
...
...
@@ -98,7 +93,11 @@ export default {
}
},
fetchFileUpload
(
data
)
{
importPeople
({
file
:
data
.
file
,
activity_id
:
this
.
form
.
activity_id
,
activity_detail_id
:
this
.
form
.
activity_detail_id
}).
then
(
res
=>
{
importPeople
({
file
:
data
.
file
,
activity_id
:
this
.
form
.
activity_id
,
activity_detail_id
:
this
.
form
.
activity_detail_id
}).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
$message
.
success
(
'导入数据成功'
)
history
.
go
(
0
)
...
...
src/modules/register/components/setTabelHeade.vue
浏览文件 @
bd9aef80
<
template
>
<div>
<el-dialog
v-bind=
"$attrs"
v-on=
"$listeners"
title=
"表头设置"
:close-on-click-modal=
"false"
>
<el-dialog
width=
"30%"
v-bind=
"$attrs"
v-on=
"$listeners"
title=
"表头设置"
:close-on-click-modal=
"false"
>
<p
class=
"tips"
>
上下拖动表头名称可调整表头顺序
</p>
<ul
class=
"column-options-list"
>
<li>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论