This commit is contained in:
shimu 2024-05-22 10:11:24 +08:00
parent a1cfabb505
commit 30aa7981eb
4 changed files with 15 additions and 10 deletions

View File

@ -1,8 +1,8 @@
export default {
title: "分类管理",
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: [],
condition: ["title"],
slots: {
header$() {
return (
@ -11,7 +11,14 @@ export default {
</>
)
},
action$({ row }) {
return (
<>
<z-action label='编辑' fields={["title","describe"]} link data={row} url='/do/patch/machine_category' />
<z-action label='删除' link data={row} url='/do/delete/machine_category' title='确定删除该分类吗?' />
</>
)
}
}
}

View File

@ -1 +1 @@
{"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}
{"table":"machine_category","blocks":[],"counter":6788,"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":[{"id":"title","name":"title","width":null,"rule":{},"block":null,"blockType":null}],"conditionLimit":null,"actions":[{"label":"编辑","mode":"wicket","type":"text","url":"/do/patch/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_6787","_id":6788},{"label":"删除","mode":"confirm","type":"text","url":"/do/delete/machine_category","params":["id"],"tip":"确定删除该分类吗?","_id":6790}],"_id":6790}

View File

@ -1,5 +1,5 @@
<template>
<z-table name="1wj3jriigc6" url="/do/select/category" mocked>
<z-table name="1wj3jriigc6" url="/do/select/machine_category">
</z-table>
</template>
@ -13,5 +13,4 @@ export default {
return {}
},
}
</script>
</script>

View File

@ -1,5 +1,5 @@
<template>
<z-table name="zy1b7avmfwi" url="/do/select/list" mocked>
<z-table name="zy1b7avmfwi" url="/do/select/list">
</z-table>
</template>
@ -13,5 +13,4 @@ export default {
return {}
},
}
</script>
</script>