Browse Source

局端办公-公文-config.js配置统一整理,公文变量通过config取值;readme文件更新了打包和服务器放置位置说明

hpAlivsliu 6 months ago
parent
commit
ed89c14bb6

+ 77 - 4
README.md

@@ -1,7 +1,80 @@
-# Vue 3 + Vite
+# 亲亲云(智慧教育云平台)-局端办公
 
-This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
+> 亲亲云(智慧教育云平台)-局端办公,由景宁办公迁移改动;其中和局端办公同样属性的还包含校端办公;
+>
+> 校端办公-配置文件config.js说明;打包上传说明
 
-## Recommended IDE Setup
 
-- [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)
+
+#### 1.配置文件(2024-12-19版本,详见git版本提交记录)
+
+~~~js
+const isDev = location.host.endsWith('.top')
+
+window.globalVariables = window.GLOBAL_CONFIG = isDev ?
+  {
+    oss: 'https://qqyxtjnmfopenapi.bozedu.top/',
+    api: 'https://qqyxtjnmfopenapi.bozedu.top/',
+    // api: ' http:/10.100.101.120:86',//英山一中打包用
+    // login: 'https://qqyxt.bozedu.net/app/activityRating/home/login.html',
+    // wpsserver: 'http://60.188.226.44:8001/loading.html'
+    // origin: window.location.origin + '/app/xdbg/',
+
+    installLink:'https://wpsoas.bozedu.top/install.html',
+    wpsserver: 'https://wpsoas.bozedu.top/loading.html',
+    microsoftPreview: 'https://view.officeapps.live.com/op/view.aspx?src=',
+    docxPreview:'https://qqyxtjnmfopenapi.bozedu.top/',
+  }
+  :
+  {
+    oss: 'https://qqyxtjnmfopenapi.bozedu.net/',
+    api: 'https://qqyxtjnmfopenapi.bozedu.net/',
+     // api: ' http:/10.100.101.120:86',//英山一中打包用
+    // login: 'https://qqyxt.bozedu.net/app/activityRating/home/login.html',
+    // wpsserver: 'http://60.188.226.44:8001/loading.html',
+    origin: window.location.origin,
+
+    installLink:'https://wpsoas.bozedu.net/install.html',
+    wpsserver: 'https://wpsoas.bozedu.net/loading.html',
+    microsoftPreview: 'https://view.officeapps.live.com/op/view.aspx?src=',
+    docxPreview:'https://qqyxtjnmfopenapi.bozedu.net/',
+  }
+
+
+
+~~~
+
+
+
+#### 2.打包发布说明
+
+~~~js
+校端办公仓库地址:
+http://git.bozedu.net:3000/872880485/bureau_office.git
+
+打包命令:
+npm run build
+
+打包文件
+dist目录中
+~~~
+
+
+
+~~~js
+FTP地址:47.110.237.199
+端口:60021
+用户:qqyxtjnmf_bozedu_net
+密码:不显式显示,具体请问具体人员
+
+登录服务器目录结构:
+master
+.htaccess
+404.html
+master_20241019.gz
+
+将局端办公打包的文件dist中文件放入
+/master/ju
+
+~~~
+

+ 14 - 2
public/config.js

@@ -4,17 +4,29 @@ window.globalVariables = window.GLOBAL_CONFIG = isDev ?
   {
     oss: 'https://qqyxtjnmfopenapi.bozedu.top/',
     api: 'https://qqyxtjnmfopenapi.bozedu.top/',
+    // api: ' http:/10.100.101.120:86',//英山一中打包用
     // login: 'https://qqyxt.bozedu.net/app/activityRating/home/login.html',
+    // wpsserver: 'http://60.188.226.44:8001/loading.html'
     // origin: window.location.origin + '/app/xdbg/',
-    wpsserver: 'http://60.188.226.44:8001/loading.html'
+
+    installLink:'https://wpsoas.bozedu.top/install.html',
+    wpsserver: 'https://wpsoas.bozedu.top/loading.html',
+    microsoftPreview: 'https://view.officeapps.live.com/op/view.aspx?src=',
+    docxPreview:'https://qqyxtjnmfopenapi.bozedu.top/',
   }
   :
   {
     oss: 'https://qqyxtjnmfopenapi.bozedu.net/',
     api: 'https://qqyxtjnmfopenapi.bozedu.net/',
+     // api: ' http:/10.100.101.120:86',//英山一中打包用
     // login: 'https://qqyxt.bozedu.net/app/activityRating/home/login.html',
+    // wpsserver: 'http://60.188.226.44:8001/loading.html',
     origin: window.location.origin,
-    wpsserver: 'http://60.188.226.44:8001/loading.html'
+
+    installLink:'https://wpsoas.bozedu.net/install.html',
+    wpsserver: 'https://wpsoas.bozedu.net/loading.html',
+    microsoftPreview: 'https://view.officeapps.live.com/op/view.aspx?src=',
+    docxPreview:'https://qqyxtjnmfopenapi.bozedu.net/',
   }
 
 

+ 1 - 1
src/components/FilePreview/index.vue

