Forráskód Böngészése

[Feat 0000] 看板对接内容修改

houzekong 6 hónapja
szülő
commit
98c473e237

+ 2 - 2
src/components/CADViewer/README.md

@@ -21,7 +21,7 @@
 
 ### 实现原理
 
-通过iframe嵌入即成的主体应用,编写客制化的操作栏并下发指令对其进行操作。可以通过[前期文档](https://mxcadx.gitee.io/mxcad_docs/zh/7.%E6%9C%80%E4%BD%B3%E5%AE%9E%E8%B7%B5/1.MxCAD%20APP%E5%BA%94%E7%94%A8%E9%9B%86%E6%88%90.html)了解更多。
+通过iframe嵌入即成的主体应用,编写客制化的操作栏并下发指令对其进行操作。可以通过[前期文档](https://mxcad.github.io/mxcad_docs/zh/7.%E6%9C%80%E4%BD%B3%E5%AE%9E%E8%B7%B5/1.MxCAD%20APP%E5%BA%94%E7%94%A8%E9%9B%86%E6%88%90.html)了解更多。
 
 有了主体应用(mxcad app)后,使用 postMessage 技术与其通信以下达指令即可完成操作。需要额外说明的,预设的某些指令可能不足以满足需求,此时需要在 mxcad app 中修改源码以添加客制化指令。本组件中的 MKY_Download_DWG、MKY_Open_DWG 即是客制化指令,具体细节参考[实现细节](#关于操作配置及其实现细节)。
 
@@ -79,7 +79,7 @@ operationMap.set('MKY_Open_Mxweb', {
 
 ### 其他
 
-上文中提到的 mxcad app 在[前期文档](https://mxcadx.gitee.io/mxcad_docs/zh/7.%E6%9C%80%E4%BD%B3%E5%AE%9E%E8%B7%B5/1.MxCAD%20APP%E5%BA%94%E7%94%A8%E9%9B%86%E6%88%90.html)中下载(不会读到这还没看这个文档吧?)。
+上文中提到的 mxcad app 在[前期文档](https://mxcad.github.io/mxcad_docs/zh/7.%E6%9C%80%E4%BD%B3%E5%AE%9E%E8%B7%B5/1.MxCAD%20APP%E5%BA%94%E7%94%A8%E9%9B%86%E6%88%90.html)中下载(不会读到这还没看这个文档吧?)。
 
 关于客制化指令的实现未在git上同步。需要添加了客制化指令的项目源码的可以联系@houzekong。
 

+ 24 - 26
src/views/vent/home/billboard/billboard.data.ts

@@ -478,34 +478,32 @@ export const DEFAULT_TEST_DATA = {
     dustWarnLevel: '/', // 矿井粉尘风险性等级
   },
   fileServerInfo: {
-    fileServerInfo: {
-      totalNum: '/', // 文档总数
-      approvalNum: '/', // 待审批文档
+    totalNum: '/', // 文档总数
+    approvalNum: '/', // 待审批文档
+  },
+  warnInfo: {
+    ventSWarnInfo: {
+      totalNum: '/',
+      maxWarnLevel: '/',
     },
-    warnInfo: {
-      ventSWarnInfo: {
-        totalNum: '/',
-        maxWarnLevel: '/',
-      },
-      gasSWarnInfo: {
-        totalNum: '/',
-        maxWarnLevel: '/',
-      },
-      dustSWarnInfo: {
-        totalNum: '/',
-        maxWarnLevel: '/',
-      },
-      synthesizeSWarnInfo: {
-        totalNum: '/',
-        maxWarnLevel: '/',
-      },
-      fireSWarnInfo: {
-        totalNum: '/',
-        maxWarnLevel: '/',
-      },
-      allNum: '/',
-      maxLevel: '/',
+    gasSWarnInfo: {
+      totalNum: '/',
+      maxWarnLevel: '/',
+    },
+    dustSWarnInfo: {
+      totalNum: '/',
+      maxWarnLevel: '/',
+    },
+    synthesizeSWarnInfo: {
+      totalNum: '/',
+      maxWarnLevel: '/',
+    },
+    fireSWarnInfo: {
+      totalNum: '/',
+      maxWarnLevel: '/',
     },
+    allNum: '/',
+    maxLevel: '/',
   },
   fireInfo: {
     tempMax: '/',

+ 2 - 2
src/views/vent/home/billboard/components/FileOverview.vue

@@ -21,9 +21,9 @@
   );
   defineEmits(['click']);
 
-  const fileData = computed<BillboardType['fileServerInfo']['fileServerInfo']>(() => {
+  const fileData = computed<BillboardType['fileServerInfo']>(() => {
     // 返回的数据中有两种类型,适配之
-    const info = props.data.fileServerInfo.fileServerInfo || props.data.fileServerInfo;
+    const info = props.data.fileServerInfo;
     return info;
   });
 </script>

+ 2 - 2
src/views/vent/home/billboard/components/Warning.vue

@@ -25,8 +25,8 @@
   );
   defineEmits(['click']);
 
-  const warnData = computed<BillboardType['fileServerInfo']['warnInfo']>(() => {
-    const info = props.data.fileServerInfo?.warnInfo;
+  const warnData = computed<BillboardType['warnInfo']>(() => {
+    const info = props.data.warnInfo;
     return info;
   });
 </script>

+ 4 - 16
src/views/vent/home/configurable/index copy.vue

@@ -37,17 +37,6 @@
         :visible="true"
       />
     </template>
-    <template v-else-if="isBD">
-      <ModuleBD
-        v-for="cfg in configs"
-        :key="cfg.deviceType"
-        :show-style="cfg.showStyle"
-        :module-data="cfg.moduleData"
-        :module-name="cfg.moduleName"
-        :device-type="cfg.deviceType"
-        :visible="true"
-      />
-    </template>
     <template v-else>
       <!-- 下面是正常展示的各新版模块 -->
       <ModuleEnhanced
@@ -78,8 +67,7 @@
   import ModuleEnhanced from './components/ModuleEnhanced.vue';
   import ModuleOriginal from './components/ModuleOriginal.vue';
   import ModuleCommon from './components/ModuleCommon.vue';
-  import ModuleBD from './components/ModuleBD.vue';
-  import { testConfigBDDust } from './configurable.data';
+  import { testConfigBDNew } from './configurable.data';
   import { useRoute } from 'vue-router';
 
   interface EnhancedConfig extends Config {
@@ -95,7 +83,7 @@
   const hiddenList = computed(() => {
     return enhancedConfigs.value.filter((e) => e.visible === false);
   });
-  const { configs, isOriginal, isCommon, isBD, fetchConfigs } = useInitConfigs();
+  const { configs, isOriginal, isCommon, fetchConfigs } = useInitConfigs();
 
   onMounted(() => {
     const query = useRoute().query;
@@ -107,8 +95,8 @@
     }
     // configs.value = testConfigB;
     fetchConfigs('configurable_home').then(() => {
-      configs.value = testConfigBDDust;
-      // configs.value.push(...testConfigBDDust);
+      configs.value = testConfigBDNew;
+      // configs.value.push(...testConfigBDNew);
       enhancedConfigs.value = configs.value.map((c) => {
         return {
           visible: true,