This commit is contained in:
shimu 2024-05-21 15:39:28 +08:00
parent 8b6769f786
commit 164b2aa78f
8 changed files with 14 additions and 131 deletions

View File

@ -1,48 +0,0 @@
export default {
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", "updateGmt"],
condition: ["title"],
slots: {
header$() {
return (
<>
<z-action
label="新建分类"
fields={["title", "describe"]}
url="/do/put/category"
/>
</>
);
},
action$({ row }) {
return (
<>
<z-action
label="编辑"
mode="wicket"
fields={["title", "describe"]}
link
data={row}
url="/do/patch/category"
/>
<z-action
label="删除"
mode="confirm"
link
data={row}
url="/do/delete/category"
title="确定删除该分类吗?"
/>
</>
);
},
},
};

View File

@ -1 +0,0 @@
{"table":"category","blocks":[],"counter":6787,"basic":{"title":"文章分类","selectable":0,"showIndex":0,"compact":0,"size":"","url":"/do/select/category","actions":[{"label":"新建分类","mode":"wicket","type":"primary","url":"/do/put/category","name":"add","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":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},{"id":"updateGmt","name":"updateGmt","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/category","name":"J_6786","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":6788},{"label":"删除","mode":"confirm","type":"text","url":"/do/delete/category","params":["id"],"tip":"确定删除该分类吗?","_id":6789}],"_id":6789}

View File

@ -1,16 +0,0 @@
<template>
<z-table name="6625cc13b7d97458478b8517" url="/do/select/category">
</z-table>
</template>
<script>
import configs from './.lowcode/configs';
export default {
name: 'page-category',
provide: { configs },
data() {
return {}
},
}
</script>

View File

@ -1,4 +0,0 @@
export default {
'article/category': () => import( /* webpackChunkName: "pages/article/category" */ "./category/category.vue"),
'article/list': () => import( /* webpackChunkName: "pages/article/list" */ "./list/list.vue")
};

View File

@ -1,25 +0,0 @@
export default {
title: "文章列表",
tabs: {"code":"articleType","list":[],"keyword":"type"},
entitys: [{"name":"id","label":"编号"},{"name":"title","label":"文章标题"},{"name":"categoryId","label":"文章分类"},{"name":"type","label":"文章类型","code":"articleType"},{"name":"content","label":"文章内容","type":"editor"},{"name":"commentable","label":"是否支持评论","type":"number"},{"name":"createGmt","label":"创建时间","type":"date"},{"name":"updateGmt","label":"更新时间","type":"date"},{"name":"pictures","label":"图片列表"},{"name":"uid","label":"创建者"},{"name":"author","label":"创建者"},{"name":"from","label":"来源"}],
columns: ["id","title","type","uid","updateGmt","createGmt"],
condition: ["title","categoryId"],
slots: {
header$() {
return (
<>
<z-action label='新增文章' mode='drawer' fields={["title","categoryId","type","content","commentable","pictures","author","from"]} url='/do/put/article' />
</>
)
},
action$({ row }) {
return (
<>
<z-action label='编辑' mode='drawer' fields={["title","categoryId","type","content","commentable","author","from","pictures"]} link data={row} url='/do/patch/article' title='编辑文章' />
<z-action label='删除' link data={row} url='/do/delete/article' title='确定删除该文章吗?' />
</>
)
}
}
}

View File

@ -1 +0,0 @@
{"table":"article","blocks":[],"counter":6786,"basic":{"title":"文章列表","selectable":0,"showIndex":0,"compact":0,"size":"","url":"/do/select/article","actions":[{"label":"新增文章","mode":"drawer","type":"primary","title":null,"params":null,"width":null,"from":null,"actions":[],"_id":6787,"url":"/do/put/article","fields":[{"id":"title","name":"title","width":null,"rule":{},"block":null,"blockType":null},{"id":"categoryId","name":"categoryId","width":null,"rule":{},"block":null,"blockType":null},{"id":"type","name":"type","width":null,"rule":{},"block":null,"blockType":null},{"id":"content","name":"content","width":null,"rule":{},"block":null,"blockType":null},{"id":"commentable","name":"commentable","width":null,"rule":{},"block":null,"blockType":null},{"id":"pictures","name":"pictures","width":null,"rule":{},"block":null,"blockType":null},{"id":"author","name":"author","width":null,"rule":{},"block":null,"blockType":null},{"id":"from","name":"from","width":null,"rule":{},"block":null,"blockType":null}]}]},"columns":[{"id":"id","name":"id","width":null,"rule":{},"block":null,"blockType":null},{"id":"title","name":"title","width":null,"rule":{},"block":null,"blockType":null},{"id":"type","name":"type","width":null,"rule":{},"block":null,"blockType":null},{"id":"uid","name":"uid","width":null,"rule":{},"block":null,"blockType":null},{"id":"updateGmt","name":"updateGmt","width":null,"rule":{},"block":null,"blockType":null},{"id":"createGmt","name":"createGmt","width":null,"rule":{},"block":null,"blockType":null}],"tabs":{"code":"articleType","defaultVal":null,"list":[],"keyword":"type"},"condition":[{"id":"title","name":"title","width":null,"rule":{},"block":null,"blockType":null},{"id":"categoryId","name":"categoryId","width":null,"rule":{},"block":null,"blockType":null}],"conditionLimit":null,"actions":[{"label":"编辑","mode":"drawer","type":"text","title":"编辑文章","params":null,"width":null,"from":null,"actions":[],"_id":6788,"url":"/do/patch/article","fields":[{"id":"title","name":"title","width":null,"rule":{},"block":null,"blockType":null},{"id":"categoryId","name":"categoryId","width":null,"rule":{},"block":null,"blockType":null},{"id":"type","name":"type","width":null,"rule":{},"block":null,"blockType":null},{"id":"content","name":"content","width":null,"rule":{},"block":null,"blockType":null},{"id":"commentable","name":"commentable","width":null,"rule":{},"block":null,"blockType":null},{"id":"author","name":"author","width":null,"rule":{},"block":null,"blockType":null},{"id":"from","name":"from","width":null,"rule":{},"block":null,"blockType":null},{"id":"pictures","name":"pictures","width":null,"rule":{},"block":null,"blockType":null}]},{"label":"删除","mode":"confirm","type":"text","url":"/do/delete/article","params":["id"],"tip":"确定删除该文章吗?","_id":6789}],"_id":6789}

View File

@ -1,16 +0,0 @@
<template>
<z-table name="6625cc33b7d97458478b8518" url="/do/select/article">
</z-table>
</template>
<script>
import configs from './.lowcode/configs';
export default {
name: 'page-list',
provide: { configs },
data() {
return {}
},
}
</script>

View File

@ -1,23 +1,17 @@
import article from './article/index';
import capital from './capital/index';
import machine from './machine/index';
import maintain from './maintain/index';
import material from './material/index';
import screen from './screen/index';
import system from './system/index';
import warn from './warn/index';
import capital from "./capital/index";
import machine from "./machine/index";
import maintain from "./maintain/index";
import material from "./material/index";
import screen from "./screen/index";
import system from "./system/index";
import warn from "./warn/index";
export default {
...article,
...capital,
...machine,
...maintain,
...material,
...screen,
...system,
...warn
...capital,
...machine,
...maintain,
...material,
...screen,
...system,
...warn,
};