Browse Source

项目配置接口

caiaf 3 years ago
parent
commit
75569033b3

+ 0 - 2
docs/.vuepress/enhanceApp.js

@@ -3,9 +3,7 @@
 
 import Vue from 'vue'
 // import SDoc from 'sybotan-vue-doc'
-import PDoc from '@persagy-vue/doc'
 import Element from 'element-ui'
 import 'element-ui/lib/theme-chalk/index.css'
 
-Vue.use(PDoc);
 Vue.use(Element);

+ 1 - 197
docs/dev/revit-center/README.md

@@ -1,197 +1 @@
-# 开发文档
-## reivt解析项目配置接口
-
-#### 已开发 基础接口:  配置查询
-
-请求地址
-
-```
-Post /project/jsonConfig/query
-```
-请求参数
-```json
-{
-  //查询条件
-  "Filters": "id = 'Pj4403070003'"
-}
-```
-返回内容
-
-```json
-{
-  "Content": [
-    {
-      "ConfigJson": {
-        "CheckItems": "SagaCheck,UnitCheck,FamilyNameCheck",
-        "EquipComponentCode": "构件分类编码",
-        "FacilityParameters": "设备本地名称,设备本地编码,PropertyID,系统类型",
-        "FloorServerUrl": "http://39.102.40.239:8080/revit-algorithm/model-floor/query",
-        "MEPCurveParameters": "注释",
-        "RoomParameters": "名称,编号,2.房间标准类型编码,3.房间标准类型名称",
-        "SagaSign": "-wanda",
-        "SpaceParameters": "名称,编号,2.空间标准类型编码,3.空间标准类型",
-        "UseablePhaseName": "阶段1"
-      },
-      "Id": "Pj4403070003",
-      "Name": "深圳龙岗万达广场"
-    }
-  ],
-  "Message": "",
-  "PageNumber": 1, //分页
-  "PageSize": 50, //分页条数
-  "Result": "success",
-  "Total": 1 //总数
-}
-```
-
-
-#### 已开发 基础接口:  配置添加
-
-请求地址
-
-```
-Post /project/jsonConfig/create
-```
-请求参数
-```json
-{
-  
-  "Content": [
-    {
-      "ConfigJson": {
-       
-      },
-      "Id": "string",   //项目Id
-      "Name": "string", //项目名称
-      "Type": "wanda"  //项目类型 ,万达项目须填wanda,其他项目可不填
-    }
-  ]
-}
-```
-返回内容
-
-```json
-{
-  "EntityList": [
-    {
-      "ConfigJson": {
-       
-      },
-      "Id": "string",
-      "Name": "string",
-      "Type": "string"
-    }
-  ],
-  "Message": "", 
-  "Result": "success" //结果 fail或success
-}
-```
-
-
-#### 已开发 基础接口: 配置修改 
-
-请求地址
-```
-Post: /project/jsonConfig/update
-```
-
-请求参数
-```json
-{
-  "Content": [
-    {
-      "ConfigJson": {
-        
-      },
-      "Id": "string",
-      "Name": "xxx",
-      "Type": "xxx"
-    }
-  ]
-}
-```
-返回内容
-
-```json
-{
-  "Message": "",
-  "Result": "success"
-}
-```
-
-#### 已开发 基础接口: 配置删除
-
-
-请求地址
-```
-Post /project/jsonConfig/delete
-```
-
-请求参数
-```json
-[
-  {
-    
-    "Id": "string"
-  }
-]
-```
-返回内容
-
-```json
-{
-  "Message": "",
-  "Result": "success"
-}
-```
-
-
-json配置说明
-```json
-{   
-    //revit 服务楼层 查询接口url
-    "FloorServerUrl":"",
-    // 轻量化程序地址
-    "RevitSimplifyPath":"",
-    // 输出文件夹
-    "OutputDir":"output",
-    //阶段
-    "UseablePhaseName":"阶段1",
-    //模型saga标记
-    "SagaSign":"-wanda",
-    //检查项(可选)支持的检查项 
-        SagaCheck,UnitCheck,FamilyNameCheck,EquipPartLocationCheck,
-        ColumnCheck,ElementRangeCheck,ConnectorCheck,SystemNameCheck,
-        EquipInSpaceCheck,SystemReferEquipCheck,ParameterIntegrityCheck,
-        PipeCheck,XYZOverlapCheck
-    "CheckItems":"逗号分隔",
-    //设备识别属性(可选)
-    "FacilityParameters":"逗号分隔",
-    //空间识别属性(可选)
-    "SpaceParameters":"逗号分隔",
-    //房间识别属性(可选)
-    "RoomParameters":"逗号分隔",
-    //注释(默认)
-    "MEPCurveParameters":"注释",
-    //设备构件码识别属性名
-    "EquipComponentCode":"构件分类编码"
-}
-
-```
-
-json配置范本
-```json
-{
-    "FloorServerUrl":"http://39.102.40.239:8080/revit-algorithm/model-floor/query",
-    "RevitSimplifyPath":"E:/revitcode/netcoreapp3.1/RevitSimplify.exe",
-    "OutputDir":"output",
-    "UseablePhaseName":"阶段1",
-    "SagaSign":"-wanda",
-    "CheckItems":"SagaCheck,UnitCheck,FamilyNameCheck",
-    "FacilityParameters":"设备本地名称,设备本地编码,PropertyID",
-    "SpaceParameters":"名称,编号,2.空间标准类型编码,3.空间标准类型",
-    "RoomParameters":"名称,编号,2.房间标准类型编码,3.房间标准类型名称",
-    "MEPCurveParameters":"注释",
-    "EquipComponentCode":"构件分类编码"
-}
-```
+# 开发文档

