From 001b1db430caacde661c26c780cf77cc3a584491 Mon Sep 17 00:00:00 2001 From: shimu Date: Thu, 23 May 2024 17:03:04 +0800 Subject: [PATCH] x --- vue/src/app.js | 1 + .../pages/capital/list/.lowcode/configs.jsx | 67 ++++--------------- vue/src/pages/capital/list/.lowcode/data | 2 +- vue/src/pages/capital/list/list.vue | 7 +- vue/src/pages/capital/list/renew/renew.vue | 7 +- vue/src/pages/capital/packages/packages.vue | 7 +- vue/src/pages/capital/renew/renew.vue | 2 +- vue/src/pages/dict.json | 2 +- vue/src/pages/maintain/cert/cert.vue | 7 +- vue/src/pages/maintain/media/media.vue | 7 +- vue/src/pages/maintain/net/net.vue | 7 +- vue/src/pages/maintain/protocol/protocol.vue | 7 +- vue/src/pages/material/picture/picture.vue | 2 +- vue/src/pages/material/video/video.vue | 2 +- vue/src/pages/screen/component/component.vue | 7 +- vue/src/pages/screen/list/list.vue | 7 +- vue/src/pages/screen/template/template.vue | 7 +- .../pages/system/components/components.vue | 2 +- vue/src/pages/system/env/env.vue | 2 +- vue/src/pages/system/role/role.vue | 7 +- vue/src/pages/system/set/set.vue | 7 +- vue/src/pages/system/site/site.vue | 2 +- vue/src/pages/system/users/users.vue | 7 +- vue/src/pages/warn/list/list.vue | 7 +- vue/src/pages/warn/set/set.vue | 7 +- 25 files changed, 66 insertions(+), 123 deletions(-) diff --git a/vue/src/app.js b/vue/src/app.js index ed06cce..c94984e 100644 --- a/vue/src/app.js +++ b/vue/src/app.js @@ -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 }); diff --git a/vue/src/pages/capital/list/.lowcode/configs.jsx b/vue/src/pages/capital/list/.lowcode/configs.jsx index 09b12a5..e6b0596 100644 --- a/vue/src/pages/capital/list/.lowcode/configs.jsx +++ b/vue/src/pages/capital/list/.lowcode/configs.jsx @@ -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 ( <> - + ) }, action$({ row }) { return ( <> - - - + + ) - }, - }, + } + } } + \ No newline at end of file diff --git a/vue/src/pages/capital/list/.lowcode/data b/vue/src/pages/capital/list/.lowcode/data index e7fb20d..289f0c2 100644 --- a/vue/src/pages/capital/list/.lowcode/data +++ b/vue/src/pages/capital/list/.lowcode/data @@ -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} \ No newline at end of file +{"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} \ No newline at end of file diff --git a/vue/src/pages/capital/list/list.vue b/vue/src/pages/capital/list/list.vue index bd2bf46..ad934f0 100644 --- a/vue/src/pages/capital/list/list.vue +++ b/vue/src/pages/capital/list/list.vue @@ -1,10 +1,10 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/vue/src/pages/capital/list/renew/renew.vue b/vue/src/pages/capital/list/renew/renew.vue index 179571a..60901ee 100644 --- a/vue/src/pages/capital/list/renew/renew.vue +++ b/vue/src/pages/capital/list/renew/renew.vue @@ -1,10 +1,10 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/vue/src/pages/capital/packages/packages.vue b/vue/src/pages/capital/packages/packages.vue index 89ea0e4..dbbb490 100644 --- a/vue/src/pages/capital/packages/packages.vue +++ b/vue/src/pages/capital/packages/packages.vue @@ -1,10 +1,10 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/vue/src/pages/capital/renew/renew.vue b/vue/src/pages/capital/renew/renew.vue index 88b399f..231523f 100644 --- a/vue/src/pages/capital/renew/renew.vue +++ b/vue/src/pages/capital/renew/renew.vue @@ -1,5 +1,5 @@ diff --git a/vue/src/pages/dict.json b/vue/src/pages/dict.json index 18fadaa..959490b 100644 --- a/vue/src/pages/dict.json +++ b/vue/src/pages/dict.json @@ -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"}]}] \ No newline at end of file +[{"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"}]}] \ No newline at end of file diff --git a/vue/src/pages/maintain/cert/cert.vue b/vue/src/pages/maintain/cert/cert.vue index f2fb840..14a765c 100644 --- a/vue/src/pages/maintain/cert/cert.vue +++ b/vue/src/pages/maintain/cert/cert.vue @@ -1,10 +1,10 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/vue/src/pages/maintain/media/media.vue b/vue/src/pages/maintain/media/media.vue index 9f96a81..7b695b4 100644 --- a/vue/src/pages/maintain/media/media.vue +++ b/vue/src/pages/maintain/media/media.vue @@ -1,10 +1,10 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/vue/src/pages/maintain/net/net.vue b/vue/src/pages/maintain/net/net.vue index 115cd8f..e6edb6a 100644 --- a/vue/src/pages/maintain/net/net.vue +++ b/vue/src/pages/maintain/net/net.vue @@ -1,10 +1,10 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/vue/src/pages/maintain/protocol/protocol.vue b/vue/src/pages/maintain/protocol/protocol.vue index 28afd70..6527226 100644 --- a/vue/src/pages/maintain/protocol/protocol.vue +++ b/vue/src/pages/maintain/protocol/protocol.vue @@ -1,10 +1,10 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/vue/src/pages/material/picture/picture.vue b/vue/src/pages/material/picture/picture.vue index 1bca4fe..a524e71 100644 --- a/vue/src/pages/material/picture/picture.vue +++ b/vue/src/pages/material/picture/picture.vue @@ -1,5 +1,5 @@ diff --git a/vue/src/pages/material/video/video.vue b/vue/src/pages/material/video/video.vue index 3354ab0..f7f1a61 100644 --- a/vue/src/pages/material/video/video.vue +++ b/vue/src/pages/material/video/video.vue @@ -1,5 +1,5 @@ diff --git a/vue/src/pages/screen/component/component.vue b/vue/src/pages/screen/component/component.vue index 9969d0f..1062f94 100644 --- a/vue/src/pages/screen/component/component.vue +++ b/vue/src/pages/screen/component/component.vue @@ -1,10 +1,10 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/vue/src/pages/screen/list/list.vue b/vue/src/pages/screen/list/list.vue index 6aa6230..ccae31e 100644 --- a/vue/src/pages/screen/list/list.vue +++ b/vue/src/pages/screen/list/list.vue @@ -1,10 +1,10 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/vue/src/pages/screen/template/template.vue b/vue/src/pages/screen/template/template.vue index ba169f2..49e4ef7 100644 --- a/vue/src/pages/screen/template/template.vue +++ b/vue/src/pages/screen/template/template.vue @@ -1,10 +1,10 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/vue/src/pages/system/components/components.vue b/vue/src/pages/system/components/components.vue index a9d6dae..fc9f5a5 100644 --- a/vue/src/pages/system/components/components.vue +++ b/vue/src/pages/system/components/components.vue @@ -1,5 +1,5 @@ diff --git a/vue/src/pages/system/env/env.vue b/vue/src/pages/system/env/env.vue index 2b48348..abbe213 100644 --- a/vue/src/pages/system/env/env.vue +++ b/vue/src/pages/system/env/env.vue @@ -1,5 +1,5 @@ diff --git a/vue/src/pages/system/role/role.vue b/vue/src/pages/system/role/role.vue index b46c911..33488ba 100644 --- a/vue/src/pages/system/role/role.vue +++ b/vue/src/pages/system/role/role.vue @@ -1,10 +1,10 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/vue/src/pages/system/set/set.vue b/vue/src/pages/system/set/set.vue index ea06258..ecb2a46 100644 --- a/vue/src/pages/system/set/set.vue +++ b/vue/src/pages/system/set/set.vue @@ -1,10 +1,10 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/vue/src/pages/system/site/site.vue b/vue/src/pages/system/site/site.vue index d1bfc9c..3857598 100644 --- a/vue/src/pages/system/site/site.vue +++ b/vue/src/pages/system/site/site.vue @@ -1,5 +1,5 @@ diff --git a/vue/src/pages/system/users/users.vue b/vue/src/pages/system/users/users.vue index 4799612..df9718e 100644 --- a/vue/src/pages/system/users/users.vue +++ b/vue/src/pages/system/users/users.vue @@ -1,10 +1,10 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/vue/src/pages/warn/list/list.vue b/vue/src/pages/warn/list/list.vue index 2a1b5da..95b94a6 100644 --- a/vue/src/pages/warn/list/list.vue +++ b/vue/src/pages/warn/list/list.vue @@ -1,10 +1,10 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/vue/src/pages/warn/set/set.vue b/vue/src/pages/warn/set/set.vue index 5dc6479..a9dd0c4 100644 --- a/vue/src/pages/warn/set/set.vue +++ b/vue/src/pages/warn/set/set.vue @@ -1,10 +1,10 @@ - \ No newline at end of file + \ No newline at end of file