fix: 将设计师目标积分标签移动到积分池旁边
This commit is contained in:
parent
62ce022272
commit
2396a7a617
@ -777,6 +777,86 @@
|
||||
</div>
|
||||
</a-tab-pane>
|
||||
|
||||
<!-- 设计师目标积分设置 -->
|
||||
<a-tab-pane key="designer-target" tab="目标积分">
|
||||
<div class="settings-section">
|
||||
<div class="section-header">
|
||||
<h2 class="section-title">设计师目标积分配置</h2>
|
||||
<a-button type="primary" @click="showDesignerTargetModal()">
|
||||
<template #icon><Icon name="plus" size="sm" /></template>
|
||||
添加配置
|
||||
</a-button>
|
||||
</div>
|
||||
|
||||
<a-alert
|
||||
message="配置说明"
|
||||
description="为接单部门设计师设置月度目标积分和延误扣分比例。延误扣分 = 任务积分 × 延误小时数 × 扣分比例%。"
|
||||
type="info"
|
||||
show-icon
|
||||
style="margin-bottom: 16px;"
|
||||
/>
|
||||
|
||||
<div class="filter-bar" style="margin-bottom: 16px; display: flex; gap: 16px;">
|
||||
<a-select
|
||||
v-model:value="designerTargetFilter.deptId"
|
||||
placeholder="筛选部门"
|
||||
style="width: 200px"
|
||||
allow-clear
|
||||
@change="loadDesignerTargetList"
|
||||
>
|
||||
<a-select-option
|
||||
v-for="dept in receivingDepartments"
|
||||
:key="dept.id"
|
||||
:value="dept.id"
|
||||
>
|
||||
{{ dept.deptName }}
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<a-date-picker
|
||||
v-model:value="designerTargetFilter.monthValue"
|
||||
picker="month"
|
||||
placeholder="筛选月份"
|
||||
format="YYYY-MM"
|
||||
value-format="YYYY-MM"
|
||||
@change="handleDesignerTargetMonthChange"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<a-table
|
||||
:columns="designerTargetColumns"
|
||||
:data-source="designerTargetList"
|
||||
:loading="loadingDesignerTarget"
|
||||
row-key="id"
|
||||
:pagination="{ pageSize: 10 }"
|
||||
>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.key === 'targetScore'">
|
||||
<span class="target-score">{{ record.targetScore }} 分</span>
|
||||
</template>
|
||||
<template v-else-if="column.key === 'deductionRate'">
|
||||
<span>{{ record.deductionRate || 1 }}%</span>
|
||||
</template>
|
||||
<template v-else-if="column.key === 'effectiveMonth'">
|
||||
<span>{{ record.effectiveMonth || '通用配置' }}</span>
|
||||
</template>
|
||||
<template v-else-if="column.key === 'actions'">
|
||||
<a-space>
|
||||
<a-button type="link" size="small" @click="showDesignerTargetModal(record)">
|
||||
编辑
|
||||
</a-button>
|
||||
<a-popconfirm
|
||||
title="确定删除?"
|
||||
@confirm="handleDeleteDesignerTarget(record.id)"
|
||||
>
|
||||
<a-button type="link" danger size="small">删除</a-button>
|
||||
</a-popconfirm>
|
||||
</a-space>
|
||||
</template>
|
||||
</template>
|
||||
</a-table>
|
||||
</div>
|
||||
</a-tab-pane>
|
||||
|
||||
<!-- 钉钉集成 -->
|
||||
<a-tab-pane key="dingtalk" tab="钉钉集成">
|
||||
<div class="settings-section">
|
||||
@ -1414,86 +1494,6 @@
|
||||
</a-table>
|
||||
</div>
|
||||
</a-tab-pane>
|
||||
|
||||
<!-- 设计师目标积分设置 -->
|
||||
<a-tab-pane key="designer-target" tab="设计师目标积分">
|
||||
<div class="settings-section">
|
||||
<div class="section-header">
|
||||
<h2 class="section-title">设计师目标积分配置</h2>
|
||||
<a-button type="primary" @click="showDesignerTargetModal()">
|
||||
<template #icon><Icon name="plus" size="sm" /></template>
|
||||
添加配置
|
||||
</a-button>
|
||||
</div>
|
||||
|
||||
<a-alert
|
||||
message="配置说明"
|
||||
description="为接单部门设计师设置月度目标积分和延误扣分比例。延误扣分 = 任务积分 × 延误小时数 × 扣分比例%。"
|
||||
type="info"
|
||||
show-icon
|
||||
style="margin-bottom: 16px;"
|
||||
/>
|
||||
|
||||
<div class="filter-bar" style="margin-bottom: 16px; display: flex; gap: 16px;">
|
||||
<a-select
|
||||
v-model:value="designerTargetFilter.deptId"
|
||||
placeholder="筛选部门"
|
||||
style="width: 200px"
|
||||
allow-clear
|
||||
@change="loadDesignerTargetList"
|
||||
>
|
||||
<a-select-option
|
||||
v-for="dept in receivingDepartments"
|
||||
:key="dept.id"
|
||||
:value="dept.id"
|
||||
>
|
||||
{{ dept.deptName }}
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
<a-date-picker
|
||||
v-model:value="designerTargetFilter.monthValue"
|
||||
picker="month"
|
||||
placeholder="筛选月份"
|
||||
format="YYYY-MM"
|
||||
value-format="YYYY-MM"
|
||||
@change="handleDesignerTargetMonthChange"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<a-table
|
||||
:columns="designerTargetColumns"
|
||||
:data-source="designerTargetList"
|
||||
:loading="loadingDesignerTarget"
|
||||
row-key="id"
|
||||
:pagination="{ pageSize: 10 }"
|
||||
>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.key === 'targetScore'">
|
||||
<span class="target-score">{{ record.targetScore }} 分</span>
|
||||
</template>
|
||||
<template v-else-if="column.key === 'deductionRate'">
|
||||
<span>{{ record.deductionRate || 1 }}%</span>
|
||||
</template>
|
||||
<template v-else-if="column.key === 'effectiveMonth'">
|
||||
<span>{{ record.effectiveMonth || '通用配置' }}</span>
|
||||
</template>
|
||||
<template v-else-if="column.key === 'actions'">
|
||||
<a-space>
|
||||
<a-button type="link" size="small" @click="showDesignerTargetModal(record)">
|
||||
编辑
|
||||
</a-button>
|
||||
<a-popconfirm
|
||||
title="确定删除?"
|
||||
@confirm="handleDeleteDesignerTarget(record.id)"
|
||||
>
|
||||
<a-button type="link" danger size="small">删除</a-button>
|
||||
</a-popconfirm>
|
||||
</a-space>
|
||||
</template>
|
||||
</template>
|
||||
</a-table>
|
||||
</div>
|
||||
</a-tab-pane>
|
||||
</a-tabs>
|
||||
|
||||
<!-- 需求类型弹窗 -->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user