Browse Source

fix:业务数据表格添加滚动条

刘恒 1 năm trước cách đây
mục cha
commit
27a1e565e0

+ 6 - 6
src/components/tree/agentChanell.vue

@@ -124,13 +124,13 @@ export default {
             this.$emit("showTab", {
               type: res.data.data.type,
               userId:
-                res.data.data.userList != null
-                  ? res.data.data.userList[0].id
-                  : "",
+                res.data.data.userList!=null 
+                  ? res.data.data.userList.length>0 ?res.data.data.userList[0].id
+                  : "" :'',
               agencyId:
-                res.data.data.deptList != null
-                  ? res.data.data.deptList[0].id
-                  : "",
+                res.data.data.deptList!=null 
+                  ? res.data.data.deptList.length>0 ?res.data.data.deptList[0].id
+                  : "" :'',
             });
             // this.userId =
             //   res.data.data.userList != null

+ 1 - 0
src/pages/business/agent.vue

@@ -196,6 +196,7 @@
           @clear="onClear"
           @change="onChange"
           :loading="loading"
+           :scroll="{ x: 'calc(1500px + 50%)', y: 400 }"
         >
           <div slot="operation" slot-scope="{ text, record }">
             <a-button type="link" @click="watchMessage({ text, record })"

+ 1 - 1
src/pages/business/channel.vue

@@ -184,7 +184,7 @@
             @clear="onClear"
             @change="onChange"
             :loading="loading"
-            :scroll="{ x: 'calc(1500px + 50%)', y: 600 }"
+            :scroll="{ x: 'calc(1500px + 50%)', y: 400 }"
           >
             <div slot="operation" slot-scope="{ text, record }">
               <a-button type="link" @click="watchMessage({ text, record })"

+ 1 - 0
src/pages/business/message.vue

@@ -126,6 +126,7 @@
           @clear="onClear"
           @change="onChange"
           :loading="loading"
+           :scroll="{ x: 'calc(1500px + 50%)', y: 400 }"
         >
           <div slot="insuranceCompany" slot-scope="{ record }">
             <img :src="record.logo" alt="" style="width: 24px; height: auto" />

+ 7 - 0
src/pages/business/orderMessage.vue

@@ -126,12 +126,18 @@
           @clear="onClear"
           @change="onChange"
           :loading="loading"
+           :scroll="{ x: 'calc(1500px + 50%)', y: 400 }"
         >
           <div slot="insuranceCompany" slot-scope="{ record }">
             <img :src="record.logo" alt="" style="width: 24px; height: auto" />
 
             {{ record.insuranceCompany }}
           </div>
+          <div slot="distributionAmountRate" slot-scope="{ text }">
+          {{ text==null ? '0%':(text*100).toFixed(2)+"%" }}
+        </div>
+
+         
 
           <div slot="operation" slot-scope="{ text, record }">
             <a-button type="link" @click="watchMessage({ text, record })"
@@ -190,6 +196,7 @@ const columns = [
   {
     title: "毛利率",
     dataIndex: "distributionAmountRate",
+    scopedSlots: { customRender: "distributionAmountRate" },
   },
 ];
 

+ 2 - 1
src/pages/business/sales.vue

@@ -153,10 +153,11 @@
           @clear="onClear"
           @change="onChange"
           :loading="loading"
+          :scroll="{ x: 'calc(1500px + 50%)', y: 400 }"
         >
         
         <div slot="distributionAmountRate" slot-scope="{ text }">
-          {{ text==null ? '0%':text.toFixed(2)+"%" }}
+          {{ text==null ? '0%':(text*100).toFixed(2)+"%" }}
         </div>
           <div slot="operation" slot-scope="{ text, record }">
             <a-button type="link" @click="watchMessage({ text, record })"

+ 1 - 1
src/pages/task/channel.vue

@@ -322,7 +322,7 @@ const columns = [
     scopedSlots: { customRender: "qutationCount" },
   },
   {
-    title: "代录单",
+    title: "代录单",
     dataIndex: "sumEntryStatus",
     // scopedSlots: { customRender: "qutationCount" },
   },