From 264ee48f0edc3010204027db301724e108a49454 Mon Sep 17 00:00:00 2001 From: shimu Date: Wed, 22 May 2024 11:42:06 +0800 Subject: [PATCH] x --- vue/src/pages/dict.json | 2 +- .../pages/machine/list/.lowcode/configs.jsx | 66 ++++--------------- vue/src/pages/machine/list/.lowcode/data | 2 +- vue/src/pages/machine/list/list.vue | 4 +- 4 files changed, 15 insertions(+), 59 deletions(-) diff --git a/vue/src/pages/dict.json b/vue/src/pages/dict.json index c72e19f..18fadaa 100644 --- a/vue/src/pages/dict.json +++ b/vue/src/pages/dict.json @@ -1 +1 @@ -[{"key":"articleType","title":"文章类型","type":1,"content":[{"value":1,"label":"普通图文","color":"#C71585"},{"value":2,"label":"商品","color":"#D40001"}]},{"key":"pageType","title":"页面类型","type":1,"content":[{"value":1,"label":"PC端页面","color":"#F8D03F"},{"value":2,"label":"无线端页面","color":"#C36EB5"},{"value":3,"label":"跨端页面","color":"#8F6B43"}]},{"key":"pageStatus","title":"页面状态","type":1,"content":[{"value":1,"label":"待发布","color":"#666666"},{"value":2,"label":"已发布","color":"#559B7B"},{"value":3,"label":"已下线","color":"#D40001"}]}] \ No newline at end of file +[{"key":"inlineMode","title":"接入类型","type":1,"content":[{"value":1,"label":"网关接入","color":"#F8D03F"},{"value":2,"label":"睿盾接入","color":"#C36EB5"},{"value":3,"label":"MQTT接入","color":"#999000"}]},{"key":"machineStatus","title":"设备状态","type":1,"content":[{"value":5,"label":"正常","color":"#559B7B"},{"value":3,"label":"停用","color":"#FF4500"},{"value":2,"label":"已下线","color":"#FF8C00"},{"value":4,"label":"未接入","color":"#00CED1"}]}] \ No newline at end of file diff --git a/vue/src/pages/machine/list/.lowcode/configs.jsx b/vue/src/pages/machine/list/.lowcode/configs.jsx index 071d32d..5ffc8d8 100644 --- a/vue/src/pages/machine/list/.lowcode/configs.jsx +++ b/vue/src/pages/machine/list/.lowcode/configs.jsx @@ -1,68 +1,24 @@ export default { - title: '设备列表', - entitys: [ - { name: 'id', label: '编号' }, - { name: 'name', type: 'input', label: '名称' }, - { name: 'nick', label: '昵称' }, - { name: 'ukey', label: '密钥' }, - { name: 'createUid', type: 'input', label: '创建人' }, - { - name: 'status', - type: 'switch', - label: '状态', - url: '/app/updateStatus.do', - }, - { - name: 'config', - type: 'map', - default: {}, - fields: [ - { name: 'api', label: '接口地址', type: 'input' }, - { name: 'version', label: '资源版本', type: 'input' }, - ], - }, - ], - columns: ['id', 'createUid', 'nick', 'unionid', 'dingId', 'ukey'], - condtion: ['id', 'createUid', 'nick', 'unionid', 'dingId', 'ukey'], + title: "设备列表", + entitys: [{"name":"id","label":"编号"},{"name":"title","label":"产品描述"},{"name":"describe","label":"描述"},{"name":"categoryId","label":"分类"},{"name":"status","label":"设备状态","code":"machineStatus"},{"name":"inline","label":"接入方式","code":"inlineMode"},{"name":"createGmt","label":"创建时间","type":"date"},{"name":"updateGmt","label":"更新时间","type":"date"}], + columns: ["id","title","describe","category_id","status","inline","create_gmt","update_gmt"], + condition: [], slots: { - header$() { + header$() { return ( <> - + ) }, action$({ row }) { return ( <> - - - + + ) - }, - }, + } + } } + \ No newline at end of file diff --git a/vue/src/pages/machine/list/.lowcode/data b/vue/src/pages/machine/list/.lowcode/data index 588d754..4cb9333 100644 --- a/vue/src/pages/machine/list/.lowcode/data +++ b/vue/src/pages/machine/list/.lowcode/data @@ -1 +1 @@ -{"table":"","blocks":[],"counter":6786,"basic":{"title":"设备列表","selectable":0,"showIndex":0,"compact":0,"size":"","url":"/do/select/site","actions":[]},"columns":[],"tabs":{"code":null,"defaultVal":null,"list":[],"keyword":null},"condition":[],"conditionLimit":null,"actions":[],"_id":6786} \ No newline at end of file +{"table":"machine","blocks":[],"counter":6788,"basic":{"title":"设备列表","selectable":0,"showIndex":0,"compact":0,"size":"","url":"/do/select/machine","actions":[{"label":"新增设备","mode":"wicket","type":"primary","url":"/do/put/machine","from":null,"fields":[{"id":"title","name":"title","width":null,"rule":{},"block":null,"blockType":null},{"id":"describe","name":"describe","width":null,"rule":{},"block":null,"blockType":null},{"id":"categoryId","name":"categoryId","width":null,"rule":{},"block":null,"blockType":null},{"id":"status","name":"status","width":null,"rule":{},"block":null,"blockType":null},{"id":"inline","name":"inline","width":null,"rule":{},"block":null,"blockType":null}],"name":"J_6786","_id":6787}]},"columns":[{"id":"id","name":"id","width":null,"rule":{},"block":null,"blockType":null},{"id":"title","name":"title","width":null,"rule":{},"block":null,"blockType":null},{"id":"describe","name":"describe","width":null,"rule":{},"block":null,"blockType":null},{"id":"category_id","name":"category_id","width":null,"rule":{},"block":null,"blockType":null},{"id":"status","name":"status","width":null,"rule":{},"block":null,"blockType":null},{"id":"inline","name":"inline","width":null,"rule":{},"block":null,"blockType":null},{"id":"create_gmt","name":"create_gmt","width":null,"rule":{},"block":null,"blockType":null},{"id":"update_gmt","name":"update_gmt","width":null,"rule":{},"block":null,"blockType":null}],"tabs":{"code":null,"defaultVal":null,"list":[],"keyword":null},"condition":[],"conditionLimit":null,"actions":[{"label":"编辑","mode":"wicket","type":"text","url":"/do/patch/machine","from":null,"fields":[{"id":"title","name":"title","width":null,"rule":{},"block":null,"blockType":null},{"id":"describe","name":"describe","width":null,"rule":{},"block":null,"blockType":null},{"id":"status","name":"status","width":null,"rule":{},"block":null,"blockType":null},{"id":"inline","name":"inline","width":null,"rule":{},"block":null,"blockType":null},{"id":"categoryId","name":"categoryId","width":null,"rule":{},"block":null,"blockType":null}],"name":"J_6787","_id":6788},{"label":"删除","mode":"confirm","type":"text","url":"/do/delete/machine","params":[],"tip":"确定删除该产品吗?","_id":6789}],"_id":6789} \ No newline at end of file diff --git a/vue/src/pages/machine/list/list.vue b/vue/src/pages/machine/list/list.vue index 0079f8a..a7dcc52 100644 --- a/vue/src/pages/machine/list/list.vue +++ b/vue/src/pages/machine/list/list.vue @@ -1,10 +1,10 @@