This commit is contained in:
shimu
2024-05-21 11:34:38 +08:00
commit 1c0e4b1bf0
70 changed files with 2077 additions and 0 deletions

6
vue/src/app.js Normal file
View File

@@ -0,0 +1,6 @@
import Console from "./console/index.vue";
import Routes from "./pages/routes";
const dict = require("./pages/dict.json");
__webpack_public_path__ = zen.path("iot");
zen.setup({ com: Console, routes: Routes, dict });

12
vue/src/console/index.vue Normal file
View File

@@ -0,0 +1,12 @@
<template>
<z-console :menus="data" title="社区智慧安全系统" />
</template>
<script>
export default {
data() {
return {};
},
created() { },
};
</script>

View File

@@ -0,0 +1,48 @@
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

@@ -0,0 +1 @@
{"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

@@ -0,0 +1,16 @@
<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

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

View File

@@ -0,0 +1,25 @@
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

@@ -0,0 +1 @@
{"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

@@ -0,0 +1,16 @@
<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>

1
vue/src/pages/dict.json Normal file
View File

@@ -0,0 +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"}]}]

11
vue/src/pages/index.js Normal file
View File

@@ -0,0 +1,11 @@
import article from "./article/index";
import material from "./material/index";
import page from "./page/index";
import system from "./system/index";
export default {
...article,
...material,
...page,
...system,
};

View File

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

View File

@@ -0,0 +1,88 @@
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 (
<>
<el-button>Default</el-button>
<el-button type="success">Success</el-button>
<el-button type="info">测试</el-button>
<el-button type="warning">这里是按钮</el-button>
<el-button type="danger">Danger</el-button>
<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
mode="confirm"
title="确定删除吗?"
data={row}
url="/do/delete/member"
label="删除"
/>
</>
);
},
},
};

View File

@@ -0,0 +1 @@
{"table":"picture","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}

View File

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

View File

@@ -0,0 +1,88 @@
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 (
<>
<el-button>Default</el-button>
<el-button type="success">Success</el-button>
<el-button type="info">测试</el-button>
<el-button type="warning">这里是按钮</el-button>
<el-button type="danger">Danger</el-button>
<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
mode="confirm"
title="确定删除吗?"
data={row}
url="/do/delete/member"
label="删除"
/>
</>
);
},
},
};

View File

