Forráskód Böngészése

CRM小需求-1 客户区域统计-正式客户列表页增加分配销售

hbchen 1 éve
szülő
commit
7d8279d292

+ 13 - 2
src/views/custom_manage/customList/regionCustomDetail.vue

@@ -10,14 +10,14 @@
                 @cell-mouse-enter="getCustomDetail"
             >
                 <el-table-column
-                    v-for="item in tableColumns"
+                    v-for="item in tableColumnsComputed"
                     :key="item.label"
                     :label="item.label"
                     :width="item.widthsty"
                     :min-width="item.minwidthsty"
                     :prop="item.key"
                     align="center"
-                    :sortable="['viewTotal','RoadShowTotal','LastViewTime','ExpireDay','createTime'].includes(item.key) ? 'custom' : false"
+                    :sortable="['viewTotal','RoadShowTotal','LastViewTime','ExpireDay'].includes(item.key) ? 'custom' : false"
                 >
                     <template slot-scope="{row}">
 
@@ -155,6 +155,10 @@ export default {
             label: '所属销售',
             key: 'SellerName',
           },
+          {
+            label: '分配销售',
+            key: 'ShareSeller',
+          },
           {
             label: '客户状态',
             key: 'Status',
@@ -198,6 +202,13 @@ export default {
       showMore(){
         const AdminName = localStorage.getItem('AdminName')
         return AdminName==='ydlou'
+      },
+      tableColumnsComputed(){
+        if(this.title.includes('正式')){
+          return this.tableColumns
+        }else{
+          return this.tableColumns.filter(item => item.label!='分配销售')
+        }
       }
     },
     methods: {