Commit 4fce9f22 by 田爽

视频管理复制标题

parent a5424937
<template> <template>
<el-dialog <el-dialog
:title="!dataForm.id ? '新增' : this.showInfo?'详情':'修改'" :title="!dataForm.id ? '新增' : this.showInfo?'详情':'修改'"
:close-on-click-modal="false" :close-on-click-modal="false"
v-loading="loading" v-loading="loading"
element-loading-text="正在加载数据" element-loading-text="正在加载数据"
:visible.sync="visible"> :visible.sync="visible">
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="130px" > <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="130px" >
<el-form-item label="原始标题" prop="titleOld"> <el-form-item label="原始标题" prop="titleOld">
<el-input v-model="dataForm.titleOld" placeholder="请输入原始标题" v-show="!showInfo"></el-input> <el-input v-model="dataForm.titleOld" placeholder="请输入原始标题" v-show="!showInfo" style='width:80%!important'></el-input>
<el-button @click="copyTitle" style='width:18%!important;white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;'>复制到显示标题</el-button>
</el-form-item> </el-form-item>
<el-form-item label="显示标题" prop="title"> <el-form-item label="显示标题" prop="title">
<el-input v-model="dataForm.title" placeholder="请输入显示标题" v-show="!showInfo"></el-input> <el-input v-model="dataForm.title" placeholder="请输入显示标题" v-show="!showInfo"></el-input>
...@@ -42,7 +45,7 @@ ...@@ -42,7 +45,7 @@
</el-form-item> </el-form-item>
<el-form-item label="时间" prop="stdate"> <el-form-item label="时间" prop="stdate">
<!-- <el-date-picker <!-- <el-date-picker
v-show="!showInfo" v-show="!showInfo"
v-model="dataForm.stdate" v-model="dataForm.stdate"
value-format='yyyy-MM-dd' value-format='yyyy-MM-dd'
...@@ -96,14 +99,14 @@ ...@@ -96,14 +99,14 @@
<p v-show="showInfo"><video :src="videoUrlStr" class="avatar2"></video></p> <p v-show="showInfo"><video :src="videoUrlStr" class="avatar2"></video></p>
<p class="mark">注:视频为MP4格式,视频编码推荐h.264,音频格式AAC</p> <p class="mark">注:视频为MP4格式,视频编码推荐h.264,音频格式AAC</p>
</el-form-item> </el-form-item>
<!-- <el-form-item label="说明" prop="content" > <!-- <el-form-item label="说明" prop="content" >
<Ueditor @ready="editorReady" :value="ueditor.value" :config="ueditor.config" ref="ue" v-show="!showInfo"></Ueditor> <Ueditor @ready="editorReady" :value="ueditor.value" :config="ueditor.config" ref="ue" v-show="!showInfo"></Ueditor>
<div v-show="showInfo" v-html="dataForm.content"></div> <div v-show="showInfo" v-html="dataForm.content"></div>
</el-form-item> --> </el-form-item> -->
<el-form-item label="时间" prop="showtime"> <el-form-item label="时间" prop="showtime">
<el-date-picker <el-date-picker
v-show="!showInfo" v-show="!showInfo"
v-model="dataForm.showtime" v-model="dataForm.showtime"
value-format='yyyy-MM-dd' value-format='yyyy-MM-dd'
...@@ -424,6 +427,9 @@ export default { ...@@ -424,6 +427,9 @@ export default {
this.dataForm.brief = instance.getContent() this.dataForm.brief = instance.getContent()
}) })
}, },
copyTitle () {
this.dataForm.title = this.dataForm.titleOld
},
} }
} }
</script> </script>
...@@ -437,4 +443,4 @@ export default { ...@@ -437,4 +443,4 @@ export default {
.el-loading-mask{ .el-loading-mask{
z-index: 9999!important; z-index: 9999!important;
} }
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment