Sfoglia il codice sorgente

添加智能辅助的指标体系页面,暂时关闭上传数据功能,修改内网地址

DESKTOP-6LTVLN7\Liumouren 2 anni fa
parent
commit
172b4a5683

BIN
public/static/word/IndexSystem.docx


+ 4 - 4
src/components/common/BottomMenus.vue

@@ -124,7 +124,7 @@ export default {
               clickEmit: "JLControl",
               stateKey: "jlActiveState"
             },
-            { index: 4, title: "上传数据", bgImage: "scsj", clickRef: "scsj" },
+            { index: 4, title: "上传数据", bgImage: "scsj", clickRef: "scsj", clickEmit: "notFound" },
             {
               index: 5,
               title: "自定义模型",
@@ -164,7 +164,7 @@ export default {
     // 根据菜单父级index和子菜单index,判断全局变量已选中底部菜单的index对比,返回状态。
     ifMenuIndex(index, subItem) {
       if (subItem.stateKey != undefined) {
-        return this.$store.state[subItem.stateKey]
+        return this.$store.state[subItem.stateKey];
       } else if (index == 1) {
         if (subItem.index === 0 || subItem.index === 1) {
           return (
@@ -177,7 +177,7 @@ export default {
     changeBottomMenu(index, item) {
       // 该逻辑可能会舍弃
       if (item.stateKey != undefined) {
-        this.$store.commit("changeJlActiveState",!this.$store.state[item.stateKey]);
+        this.$store.commit("changeJlActiveState", !this.$store.state[item.stateKey]);
       } else {
         this.$store.commit("changeBottomMenu", {
           index: index,
@@ -188,7 +188,7 @@ export default {
         // 调用全局事件总线中的指定事件
         this.$bus.$emit(item.clickEmit);
       }
-      if (item.clickRef) {
+      if ((item.clickEmit ? item.clickEmit != "notFound" : true) && item.clickRef) {
         // 调用全局事件总线中的指定事件
         this.$refs[item.clickRef].changeShowBottomMenusStatus();
       }

+ 2 - 2
src/components/common/FilePreView.vue

@@ -2,8 +2,8 @@
   <!--  图片、pdf、docx 预览
           "docx-preview": "^0.1.4",
           "jszip": "^3.10.0",-->
-  <div>
-    <div title="文件预览" v-if="showDoc || showPdf || showImg" width="750px" style="background: #FFF !important;">
+  <div style="width:100%;height:100%;">
+    <div title="文件预览" v-if="showDoc || showPdf || showImg" width="750px" style="background: #FFF !important;width:100%;height:100%;">
       <template slot="closeIcon">
         <el-icon icon="close-circle" class="closeIcon" />
       </template>

+ 2 - 1
src/components/map/MapHolder.vue

@@ -613,7 +613,8 @@ export default {
       let guid = publicFun.buildGuid("baseLayer");
       let layer = L.esri
         .tiledMapLayer({
-          url:
+          url: 
+          // "http://10.242.182.25:9099/8639b723819f4b63940b93cc28e1b3ed/operation?APPID=00d494ff5d7b27fae263410627ba52bd&AUTHKEY=zCcyaym9MSkH1FT3&ClientId=com.pudong.002456271.00d494ff5d7b27fae263410627ba52bd&OperationCode=com.pudong.esb.catalog.8639b723819f4b63940b93cc28e1b3ed.operation&AccessKey=lUaEMxqqhZKLSImGuP/Ergx47orYVyIqHVgxfyGpIurKAy9kdq5uU1cWuTuIXeOM"
             // systemConfig.mapService +
             // "?servertype=Street_Purplish_Blue&token=" +
             // systemConfig.token,

+ 7 - 2
src/views/HomeView.vue

@@ -45,6 +45,9 @@
     <!-- 频发问题 -->
     <FrequencyView id="FrequencyContainer" v-if="$ifMenu('5', '2')" />
 
+    <!-- 指标体系 -->
+    <IndexSystem id="IndexSystemContainer" v-if="$ifMenu('5', '3')" />
+
     <!-- Home页面(因为客户要求需要动画,所以不能用v-if控制首页元素的显示与隐藏,而是改为组件内部动态v-show控制元素的样式) -->
     <!-- 左侧菜单列 -- 首页 -->
     <div id="leftMenus">
@@ -133,6 +136,7 @@ import TagProblemCard from "@/components/common/TagProblemCard.vue";
 import WholeProcessManagement from "@/components/common/WholeProcessManagement.vue";
 // 智能辅助 -- 频发问题
 import FrequencyView from "@/views/FrequencyView.vue";
+import IndexSystem from "@/views/IndexSystem.vue";
 // 智能辅助 -- 法律法规
 import LawView from "@/views/LawView.vue";
 
@@ -153,7 +157,8 @@ export default {
     Legend,
     WholeProcessManagement,
     FrequencyView,
-    LawView
+    LawView,
+    IndexSystem
   },
   data() {
     return {
@@ -562,7 +567,7 @@ export default {
 // }
 
 /* 频发问题 */
-#FrequencyContainer {
+#FrequencyContainer,#IndexSystemContainer {
   position: relative;
   height: calc(100% - 60px);
   width: 100%;

+ 32 - 0
src/views/IndexSystem.vue

@@ -0,0 +1,32 @@
+<template>
+  <div style="width: 100%; height: 100%">
+    <FilePreView ref="filePreview" v-show="fileView" />
+  </div>
+</template>
+
+<script>
+/**
+ * 智能辅助(指标体系)页面组件
+ * @author LiuMengxiang
+ * @Date 2023年1月31日09:50:43
+ */
+import FilePreView from "../components/common/FilePreView.vue";
+export default {
+  name: "indexSystem",
+  components: { FilePreView },
+  data() {
+    return {
+      // 是否显示在线文档预览
+      fileView: false
+    };
+  },
+  mounted() {
+    this.$nextTick(() => {
+      this.fileView = true;
+      this.$refs.filePreview.showView("./static/word/IndexSystem.docx");
+    });
+  }
+};
+</script>
+
+<style></style>

+ 20 - 4
vue.config.js

@@ -32,20 +32,36 @@ module.exports = {
   devServer: {
     port: 2014,
     proxy: {
+      // "/oauth": {
+      //   target: "http://121.43.55.7:10086",
+      //   changeOrigin: true, // 允许跨域
+      // },
+      // "/dms": {
+      //   target: "http://121.43.55.7:10081",
+      //   changeOrigin: true, // 允许跨域
+      // },
+      // "/conllection": {
+      //   target: "http://121.43.55.7:10089",
+      //   changeOrigin: true, // 允许跨域
+      // },
+      // "/audit": {
+      //   target: "http://121.43.55.7:10013",
+      //   changeOrigin: true, // 允许跨域
+      // },
       "/oauth": {
-        target: "http://121.43.55.7:10086",
+        target: "http://10.220.106.75:10011",
         changeOrigin: true, // 允许跨域
       },
       "/dms": {
-        target: "http://121.43.55.7:10081",
+        target: "http://10.220.106.75:10012",
         changeOrigin: true, // 允许跨域
       },
       "/conllection": {
-        target: "http://121.43.55.7:10089",
+        target: "http://10.220.106.75:10013",
         changeOrigin: true, // 允许跨域
       },
       "/audit": {
-        target: "http://121.43.55.7:10013",
+        target: "http://10.220.106.75:10014",
         changeOrigin: true, // 允许跨域
       },
     },