Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
trimble-admin-pro
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
94a587a6
authored
2020-04-16 11:00:15 +0800
by
qingxiao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
847b6125
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
src/views/playbackType/index.vue
src/views/playbackType/index.vue
View file @
94a587a
...
...
@@ -21,6 +21,12 @@
</a>
</
template
>
</el-table-column>
<el-table-column
label=
"软/硬件"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.machine===1"
>
软件
</span>
<span
v-if=
"scope.row.machine===0"
>
硬件
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<el-link
type=
"primary"
@
click=
"playbackTypeEdit(scope.row)"
>
编辑
</el-link>
...
...
@@ -57,6 +63,16 @@
v-on:after-upload=
"loading=false"
></upload-item>
</el-form-item>
<el-form-item
label=
"软/硬件:"
prop=
"machine"
>
<el-select
v-model=
"playbackTypeForm.machine"
placeholder=
"请选择"
>
<el-option
v-for=
"item in machineOption"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
</el-form-item>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
type=
"primary"
@
click=
"submitForm('playbakcForm')"
>
提交
</el-button>
...
...
@@ -93,8 +109,13 @@
playbackTypeForm
:
{},
playbackTypeRules
:
{
typeName
:
[{
required
:
true
,
message
:
'请输入名称'
,
trigger
:
'blur'
}],
typeImage
:
[{
required
:
true
,
message
:
'上传缩略图'
,
trigger
:
'blur'
}]
}
typeImage
:
[{
required
:
true
,
message
:
'上传缩略图'
,
trigger
:
'blur'
}],
machine
:
[{
required
:
true
,
message
:
'请选择'
,
trigger
:
'blur'
}],
},
machineOption
:
[
{
label
:
'软件'
,
value
:
1
},
{
label
:
'硬件'
,
value
:
0
},
]
}
},
methods
:
{
...
...
Please
register
or
sign in
to post a comment