From a1cfabb50578c1d2a93d7b37bb38a022f2da1091 Mon Sep 17 00:00:00 2001 From: shimu Date: Tue, 21 May 2024 17:16:01 +0800 Subject: [PATCH] x --- .../machine/category/.lowcode/configs.jsx | 69 +++---------------- vue/src/pages/machine/category/.lowcode/data | 2 +- vue/src/pages/machine/index.js | 3 +- .../pages/machine/list/.lowcode/configs.jsx | 68 ++++++++++++++++++ vue/src/pages/machine/list/.lowcode/data | 1 + vue/src/pages/machine/list/list.vue | 17 +++++ 6 files changed, 98 insertions(+), 62 deletions(-) create mode 100644 vue/src/pages/machine/list/.lowcode/configs.jsx create mode 100644 vue/src/pages/machine/list/.lowcode/data create mode 100644 vue/src/pages/machine/list/list.vue diff --git a/vue/src/pages/machine/category/.lowcode/configs.jsx b/vue/src/pages/machine/category/.lowcode/configs.jsx index e4bc1b2..a63d608 100644 --- a/vue/src/pages/machine/category/.lowcode/configs.jsx +++ b/vue/src/pages/machine/category/.lowcode/configs.jsx @@ -1,68 +1,17 @@ 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":"parentId","label":"父级ID"},{"name":"createGmt","label":"创建时间","type":"date"},{"name":"updateGmt","label":"更新时间","type":"date"}], + columns: ["id","title","describe","createGmt"], + condition: [], slots: { - header$() { + header$() { return ( <> - + ) }, - action$({ row }) { - return ( - <> - - - - - ) - }, - }, + + } } + \ No newline at end of file diff --git a/vue/src/pages/machine/category/.lowcode/data b/vue/src/pages/machine/category/.lowcode/data index 655555c..7405725 100644 --- a/vue/src/pages/machine/category/.lowcode/data +++ b/vue/src/pages/machine/category/.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_category","blocks":[],"counter":6787,"basic":{"title":"分类管理","selectable":0,"showIndex":0,"compact":0,"size":"","url":"/do/select/machine_category","actions":[{"label":"新增分类","mode":"wicket","type":"primary","url":"/do/put/machine_category","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}],"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":"createGmt","name":"createGmt","width":null,"rule":{},"block":null,"blockType":null}],"tabs":{"code":null,"defaultVal":null,"list":[],"keyword":null},"condition":[],"conditionLimit":null,"actions":[],"_id":6787} \ No newline at end of file diff --git a/vue/src/pages/machine/index.js b/vue/src/pages/machine/index.js index e8ead66..9d27920 100644 --- a/vue/src/pages/machine/index.js +++ b/vue/src/pages/machine/index.js @@ -1,3 +1,4 @@ export default { - 'machine/category': () => import( /* webpackChunkName: "pages/machine/category" */ "./category/category.vue") + 'machine/category': () => import( /* webpackChunkName: "pages/machine/category" */ "./category/category.vue"), + 'machine/list': () => import( /* webpackChunkName: "pages/machine/list" */ "./list/list.vue") }; \ 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 new file mode 100644 index 0000000..071d32d --- /dev/null +++ b/vue/src/pages/machine/list/.lowcode/configs.jsx @@ -0,0 +1,68 @@ +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'], + slots: { + header$() { + return ( + <> + + + ) + }, + action$({ row }) { + return ( + <> + + + + + ) + }, + }, +} diff --git a/vue/src/pages/machine/list/.lowcode/data b/vue/src/pages/machine/list/.lowcode/data new file mode 100644 index 0000000..588d754 --- /dev/null +++ b/vue/src/pages/machine/list/.lowcode/data @@ -0,0 +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 diff --git a/vue/src/pages/machine/list/list.vue b/vue/src/pages/machine/list/list.vue new file mode 100644 index 0000000..283293e --- /dev/null +++ b/vue/src/pages/machine/list/list.vue @@ -0,0 +1,17 @@ + + + + \ No newline at end of file