Browse Source

上线审批,列表内容截取

sphinx 3 years ago
parent
commit
747a0506b3
1 changed files with 18 additions and 2 deletions
  1. 18 2
      src/pages/main/iptv/planApproval.vue

+ 18 - 2
src/pages/main/iptv/planApproval.vue

@@ -12,7 +12,7 @@
                         :row-style="tableRowClassName"
                         tooltip-effect="dark" size="small" border style="width: 100%" v-loading="loading">
                     <el-table-column prop="itemName" label="申请事项" width="200"></el-table-column>
-                    <el-table-column prop="planPurpose" label="策划目的" ></el-table-column>
+                    <el-table-column prop="planPurpose" label="策划目的" :formatter="formatter" ></el-table-column>
                     <el-table-column prop="createTime" label="申请时间" width="150"></el-table-column>
                     <el-table-column prop="createName" label="申请人" width="100"></el-table-column>
                     <el-table-column prop="queryStatus" label="状态" width="100">
@@ -558,7 +558,11 @@ export default {
                 }
                 if(this.infolist.status==='2') this.nextStep="[分管副总]";
                 if(this.infolist.status==='6') this.nextStep="[频道负责人]";
-
+                if (this.infolist.channelName==='其他'){
+                    this.isOther = true;
+                }else{
+                    this.isOther = false;
+                }
                 this.loading = false;
             });
         },
@@ -733,6 +737,18 @@ export default {
                 return stylejson;
             }
             return ''
+        },
+        formatter(row, column) {
+            if (row.planPurpose){
+                if (row.planPurpose.length>100){
+                    return row.planPurpose.slice(1,100)+"......";
+                }else{
+                    return row.planPurpose;
+                }
+            }else{
+                return row.planPurpose;
+            }
+
         }
     },
     mounted() {