gjy 2 rokov pred
rodič
commit
c718944982

+ 8 - 5
src/views/cargoOwnerManagement/empowerExamine.vue

@@ -94,7 +94,7 @@
         <el-table-column label="账户" min-width="180">
           <template slot-scope="scope">
             <el-popover placement="right" width="400" trigger="click" @show="getBillList(scope.row.commonId)">
-              <div class="bill-content">
+              <div v-if='billList.length>0' class="bill-content">
                 <div class="bill-item" v-for="(item, index) in billList" :key="index">
                   <div class="row1">
                     <div class="left">
@@ -117,6 +117,7 @@
                   </div> -->
                 </div>
               </div>
+              <div v-else>暂无数据</div>
               <!-- <el-button slot="reference">账单</el-button> -->
               <span slot="reference" class="btn_css" style="margin-right:20px">账单</span>
             </el-popover>
@@ -264,7 +265,7 @@
         <div class="recharge_css">
           <div class="title_css">上传截图 :</div>
           <div class="upLoad">
-            <el-upload class="avatar-uploader" action="https://www.zthymaoyi.com/upload/admin" :show-file-list="false"
+            <el-upload class="avatar-uploader" action="https://apitest.changyuntong56.com/appendix/api/upload" :show-file-list="false"
               :on-success="handleAvatarSuccess">
               <img v-if="imageUrl" :src="imageUrl" class="avatar" />
               <i v-else class="el-icon-plus avatar-uploader-icon"></i>
@@ -279,7 +280,7 @@
     <!-- 账户信息 -->
     <el-dialog :close-on-click-modal="false" title="账户信息" :visible.sync="payInfo" width="500px"
       :before-close="payClose">
-      <div class="pay">
+      <div v-if='paySee' class="pay">
         <div class="pay_css">
           <div class="title_css">收款人:</div>
           <div class="name_css">{{ paySee.cardholderName }}</div>
@@ -382,10 +383,12 @@ export default {
         .then((response) => {
           if (response.code == 200) {
             this.paySee = response.data
-            this.payInfo = true;
             if (!this.paySee) {
               this.$message.error('暂无数据!')
+              return
             }
+            this.payInfo = true;
+            
           }
         })
         .catch(() => {
@@ -670,7 +673,7 @@ export default {
     },
     //上传付款截图
     handleAvatarSuccess(e) {
-      this.imageUrl = e.url
+      this.imageUrl = e.data.url
     },
     rechargeSubmit() {
       if (!this.rechargeData.amountMoney) {

+ 9 - 3
src/views/enterpriseManagement/enterpriseAudit.vue

@@ -57,7 +57,7 @@
         <el-table-column label="账户" min-width="153">
           <template slot-scope="scope">
             <el-popover placement="right" width="400" trigger="click" @show="getBillList(scope.row.id)">
-              <div class="bill-content">
+              <div v-if='billList.length>0' class="bill-content">
                 <div class="bill-item" v-for="item in billList" :Key="item.id">
                   <div class="row1">
                     <div class="left">
@@ -80,6 +80,7 @@
                   </div> -->
                 </div>
               </div>
+              <div v-else>暂无数据</div>
               <!-- <el-button slot="reference">账单</el-button> -->
               <span slot="reference" class="btn_css" style="margin-right:20px">账单</span>
             </el-popover>
@@ -197,7 +198,7 @@
         <div class="recharge_css">
           <div class="title_css">上传截图 :</div>
           <div class="upLoad">
-            <el-upload class="avatar-uploader" action="https://www.zthymaoyi.com/upload/admin" :show-file-list="false"
+            <el-upload class="avatar-uploader" action="https://apitest.changyuntong56.com/appendix/api/upload" :show-file-list="false"
               :on-success="handleAvatarSuccess">
               <img v-if="imageUrl" :src="imageUrl" class="avatar" />
               <i v-else class="el-icon-plus avatar-uploader-icon"></i>
@@ -274,6 +275,9 @@ import {
   getBillList,
   theRecharge
 } from '@/api/enterpriseManagement'
+  import {
+    uploadPath
+  } from '@/api/officialWebsiteManagement'
 export default {
   components: {
     'el-image-viewer': () =>
@@ -281,6 +285,7 @@ export default {
   },
   data() {
     return {
+      uploadPath,
       billList: [],
       tableData: [],
       //分页
@@ -461,7 +466,8 @@ export default {
     },
     //上传付款截图
     handleAvatarSuccess(e) {
-      this.imageUrl = e.url
+      console.log(e)
+      this.imageUrl = e.data.url
     },
     rechargeSubmit() {
       if (!this.rechargeData.amountMoney) {