This commit is contained in:
shimu 2024-05-23 17:03:04 +08:00
parent f479fc4d5b
commit 001b1db430
25 changed files with 66 additions and 123 deletions

View File

@ -3,4 +3,5 @@ import Routes from "./pages/routes";
const dict = require("./pages/dict.json");
__webpack_public_path__ = zen.path("iot");
window.coderHost = "http://thor.dev.zeto.me";
zen.setup({ com: Layout, routes: Routes, dict });

View File

@ -1,68 +1,25 @@
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'],
url:"/do/select/mobile_card",
title: "物联卡列表",
entitys: [{"name":"id","label":"编号"},{"name":"msisdn","label":"MSISDN"},{"name":"iccid","label":"ICCID"},{"name":"imsi","label":"IMSI"},{"name":"status","label":"状态","code":"cardStatus"},{"name":"from","label":"通信通道","code":"cardFrom"},{"name":"meal","label":"套餐类型","code":"mealType"},{"name":"capacity","label":"用量"},{"name":"activityGmt","label":"激活时间","type":"date"},{"name":"desc","label":"备注信息"},{"name":"createGmt","label":"创建时间","type":"date"},{"name":"updateGmt","label":"更新时间","type":"date"}],
columns: ["id","msisdn","iccid","desc","status","imsi","meal","activityGmt","from","capacity","createGmt"],
condition: ["msisdn","iccid","imsi","status","from","meal","desc"],
slots: {
header$() {
header$() {
return (
<>
<z-action
fields={['id', 'createUid', 'nick', 'unionid', 'dingId', 'ukey']}
url='/do/put/member'
label='添加'
title='hello'
/>
<z-action label='新增物联卡' fields={["msisdn","iccid","desc","imsi","status","from","meal","capacity","activity_gmt"]} url='/do/put/mobile_card' />
</>
)
},
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={["desc","status","activity_gmt","capacity"]} link data={row} url='/do/patch/mobile_card' />
<z-action label='删除' link data={row} url='/do/delete/mobile_card' title='确定删除该物联卡吗?' />
</>
)
},
},
}
}
}

View File

@ -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":"mobile_card","blocks":[],"counter":6788,"basic":{"title":"物联卡列表","selectable":0,"showIndex":0,"compact":0,"size":"","url":"/do/select/mobile_card","actions":[{"label":"新增物联卡","mode":"wicket","type":"primary","url":"/do/put/mobile_card","from":null,"fields":[{"id":"msisdn","name":"msisdn","width":null,"rule":{},"block":null,"blockType":null},{"id":"iccid","name":"iccid","width":null,"rule":{},"block":null,"blockType":null},{"id":"desc","name":"desc","width":null,"rule":{},"block":null,"blockType":null},{"id":"imsi","name":"imsi","width":null,"rule":{},"block":null,"blockType":null},{"id":"status","name":"status","width":null,"rule":{},"block":null,"blockType":null},{"id":"from","name":"from","width":null,"rule":{},"block":null,"blockType":null},{"id":"meal","name":"meal","width":null,"rule":{},"block":null,"blockType":null},{"id":"capacity","name":"capacity","width":null,"rule":{},"block":null,"blockType":null},{"id":"activity_gmt","name":"activity_gmt","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":"msisdn","name":"msisdn","width":null,"rule":{},"block":null,"blockType":null},{"id":"iccid","name":"iccid","width":null,"rule":{},"block":null,"blockType":null},{"id":"desc","name":"desc","width":null,"rule":{},"block":null,"blockType":null},{"id":"status","name":"status","width":null,"rule":{},"block":null,"blockType":null},{"id":"imsi","name":"imsi","width":null,"rule":{},"block":null,"blockType":null},{"id":"meal","name":"meal","width":null,"rule":{},"block":null,"blockType":null},{"id":"activity_gmt","name":"activity_gmt","width":null,"rule":{},"block":null,"blockType":null},{"id":"from","name":"from","width":null,"rule":{},"block":null,"blockType":null},{"id":"capacity","name":"capacity","width":null,"rule":{},"block":null,"blockType":null},{"id":"create_gmt","name":"create_gmt","width":null,"rule":{},"block":null,"blockType":null}],"tabs":{"code":null,"defaultVal":null,"list":[],"keyword":null},"condition":[{"id":"msisdn","name":"msisdn","width":null,"rule":{},"block":null,"blockType":null},{"id":"iccid","name":"iccid","width":null,"rule":{},"block":null,"blockType":null},{"id":"imsi","name":"imsi","width":null,"rule":{},"block":null,"blockType":null},{"id":"status","name":"status","width":null,"rule":{},"block":null,"blockType":null},{"id":"from","name":"from","width":null,"rule":{},"block":null,"blockType":null},{"id":"meal","name":"meal","width":null,"rule":{},"block":null,"blockType":null},{"id":"desc","name":"desc","width":null,"rule":{},"block":null,"blockType":null}],"conditionLimit":null,"actions":[{"label":"编辑","mode":"wicket","type":"text","url":"/do/patch/mobile_card","from":null,"fields":[{"id":"desc","name":"desc","width":null,"rule":{},"block":null,"blockType":null},{"id":"status","name":"status","width":null,"rule":{},"block":null,"blockType":null},{"id":"activity_gmt","name":"activity_gmt","width":null,"rule":{},"block":null,"blockType":null},{"id":"capacity","name":"capacity","width":null,"rule":{},"block":null,"blockType":null}],"name":"J_6787","_id":6788},{"label":"删除","mode":"confirm","type":"text","url":"/do/delete/mobile_card","params":["id"],"tip":"确定删除该物联卡吗?","_id":6789}],"_id":6789}

