x
This commit is contained in:
parent
30aa7981eb
commit
264ee48f0e
@ -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"}]}]
|
||||
[{"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"}]}]
|
@ -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 (
|
||||
<>
|
||||
<z-action
|
||||
fields={['id', 'createUid', 'nick', 'unionid', 'dingId', 'ukey']}
|
||||
url='/do/put/member'
|
||||
label='添加'
|
||||
title='hello'
|
||||
/>
|
||||
<z-action label='新增设备' fields={["title","describe","categoryId","status","inline"]} url='/do/put/machine' />
|
||||
</>
|
||||
)
|
||||
},
|
||||
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='删除'
|
||||
/>
|
||||
<z-action label='编辑' fields={["title","describe","status","inline","categoryId"]} link data={row} url='/do/patch/machine' />
|
||||
<z-action label='删除' link data={row} url='/do/delete/machine' title='确定删除该产品吗?' />
|
||||
</>
|
||||
)
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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","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}
|
@ -1,10 +1,10 @@
|
||||
<template>
|
||||
<z-table name="zy1b7avmfwi" url="/do/select/list">
|
||||
<z-table name="zy1b7avmfwi" url="/do/select/machine">
|
||||
</z-table>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import configs from './.lowcode/configs'
|
||||
import configs from './.lowcode/configs';
|
||||
|
||||
export default {
|
||||
name: 'p-zy1b7avmfwi',
|
||||
|
Loading…
x
Reference in New Issue
Block a user