fix: 修复receivingDepartments变量重复声明问题
This commit is contained in:
parent
2396a7a617
commit
40d7633e6f
@ -805,7 +805,7 @@
|
||||
@change="loadDesignerTargetList"
|
||||
>
|
||||
<a-select-option
|
||||
v-for="dept in receivingDepartments"
|
||||
v-for="dept in targetScoreDepartments"
|
||||
:key="dept.id"
|
||||
:value="dept.id"
|
||||
>
|
||||
@ -2189,7 +2189,7 @@
|
||||
placeholder="请选择接单部门"
|
||||
>
|
||||
<a-select-option
|
||||
v-for="dept in receivingDepartments"
|
||||
v-for="dept in targetScoreDepartments"
|
||||
:key="dept.id"
|
||||
:value="dept.id"
|
||||
>
|
||||
@ -2456,7 +2456,7 @@ const thirdPartyDbColumns = [
|
||||
// 设计师目标积分配置相关
|
||||
const designerTargetList = ref<any[]>([])
|
||||
const loadingDesignerTarget = ref(false)
|
||||
const receivingDepartments = ref<any[]>([])
|
||||
const targetScoreDepartments = ref<any[]>([])
|
||||
const designerTargetFilter = reactive({
|
||||
deptId: undefined as number | undefined,
|
||||
month: undefined as string | undefined,
|
||||
@ -4610,7 +4610,7 @@ onMounted(() => {
|
||||
// 加载第三方素材API配置
|
||||
loadExternalAssetApiConfig()
|
||||
// 加载设计师目标积分配置
|
||||
loadReceivingDepartments()
|
||||
loadTargetScoreDepartments()
|
||||
loadDesignerTargetList()
|
||||
})
|
||||
|
||||
@ -4806,10 +4806,10 @@ const handleDisableThirdPartyDb = async (id: number) => {
|
||||
|
||||
// ==================== 设计师目标积分配置相关方法 ====================
|
||||
|
||||
const loadReceivingDepartments = async () => {
|
||||
const loadTargetScoreDepartments = async () => {
|
||||
try {
|
||||
const response = await getReceivingDepartments()
|
||||
receivingDepartments.value = response.data || []
|
||||
targetScoreDepartments.value = response.data || []
|
||||
} catch (error: any) {
|
||||
console.error('加载接单部门失败:', error)
|
||||
}
|
||||
@ -4855,7 +4855,7 @@ const showDesignerTargetModal = (record?: any) => {
|
||||
designerTargetModalTitle.value = '添加目标积分配置'
|
||||
Object.assign(designerTargetForm, {
|
||||
id: undefined,
|
||||
deptId: receivingDepartments.value[0]?.id || 0,
|
||||
deptId: targetScoreDepartments.value[0]?.id || 0,
|
||||
userId: undefined,
|
||||
targetScore: 500,
|
||||
effectiveMonth: undefined,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user