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 |
| | |
| | | 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: "经度",
|
| | |
| | | }
|
| | | },
|
| | | {
|
| | | 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"
|
| | | }
|
| | |
| | | {
|
| | | label: "备注",
|
| | | prop: "remark",
|
| | | component: {
|
| | | name: "el-input"
|
| | | }
|
| | | },
|
| | | {
|
| | | label: "状态",
|
| | | prop: "status",
|
| | | component: {
|
| | | name: "el-input"
|
| | | }
|
| | |
| | | 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: "操作",
|
| | |
| | | // crud 加载
|
| | | function onLoad({ ctx, app }: CrudLoad) {
|
| | | // 绑定 service
|
| | | console.log(service);
|
| | | ctx.service(service.business.devicegroup).done();
|
| | | ctx.service(service.business.basedeviceinfo).done();
|
| | | app.refresh();
|
| | | }
|
| | |
|