|
@@ -65,9 +65,9 @@
|
|
|
</el-form>
|
|
|
</div>
|
|
|
<el-button type="primary" @click="add" style="margin-left: 50px"
|
|
|
- >新增</el-button
|
|
|
+ >保存</el-button
|
|
|
>
|
|
|
- <el-button @click="reset">重置</el-button>
|
|
|
+ <el-button @click="cancel">取消</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -153,14 +153,18 @@ export default {
|
|
|
data: this.ruleForm
|
|
|
})
|
|
|
this.$message.success('新增成功')
|
|
|
- this.reset()
|
|
|
+ this.$router.go(-1)
|
|
|
},
|
|
|
// 点击重置
|
|
|
- reset () {
|
|
|
- this.$refs.ruleForm.resetFields()
|
|
|
- this.ruleForm.urlVideo = ''
|
|
|
- this.ruleForm.thumb = ''
|
|
|
- this.contentUrlList = []
|
|
|
+ // cancel () {
|
|
|
+ // this.$refs.ruleForm.cancelFields()
|
|
|
+ // this.ruleForm.urlVideo = ''
|
|
|
+ // this.ruleForm.thumb = ''
|
|
|
+ // this.contentUrlList = []
|
|
|
+ // }
|
|
|
+ // 点击取消
|
|
|
+ cancel () {
|
|
|
+ this.$router.go(-1)
|
|
|
}
|
|
|
},
|
|
|
// 生命周期 - 创建完成(可以访问当前this实例)
|