master
2022-03-31 896248dc24dd677d17fa6079f75362770656bca6
添加接口清单、监测统计等页面
11个文件已添加
1个文件已修改
430 ■■■■■ 已修改文件
public/hn3d/example/00_hn_new.html 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/hn3d/example/test.html 85 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/cool/modules/alarm/views/config_interface.vue 132 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/cool/modules/doulunji/views/doulunji_modell.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/cool/modules/metadata/views/monitor_statedata.vue 177 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/cool/modules/working_log/components/index.ts 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/cool/modules/working_log/directives/index.ts 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/cool/modules/working_log/index.ts 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/cool/modules/working_log/pages/index.ts 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/cool/modules/working_log/service/index.ts 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/cool/modules/working_log/store/index.ts 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/cool/modules/working_log/views/index.ts 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/hn3d/example/00_hn_new.html
@@ -101,6 +101,10 @@
        type: 'get',
        dataType: 'json',
        async: false,//同步
        headers: {
          "Access-Control-Allow-Origin": "*"
          // "Accept": "application/json"
        },
        url: `${data_url}get_dou_params`,
        success: function (data) {
          console.log(data)
@@ -272,7 +276,8 @@
        position: [121.406729, 31.467183, 14], // 楼栋位置
        style: {
          url: "../model/doulunji/dabi/doulunji_dabi.gltf",
          url: "http://112.74.77.127:9100/hn/doulunji/dabi/doulunji_dabi.gltf",
          // url: "https://a.amap.com/jsapi_demos/static/gltf/Duck.gltf",
          scale: 0.6
        },
      })
public/hn3d/example/test.html
New file
@@ -0,0 +1,85 @@
<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta name="viewport"
    content="width=device-width,initial-scale=1,user-scalable=0,minimum-scale=1.0,maximum-scale=1.0" />
  <meta name="author" content="火星科技 http://mars3d.cn " />
  <meta name="apple-touch-fullscreen" content="yes" />
  <meta name="apple-mobile-web-app-capable" content="yes" />
  <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  <meta name="format-detection" content="telephone=no" />
  <meta name="x5-fullscreen" content="true" />
  <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
  <!-- 标题及搜索关键字 -->
  <meta name="keywords" content="火星科技,cesium,3D,GIS,marsgis,三维,地球,地图,开发,框架,系统,示例,资料,模型,离线,外包,合肥,安徽,中国" />
  <meta name="description"
    content="火星科技 合肥火星 合肥火星科技 合肥火星科技有限公司 leaflet leaflet框架 leaflet开发 cesium cesium开发 cesium框架 三维 地球 模型  gis marsgis 地图离线 地图开发 地图框架 地图外包 框架 开发 外包  地图离线 二维地图 三维地图 全景漫游 地理信息系统 云GIS 三维GIS GIS平台 WebGIS" />
  <link rel="shortcut icon" type="image/x-icon" href="https://muyao1987.gitee.io/cdn/marsgis.cn/favicon/favicon.ico" />
  <title>教学楼(BIM建模) | Mars3D | 三维地图 | 火星科技 | 合肥火星科技有限公司</title>
  <!--第三方lib-->
  <script type="text/javascript" src="../lib/include-lib.js" libpath="../lib/" include="jquery"></script>
  <link href="./css/style.css" rel="stylesheet" />
  <style>
    .btn-primary {
      margin: 2px;
      padding: auto 16px
    }
    .handle {
      top: 30%;
      width: 120px;
      text-align: center
    }
  </style>
</head>
<body class="dark">
  <!--加载前进行操作提示,优化用户体验-->
  <img src="http://112.74.77.127:9100/hn/world.jpg" style="width: 100%;">
  <script type="text/javascript">
    "use script"; //开发环境建议开启严格模式
    // var data_url = 'http://112.74.77.127:9100/hn/doulunji/dabi/doulunji_dabi.gltf'
    // var data_url = 'http://112.74.77.127:9100/hn/world.jpg'
    var data_url = 'https://a.amap.com/jsapi_demos/static/gltf/Duck.gltf'
    // 页面初始执行的方法
    $(document).ready(function () {
      //plan 1:点击按钮式请求数据,并对模型位置进行移动
      $.ajax({
        type: 'GET',
        dataType: 'json',
        // headers: {
        //   // "Access-Control-Allow-Origin": "*",
        //   "Accept": "application/json"
        // },
        // async: false,//同步
        crossDomain: true,
        beforeSend: function (xhr) {
          xhr.withCredentials = true;
        },
        url: data_url,
        success: function (data) {
          console.log('data')
        },
        error: function (request, textStatus) {
        }
      })
    })
    function showData (result) {
      let data = JSON.stringify(result);
    }
  </script>
