Parcourir la source

删除原来的 /api

dusenyao il y a 1 mois
Parent
commit
ad95dd437a

+ 0 - 3
.env.beiyu

@@ -1,4 +1 @@
 NODE_ENV = 'beiyu'
-
-# base api
-VUE_APP_BASE_API = 'https://chinesedu.blcup.com/'

+ 0 - 2
.env.development

@@ -1,4 +1,2 @@
 # base api
-VUE_APP_BASE_API = '/api'
-
 VUE_APP_EEP = '/eep'

+ 0 - 2
.env.production

@@ -1,4 +1,2 @@
 # base api
-VUE_APP_BASE_API = 'https://gcls.helxsoft.cn/'
-
 VUE_APP_EEP = 'http://eep.helxsoft.cn/'

+ 1 - 1
src/views/book/courseware/preview/components/upload_control/components/UploadView.vue

@@ -56,7 +56,7 @@ export default {
         UserType = user.user_type;
         SessionID = user.session_id;
       }
-      return `${process.env.VUE_APP_BASE_API}/GCLSFileServer/WebFileUpload?UserCode=${UserCode}&UserType=${UserType}&SessionID=${SessionID}&SecurityLevel=Mid`;
+      return `${process.env.VUE_APP_EEP}/FileServer/WebFileUpload?UserCode=${UserCode}&UserType=${UserType}&SessionID=${SessionID}&SecurityLevel=Mid`;
     },
   },
   watch: {

+ 8 - 8
src/views/book/courseware/preview/components/upload_preview/UploadPreviewPreview.vue

@@ -21,14 +21,14 @@
         </div> -->
         <div class="label-box">
           <span
-            :class="[index === active_index ? 'active' : '']"
             v-for="(label, index) in label_list"
             :key="index"
+            :class="[index === active_index ? 'active' : '']"
             @click="active_index = index"
             >{{ label }}</span
           >
         </div>
-        <ul class="file-list" v-if="source_list[active_index].length > 0">
+        <ul v-if="source_list[active_index].length > 0" class="file-list">
           <li v-for="(file, i) in source_list[active_index]" :key="i">
             <div class="file-name">
               <span>
@@ -38,18 +38,19 @@
               <SvgIcon v-show="file.file_id" icon-class="uploadPreview" size="16" @click="viewDialog(file)" />
               <img
                 v-if="isEnable(data.is_enable_download)"
-                @click="downLoad(file)"
                 style="width: 16px; height: 16px"
                 src="@/assets/download.png"
                 alt="download"
+                @click="downLoad(file)"
               />
             </div>
           </li>
         </ul>
-        <p class="label-tips" v-else>暂无本类型文件,看看其他类型吧</p>
+        <p v-else class="label-tips">暂无本类型文件,看看其他类型吧</p>
       </template>
     </div>
     <el-dialog
+      v-if="visible"
       :visible.sync="visible"
       :show-close="true"
       :close-on-click-modal="true"
@@ -58,7 +59,6 @@
       :lock-scroll="true"
       width="80%"
       top="0"
-      v-if="visible"
     >
       <iframe v-if="visible" :src="newpath" width="100%" :height="iframeHeight" frameborder="0"></iframe>
     </el-dialog>
@@ -86,7 +86,7 @@ export default {
       active_index: 0,
       visible: false,
       newpath: '',
-      iframeHeight: window.innerHeight - 100 + 'px',
+      iframeHeight: `${window.innerHeight - 100}px`,
     };
   },
   watch: {
@@ -142,8 +142,8 @@ export default {
         FileID,
       };
       location.href = `${
-        process.env.VUE_APP_BASE_API
-      }/GCLSFileServer/WebFileDownload?UserCode=${data.UserCode}&UserType=${data.UserType}&SessionID=${data.SessionID}&FileID=${data.FileID}`;
+        process.env.VUE_APP_EEP
+      }/FileServer/WebFileDownload?UserCode=${data.UserCode}&UserType=${data.UserType}&SessionID=${data.SessionID}&FileID=${data.FileID}`;
     },
     // 预览
     viewDialog(file) {

+ 2 - 2
src/views/personal_workbench/project/ProductionEditorialManage.vue

@@ -41,10 +41,10 @@
           >
             {{ name }}
           </div>
-          <div class="producer">
+          <div class="producer nowrap-ellipsis" :title="producer_list.map((producer) => producer.name).join(';')">
             <span>{{ producer_list.map((producer) => producer.name).join(';') }}</span>
           </div>
-          <div class="audit">{{ auditor_desc }}</div>
+          <div class="audit nowrap-ellipsis" :title="auditor_desc">{{ auditor_desc }}</div>
           <div class="status"></div>
           <div class="operator">
             <span class="link">修改</span>

+ 0 - 12
vue.config.js

@@ -12,11 +12,6 @@ const NODE_ENV = process.env.NODE_ENV;
 
 const port = process.env.port || 9564;
 
-const baseApiUrlList = {
-  '': '',
-  '/api': 'https://gcls.helxsoft.cn/',
-};
-
 const eepApiUrlList = {
   '': '',
   '/eep': 'http://eep.helxsoft.cn/',
@@ -27,13 +22,6 @@ const proxy = {};
 let name = '国际中文智慧教育引擎互动教材编辑器';
 
 if (NODE_ENV === 'development') {
-  proxy[process.env.VUE_APP_BASE_API] = {
-    target: baseApiUrlList[process.env.VUE_APP_BASE_API],
-    changeOrigin: true,
-    pathRewrite: {
-      [`^${process.env.VUE_APP_BASE_API}`]: '',
-    },
-  };
   proxy[process.env.VUE_APP_EEP] = {
     target: eepApiUrlList[process.env.VUE_APP_EEP],
     changeOrigin: true,