Commit 4fce9f22 by 田爽

视频管理复制标题

parent a5424937
...@@ -7,7 +7,10 @@ ...@@ -7,7 +7,10 @@
: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>
...@@ -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>
......
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