94a587a6 by qingxiao

1

1 parent 847b6125
......@@ -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)">编辑 &nbsp;</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: {
......