993f8e6e by qingxiao

1

1 parent 7e7a7241
......@@ -150,7 +150,19 @@
cancelCreate() {
this.dialogVisible = false
this.oneStepForm = {}
}
},
/*分页*/
handleSizeChange(val) {
console.log(`每页 ${val} 条`)
this.queryForm.size = val
this.queryForm.page = 1
this.initOneStep()
},
handleCurrentChange(val) {
console.log(`当前页: ${val}`)
this.queryForm.page = val
this.initOneStep()
},
},
created() {
this.initOneStep()
......
......@@ -23,6 +23,8 @@
>
<el-table-column label="名称" prop="title"></el-table-column>
<el-table-column label="视频链接" prop="videoUrl"></el-table-column>
<el-table-column label="内容" prop="videoContent">
</el-table-column>
<el-table-column label="类型" prop="typeName"></el-table-column>
<el-table-column label="操作">
<template slot-scope="scope">
......@@ -73,6 +75,9 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item label="内容描述:" prop="videoContent">
<el-input type="textarea" maxlength="100" show-word-limit v-model="playbackForm.videoContent"></el-input>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm('playbackForm')">提交</el-button>
......@@ -113,7 +118,8 @@
playbackRules: {
title: [{required: true, message: '请输入名称', trigger: 'blur'}],
videoUrl: [{required: true, message: '请输入视频链接', trigger: 'blur'}],
playbackTypeCode: [{required: true, message: '请选择', trigger: 'blur'}]
playbackTypeCode: [{required: true, message: '请选择', trigger: 'blur'}],
videoContent: [{required: true, message: '请输入内容', trigger: 'blur'}]
},
playbackTypeList: []
}
......