|
@@ -1,28 +1,53 @@
|
|
|
<!-- -->
|
|
|
<template>
|
|
|
<div class="seg-word-config">
|
|
|
- <div class="adult-book-input-item" v-if="curQue&&type!='sentence_segtemp_chs'&&type!='sort_chs'&&type!='CourseStart_chs'&&type!='ligature_chs'" style="margin-top:10px">
|
|
|
- <span class="adult-book-lable">字的大小:</span>
|
|
|
- <el-radio-group v-model="curQue.resetFontsize" @input="changeResetFontsize">
|
|
|
- <el-radio label="12px">12px</el-radio>
|
|
|
- <el-radio label="16px">16px</el-radio>
|
|
|
- <el-radio label="20px">20px</el-radio>
|
|
|
- <el-radio label="24px">24px</el-radio>
|
|
|
- <el-radio label="28px">28px</el-radio>
|
|
|
- </el-radio-group>
|
|
|
+ <div
|
|
|
+ class="adult-book-input-item"
|
|
|
+ v-if="
|
|
|
+ curQue &&
|
|
|
+ type != 'sentence_segtemp_chs' &&
|
|
|
+ type != 'sort_chs' &&
|
|
|
+ type != 'CourseStart_chs' &&
|
|
|
+ type != 'ligature_chs'
|
|
|
+ "
|
|
|
+ style="margin-top: 10px"
|
|
|
+ >
|
|
|
+ <span class="adult-book-lable">字的大小:</span>
|
|
|
+ <el-radio-group
|
|
|
+ v-model="curQue.resetFontsize"
|
|
|
+ @input="changeResetFontsize"
|
|
|
+ >
|
|
|
+ <el-radio label="12px">12px</el-radio>
|
|
|
+ <el-radio label="16px">16px</el-radio>
|
|
|
+ <el-radio label="20px">20px</el-radio>
|
|
|
+ <el-radio label="24px">24px</el-radio>
|
|
|
+ <el-radio label="28px">28px</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ class="adult-book-input-item"
|
|
|
+ v-if="
|
|
|
+ curQue &&
|
|
|
+ type != 'sentence_segtemp_chs' &&
|
|
|
+ type != 'sort_chs' &&
|
|
|
+ type != 'CourseStart_chs' &&
|
|
|
+ type != 'ligature_chs'
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <span class="adult-book-lable">字体:</span>
|
|
|
+ <el-radio-group
|
|
|
+ v-model="curQue.resetFontfamily"
|
|
|
+ @input="changeResetFontfamily"
|
|
|
+ >
|
|
|
+ <el-radio
|
|
|
+ v-for="(item, index) in fontFamilyList"
|
|
|
+ :key="'fontFamilyList' + index"
|
|
|
+ :label="item.value"
|
|
|
+ >
|
|
|
+ <span>{{ item.name }}</span>
|
|
|
+ </el-radio>
|
|
|
+ </el-radio-group>
|
|
|
</div>
|
|
|
- <div class="adult-book-input-item" v-if="curQue&&type!='sentence_segtemp_chs'&&type!='sort_chs'&&type!='CourseStart_chs'&&type!='ligature_chs'">
|
|
|
- <span class="adult-book-lable">字体:</span>
|
|
|
- <el-radio-group v-model="curQue.resetFontfamily" @input="changeResetFontfamily">
|
|
|
- <el-radio
|
|
|
- v-for="(item, index) in fontFamilyList"
|
|
|
- :key="'fontFamilyList' + index"
|
|
|
- :label="item.value"
|
|
|
- >
|
|
|
- <span>{{ item.name }}</span>
|
|
|
- </el-radio>
|
|
|
- </el-radio-group>
|
|
|
- </div>
|
|
|
<el-table :data="data" border style="width: 75%">
|
|
|
<el-table-column prop="chs" label="词" width="120"> </el-table-column>
|
|
|
<el-table-column label="拼音" width="220">
|
|
@@ -41,7 +66,14 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="配置" v-if="type!='sort_chs'&&type!='CourseStart_chs'&&type!='ligature_chs'">
|
|
|
+ <el-table-column
|
|
|
+ label="配置"
|
|
|
+ v-if="
|
|
|
+ type != 'sort_chs' &&
|
|
|
+ type != 'CourseStart_chs' &&
|
|
|
+ type != 'ligature_chs'
|
|
|
+ "
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
<div class="adult-book-input-item">
|
|
|
<span class="adult-book-lable">字的大小:</span>
|
|
@@ -87,7 +119,17 @@
|
|
|
<span class="adult-book-lable">设置下划线:</span>
|
|
|
<el-checkbox v-model="scope.row.underLine">显示下划线</el-checkbox>
|
|
|
</div>
|
|
|
- <div class="adult-book-input-item" v-if="type!='dialogue_answer_chs'&&type!='sentence_input_chs'&&type!='sentence_judge_chs'&&type!='sentence_record_chs'&&type!='sentence_input_record_chs'&&type!='sentence_listen_read_chs'">
|
|
|
+ <div
|
|
|
+ class="adult-book-input-item"
|
|
|
+ v-if="
|
|
|
+ type != 'dialogue_answer_chs' &&
|
|
|
+ type != 'sentence_input_chs' &&
|
|
|
+ type != 'sentence_judge_chs' &&
|
|
|
+ type != 'sentence_record_chs' &&
|
|
|
+ type != 'sentence_input_record_chs' &&
|
|
|
+ type != 'sentence_listen_read_chs'
|
|
|
+ "
|
|
|
+ >
|
|
|
<span class="adult-book-lable">设置间距:</span>
|
|
|
<el-checkbox-group v-model="scope.row.wordPadding">
|
|
|
<el-checkbox
|
|
@@ -160,28 +202,29 @@ export default {
|
|
|
let result = pinyinUtil.getPinyin(item.chs);
|
|
|
item.pinyin = result;
|
|
|
},
|
|
|
- changeResetFontsize(value){
|
|
|
- this.data.forEach(item => {
|
|
|
- item.fontSize = value
|
|
|
- });
|
|
|
+ changeResetFontsize(value) {
|
|
|
+ this.data.forEach((item) => {
|
|
|
+ item.fontSize = value;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ changeResetFontfamily(value) {
|
|
|
+ this.data.forEach((item) => {
|
|
|
+ item.fontFamily = value;
|
|
|
+ });
|
|
|
},
|
|
|
- changeResetFontfamily(value){
|
|
|
- this.data.forEach(item => {
|
|
|
- item.fontFamily = value
|
|
|
- });
|
|
|
- }
|
|
|
},
|
|
|
//生命周期 - 创建完成(可以访问当前this实例)
|
|
|
created() {},
|
|
|
//生命周期 - 挂载完成(可以访问DOM元素)
|
|
|
mounted() {
|
|
|
- if(this.curQue){
|
|
|
- if (!this.curQue.hasOwnProperty("resetFontsize")) {
|
|
|
- this.$set(this.curQue, "resetFontsize", '');
|
|
|
- }
|
|
|
- if (!this.curQue.hasOwnProperty("resetFontfamily")) {
|
|
|
- this.$set(this.curQue, "resetFontfamily", 'FZJCGFKTK');
|
|
|
- }
|
|
|
+ consoel.log(this.data);
|
|
|
+ if (this.curQue) {
|
|
|
+ if (!this.curQue.hasOwnProperty("resetFontsize")) {
|
|
|
+ this.$set(this.curQue, "resetFontsize", "");
|
|
|
+ }
|
|
|
+ if (!this.curQue.hasOwnProperty("resetFontfamily")) {
|
|
|
+ this.$set(this.curQue, "resetFontfamily", "FZJCGFKTK");
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
beforeCreate() {}, //生命周期 - 创建之前
|