Browse Source

no message

linwenxin 11 months ago
parent
commit
b127f894f1
3 changed files with 11 additions and 45 deletions
  1. 1 3
      .env.development
  2. 0 1
      .env.staging
  3. 10 41
      src/views/commercialEngineering/components/examine.vue

+ 1 - 3
.env.development

@@ -2,6 +2,4 @@
 ENV = 'development'
 
 # base api
-# 121.43.111.127 192.168.31.6
-VUE_APP_BASE_API = 'https://121.43.111.127:10005/'
-# VUE_APP_BASE_API = 'https://gyl.greeapps.com/supply_api/'
+VUE_APP_BASE_API = 'https://hg.zfire.top/api/'

+ 0 - 1
.env.staging

@@ -4,6 +4,5 @@ NODE_ENV = production
 ENV = 'staging'
 
 # base api
-#VUE_APP_BASE_API = 'http://121.43.111.127:10005/'
 VUE_APP_BASE_API = 'https://hg.zfire.top/api/'
 

+ 10 - 41
src/views/commercialEngineering/components/examine.vue

@@ -102,49 +102,10 @@
             <CopyButton :copyText="formData.commonFollowProject" />
           </div>
         </el-col>
-        <el-col :xs="24" :sm="24" :lg="24" class="item">
+        <el-col :xs="24" :sm="24" :lg="24" class="item" v-if="shenheshangchuan">
           <div class="label" style="height: auto">审核上传</div>
           <div class="value" style="height: auto">
             <ImageUpload class="mg-b" :file-list="formData.files" :multiple="true" />
-            <!-- <template v-else>
-              <div
-                v-for="item in formData.files"
-                :key="item.fileUrl"
-                style="display: flex; width: 120px; height: 120px; align-items: center; justify-content: center"
-              >
-                <el-image
-                  v-if="checkFileType(item.fileUrl) == 'image'"
-                  ref="img"
-                  :src="$imageUrl + item.fileUrl"
-                  fit="cover"
-                  :preview-src-list="[$imageUrl + item.fileUrl]"
-                  class="elImageClose"
-                />
-                <div
-                  style="
-                    display: flex;
-                    width: 120px;
-                    height: 120px;
-                    align-items: center;
-                    justify-content: center;
-                    cursor: pointer;
-                  "
-                  @click="openPdf(item)"
-                >
-                  <img v-if="checkFileType(item.fileUrl) == 'word'" class="file" src="@/assets/common/word.png">
-                  <img v-if="checkFileType(item.fileUrl) == 'excel'" class="file" src="@/assets/common/excel.png">
-                  <img v-if="checkFileType(item.fileUrl) == 'ppt'" class="file" src="@/assets/common/ppt.png">
-                  <img
-                    v-if="checkFileType(item.fileUrl) == 'pdf'"
-                    class="file"
-                    style="cursor: pointer"
-                    src="@/assets/common/pdf.png"
-                  >
-
-                  <img v-if="checkFileType(item.fileUrl) == 'file'" class="file aaa" src="@/assets/common/zip.jpeg">
-                </div>
-              </div>
-            </template> -->
             <div style="margin-left: 20px">注:可上传文件、附件</div>
           </div>
         </el-col>
@@ -217,7 +178,15 @@ export default {
     }
   },
   computed: {
-    ...mapGetters(['isTradeExaminer', 'isCustomer'])
+    ...mapGetters(['isTradeExaminer', 'isCustomer']),
+    shenheshangchuan() {
+      var { isService, isTradeExaminer } = localStorage.getItem('supply_user') || {}
+      return this.isTradeExaminer && isTradeExaminer
+        ? true
+        : isService && this.$route.name === crossDistrictkList
+        ? true
+        : false
+    }
   },
   watch: {
     'formData.id': {