Merge pull request #224 from DevDengChao/codex/lint-mp-mes

fix: lint mp and mes views
pull/881/head
芋道源码 2026-05-23 22:06:15 +08:00 committed by GitHub
commit a1c43ed427
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
29 changed files with 65 additions and 59 deletions

View File

@ -111,14 +111,14 @@ const hasFestivalDay = computed(() => {
<style scoped> <style scoped>
/* 紧凑的班次标签:替代 el-button减少纵向占用 */ /* 紧凑的班次标签:替代 el-button减少纵向占用 */
.shift-tag { .shift-tag {
width: 100%;
padding: 1px 4px; padding: 1px 4px;
overflow: hidden;
font-size: 11px; font-size: 11px;
line-height: 1.5; line-height: 1.5;
border-radius: 3px;
color: #fff; color: #fff;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
width: 100%; white-space: nowrap;
border-radius: 3px;
} }
</style> </style>

View File

@ -203,9 +203,9 @@ watch(
.member-card-header { .member-card-header {
display: flex; display: flex;
align-items: center;
font-weight: 600;
font-size: 14px; font-size: 14px;
font-weight: 600;
align-items: center;
} }
.member-empty-tip { .member-empty-tip {

View File

@ -177,12 +177,12 @@ const handleNavigate = (name: string) => {
<style lang="scss" scoped> <style lang="scss" scoped>
.kpi-card { .kpi-card {
cursor: pointer; cursor: pointer;
transition: all 0.3s ease;
border: 1px solid var(--el-border-color); border: 1px solid var(--el-border-color);
transition: all 0.3s ease;
&:hover { &:hover {
transform: translateY(-4px); transform: translateY(-4px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
} }
:deep(.el-card__body) { :deep(.el-card__body) {

View File

@ -22,7 +22,7 @@ defineOptions({ name: 'GanttChart' })
const props = withDefaults( const props = withDefaults(
defineProps<{ defineProps<{
tasks: any[] // tasks?: any[] //
readonly?: boolean // readonly?: boolean //
height?: number // height?: number //
}>(), }>(),
@ -223,30 +223,36 @@ defineExpose({ loadData })
<style> <style>
/* 今天标记线 */ /* 今天标记线 */
.gantt_marker.today { .gantt_marker.today {
background-color: #ff4444; background-color: #f44;
opacity: 0.4; opacity: 0.4;
} }
.gantt_marker.today .gantt_marker_content { .gantt_marker.today .gantt_marker_content {
color: #ff4444;
font-size: 12px; font-size: 12px;
color: #f44;
} }
/* 工单project行样式 */ /* 工单project行样式 */
.gantt-project-bar .gantt_task_progress { .gantt-project-bar .gantt_task_progress {
background: #7b68ee; background: #7b68ee;
} }
/* 甘特条圆角 */ /* 甘特条圆角 */
.gantt_task_line { .gantt_task_line {
border-radius: 8px; border-radius: 8px;
} }
/* 周末背景色 */ /* 周末背景色 */
.weekend { .weekend {
background: #f0f0f0 !important; background: #f0f0f0 !important;
} }
/* 行悬浮高亮 */ /* 行悬浮高亮 */
.gantt_grid_data .gantt_row:hover, .gantt_grid_data .gantt_row:hover,
.gantt_grid_data .gantt_row.odd:hover { .gantt_grid_data .gantt_row.odd:hover {
background-color: #f3f1fe !important; background-color: #f3f1fe !important;
} }
/* 选中行高亮 */ /* 选中行高亮 */
.gantt_grid_data .gantt_row.gantt_selected, .gantt_grid_data .gantt_row.gantt_selected,
.gantt_grid_data .gantt_row.odd.gantt_selected, .gantt_grid_data .gantt_row.odd.gantt_selected,

View File

@ -43,7 +43,7 @@ defineOptions({ name: 'WxNews' })
const props = withDefaults( const props = withDefaults(
defineProps<{ defineProps<{
articles: any[] | null articles?: any[] | null
}>(), }>(),
{ {
articles: null articles: null

View File

@ -31,7 +31,7 @@
v-model="formData.data" v-model="formData.data"
type="textarea" type="textarea"
:rows="4" :rows="4"
placeholder='请输入模板数据JSON 格式),例如:{"keyword1": {"value": "测试内容"}}' placeholder="请输入模板数据JSON 格式),例如:{&quot;keyword1&quot;: {&quot;value&quot;: &quot;测试内容&quot;}}"
/> />
</el-form-item> </el-form-item>
<el-form-item label="跳转链接" prop="url"> <el-form-item label="跳转链接" prop="url">