guhongwei 4 년 전
부모
커밋
a828273105
2개의 변경된 파일20개의 추가작업 그리고 14개의 파일을 삭제
  1. 1 0
      src/views/userCenter/common/dataInfo.vue
  2. 19 14
      src/views/userCenter/common/parts/detailed.vue

+ 1 - 0
src/views/userCenter/common/dataInfo.vue

@@ -66,6 +66,7 @@ export default {
     async search() {
       const res = await this.fetch(this.id);
       if (this.$checkRes(res)) {
+        console.log(res.data);
         this.$set(this, 'form', res.data);
       }
     },

+ 19 - 14
src/views/userCenter/common/parts/detailed.vue

@@ -8,7 +8,7 @@
               研究工作报告(必备)
             </el-col>
             <el-col :span="2" class="shortText">
-              <el-link :underline="false" :href="linkInfo.work_report">文件下载</el-link>
+              <el-link :underline="false" :href="linkInfo.work_report && linkInfo.work_report.url">文件下载</el-link>
             </el-col>
           </el-col>
           <el-col :span="24" class="short">
@@ -16,7 +16,7 @@
               研究技术报告(必备)
             </el-col>
             <el-col :span="2" class="shortText">
-              <el-link :underline="false" :href="linkInfo.techol_report">文件下载</el-link>
+              <el-link :underline="false" :href="linkInfo.techol_report && linkInfo.techol_report.url">文件下载</el-link>
             </el-col>
           </el-col>
           <el-col :span="24" class="short">
@@ -24,7 +24,7 @@
               经济效益分析(必备)
             </el-col>
             <el-col :span="2" class="shortText">
-              <el-link :underline="false" :href="linkInfo.benefit">文件下载</el-link>
+              <el-link :underline="false" :href="linkInfo.benefit && linkInfo.benefit.url">文件下载</el-link>
             </el-col>
           </el-col>
           <el-col :span="24" class="short">
@@ -32,7 +32,7 @@
               科技查新报告(科技项目成果,必备)
             </el-col>
             <el-col :span="2" class="shortText">
-              <el-link :underline="false" :href="linkInfo.science_report">文件下载</el-link>
+              <el-link :underline="false" :href="linkInfo.science_report && linkInfo.science_report.url">文件下载</el-link>
             </el-col>
           </el-col>
           <el-col :span="24" class="short">
@@ -40,7 +40,7 @@
               法律价值评估报告(专利成果,必备)
             </el-col>
             <el-col :span="2" class="shortText">
-              <el-link :underline="false" :href="linkInfo.assess_report">文件下载</el-link>
+              <el-link :underline="false" :href="linkInfo.assess_report && linkInfo.assess_report.url">文件下载</el-link>
             </el-col>
           </el-col>
           <el-col :span="24" class="short">
@@ -48,7 +48,7 @@
               推广应用证明(两家以上应用单位,必备)
             </el-col>
             <el-col :span="2" class="shortText">
-              <el-link :underline="false" :href="linkInfo.app_prove">文件下载</el-link>
+              <el-link :underline="false" :href="linkInfo.app_prove && linkInfo.app_prove.url">文件下载</el-link>
             </el-col>
           </el-col>
           <el-col :span="24" class="short">
@@ -56,7 +56,7 @@
               成果技术汇报PPT(必备)
             </el-col>
             <el-col :span="2" class="shortText">
-              <el-link :underline="false" :href="linkInfo.techol_ppt">文件下载</el-link>
+              <el-link :underline="false" :href="linkInfo.techol_ppt && linkInfo.techol_ppt.url">文件下载</el-link>
             </el-col>
           </el-col>
           <el-col :span="24" class="short">
@@ -64,7 +64,7 @@
               检测报告(根据项目需要提供)
             </el-col>
             <el-col :span="2" class="shortText">
-              <el-link :underline="false" :href="linkInfo.testing_report">文件下载</el-link>
+              <el-link :underline="false" :href="linkInfo.testing_report && linkInfo.testing_report.url">文件下载</el-link>
             </el-col>
           </el-col>
           <el-col :span="24" class="short">
@@ -72,7 +72,7 @@
               质量标准(检测报告所依据的标准,企业标准,行业标准,国家标准,国际标准)
             </el-col>
             <el-col :span="2" class="shortText">
-              <el-link :underline="false" :href="linkInfo.quality">文件下载</el-link>
+              <el-link :underline="false" :href="linkInfo.quality && linkInfo.quality.url">文件下载</el-link>
             </el-col>
           </el-col>
           <el-col :span="24" class="short">
@@ -80,7 +80,7 @@
               与本成果相关的授权专利证书
             </el-col>
             <el-col :span="2" class="shortText">
-              <el-link :underline="false" :href="linkInfo.patent">文件下载</el-link>
+              <el-link :underline="false" :href="linkInfo.patent && linkInfo.patent.url">文件下载</el-link>
             </el-col>
           </el-col>
           <el-col :span="24" class="short">
@@ -88,7 +88,7 @@
               特殊行业需要提供的相应证明材料
             </el-col>
             <el-col :span="2" class="shortText">
-              <el-link :underline="false" :href="linkInfo.special">文件下载</el-link>
+              <el-link :underline="false" :href="linkInfo.special && linkInfo.special.url">文件下载</el-link>
             </el-col>
           </el-col>
           <el-col :span="24" class="short">
@@ -96,7 +96,7 @@
               项目经费预算书
             </el-col>
             <el-col :span="2" class="shortText">
-              <el-link :underline="false" :href="linkInfo.budget">文件下载</el-link>
+              <el-link :underline="false" :href="linkInfo.budget && linkInfo.budget.url">文件下载</el-link>
             </el-col>
           </el-col>
           <el-col :span="24" class="short">
@@ -104,7 +104,7 @@
               项目经费决算书
             </el-col>
             <el-col :span="2" class="shortText">
-              <el-link :underline="false" :href="linkInfo.final">文件下载</el-link>
+              <el-link :underline="false" :href="linkInfo.final && linkInfo.final.url">文件下载</el-link>
             </el-col>
           </el-col>
         </el-col>
@@ -125,7 +125,12 @@ export default {
     return {};
   },
   created() {},
-  methods: {},
+  methods: {
+    btn(url) {
+      console.log(url);
+      window.open(url);
+    },
+  },
   computed: {
     ...mapState(['user']),
   },