993f8e6e by qingxiao

1

1 parent 7e7a7241
...@@ -150,7 +150,19 @@ ...@@ -150,7 +150,19 @@
150 cancelCreate() { 150 cancelCreate() {
151 this.dialogVisible = false 151 this.dialogVisible = false
152 this.oneStepForm = {} 152 this.oneStepForm = {}
153 } 153 },
154 /*分页*/
155 handleSizeChange(val) {
156 console.log(`每页 ${val} 条`)
157 this.queryForm.size = val
158 this.queryForm.page = 1
159 this.initOneStep()
160 },
161 handleCurrentChange(val) {
162 console.log(`当前页: ${val}`)
163 this.queryForm.page = val
164 this.initOneStep()
165 },
154 }, 166 },
155 created() { 167 created() {
156 this.initOneStep() 168 this.initOneStep()
......
...@@ -23,6 +23,8 @@ ...@@ -23,6 +23,8 @@
23 > 23 >
24 <el-table-column label="名称" prop="title"></el-table-column> 24 <el-table-column label="名称" prop="title"></el-table-column>
25 <el-table-column label="视频链接" prop="videoUrl"></el-table-column> 25 <el-table-column label="视频链接" prop="videoUrl"></el-table-column>
26 <el-table-column label="内容" prop="videoContent">
27 </el-table-column>
26 <el-table-column label="类型" prop="typeName"></el-table-column> 28 <el-table-column label="类型" prop="typeName"></el-table-column>
27 <el-table-column label="操作"> 29 <el-table-column label="操作">
28 <template slot-scope="scope"> 30 <template slot-scope="scope">
...@@ -73,6 +75,9 @@ ...@@ -73,6 +75,9 @@
73 </el-option> 75 </el-option>
74 </el-select> 76 </el-select>
75 </el-form-item> 77 </el-form-item>
78 <el-form-item label="内容描述:" prop="videoContent">
79 <el-input type="textarea" maxlength="100" show-word-limit v-model="playbackForm.videoContent"></el-input>
80 </el-form-item>
76 </el-form> 81 </el-form>
77 <span slot="footer" class="dialog-footer"> 82 <span slot="footer" class="dialog-footer">
78 <el-button type="primary" @click="submitForm('playbackForm')">提交</el-button> 83 <el-button type="primary" @click="submitForm('playbackForm')">提交</el-button>
...@@ -113,7 +118,8 @@ ...@@ -113,7 +118,8 @@
113 playbackRules: { 118 playbackRules: {
114 title: [{required: true, message: '请输入名称', trigger: 'blur'}], 119 title: [{required: true, message: '请输入名称', trigger: 'blur'}],
115 videoUrl: [{required: true, message: '请输入视频链接', trigger: 'blur'}], 120 videoUrl: [{required: true, message: '请输入视频链接', trigger: 'blur'}],
116 playbackTypeCode: [{required: true, message: '请选择', trigger: 'blur'}] 121 playbackTypeCode: [{required: true, message: '请选择', trigger: 'blur'}],
122 videoContent: [{required: true, message: '请输入内容', trigger: 'blur'}]
117 }, 123 },
118 playbackTypeList: [] 124 playbackTypeList: []
119 } 125 }
......