</body>
</html>
src/cool/modules/alarm/views/config_interface.vue
New file
@@ -0,0 +1,132 @@
<template>
  <cl-crud :ref="setRefs('crud')"
           @load="onLoad">
    <el-row type="flex"
            align="middle">
      <!-- 刷新按钮 -->
      <cl-refresh-btn />
      <!-- 新增按钮 -->
      <cl-add-btn />
      <!-- 删除按钮 -->
      <cl-multi-delete-btn />
      <cl-flex1 />
      <!-- 关键字搜索 -->
      <cl-search-key />
    </el-row>
    <el-row>
      <!-- 数据表格 -->
      <cl-table :ref="setRefs('table')"
                v-bind="table" />
    </el-row>
    <el-row type="flex">
      <cl-flex1 />
      <!-- 分页控件 -->
      <cl-pagination />
    </el-row>
    <!-- 新增、编辑 -->
    <cl-upsert :ref="setRefs('upsert')"
               v-bind="upsert" />
  </cl-crud>
</template>
<script lang="ts">
import { defineComponent, reactive } from "vue";
import { CrudLoad, Upsert, Table } from "@cool-vue/crud/types";
import { useCool } from "/@/cool";
export default defineComponent({
    setup() {
        const { refs, setRefs, service } = useCool();
        // 新增、编辑配置
        const upsert = reactive<Upsert>({
            items: []
        });
        // 表格配置
        const table = reactive<Table>({
            columns: [
                {
                    type: "selection",
                    align: "center"
                },
                {
                    label: "id",
                    prop: "id",
                    sortable: true //是否排序功能
                },
                {
                    label: "接口名称",
                    prop: "interface_name"
                },
                {
                    label: "接口类型",
                    prop: "interface_type"
                },
                {
                    label: "接口IP",
                    prop: "interface_ip"
                },
                {
                    label: "接口协议",
                    prop: "interface_protocal"
                },
                {
                    label: "端口",
                    prop: "interfac_port"
                },
                {
                    label: "认证方式",
                    prop: "interface_auth"
                },
                {
                    label: "账号",
                    prop: "auth_account"
                },
                {
                    label: "密码",
                    prop: "auth_psw"
                },
                {
                    label: "接口地址",
                    prop: "interface_url"
                },
                {
                    label: "share地址",
                    prop: "share_url"
                },
                {
                    label: "备注",
                    prop: "remark"
                },
                {
                    prop: "status",
                    label: "状态"
                },
                {
                    label: "操作",
                    type: "op"
                }
            ]
        });
        // crud 加载
        function onLoad({ ctx, app }: CrudLoad) {
            // 绑定 service
            ctx.service(service.business.interfacelist).done();
            app.refresh();
        }
        return {
            refs,
            setRefs,
            upsert,
            table,
            onLoad
        };
    }
});
</script>
src/cool/modules/doulunji/views/doulunji_modell.vue
New file
@@ -0,0 +1,8 @@
<template>
  <iframe width=400
          height=300
          frameborder=0
          scrolling=auto
          src='http://localhost:9100/'></iframe>
