master
2022-03-23 0da9c6652870390cd07bc90211aefe095445baf6
src/cool/modules/basedevice/views/basedevice_info.vue
copy from src/cool/modules/deviceGroup/views/deviceGroup.vue copy to src/cool/modules/basedevice/views/basedevice_info.vue
File was copied from src/cool/modules/deviceGroup/views/deviceGroup.vue
@@ -45,37 +45,32 @@
      const upsert = reactive<Upsert>({
         items: [
            {
               label: "名称",
               prop: "name",
               component: {
                  name: "el-input"
               },
               //是否为必填项,注:接口配置字段时没有设置默认值时,都需要选择必填
               required: true
            },
            {
               label: "逻辑ID",
               prop: "logic_id",
               component: {
                  name: "el-input"
               },
               required: true
               }
            },
            {
               label: "物理ID",
               prop: "device_id",
               component: {
                  name: "el-input"
               },
               required: true
               }
            },
            {
               label: "负责人",
               prop: "operator",
               label: "设备名称",
               prop: "name",
               component: {
                  name: "el-input"
               },
               required: true
               }
            },
            {
               label: "安装位置",
               prop: "location",
               component: {
                  name: "el-input"
               }
            },
            {
               label: "经度",
@@ -99,15 +94,64 @@
               }
            },
            {
               label: "安装位置",
               prop: "location",
               label: "设备精度",
               prop: "dimension",
               component: {
                  name: "el-input"
               }
            },
            {
               label: "状态",
               prop: "status",
               label: "航向角",
               prop: "precision",
               component: {
                  name: "el-input"
               }
            },
            {
               label: "旋转角",
               prop: "heading_angle",
               component: {
                  name: "el-input"
               }
            },
            {
               label: "俯仰角",
               prop: "petch_angle",
               component: {
                  name: "el-input"
               }
            },
            {
               label: "横滚角",
               prop: "roll_angle",
               component: {
                  name: "el-input"
               }
            },
            {
               label: "IP地址",
               prop: "ipaddres",
               component: {
                  name: "el-input"
               }
            },
            {
               label: "端口",
               prop: "device_port",
               component: {
                  name: "el-input"
               }
            },
            {
               label: "账号",
               prop: "device_account",
               component: {
                  name: "el-input"
               }
            },
            {
               label: "负责人",
               prop: "opertator",
               component: {
                  name: "el-input"
               }
@@ -115,6 +159,13 @@
            {
               label: "备注",
               prop: "remark",
               component: {
                  name: "el-input"
               }
            },
            {
               label: "状态",
               prop: "status",
               component: {
                  name: "el-input"
               }
@@ -135,45 +186,76 @@
               sortable: true //是否排序功能
            },
            {
               label: "运行状态",
               prop: "status",
               filters: [
                  { text: 0, value: 0 },
                  { text: 1, value: 1 }
               ]
               // filters:"[{ text: '家', value: '家' }, { text: '公司', value: '公司' }]"
            },
            {
               label: "名称",
               prop: "name"
            },
            {
               label: "位置",
               prop: "location",
               width: 200
            },
            {
               label: "逻辑ID",
               prop: "logic_id"
            },
            {
               label: "物理ID",
               prop: "device_id",
               width: 100
               prop: "device_id"
            },
            {
               label: "设备名称",
               prop: "name"
            },
            {
               label: "安装位置",
               prop: "location"
            },
            {
               label: "经度",
               prop: "longitude",
               width: 150
               prop: "longitude"
            },
            {
               label: "纬度",
               prop: "latitude",
               width: 150
               prop: "latitude"
            },
            {
               label: "高度",
               prop: "altitude"
            },
            {
               label: "设备精度",
               prop: "dimension"
            },
            {
               label: "航向角",
               prop: "precision"
            },
            {
               label: "旋转角",
               prop: "heading_angle"
            },
            {
               label: "俯仰角",
               prop: "petch_angle"
            },
            {
               label: "横滚角",
               prop: "roll_angle"
            },
            {
               label: "IP地址",
               prop: "ipaddres"
            },
            {
               label: "端口",
               prop: "device_port"
            },
            {
               label: "账号",
               prop: "device_account"
            },
            {
               label: "负责人",
               prop: "opertator"
            },
            {
               label: "备注",
               prop: "remark"
            },
            {
               label: "状态",
               prop: "status"
            },
            {
               label: "操作",
@@ -185,8 +267,7 @@
      // crud 加载
      function onLoad({ ctx, app }: CrudLoad) {
         // 绑定 service
         console.log(service);
         ctx.service(service.business.devicegroup).done();
         ctx.service(service.business.basedeviceinfo).done();
         app.refresh();
      }