+ 9 - 1
docs/dev/revit-center/index.js

@@ -1,3 +1,11 @@
-const content = [];
+const content = [
+    {
+        title: "模型解析",
+        path: "/dev/revit-center/",
+        children: [
+            ["/dev/revit-center/json/config.md", "模型解析配置"]
+        ]
+    }
+];
 
 module.exports = content;

+ 196 - 0
docs/dev/revit-center/json/config.md

@@ -0,0 +1,196 @@
+# reivt解析项目配置接口
+
+#### 已开发 基础接口:  配置查询
+
+请求地址
+
+```
+Post /project/jsonConfig/query
+```
+请求参数
+```json
+{
+  //查询条件
+  "Filters": "id = 'Pj4403070003'"
+}
+```
+返回内容
+
+```json
+{
+  "Content": [
+    {
+      "ConfigJson": {
+        "CheckItems": "SagaCheck,UnitCheck,FamilyNameCheck",
+        "EquipComponentCode": "构件分类编码",
+        "FacilityParameters": "设备本地名称,设备本地编码,PropertyID,系统类型",
+        "FloorServerUrl": "http://39.102.40.239:8080/revit-algorithm/model-floor/query",
+        "MEPCurveParameters": "注释",
+        "RoomParameters": "名称,编号,2.房间标准类型编码,3.房间标准类型名称",
+        "SagaSign": "-wanda",
+        "SpaceParameters": "名称,编号,2.空间标准类型编码,3.空间标准类型",
+        "UseablePhaseName": "阶段1"
+      },
+      "Id": "Pj4403070003",
+      "Name": "深圳龙岗万达广场"
+    }
+  ],
+  "Message": "",
+  "PageNumber": 1, //分页
+  "PageSize": 50, //分页条数
+  "Result": "success",
+  "Total": 1 //总数
+}
+```
+
+
+#### 已开发 基础接口:  配置添加
+
+请求地址
+
+```
+Post /project/jsonConfig/create
+```
+请求参数
+```json
+{
+  
+  "Content": [
+    {
+      "ConfigJson": {
+       
+      },
+      "Id": "string",   //项目Id
+      "Name": "string", //项目名称
+      "Type": "wanda"  //项目类型 ,万达项目须填wanda,其他项目可不填
+    }
+  ]
+}
+```
+返回内容
+
+```json
+{
+  "EntityList": [
+    {
+      "ConfigJson": {
+       
+      },
+      "Id": "string",
+      "Name": "string",
+      "Type": "string"
+    }
+  ],
+  "Message": "", 
+  "Result": "success" //结果 fail或success
+}
+```
+
+
+#### 已开发 基础接口: 配置修改 
+
+请求地址
+```
+Post: /project/jsonConfig/update
+```
+
+请求参数
+```json
+{
+  "Content": [
+    {
+      "ConfigJson": {
+        
+      },
+      "Id": "string",
+      "Name": "xxx",
+      "Type": "xxx"
+    }
+  ]
+}
+```
+返回内容
+
+```json
+{
+  "Message": "",
+  "Result": "success"
+}
+```
+
+#### 已开发 基础接口: 配置删除
+
+
+请求地址
+```
+Post /project/jsonConfig/delete
+```
+
+请求参数
+```json
+[
+  {
+    
+    "Id": "string"
+  }
+]
+```
+返回内容
+
+```json
+{
+  "Message": "",
+  "Result": "success"
+}
+```
+
+
+json配置说明
+```json
+{   
+    //revit 服务楼层 查询接口url
+    "FloorServerUrl":"",
+    // 轻量化程序地址
+    "RevitSimplifyPath":"",
+    // 输出文件夹
+    "OutputDir":"output",
+    //阶段
+    "UseablePhaseName":"阶段1",
+    //模型saga标记
+    "SagaSign":"-wanda",
+    //检查项(可选)支持的检查项 
+        SagaCheck,UnitCheck,FamilyNameCheck,EquipPartLocationCheck,
+        ColumnCheck,ElementRangeCheck,ConnectorCheck,SystemNameCheck,
+        EquipInSpaceCheck,SystemReferEquipCheck,ParameterIntegrityCheck,
+        PipeCheck,XYZOverlapCheck
+    "CheckItems":"逗号分隔",
+    //设备识别属性(可选)
+    "FacilityParameters":"逗号分隔",
+    //空间识别属性(可选)
+    "SpaceParameters":"逗号分隔",
+    //房间识别属性(可选)
+    "RoomParameters":"逗号分隔",
+    //注释(默认)
+    "MEPCurveParameters":"注释",
+    //设备构件码识别属性名
+    "EquipComponentCode":"构件分类编码"
+}
+
+```
+
+json配置范本
+```json
+{
+    "FloorServerUrl":"http://39.102.40.239:8080/revit-algorithm/model-floor/query",
+    "RevitSimplifyPath":"E:/revitcode/netcoreapp3.1/RevitSimplify.exe",
+    "OutputDir":"output",
+    "UseablePhaseName":"阶段1",
+    "SagaSign":"-wanda",
+    "CheckItems":"SagaCheck,UnitCheck,FamilyNameCheck",
+    "FacilityParameters":"设备本地名称,设备本地编码,PropertyID",
+    "SpaceParameters":"名称,编号,2.空间标准类型编码,3.空间标准类型",
+    "RoomParameters":"名称,编号,2.房间标准类型编码,3.房间标准类型名称",
+    "MEPCurveParameters":"注释",
+    "EquipComponentCode":"构件分类编码"
+}
+```

+ 0 - 2
package.json

@@ -12,8 +12,6 @@
     "publish": "node publish.js"
   },
   "dependencies": {
-    "@persagy-vue/doc": "^1.1.36",
-    "@persagy-web/base": "2.2.1",
     "axios": "^0.18.1",
     "element-ui": "^2.12.0",
     "vue": "^2.6.10",