Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
a1e2513b
提交
a1e2513b
编写于
3月 02, 2019
作者:
zhentian.jia
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加基层信息页校验 改样式
上级
1a694f4b
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
48 行增加
和
11 行删除
+48
-11
add-manager.vue
src/views/education/add-manager.vue
+48
-11
未找到文件。
src/views/education/add-manager.vue
浏览文件 @
a1e2513b
...
...
@@ -4,20 +4,19 @@
<el-main>
<el-row>
<el-col
:span=
"14"
>
<el-steps
:active=
"active"
finish-status=
"success"
simple
style=
"margin-bottom: 30px; background: #fff;"
>
<el-step
title=
"基础信息"
>
1
</el-step>
<el-steps
:active=
"active"
simple
style=
"margin-bottom: 30px; background: #fff;"
>
<span
class=
"step-num"
>
1
</span>
<el-step
title=
"基础信息"
></el-step>
<span
class=
"step-num"
>
2
</span>
<el-step
title=
"选择范围"
>
2
</el-step>
<span
class=
"step-num"
>
3
</span>
<el-step
title=
"选择项目组件"
>
3
</el-step>
</el-steps>
</el-col>
<el-col
:span=
"5"
:offset=
"5"
>
<el-button>
暂存
</el-button>
<el-button
type=
"primary"
@
click=
"nextStep"
>
下一步
</el-button>
<el-button
size=
"small"
>
暂存
</el-button>
<el-button
v-if=
"active
<2
"
size=
"small"
type=
"primary"
@
click=
"nextStep"
>
下一步
</el-button>
<el-button
v-if=
"active>=2"
size=
"small"
type=
"primary"
@
click=
"nextStep"
>
完成
</el-button>
</el-col>
</el-row>
<div
class=
"step1"
v-if=
"active === 0"
>
...
...
@@ -96,7 +95,7 @@
:on-exceed=
"handleExceed"
:file-list=
"fileList"
>
<el-button
class=
"choose-button"
type=
"primary"
plain
icon=
"el-icon-document"
>
选择文件
</el-button>
<el-button
class=
"choose-button"
plain
icon=
"el-icon-document"
>
选择文件
</el-button>
<div
slot=
"tip"
class=
"el-upload__tip"
>
支持文件类型:pdf
</div>
</el-upload>
</el-col>
...
...
@@ -452,8 +451,25 @@ export default {
//this.checkAll();
},
methods
:
{
submitForm
(
formName
)
{
console
.
log
(
'校验表单:'
+
formName
);
this
.
$refs
[
formName
].
validate
(
valid
=>
{
if
(
valid
)
{
alert
(
"submit!"
);
}
else
{
console
.
log
(
"error submit!!"
);
return
false
;
}
});
},
resetForm
(
formName
)
{
this
.
$refs
[
formName
].
resetFields
();
},
nextStep
()
{
if
(
this
.
active
++
>
2
)
this
.
active
=
0
;
if
(
this
.
active
==
0
)
{
let
formName
=
'formData'
;
this
.
submitForm
(
formName
);
}
},
onSubmit
()
{
console
.
log
(
"submit!"
);
...
...
@@ -597,4 +613,25 @@ export default {
min-height
:
700px
;
border
:
1px
solid
#dddddd
;
}
.is-text
{
display
:
none
;
}
.step-num
{
display
:
block
;
font-size
:
12px
;
border
:
2px
solid
#5f5f60
;
border-radius
:
50%
;
width
:
25px
;
height
:
20px
;
line-height
:
15px
;
text-align
:
center
;
}
.choose-button
{
background
:
#fff
;
color
:
#409eff
;
border
:
1px
solid
#409eff
;
}
.el-upload--text
{
background
:
#f5f5f5
;
}
</
style
>
\ No newline at end of file
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录