@@ -1,7 +1,7 @@
 <template>
   <div>
     <template v-if="type === 'office'">
-      <!-- <iframe :src="`https://view.officeapps.live.com/op/view.aspx?src=${getFullUrl(url)}`" style="width: 100%; height: 600px;" frameborder='0'></iframe> -->
+      <!-- <iframe :src="`${window.globalVariables.microsoftPreview}${getFullUrl(url)}`" style="width: 100%; height: 600px;" frameborder='0'></iframe> -->
     </template>
     <template v-else-if="type === 'pdf'">
       <object type="application/pdf" :data="getFullUrl(url)" style="width: 100%; height: 600px;"></object>

+ 1 - 1
src/components/PreviewAttach/index.vue

@@ -18,7 +18,7 @@ export default {
     return {
       showUrl: "",
       suffix: "",
-      previewUrl: "https://view.officeapps.live.com/op/view.aspx?src=",
+      previewUrl: window.globalVariables.microsoftPreview,
     }
   },
   props: ["commonUrl", "filename"],

+ 1 - 1
src/components/PreviewMutiAttach/index.vue

@@ -21,7 +21,7 @@ export default {
       allData: [],
       showUrl: "",
       suffix: "",
-      previewUrl: "https://view.officeapps.live.com/op/view.aspx?src=",
+      previewUrl: window.globalVariables.microsoftPreview,
     }
   },
   props: ["previewList"],

+ 1 - 1
src/views/gwglxt/dbfw/index.vue

@@ -325,7 +325,7 @@ export default {
       });
     },
     initWpsAss() {
-      let installLink = "http://60.188.226.44:8001/install.html";
+      let installLink = window.globalVariables.installLink;
       window.open(installLink, '_blank');
     },
     //多选

+ 2 - 2
src/views/gwglxt/dbfw/sh/index.vue

@@ -288,7 +288,7 @@ export default {
         urltype: 2,
       },
       updateUrl: window.globalVariables.api + "/upload/main/file",
-      officeFixedUrl: "https://view.officeapps.live.com/op/view.aspx?src=",
+      officeFixedUrl: window.globalVariables.microsoftPreview,
       prefixPDFUrl: window.globalVariables.api + "/plugins/pdf.js/web/viewer2.html?file=",
       titlePngUrl: "",
       zhangUrl: "",
@@ -377,7 +377,7 @@ export default {
         });
     },
     initWpsAss() {
-      let installLink = "http://60.188.226.44:8001/install.html";
+      let installLink =  window.globalVariables.installLink;
       window.open(installLink, '_blank');
     },
     handleSelectionChange(val) {

+ 1 - 1
src/views/gwglxt/dygw/index.vue

@@ -413,7 +413,7 @@ export default {
     },
     //init 初始化
     initWpsAss() {
-      let installLink = "http://60.188.226.44:8001/install.html";
+      let installLink =  window.globalVariables.installLink;
       window.open(installLink, '_blank');
     },
     //多选

+ 1 - 1
src/views/gwglxt/fwng/index.vue

@@ -441,7 +441,7 @@ export default {
       });
     },
     initWpsAss() {
-      let installLink = "http://60.188.226.44:8001/install.html";
+      let installLink =  window.globalVariables.installLink;
       window.open(installLink,'_blank')
     },
      //多选

+ 1 - 1
src/views/gwglxt/gwjh/index.vue

@@ -444,7 +444,7 @@ export default {
       });
     },
     initWpsAss() {
-      let installLink = "http://60.188.226.44:8001/install.html";
+      let installLink =  window.globalVariables.installLink;
       window.open(installLink, '_blank');
     },
     //多选

+ 1 - 1
src/views/gwglxt/gwk/index.vue

@@ -276,7 +276,7 @@ export default {
       });
     },
     initWpsAss() {
-      let installLink = "http://60.188.226.44:8001/install.html";
+      let installLink =  window.globalVariables.installLink;
       window.open(installLink, '_blank');
     },
     //头部多选

+ 3 - 3
src/views/gwglxt/wdfw/index.vue

@@ -629,8 +629,8 @@ export default {
       ],
       buttonDisabled_cb: false,
       fileFinalArr:[],
-      microsoftPreview: "https://view.officeapps.live.com/op/view.aspx?src=",
-      docxPreview: "http://jnjymf.bozedu.net/",
+      microsoftPreview: window.globalVariables.microsoftPreview,
+      docxPreview: window.globalVariables.docxPreview,
       pdfExist: "",
       pathUrl:"",
     };
@@ -708,7 +708,7 @@ export default {
       });
     },
     initWpsAss() {
-      let installLink = "http://60.188.226.44:8001/install.html";
+      let installLink =  window.globalVariables.installLink;
       window.open(installLink, '_blank');
     },
     //操作模块-预览

+ 1 - 1
src/views/hysydgl/hyjy/index.vue

@@ -225,7 +225,7 @@ export default {
       });
     },
     initWpsAss() {
-      let installLink = "http://60.188.226.44:8001/install.html";
+      let installLink =  window.globalVariables.installLink;
       window.open(installLink, '_blank')
     },
     handleCurrentChange(val) {