View File

@ -1,10 +1,10 @@
<template>
<z-table name="bnnfpxf9oue" url="/do/select/list" mocked>
<z-table name="bnnfpxf9oue">
</z-table>
</template>
<script>
import configs from './.lowcode/configs'
import configs from './.lowcode/configs';
export default {
name: 'p-bnnfpxf9oue',
@ -13,5 +13,4 @@ export default {
return {}
},
}
</script>
</script>

View File

@ -1,10 +1,10 @@
<template>
<z-table name="c99phx776jn" url="/do/select/renew" mocked>
<z-table name="c99phx776jn" mocked>
</z-table>
</template>
<script>
import configs from './.lowcode/configs'
import configs from './.lowcode/configs';
export default {
name: 'p-c99phx776jn',
@ -13,5 +13,4 @@ export default {
return {}
},
}
</script>
</script>

View File

@ -1,10 +1,10 @@
<template>
<z-table name="eemwotn4jew" url="/do/select/packages" mocked>
<z-table name="eemwotn4jew" mocked>
</z-table>
</template>
<script>
import configs from './.lowcode/configs'
import configs from './.lowcode/configs';
export default {
name: 'p-eemwotn4jew',
@ -13,5 +13,4 @@ export default {
return {}
},
}
</script>
</script>

View File

@ -1,5 +1,5 @@
<template>
<z-table name="gp970l4mioa" url="/do/select/renew" mocked>
<z-table name="gp970l4mioa" mocked>
</z-table>
</template>

View File

@ -1 +1 @@
[{"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"}]}]
[{"key":"mealType","title":"套餐类型","type":1,"content":[{"value":1,"label":"大王卡","color":"#FF6900"},{"value":2,"label":"东风卡","color":"#C71585"},{"value":3,"label":"动感地带","color":"#559B7B"}]},{"key":"cardFrom","title":"通信通道","type":1,"content":[{"value":1,"label":"移动卡","color":"#999000"},{"value":2,"label":"联通卡","color":"#06EDA4"},{"value":3,"label":"电信卡","color":"#E004F4"}]},{"key":"cardStatus","title":"卡状态","type":1,"content":[{"value":7,"label":"已激活","color":"#559B7B"},{"value":5,"label":"待激活","color":"#666666"},{"value":9,"label":"已欠费","color":"#FF4500"},{"value":3,"label":"已锁定","color":"#F8D03F"}]},{"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"}]}]

View File

@ -1,10 +1,10 @@
<template>
<z-table name="9prr5hqljq9" url="/do/select/cert" mocked>
<z-table name="9prr5hqljq9" mocked>
</z-table>
</template>
<script>
import configs from './.lowcode/configs'
import configs from './.lowcode/configs';
export default {
name: 'p-9prr5hqljq9',
@ -13,5 +13,4 @@ export default {
return {}
},
}
</script>
</script>

View File

@ -1,10 +1,10 @@
<template>
<z-table name="35htyca2cdq" url="/do/select/media" mocked>
<z-table name="35htyca2cdq" mocked>
</z-table>
</template>
<script>
import configs from './.lowcode/configs'
import configs from './.lowcode/configs';
export default {
name: 'p-35htyca2cdq',
@ -13,5 +13,4 @@ export default {
return {}
},
}
</script>
</script>

View File

@ -1,10 +1,10 @@
<template>
<z-table name="c9lq2nq8abf" url="/do/select/net" mocked>
<z-table name="c9lq2nq8abf" mocked>
</z-table>
</template>
<script>
import configs from './.lowcode/configs'
import configs from './.lowcode/configs';
export default {
name: 'p-c9lq2nq8abf',
@ -13,5 +13,4 @@ export default {
return {}
},
}
</script>
</script>

View File

@ -1,10 +1,10 @@
<template>
<z-table name="hh9sy24z62v" url="/do/select/protocol" mocked>
<z-table name="hh9sy24z62v" mocked>
</z-table>
</template>
<script>
import configs from './.lowcode/configs'
import configs from './.lowcode/configs';
export default {
name: 'p-hh9sy24z62v',
@ -13,5 +13,4 @@ export default {
return {}
},
}
</script>
</script>

