|
|
@@ -21,10 +21,10 @@
|
|
|
<Switch :value="canValue" @update:value="handleCanChange" />
|
|
|
<span>{{ lang.ssShowResult }}</span>
|
|
|
</div>
|
|
|
- <div class="switch">
|
|
|
+ <!-- <div class="switch">
|
|
|
<Switch :value="answerValue" @update:value="handleAnswerChange" />
|
|
|
<span>{{ lang.ssShowAnswer }}</span>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="c_t45_msg" v-if="props.roleType == 1">
|
|
|
@@ -705,6 +705,9 @@ watch(() => props.resultArray?.answer, (newVal) => {
|
|
|
const handleCanChange = (value: boolean) => {
|
|
|
console.log(value)
|
|
|
console.log(props.resultArray)
|
|
|
+ if (workDetail.value.type === '45') {
|
|
|
+ handleAnswerChange(value)
|
|
|
+ }
|
|
|
emit('setIsResultArray', value, 'can')
|
|
|
}
|
|
|
|
|
|
@@ -1034,7 +1037,8 @@ const setEchartsArea1 = () => {
|
|
|
console.log('answerValue.value', answerValue.value)
|
|
|
const item = _work.choiceUser[idx]
|
|
|
if (item && item.isAnswer && answerValue.value) {
|
|
|
- return '#21ee21'
|
|
|
+ // return '#21ee21'
|
|
|
+ return '#29AE2B'
|
|
|
}
|
|
|
return 'rgba(0, 0, 0, 0.9)'
|
|
|
},
|
|
|
@@ -1157,12 +1161,12 @@ const setEchartsArea1 = () => {
|
|
|
;(option.series[0].data as any[]).push({
|
|
|
value: i.user.length,
|
|
|
itemStyle: {
|
|
|
- color: isCorrect ? '#21ee21' : 'rgba(252, 207, 0, 1)',
|
|
|
+ color: isCorrect ? '#29AE2B' : 'rgba(252, 207, 0, 1)',
|
|
|
},
|
|
|
label: {
|
|
|
show: true,
|
|
|
position: 'top',
|
|
|
- color: isCorrect ? '#21ee21' : 'rgba(116, 139, 115, 1)',
|
|
|
+ color: isCorrect ? '#29AE2B' : 'rgba(116, 139, 115, 1)',
|
|
|
fontSize: 22,
|
|
|
fontWeight: 500,
|
|
|
lineHeight: 24,
|