ソースを参照

经销商与渠道商名称预格式化

DELL 3 年 前
コミット
7a1a854e52

+ 3 - 2
src/views/business/channel/index.vue

@@ -117,15 +117,16 @@
           <el-table-column label="渠道编号" sortable="custom" prop="channelId" width="100px" />
           <el-table-column label="渠道名称" prop="name" show-overflow-tooltip  width="180px">
             <template slot-scope="scope">
+
               <el-button
                   v-if="scope.row.childCnt > 0"
                   size="mini"
                   type="text"
                   @click="handleView(scope.row)"
                 >
-                  {{scope.row.name}}
+                  <pre>{{scope.row.name}}</pre>
               </el-button>
-              <span v-else>{{scope.row.name}}</span>
+              <span v-else><pre>{{scope.row.name}}</pre></span>
             </template>
           </el-table-column>
           <el-table-column label="手机号码" prop="mobile" show-overflow-tooltip  width="120px"/>

+ 5 - 1
src/views/business/salesite/index.vue

@@ -118,7 +118,11 @@
     <el-table v-loading="loading" :data="siteList" @sort-change="sortChannelId" @selection-change="handleSelectionChange">
      <!-- <el-table-column type="selection" width="55"  /> -->
       <el-table-column label="经销商编号" sortable="custom" prop="channelId" width="110px"/>
-      <el-table-column label="经销商名称" show-overflow-tooltip  prop="name" min-width="110px" />
+      <el-table-column label="经销商名称" show-overflow-tooltip  prop="name" min-width="110px" >
+        <template slot-scope="scope">
+          <pre>{{scope.row.name}}</pre>
+        </template>
+      </el-table-column>
       <el-table-column label="手机号码"  prop="mobile" width="120px"/>
       <el-table-column label="佣金比例" sortable="custom" prop="commRate" width="100px">
         <template slot-scope="{ row, column }">