View File

@ -1,5 +1,5 @@
<template>
<z-table name="6625cd28b7d97458478b8519" url="/do/select/picture" mocked>
<z-table name="6625cd28b7d97458478b8519" mocked>
</z-table>
</template>

View File

@ -1,5 +1,5 @@
<template>
<z-table name="6625cd8eb7d97458478b851a" url="/do/select/video" mocked>
<z-table name="6625cd8eb7d97458478b851a" mocked>
</z-table>
</template>

View File

@ -1,10 +1,10 @@
<template>
<z-table name="c76fn2avwyf" url="/do/select/component" mocked>
<z-table name="c76fn2avwyf" mocked>
</z-table>
</template>
<script>
import configs from './.lowcode/configs'
import configs from './.lowcode/configs';
export default {
name: 'p-c76fn2avwyf',
@ -13,5 +13,4 @@ export default {
return {}
},
}
</script>
</script>

View File

@ -1,10 +1,10 @@
<template>
<z-table name="qucodih5ukv" url="/do/select/list" mocked>
<z-table name="qucodih5ukv" mocked>
</z-table>
</template>
<script>
import configs from './.lowcode/configs'
import configs from './.lowcode/configs';
export default {
name: 'p-qucodih5ukv',
@ -13,5 +13,4 @@ export default {
return {}
},
}
</script>
</script>

View File

@ -1,10 +1,10 @@
<template>
<z-table name="ubfz7ze0cs8" url="/do/select/template" mocked>
<z-table name="ubfz7ze0cs8" mocked>
</z-table>
</template>
<script>
import configs from './.lowcode/configs'
import configs from './.lowcode/configs';
export default {
name: 'p-ubfz7ze0cs8',
@ -13,5 +13,4 @@ export default {
return {}
},
}
</script>
</script>

View File

@ -1,5 +1,5 @@
<template>
<z-table name="6625ce33b7d97458478b851b" url="/do/select/components" mocked>
<z-table name="6625ce33b7d97458478b851b" mocked>
</z-table>
</template>

View File

@ -1,5 +1,5 @@
<template>
<z-table name="6625cf58b7d97458478b851c" url="/do/select/env" mocked>
<z-table name="6625cf58b7d97458478b851c" mocked>
</z-table>
</template>

View File

@ -1,10 +1,10 @@
<template>
<z-table name="ppq48ibfqw5" url="/do/select/role" mocked>
<z-table name="ppq48ibfqw5" mocked>
</z-table>
</template>
<script>
import configs from './.lowcode/configs'
import configs from './.lowcode/configs';
export default {
name: 'p-ppq48ibfqw5',
@ -13,5 +13,4 @@ export default {
return {}
},
}
</script>
</script>

View File

@ -1,10 +1,10 @@
<template>
<z-table name="mozr5pvcyqu" url="/do/select/set" mocked>
<z-table name="mozr5pvcyqu" mocked>
</z-table>
</template>
<script>
import configs from './.lowcode/configs'
import configs from './.lowcode/configs';
export default {
name: 'p-mozr5pvcyqu',
@ -13,5 +13,4 @@ export default {
return {}
},
}
</script>
</script>

View File

@ -1,5 +1,5 @@
<template>
<z-table name="6625cf7cb7d97458478b851d" url="/do/select/site" mocked>
<z-table name="6625cf7cb7d97458478b851d" mocked>
</z-table>
</template>

View File

@ -1,10 +1,10 @@
<template>
<z-table name="lccgiq1uw28" url="/do/select/users" mocked>
<z-table name="lccgiq1uw28" mocked>
</z-table>
</template>
<script>
import configs from './.lowcode/configs'
import configs from './.lowcode/configs';
export default {
name: 'p-lccgiq1uw28',
@ -13,5 +13,4 @@ export default {
return {}
},
}
</script>
</script>

View File

@ -1,10 +1,10 @@
<template>
<z-table name="puy4up0b4dh" url="/do/select/list" mocked>
<z-table name="puy4up0b4dh" mocked>
</z-table>
</template>
<script>
import configs from './.lowcode/configs'
import configs from './.lowcode/configs';
export default {
name: 'p-puy4up0b4dh',
@ -13,5 +13,4 @@ export default {
return {}
},
}
</script>
</script>

View File

@ -1,10 +1,10 @@
<template>
<z-table name="45w53vu3q4e" url="/do/select/set" mocked>
<z-table name="45w53vu3q4e" mocked>
</z-table>
</template>
<script>
import configs from './.lowcode/configs'
import configs from './.lowcode/configs';
export default {
name: 'p-45w53vu3q4e',
@ -13,5 +13,4 @@ export default {
return {}
},
}
</script>
</script>