洞察报告;
This commit is contained in:
@@ -47,27 +47,27 @@ function initWordCloud() {
|
|||||||
top: 'center',
|
top: 'center',
|
||||||
width: '90%',
|
width: '90%',
|
||||||
height: '90%',
|
height: '90%',
|
||||||
sizeRange: [12, 40],
|
sizeRange: [18, 28],
|
||||||
rotationRange: [-0, 0],
|
rotationRange: [-0, 0],
|
||||||
rotationStep: 1,
|
rotationStep: 1,
|
||||||
gridSize: 12,
|
gridSize: 12,
|
||||||
drawOutOfBound: true,
|
drawOutOfBound: false,
|
||||||
shrinkToFit: true,
|
shrinkToFit: true,
|
||||||
layoutAnimation: true,
|
layoutAnimation: true,
|
||||||
textStyle: {
|
textStyle: {
|
||||||
fontFamily: 'Source Han Sans, sans-serif',
|
fontFamily: 'Source Han Sans, sans-serif',
|
||||||
fontWeight: 'bold',
|
fontWeight: 'normal',
|
||||||
color: function() {
|
color: function(param) {
|
||||||
const colors = ['#70B936', '#FCCA46', '#3D3D3D']
|
const colors = ['#70B936', '#FCCA46', '#3D3D3D']
|
||||||
return colors[Math.floor(Math.random() * colors.length)]
|
return colors[param.dataIndex % colors.length]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
emphasis: {
|
emphasis: {
|
||||||
focus: 'self',
|
focus: 'self',
|
||||||
|
|
||||||
textStyle: {
|
textStyle: {
|
||||||
textShadowBlur: 10,
|
// textShadowBlur: 10,
|
||||||
textShadowColor: '#333333'
|
// textShadowColor: '#333333'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data: props.dataSource?.map?.((item) => {
|
data: props.dataSource?.map?.((item) => {
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
</a-radio>
|
</a-radio>
|
||||||
<question-tinymce-option
|
<question-tinymce-option
|
||||||
v-model:html="element.option"
|
v-model:html="element.option"
|
||||||
:disabled="disableUpdateBtn||copyInfo.question_code?.startsWith('1_')"
|
:disabled="(disableUpdateBtn&&!['300_forced_sort', '301_forced_sort'].includes(copyInfo.question_code))||copyInfo.question_code?.startsWith('1_')"
|
||||||
:ref="`tinymce_${index}`"
|
:ref="`tinymce_${index}`"
|
||||||
:preventKeyDown="true"
|
:preventKeyDown="true"
|
||||||
:hasAfter="!element.edit && element.is_other"
|
:hasAfter="!element.edit && element.is_other"
|
||||||
@@ -39,7 +39,8 @@
|
|||||||
@focusChange="editChange($event, element, index)"
|
@focusChange="editChange($event, element, index)"
|
||||||
>
|
>
|
||||||
<template v-slot:content>
|
<template v-slot:content>
|
||||||
<div v-if="element.edit" class="choice-option-radio-btn">
|
<template v-if="false" data-comment="特殊处理:300_forced_sort, 301_forced_sort"></template>
|
||||||
|
<div v-if="element.edit && !['300_forced_sort', '301_forced_sort'].includes(copyInfo.question_code)" class="choice-option-radio-btn">
|
||||||
<a-checkbox
|
<a-checkbox
|
||||||
:checked="Boolean(element.is_fixed)"
|
:checked="Boolean(element.is_fixed)"
|
||||||
class="margin custom-checkbox"
|
class="margin custom-checkbox"
|
||||||
@@ -100,7 +101,7 @@
|
|||||||
</a-radio>
|
</a-radio>
|
||||||
<question-tinymce-option
|
<question-tinymce-option
|
||||||
v-model:html="element.option"
|
v-model:html="element.option"
|
||||||
:disabled="(disableUpdateBtn&©Info.question_code!=='301_forced_sort')||copyInfo.question_code?.startsWith('1_')"
|
:disabled="(disableUpdateBtn&&!['300_forced_sort', '301_forced_sort'].includes(copyInfo.question_code))||copyInfo.question_code?.startsWith('1_')"
|
||||||
:ref="`tinymce_${index}`"
|
:ref="`tinymce_${index}`"
|
||||||
:preventKeyDown="true"
|
:preventKeyDown="true"
|
||||||
:hasAfter="!element.edit && element.is_other"
|
:hasAfter="!element.edit && element.is_other"
|
||||||
@@ -108,8 +109,8 @@
|
|||||||
@focusChange="editChange($event, element, index)"
|
@focusChange="editChange($event, element, index)"
|
||||||
>
|
>
|
||||||
<template v-slot:content>
|
<template v-slot:content>
|
||||||
<template v-if="false" data-comment="特殊处理:301_forced_sort"></template>
|
<template v-if="false" data-comment="特殊处理:300_forced_sort, 301_forced_sort"></template>
|
||||||
<div v-if="element.edit && copyInfo.question_code !== '301_forced_sort'" class="choice-option-radio-btn">
|
<div v-if="element.edit && !['300_forced_sort', '301_forced_sort'].includes(copyInfo.question_code)" class="choice-option-radio-btn">
|
||||||
<a-checkbox
|
<a-checkbox
|
||||||
:checked="Boolean(element.is_fixed)"
|
:checked="Boolean(element.is_fixed)"
|
||||||
class="margin custom-checkbox"
|
class="margin custom-checkbox"
|
||||||
|
|||||||
Reference in New Issue
Block a user