lion 2 months ago
parent ce76e0b0f2
commit c6139be9c0

@ -83,6 +83,10 @@
:label="item.name"
:value="item.id"
>
<div style="display: flex; justify-content: space-between;">
<span style="color: #999; font-size: 12px;">{{ item.name }}</span>
<span style="color: #999; font-size: 12px;">{{ item.is_arrange?'需排课':'无需排课' }}</span>
</div>
</el-option>
</el-select>
</div>

@ -334,9 +334,9 @@ import addCalendar from './components/addCalendar.vue'
: (adjStart.getDay() - FIRST_DOW + 7) % 7
const cellWidth = 100 / 7
const cellHeight = 100
const cellHeight = 120 //
const headerHeight = 50
const dateNumberHeight = 25
const dateNumberHeight = 40 //
const eventHeight = 16
const eventSpacing = 2
const verticalOffset = (event.laneIndex || 0) * (eventHeight + eventSpacing)
@ -344,7 +344,7 @@ import addCalendar from './components/addCalendar.vue'
return {
position: 'absolute',
left: `calc(${startColAdjusted * cellWidth}% + 2px)`,
top: `${headerHeight + weekRow * cellHeight + dateNumberHeight + verticalOffset}px`,
top: `${headerHeight + weekRow * cellHeight + dateNumberHeight + 25 + verticalOffset}px`, // 25px
width: `calc(${event.spanCols * cellWidth}% - 4px)`,
height: `${eventHeight}px`,
zIndex: 1000,
@ -417,7 +417,7 @@ import addCalendar from './components/addCalendar.vue'
return {
position: 'absolute',
left: '0',
top: '1px',
top: '105px', // 使headerHeight(50) + dateNumberHeight(40) + 15px = 105px
width: `calc(${spanDays * 100}% - 2px)`,
zIndex: 10,
background: `linear-gradient(90deg, ${bgColor} 0%, ${this.darkenColor(bgColor)} 100%)`,

@ -274,6 +274,7 @@
this.pieChartInstance = echarts.init(this.$refs.pieChart)
const option = {
backgroundColor: 'rgba(14, 87, 180, 0.1)',
tooltip: {
trigger: 'item',
formatter: '{b}: {c}人 ({d}%)',
@ -381,7 +382,7 @@
map: 'suzhou',
roam: false,
zlevel: 1,
zoom: 1.0,
zoom: 0.95,
center: [120.65, 31.32],
data: this.mapData.map(item => ({
name: item.name,
@ -393,10 +394,12 @@
} : undefined
})),
itemStyle: {
borderColor: 'transparent',
borderWidth: 5,
shadowBlur: 2,
shadowColor: 'rgba(0, 0, 0, 0.3)'
borderColor: '#ffffff',
borderWidth: 2,
shadowBlur: 4,
shadowColor: 'rgba(0, 0, 0, 0.4)',
shadowOffsetX: 1,
shadowOffsetY: 1
},
emphasis: {
itemStyle: {

@ -22,7 +22,7 @@
<template v-if="q.edit_input==='radio'">
<el-radio-group v-model="answers[q.id]" :disabled="previewOnly" class="mobile-radio-group">
<el-radio v-for="(opt, oidx) in q.select_item" :key="oidx" :label="opt"
class="mobile-radio">{{ opt.value }}</el-radio>
class="mobile-radio">{{ opt }}</el-radio>
</el-radio-group>
<el-input v-if="q.allow_input" type="text" v-model="answers[q.id]" :disabled="previewOnly"
:placeholder="q.help||'请输入内容'" class="mobile-textarea" />
@ -30,7 +30,7 @@
<template v-else-if="q.edit_input==='checkbox'">
<el-checkbox-group v-model="answers[q.id]" :disabled="previewOnly" class="mobile-checkbox-group">
<el-checkbox v-for="(opt, oidx) in q.select_item" :key="oidx" :label="opt"
class="mobile-checkbox">{{ opt.value }}</el-checkbox>
class="mobile-checkbox">{{ opt }}</el-checkbox>
</el-checkbox-group>
<el-input v-if="q.allow_input" type="text" v-model="answers[q.id]" :disabled="previewOnly"
:placeholder="q.help||'请输入内容'" class="mobile-textarea" />

@ -71,7 +71,8 @@ export default {
}
</script>
<style scoped>
.survey-dialog >>> .el-dialog__body { padding:0; }
.survey-dialog >>> .el-dialog__body { padding:0; height: 70vh;
overflow: scroll;}
.results-header { background: #fff; padding: 30px; border-bottom: 1px solid #e9ecef; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.header-content { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.survey-title { font-size: 28px; font-weight: 700; color: #2c3e50; margin-bottom: 12px; }

Loading…
Cancel
Save