Browse Source

fix(lead): 修正优先级数值与标签的对应关系

yz 2 days ago
parent
commit
0842b35169
2 changed files with 2 additions and 6 deletions
  1. 1 5
      src/views/lead/mixins/leadIndex.js
  2. 1 1
      src/views/lead/types.d.ts

+ 1 - 5
src/views/lead/mixins/leadIndex.js

@@ -420,11 +420,7 @@ export default {
                         label: '优先级',
                         prop: 'priority',
                         type: 'select',
-                        dicData: [
-                            { label: '高', value: 1 },
-                            { label: '中', value: 2 },
-                            { label: '低', value: 3 }
-                        ],
+                        dicData: LEAD_PRIORITY_OPTIONS,
                         rules: [{
                             required: true,
                             message: '请选择优先级',

+ 1 - 1
src/views/lead/types.d.ts

@@ -19,7 +19,7 @@ export interface LeadRecord {
   contactPhone: string
   title: string
   endTime: string
-  priority: number // 1-高 2-中 3-低
+  priority: number // 1-低 2-中 3-高
   source: string
   groupName: string
   closeReason?: string | null