x
This commit is contained in:
parent
164b2aa78f
commit
a1cfabb505
@ -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 (
|
||||
<>
|
||||
<z-action
|
||||
fields={['id', 'createUid', 'nick', 'unionid', 'dingId', 'ukey']}
|
||||
url='/do/put/member'
|
||||
label='添加'
|
||||
title='hello'
|
||||
/>
|
||||
<z-action label='新增分类' fields={["title","describe"]} url='/do/put/machine_category' />
|
||||
</>
|
||||
)
|
||||
},
|
||||
action$({ row }) {
|
||||
return (
|
||||
<>
|
||||
<z-action
|
||||
link
|
||||
mode='drawer'
|
||||
title={row.nick + '侧滑菜单'}
|
||||
label='侧滑'
|
||||
/>
|
||||
<z-action
|
||||
link
|
||||
fields={['id', 'createUid', 'nick', 'unionid', 'dingId', 'ukey']}
|
||||
data={row}
|
||||
url='/do/patch/member'
|
||||
title={'编辑' + row.nick}
|
||||
label='编辑'
|
||||
/>
|
||||
<z-action
|
||||
link
|
||||
title='确定删除吗?'
|
||||
data={row}
|
||||
url='/do/delete/member'
|
||||
label='删除'
|
||||
/>
|
||||
</>
|
||||
)
|
||||
},
|
||||
},
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -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}
|
||||
{"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}
|
@ -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")
|
||||
};
|
68
vue/src/pages/machine/list/.lowcode/configs.jsx
Normal file
68
vue/src/pages/machine/list/.lowcode/configs.jsx
Normal file
@ -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 (
|
||||
<>
|
||||
<z-action
|
||||
fields={['id', 'createUid', 'nick', 'unionid', 'dingId', 'ukey']}
|
||||
url='/do/put/member'
|
||||
label='添加'
|
||||
title='hello'
|
||||
/>
|
||||
</>
|
||||
)
|
||||
},
|
||||
action$({ row }) {
|
||||
return (
|
||||
<>
|
||||
<z-action
|
||||
link
|
||||
mode='drawer'
|
||||
title={row.nick + '侧滑菜单'}
|
||||
label='侧滑'
|
||||
/>
|
||||
<z-action
|
||||
link
|
||||
fields={['id', 'createUid', 'nick', 'unionid', 'dingId', 'ukey']}
|
||||
data={row}
|
||||
url='/do/patch/member'
|
||||
title={'编辑' + row.nick}
|
||||
label='编辑'
|
||||
/>
|
||||
<z-action
|
||||
link
|
||||
title='确定删除吗?'
|
||||
data={row}
|
||||
url='/do/delete/member'
|
||||
label='删除'
|
||||
/>
|
||||
</>
|
||||
)
|
||||
},
|
||||
},
|
||||
}
|
1
vue/src/pages/machine/list/.lowcode/data
Normal file
1
vue/src/pages/machine/list/.lowcode/data
Normal file
@ -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}
|
17
vue/src/pages/machine/list/list.vue
Normal file
17
vue/src/pages/machine/list/list.vue
Normal file
@ -0,0 +1,17 @@
|
||||
<template>
|
||||
<z-table name="zy1b7avmfwi" url="/do/select/list" mocked>
|
||||
</z-table>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import configs from './.lowcode/configs'
|
||||
|
||||
export default {
|
||||
name: 'p-zy1b7avmfwi',
|
||||
provide: { configs },
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user