| File was renamed from src/cool/modules/deviceGroup/views/deviceGroup.vue |
| | |
| | | const upsert = reactive<Upsert>({
|
| | | items: [
|
| | | {
|
| | | label: "名称",
|
| | | prop: "name",
|
| | | label: "逻辑ID",
|
| | | prop: "logic_ids",
|
| | | component: {
|
| | | name: "el-input"
|
| | | },
|
| | |
| | | required: true
|
| | | },
|
| | | {
|
| | | label: "逻辑ID",
|
| | | prop: "logic_id",
|
| | | label: "任务指令",
|
| | | prop: "task_command",
|
| | | component: {
|
| | | name: "el-input"
|
| | | },
|
| | | required: true
|
| | | }
|
| | | },
|
| | | {
|
| | | label: "物理ID",
|
| | | prop: "device_id",
|
| | | label: "任务内容描述",
|
| | | prop: "task_content",
|
| | | component: {
|
| | | name: "el-input"
|
| | | },
|
| | | required: true
|
| | | }
|
| | | },
|
| | | {
|
| | | label: "负责人",
|
| | | label: "任务参数",
|
| | | prop: "task_params",
|
| | | component: {
|
| | | name: "el-input"
|
| | | }
|
| | | },
|
| | | {
|
| | | label: "任务类型",
|
| | | prop: "task_type",
|
| | | component: {
|
| | | name: "el-input"
|
| | | }
|
| | | },
|
| | | {
|
| | | label: "操作人",
|
| | | prop: "operator",
|
| | | component: {
|
| | | name: "el-input"
|
| | | },
|
| | | required: true
|
| | | },
|
| | | {
|
| | | label: "经度",
|
| | | prop: "longitude",
|
| | | component: {
|
| | | name: "el-input"
|
| | | }
|
| | | },
|
| | | {
|
| | | label: "纬度",
|
| | | prop: "latitude",
|
| | | component: {
|
| | | name: "el-input"
|
| | | }
|
| | | },
|
| | | {
|
| | | label: "高度",
|
| | | prop: "altitude",
|
| | | component: {
|
| | | name: "el-input"
|
| | | }
|
| | | },
|
| | | {
|
| | | label: "安装位置",
|
| | | prop: "location",
|
| | | component: {
|
| | | name: "el-input"
|
| | | }
|
| | | },
|
| | | {
|
| | | label: "状态",
|
| | | prop: "status",
|
| | | label: "设置时间",
|
| | | prop: "operate_time",
|
| | | 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"
|
| | | prop: "logic_ids"
|
| | | },
|
| | | {
|
| | | label: "物理ID",
|
| | | prop: "device_id",
|
| | | width: 100
|
| | | label: "任务指令",
|
| | | prop: "task_command"
|
| | | },
|
| | | {
|
| | | label: "经度",
|
| | | prop: "longitude",
|
| | | width: 150
|
| | | label: "任务内容描述",
|
| | | prop: "task_content"
|
| | | },
|
| | | {
|
| | | label: "纬度",
|
| | | prop: "latitude",
|
| | | width: 150
|
| | | label: "任务参数",
|
| | | prop: "task_params"
|
| | | },
|
| | | {
|
| | | label: "高度",
|
| | | prop: "altitude"
|
| | | label: "任务类型",
|
| | | prop: "task_type"
|
| | | },
|
| | | {
|
| | | label: "操作人",
|
| | | prop: "operator"
|
| | | },
|
| | | {
|
| | | label: "设置时间",
|
| | | prop: "operate_time"
|
| | | },
|
| | | {
|
| | | 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.taskimmediately).done();
|
| | | app.refresh();
|
| | | }
|
| | |
|