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