Преглед изворни кода

fix(征信):征信报告下载

sufan пре 7 месеци
родитељ
комит
a942e6b8a1

+ 6 - 0
src/components/Upload/index.vue

@@ -39,6 +39,7 @@
     </el-upload>
     <template v-if="fileLists.length && canDownload">
       <div
+        v-power="downloadPower"
         :class="{
           'upload-download': !uploadFromStatus,
           'upload-form-download': uploadFromStatus,
@@ -140,6 +141,11 @@ export default {
     fileType: {
       type: String,
       default: ''
+    },
+    // 下载按钮权限
+    downloadPower: {
+      type: String,
+      default: ''
     }
   },
   data() {

+ 7 - 7
src/layout/components/Navbar.vue

@@ -22,7 +22,7 @@
       </el-dropdown>
     </div>
     <cy-dialog ref="updatePwd" title="修改密码" :top="'20vh'" :append="true">
-      <el-form ref="ruleForm" :key="key" :model="formData" :rules="rules" label-width="150px" label-position="top" class="rule-form-orange">
+      <el-form ref="ruleForm" :model="formData" :rules="rules" label-width="150px" label-position="top" class="rule-form-orange">
         <el-form-item label="新密码:" prop="newPwd" style="width: 100%;">
           <el-input v-model="formData.newPwd" maxlength="20" type="password" placeholder="请输入新密码" />
         </el-form-item>
@@ -46,6 +46,9 @@ import md5 from 'js-md5'
 // import Hamburger from '@/components/Hamburger'
 
 export default {
+  components: {
+    // Hamburger
+  },
   data() {
     return {
       formData: {
@@ -63,9 +66,6 @@ export default {
       showDialog: false
     }
   },
-  components: {
-    // Hamburger
-  },
   computed: {
     ...mapGetters([
       'name',
@@ -90,13 +90,13 @@ export default {
     },
     confirmSubmit() {
       this.$refs.ruleForm.validate(flag => {
-        if(flag) {
+        if (flag) {
           this.submitPwd()
         }
       })
     },
     submitPwd() {
-      if(this.formData.confirmPwd !== this.formData.newPwd) {
+      if (this.formData.confirmPwd !== this.formData.newPwd) {
         this.$message.error('两次输入的密码不一致')
         return
       }
@@ -202,6 +202,6 @@ export default {
       }
     }
   }
- 
+
 }
 </style>

+ 2 - 0
src/views/creditInfoManage/components/CompanyEdit.vue

@@ -33,6 +33,7 @@
             placeholder="请上传征信查询授权书"
             :can-download="true"
             disabled
+            download-power="enterpriseDownload"
           />
         </el-form-item>
         <el-form-item label="征信查询日期" style="width: 100%;margin-bottom: 0px;">
@@ -46,6 +47,7 @@
             placeholder="请上传征信报告"
             disabled
             :can-download="true"
+            download-power="enterpriseDownload"
           />
         </el-form-item>
       </div>

+ 3 - 0
src/views/creditInfoManage/components/PersonEdit.vue

@@ -77,6 +77,8 @@
             :file-data="item.creditAddressFile?[item.creditAddressFile]:[]"
             :upload-from-orange-status="true"
             placeholder="请上传征信报告"
+            :can-download="true"
+            download-power="personDownload"
             disabled
           />
         </el-form-item>
@@ -107,6 +109,7 @@
 
 <script>
 import { creditDetail } from '@/api/creditInfoManage/index'
+import { download } from '@/api/creditManage/supplierManage'
 export default {
   props: {
     detailId: {