@@ -0,0 +1 @@
{"table":"video","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}

View File

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

View File

@@ -0,0 +1,26 @@
export default {
title: "活动页列表",
tabs: {"code":"pageStatus","list":[],"keyword":"status"},
entitys: [{"name":"id","label":"编号"},{"name":"title","label":"页面标题"},{"name":"path","label":"页面路径"},{"name":"type","label":"页面类型","code":"pageType"},{"name":"siteId","label":"所属站点"},{"name":"content","label":"描述内容"},{"name":"status","label":"页面状态","code":"pageStatus"},{"name":"createGmt","label":"创建时间","type":"date"},{"name":"updateGmt","label":"更新时间","type":"date"},{"name":"data","label":"页面数据"}],
columns: ["id","title","path","type","status"],
condition: ["title","type"],
slots: {
header$() {
return (
<>
<z-action label='新建活动页' mode='wicket' fields={["title","path","type","siteId"]} url='/do/put/activity' />
</>
)
},
action$({ row }) {
return (
<>
<z-action label='编辑' mode='wicket' fields={["title"]} link data={row} url='/do/patch/activity' />
<z-action label='装修' mode='link' href={`/design.html?id=${row.id}`} link data={row} />
<z-action label='删除' mode='confirm' link data={row} url='/do/delete/activity' title='确定删除吗?' />
</>
)
}
}
}

View File

@@ -0,0 +1 @@
{"table":"activity","blocks":[],"counter":6786,"basic":{"title":"活动页列表","selectable":0,"showIndex":0,"compact":0,"size":"","url":"/do/select/activity","actions":[{"label":"新建活动页","mode":"wicket","type":"primary","url":"/do/put/activity","name":"add","fields":[{"id":"title","name":"title","width":null,"rule":{},"block":null,"blockType":null},{"id":"path","name":"path","width":null,"rule":{},"block":null,"blockType":null},{"id":"type","name":"type","width":null,"rule":{},"block":null,"blockType":null},{"id":"siteId","name":"siteId","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":"path","name":"path","width":null,"rule":{},"block":null,"blockType":null},{"id":"type","name":"type","width":null,"rule":{},"block":null,"blockType":null},{"id":"status","name":"status","width":null,"rule":{},"block":null,"blockType":null}],"tabs":{"code":"pageStatus","defaultVal":null,"list":[],"keyword":"status"},"condition":[{"id":"title","name":"title","width":null,"rule":{},"block":null,"blockType":null},{"id":"type","name":"type","width":null,"rule":{},"block":null,"blockType":null}],"conditionLimit":null,"actions":[{"label":"编辑","mode":"wicket","type":"text","url":"/do/patch/activity","name":"edit","fields":[{"id":"title","name":"title","width":null,"rule":{},"block":null,"blockType":null}],"_id":6788},{"label":"装修","mode":"link","type":"text","href":"/design.html","params":["id"],"_id":6789},{"label":"删除","mode":"confirm","type":"text","url":"/do/delete/activity","params":["id"],"tip":"确定删除吗?","_id":6790}],"_id":6790}

View File

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

View File

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

View File

@@ -0,0 +1,24 @@
export default {
title: "源码页面",
entitys: [{"name":"title","label":"页面标题"},{"name":"path","label":"页面路径"},{"name":"type","label":"平台类型","type":"number"},{"name":"siteId","label":"所属站点"},{"name":"content","label":"网站内容","type":"textarea"},{"name":"status","label":"状态","code":"pageStatus"},{"name":"templateId","label":"模版ID"},{"name":"id","label":"编号"},{"name":"createGmt","label":"创建时间","type":"date"},{"name":"updateGmt","label":"更新时间","type":"date"}],
columns: ["id","title","path","updateGmt","createGmt"],
condition: [],
slots: {
header$() {
return (
<>
<z-action label='创建页面' mode='wicket' fields={["title","path","content"]} url='/do/put/page' />
</>
)
},
action$({ row }) {
return (
<>
<z-action label='编辑' mode='wicket' fields={["title","content"]} from='/do/get/page' link data={row} url='/do/patch/page' />
<z-action label='删除' mode='confirm' link data={row} url='/do/delete/page' title='确定删除该页面吗?' />
</>
)
}
}
}

View File

@@ -0,0 +1 @@
{"table":"page","blocks":[],"counter":6786,"basic":{"title":"源码页面","selectable":0,"showIndex":0,"compact":0,"size":"","url":"/do/select/page","actions":[{"label":"创建页面","mode":"wicket","type":"primary","url":"/do/put/page","name":"add","fields":[{"id":"title","name":"title","width":null,"rule":{},"block":null,"blockType":null},{"id":"path","name":"path","width":null,"rule":{},"block":null,"blockType":null},{"id":"content","name":"content","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":"path","name":"path","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":null,"defaultVal":null,"list":[],"keyword":null},"condition":[],"conditionLimit":null,"actions":[{"label":"编辑","mode":"wicket","type":"text","url":"/do/patch/page","name":"edit","fields":[{"id":"title","name":"title","width":null,"rule":{},"block":null,"blockType":null},{"id":"content","name":"content","width":null,"rule":{},"block":null,"blockType":null}],"_id":6788,"from":"/do/get/page"},{"label":"删除","mode":"confirm","type":"text","url":"/do/delete/page","params":["id"],"tip":"确定删除该页面吗?","_id":6789}],"_id":6789}

View File

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

18
vue/src/pages/routes.js Normal file
View File

@@ -0,0 +1,18 @@
import pages from "./index";
let routes = [{ path: "/", redirect: "/welcome" }];
let isExist;
Object.keys(pages).forEach((pagePath) => {
isExist = false;
for (let index = 0; index < routes.length; index++) {
const route = routes[index];
if (route.path === "/" + pagePath) {
isExist = true;
break;
}
}
if (!isExist) {
routes.push({ path: "/" + pagePath, component: pages[pagePath] });
}
});
export default routes;

View File

@@ -0,0 +1,88 @@
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 (
<>
<el-button>Default</el-button>
<el-button type="success">Success</el-button>
<el-button type="info">测试</el-button>
<el-button type="warning">这里是按钮</el-button>
<el-button type="danger">Danger</el-button>
<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
mode="confirm"
title="确定删除吗?"
data={row}
url="/do/delete/member"
label="删除"
/>
</>
);
},
},
};

View File

@@ -0,0 +1 @@
{"table":"components","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}

View File

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

View File

@@ -0,0 +1,88 @@
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 (
<>
<el-button>Default</el-button>
<el-button type="success">Success</el-button>
<el-button type="info">测试</el-button>
<el-button type="warning">这里是按钮</el-button>
<el-button type="danger">Danger</el-button>
<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
mode="confirm"
title="确定删除吗?"
data={row}
url="/do/delete/member"
label="删除"
/>
</>
);
},
},
};

View File

@@ -0,0 +1 @@
{"table":"env","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}

16
vue/src/pages/system/env/env.vue vendored Normal file
View File

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

View File

@@ -0,0 +1,5 @@
export default {
'system/components': () => import( /* webpackChunkName: "pages/system/components" */ "./components/components.vue"),
'system/env': () => import( /* webpackChunkName: "pages/system/env" */ "./env/env.vue"),
'system/site': () => import( /* webpackChunkName: "pages/system/site" */ "./site/site.vue")
};

View File

@@ -0,0 +1,88 @@
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 (
<>
<el-button>Default</el-button>
<el-button type="success">Success</el-button>
<el-button type="info">测试</el-button>
<el-button type="warning">这里是按钮</el-button>
<el-button type="danger">Danger</el-button>
<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
mode="confirm"
title="确定删除吗?"
data={row}
url="/do/delete/member"
label="删除"
/>
</>
);
},
},
};

View File

@@ -0,0 +1 @@
{"table":"site","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}

View File

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