</template>
src/cool/modules/metadata/views/monitor_statedata.vue
New file
@@ -0,0 +1,177 @@
<template>
  <cl-crud :ref="setRefs('crud')"
           @load="onLoad">
    <el-row type="flex"
            align="middle">
      <!-- 刷新按钮 -->
      <cl-refresh-btn />
      <!-- 新增按钮 -->
      <cl-add-btn />
      <!-- 删除按钮 -->
      <cl-multi-delete-btn />
      <cl-flex1 />
      <!-- 关键字搜索 -->
      <cl-search-key />
    </el-row>
    <el-row>
      <!-- 数据表格 -->
      <cl-table :ref="setRefs('table')"
                v-bind="table" />
    </el-row>
    <el-row type="flex">
      <cl-flex1 />
      <!-- 分页控件 -->
      <cl-pagination />
    </el-row>
    <!-- 新增、编辑 -->
    <cl-upsert :ref="setRefs('upsert')"
               v-bind="upsert" />
  </cl-crud>
</template>
<script lang="ts">
import { defineComponent, reactive } from "vue";
import { CrudLoad, Upsert, Table } from "@cool-vue/crud/types";
import { useCool } from "/@/cool";
export default defineComponent({
    setup() {
        const { refs, setRefs, service } = useCool();
        // 新增、编辑配置
        const upsert = reactive<Upsert>({
            items: []
        });
        // 表格配置
        const table = reactive<Table>({
            columns: [
                {
                    type: "selection",
                    align: "center"
                },
                {
                    label: "id",
                    prop: "id",
                    sortable: true //是否排序功能
                },
                {
                    label: "时间粒度",
                    prop: "time"
                },
                {
                    label: "起始时间",
                    prop: "start_time"
                },
                {
                    label: "截止时间",
                    prop: "end_time"
                },
                {
                    label: "平均花费时间",
                    prop: "avg_task_time"
                },
                {
                    label: "数据传输时间",
                    prop: "avg_transmission_time"
                },
                {
                    label: "点云计算时间",
                    prop: "avg_caculater_time"
                },
                {
                    label: "cpu占用率",
                    prop: "cpu_rate"
                },
                {
                    label: "内存",
                    prop: "memory"
                },
                {
                    label: "平均文件大小",
                    prop: "avg_filesize"
                },
                {
                    label: "任务类型",
                    prop: "task_type",
                    dict: [
                        {
                            label: "抓图",
                            value: 1,
                            type: "info" //success  warning  danger  info可选
                        },
                        {
                            label: "雷达扫描",
                            value: 2,
                            type: "success"
                        },
                        {
                            label: "除尘",
                            value: 3,
                            type: "warning"
                        }
                    ],
                    filters: [
                        {
                            text: "抓图",
                            value: 1
                        },
                        {
                            text: "雷达扫描",
                            value: 2
                        },
                        {
                            text: "除尘",
                            value: 3
                        }
                    ],
                    width: 100
                },
                {
                    label: "备注",
                    prop: "remark"
                },
                {
                    prop: "status",
                    label: "状态",
                    minWidth: 120,
                    dict: [
                        {
                            label: "启用",
                            value: 1,
                            type: "success"
                        },
                        {
                            label: "禁用",
                            value: 0,
                            type: "danger"
                        }
                    ]
                },
                {
                    label: "操作",
                    type: "op"
                }
            ]
        });
        // crud 加载
        function onLoad({ ctx, app }: CrudLoad) {
            // 绑定 service
            ctx.service(service.business.statdata).done();
            app.refresh();
        }
        return {
            refs,
            setRefs,
            upsert,
            table,
            onLoad
        };
    }
});
</script>
src/cool/modules/working_log/components/index.ts
New file
@@ -0,0 +1 @@
export default {};
src/cool/modules/working_log/directives/index.ts
New file
@@ -0,0 +1 @@
export default {};
src/cool/modules/working_log/index.ts
New file
@@ -0,0 +1,15 @@
import components from "./components";
import directives from "./directives";
import service from "./service";
import store from "./store";
import pages from "./pages";
import views from "./views";
export default {
    components,
    directives,
    service,
    store,
    pages,
    views
};
src/cool/modules/working_log/pages/index.ts
New file
@@ -0,0 +1 @@
export default [];
src/cool/modules/working_log/service/index.ts
New file
@@ -0,0 +1 @@
export default {};
src/cool/modules/working_log/store/index.ts
New file
@@ -0,0 +1 @@
export default {};
src/cool/modules/working_log/views/index.ts
New file
@@ -0,0 +1 @@
export default [];