|
@@ -1,36 +1,29 @@
|
|
|
<!-- -->
|
|
|
<template>
|
|
|
<div class="Big-Book-Record" v-if="curQue">
|
|
|
- <!-- <img
|
|
|
- src="../../../assets/adult/maikefeng-red.png"
|
|
|
- class="Big-Book-Record-icon"
|
|
|
- /> -->
|
|
|
- <div>
|
|
|
- <div class="adult-book-input-item">
|
|
|
- <span class="adult-book-lable">标题:</span>
|
|
|
- <el-input
|
|
|
- class="adult-book-input"
|
|
|
- type="textarea"
|
|
|
- autosize
|
|
|
- placeholder="请输入标题"
|
|
|
- v-model="curQue.title"
|
|
|
- @blur="onBlur(curQue, 'title')"
|
|
|
- ></el-input>
|
|
|
- </div>
|
|
|
+ <div class="adult-book-input-item">
|
|
|
+ <span class="adult-book-lable">页眉:</span>
|
|
|
+ <el-input
|
|
|
+ class="adult-book-input"
|
|
|
+ type="textarea"
|
|
|
+ autosize
|
|
|
+ placeholder="请输入页眉"
|
|
|
+ v-model="curQue.guide"
|
|
|
+ @blur="onBlur(curQue, 'guide')"
|
|
|
+ ></el-input>
|
|
|
</div>
|
|
|
- <div>
|
|
|
- <div class="adult-book-input-item">
|
|
|
- <span class="adult-book-lable">页眉:</span>
|
|
|
- <el-input
|
|
|
- class="adult-book-input"
|
|
|
- type="textarea"
|
|
|
- autosize
|
|
|
- placeholder="请输入页眉"
|
|
|
- v-model="curQue.guide"
|
|
|
- @blur="onBlur(curQue, 'guide')"
|
|
|
- ></el-input>
|
|
|
- </div>
|
|
|
+ <div class="adult-book-input-item">
|
|
|
+ <span class="adult-book-lable">标题:</span>
|
|
|
+ <el-input
|
|
|
+ class="adult-book-input"
|
|
|
+ type="textarea"
|
|
|
+ autosize
|
|
|
+ placeholder="请输入标题"
|
|
|
+ v-model="curQue.title"
|
|
|
+ @blur="onBlur(curQue, 'title')"
|
|
|
+ ></el-input>
|
|
|
</div>
|
|
|
+
|
|
|
<div
|
|
|
class="Big-Book-hanzi-option"
|
|
|
v-for="(item, index) in curQue.option"
|
|
@@ -85,6 +78,9 @@ export default {
|
|
|
watch: {},
|
|
|
//方法集合
|
|
|
methods: {
|
|
|
+ onBlur(item, field) {
|
|
|
+ item[field] = item[field] ? item[field].trim() : "";
|
|
|
+ },
|
|
|
//添加一个选项
|
|
|
addOption() {
|
|
|
let obj = JSON.parse(JSON.stringify(this.data_structure.option[0]));
|