Compare commits
24 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
272ab6444d | ||
![]() |
2ae364acc9 | ||
![]() |
08a3d068f4 | ||
![]() |
3d028f16ec | ||
![]() |
76f2d0472e | ||
![]() |
8ca47ab17f | ||
![]() |
57c5a2db78 | ||
![]() |
31e88cf709 | ||
![]() |
ab566b1692 | ||
![]() |
0dd7e09348 | ||
![]() |
193e2ad370 | ||
![]() |
22cdc43c24 | ||
![]() |
41f55a81c4 | ||
![]() |
0c79c8afb3 | ||
![]() |
66e533ce26 | ||
![]() |
370cd6d189 | ||
![]() |
001b1db430 | ||
![]() |
f479fc4d5b | ||
![]() |
264ee48f0e | ||
![]() |
30aa7981eb | ||
![]() |
a1cfabb505 | ||
![]() |
164b2aa78f | ||
![]() |
8b6769f786 | ||
![]() |
f66963e37b |
57
iot/pom.xml
57
iot/pom.xml
@ -6,45 +6,29 @@
|
||||
<artifactId>iot</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<name>iot</name>
|
||||
<groupId>com.zeto</groupId>
|
||||
<groupId>com.yimiyisu</groupId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<properties>
|
||||
<maven.compiler.source>11</maven.compiler.source>
|
||||
<maven.compiler.target>1.8</maven.compiler.target>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<com.zeto>3.0.0</com.zeto>
|
||||
<com.zen>1.0.6-SNAPSHOT</com.zen>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.zeto</groupId>
|
||||
<groupId>com.zen</groupId>
|
||||
<artifactId>core</artifactId>
|
||||
<version>${com.zeto}</version>
|
||||
<version>${com.zen}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.qcloud</groupId>
|
||||
<artifactId>cos_api</artifactId>
|
||||
<version>5.6.211</version>
|
||||
<groupId>ch.qos.logback</groupId>
|
||||
<artifactId>logback-classic</artifactId>
|
||||
<version>1.5.6</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>me.zhyd.oauth</groupId>
|
||||
<artifactId>JustAuth</artifactId>
|
||||
<version>1.16.5</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.qcloud</groupId>
|
||||
<artifactId>cos-sts_api</artifactId>
|
||||
<version>3.1.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.tencentcloudapi</groupId>
|
||||
<artifactId>tencentcloud-sdk-java</artifactId>
|
||||
<version>3.1.640</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.qcloud</groupId>
|
||||
<artifactId>cos-sts_api</artifactId>
|
||||
<version>3.1.1</version>
|
||||
<scope>compile</scope>
|
||||
<version>1.16.6</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
@ -54,8 +38,8 @@
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.1</version>
|
||||
<configuration>
|
||||
<source>1.8</source>
|
||||
<target>1.8</target>
|
||||
<source>${maven.compiler.source}</source>
|
||||
<target>${maven.compiler.target}</target>
|
||||
<encoding>UTF-8</encoding>
|
||||
</configuration>
|
||||
</plugin>
|
||||
@ -78,6 +62,19 @@
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>com.zen</groupId>
|
||||
<artifactId>plugin</artifactId>
|
||||
<version>1.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>process-classes</phase>
|
||||
<goals>
|
||||
<goal>ZenOptimizer</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-shade-plugin</artifactId>
|
||||
@ -103,8 +100,8 @@
|
||||
</filters>
|
||||
<transformers>
|
||||
<transformer
|
||||
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
||||
<mainClass>com.zeto.${project.name}.Application</mainClass>
|
||||
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
||||
<mainClass>com.yimiyisu.${project.name}.Application</mainClass>
|
||||
</transformer>
|
||||
</transformers>
|
||||
<finalName>${project.name}</finalName>
|
||||
|
14
iot/src/main/java/com/yimiyisu/iot/Application.java
Normal file
14
iot/src/main/java/com/yimiyisu/iot/Application.java
Normal file
@ -0,0 +1,14 @@
|
||||
package com.yimiyisu.iot;
|
||||
|
||||
import com.zen.ZenApp;
|
||||
|
||||
public class Application implements ZenApp {
|
||||
|
||||
public static void main(String[] args) {
|
||||
int listenPort = 7097;
|
||||
String appName = "iot";
|
||||
ZenApp app = new Application();
|
||||
app.scanController();
|
||||
app.start(appName, listenPort);
|
||||
}
|
||||
}
|
25
iot/src/main/java/com/yimiyisu/iot/controller/Activity.java
Normal file
25
iot/src/main/java/com/yimiyisu/iot/controller/Activity.java
Normal file
@ -0,0 +1,25 @@
|
||||
package com.yimiyisu.iot.controller;
|
||||
|
||||
import com.zen.ZenData;
|
||||
import com.zen.ZenEngine;
|
||||
import com.zen.ZenResult;
|
||||
import com.zen.annotation.AccessRole;
|
||||
import com.zen.annotation.Inject;
|
||||
import com.zen.enums.ZenRole;
|
||||
import com.zen.interfaces.IController;
|
||||
import com.zen.kit.DateKit;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
|
||||
@Slf4j
|
||||
@AccessRole(ZenRole.ADMIN)
|
||||
public class Activity implements IController {
|
||||
|
||||
@Inject
|
||||
private ZenEngine zenEngine;
|
||||
|
||||
public ZenResult content(ZenData context) {
|
||||
ZenResult result = zenEngine.execute("get/activityOutput", context);
|
||||
return result.put("now", DateKit.now() * 1000).setMessage(null);
|
||||
}
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
package com.zeto.cms;
|
||||
|
||||
import com.zeto.Zen;
|
||||
|
||||
public class Application {
|
||||
|
||||
public static void main(String[] args) {
|
||||
int listenPort = 7097;
|
||||
String appName = "iot";
|
||||
// ZenEnvironment.setMulti(true);
|
||||
Zen.start(args, appName, listenPort, Application.class);
|
||||
}
|
||||
}
|
@ -1,24 +0,0 @@
|
||||
package com.zeto.cms.controller;
|
||||
|
||||
import com.zeto.ZenData;
|
||||
import com.zeto.ZenEngine;
|
||||
import com.zeto.ZenResult;
|
||||
import com.zeto.annotation.AccessRole;
|
||||
import com.zeto.domain.ZenUserTag;
|
||||
import com.zeto.kit.DateKit;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
|
||||
|
||||
@Slf4j
|
||||
@AccessRole(ZenUserTag.ADMIN)
|
||||
public class Activity {
|
||||
|
||||
@Inject
|
||||
private ZenEngine zenEngine;
|
||||
|
||||
public ZenResult content(ZenData context) {
|
||||
ZenResult result = zenEngine.execute("get/activityOutput", context);
|
||||
return result.put("now", DateKit.now() * 1000).setMessage(null);
|
||||
}
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
package com.zeto.cms.helper.login;
|
||||
|
||||
// 钉钉登录
|
||||
public class DingLogin {
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
package com.zeto.cms.helper.login;
|
||||
|
||||
// 企业微信登录
|
||||
public class WeCom {
|
||||
}
|
@ -1,15 +0,0 @@
|
||||
package com.zeto.cms.helper.upload;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
public interface IUploader {
|
||||
void put(String path, String content, String contentType);
|
||||
|
||||
void remove(String path);
|
||||
|
||||
String get(String path);
|
||||
|
||||
void refresh(String path);
|
||||
|
||||
Map<String, Object> token(String fileName, String target);
|
||||
}
|
@ -1,63 +0,0 @@
|
||||
package com.zeto.cms.helper.upload;
|
||||
|
||||
import com.zeto.ZenEnvironment;
|
||||
import com.zeto.cms.helper.upload.cos.CosUploader;
|
||||
import com.zeto.kit.ConfigKit;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public class Uploader {
|
||||
private static IUploader uploader = null;
|
||||
private static final Map<String, String> contentTypeMap = new HashMap<String, String>() {{
|
||||
put("js", "application/javascript;charset=utf-8");
|
||||
put("css", "text/css;charset=utf-8");
|
||||
put("json", "application/json;charset=utf-8");
|
||||
put("gif", "image/gif");
|
||||
put("png", "image/png");
|
||||
put("jpg", "image/jpeg");
|
||||
put("woff", "application/font-woff");
|
||||
put("woff2", "application/font-woff2");
|
||||
put("otf", "application/x-font-opentype");
|
||||
put("ttf", "application/x-font-ttf");
|
||||
put("svg", "image/svg+xml");
|
||||
put("eot", "application/vnd.ms-fontobject");
|
||||
}};
|
||||
|
||||
private static IUploader i() {
|
||||
if (Uploader.uploader == null) {
|
||||
String type = ZenEnvironment.get("cloudType");
|
||||
if (type.equals("qcloud")) Uploader.uploader = new CosUploader();
|
||||
}
|
||||
return Uploader.uploader;
|
||||
}
|
||||
|
||||
public static void put(String path, String content) {
|
||||
int extIndex = path.lastIndexOf(".");
|
||||
if (extIndex < 0) return;
|
||||
String ext = path.substring(extIndex + 1);
|
||||
if (!Uploader.contentTypeMap.containsKey(ext)) return;
|
||||
Uploader.i().put(path, content, Uploader.contentTypeMap.get(ext));
|
||||
Uploader.refresh(path);
|
||||
}
|
||||
|
||||
public static String get(String path) {
|
||||
return Uploader.i().get(path);
|
||||
}
|
||||
|
||||
public static void remove(String path) {
|
||||
Uploader.i().remove(path);
|
||||
Uploader.refresh(path);
|
||||
}
|
||||
|
||||
public static void refresh(String path) {
|
||||
// 非线上环境无需刷CDN
|
||||
if (!ZenEnvironment.isOnline()) return;
|
||||
String webpath = ZenEnvironment.get("cdnHost") + path;
|
||||
Uploader.i().refresh(webpath);
|
||||
}
|
||||
|
||||
public static Map<String, Object> token(String fileName, String target) {
|
||||
return Uploader.i().token(fileName, target);
|
||||
}
|
||||
}
|
@ -1,155 +0,0 @@
|
||||
package com.zeto.cms.helper.upload.cos;
|
||||
|
||||
|
||||
import com.google.common.base.Strings;
|
||||
import com.qcloud.cos.COSClient;
|
||||
import com.qcloud.cos.ClientConfig;
|
||||
import com.qcloud.cos.auth.BasicCOSCredentials;
|
||||
import com.qcloud.cos.auth.COSCredentials;
|
||||
import com.qcloud.cos.exception.CosClientException;
|
||||
import com.qcloud.cos.model.COSObject;
|
||||
import com.qcloud.cos.model.COSObjectInputStream;
|
||||
import com.qcloud.cos.model.ObjectMetadata;
|
||||
import com.qcloud.cos.model.PutObjectRequest;
|
||||
import com.qcloud.cos.region.Region;
|
||||
import com.qcloud.cos.utils.IOUtils;
|
||||
import com.qcloud.cos.utils.StringUtils;
|
||||
import com.tencent.cloud.CosStsClient;
|
||||
import com.tencent.cloud.Response;
|
||||
import com.zeto.ZenEnvironment;
|
||||
import com.zeto.cms.helper.upload.IUploader;
|
||||
import com.zeto.kit.StringKit;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.TreeMap;
|
||||
|
||||
@Slf4j
|
||||
public class CosUploader implements IUploader {
|
||||
private final String publicBucket;
|
||||
private final COSClient cosClient;
|
||||
private final String defaultType = "public";
|
||||
|
||||
public CosUploader() {
|
||||
String secretId = ZenEnvironment.get("bucketAK");
|
||||
String secretKey = ZenEnvironment.get("bucketSK");
|
||||
String region = ZenEnvironment.get("bucketRegion");
|
||||
publicBucket = ZenEnvironment.get("bucketPublic");
|
||||
// 初始化用户身份信息(secretId, secretKey)
|
||||
COSCredentials cred = new BasicCOSCredentials(secretId, secretKey);
|
||||
// 设置bucket的区域, COS地域的简称请参照 https://www.qcloud.com/document/product/436/6224
|
||||
ClientConfig clientConfig = new ClientConfig(new Region(region));
|
||||
|
||||
// 生成cos客户端
|
||||
this.cosClient = new COSClient(cred, clientConfig);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void remove(String path) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void put(String path, String content, String contentType) {
|
||||
if (Strings.isNullOrEmpty(content) || Strings.isNullOrEmpty(path)) return;
|
||||
byte[] contentByteArray = content.getBytes(StringUtils.UTF8);
|
||||
InputStream contentInput = new ByteArrayInputStream(contentByteArray);
|
||||
|
||||
ObjectMetadata metadata = new ObjectMetadata();
|
||||
metadata.setContentType(contentType);
|
||||
metadata.setContentLength(contentByteArray.length);
|
||||
|
||||
PutObjectRequest putObjectRequest = new PutObjectRequest(publicBucket, path, contentInput, metadata);
|
||||
cosClient.putObject(putObjectRequest);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String get(String path) {
|
||||
COSObjectInputStream cosObjectInput = null;
|
||||
try {
|
||||
COSObject cosObject = cosClient.getObject(publicBucket, path);
|
||||
cosObjectInput = cosObject.getObjectContent();
|
||||
} catch (CosClientException e) {
|
||||
CosUploader.log.error("uploader", e);
|
||||
}
|
||||
|
||||
// 这里是直接读取,按实际情况来处理
|
||||
byte[] bytes = null;
|
||||
try {
|
||||
bytes = IOUtils.toByteArray(cosObjectInput);
|
||||
} catch (IOException e) {
|
||||
CosUploader.log.error("uploader", e);
|
||||
} finally {
|
||||
// 用完流之后一定要调用 close()
|
||||
try {
|
||||
cosObjectInput.close();
|
||||
} catch (IOException e) {
|
||||
CosUploader.log.error("uploader", e);
|
||||
}
|
||||
}
|
||||
return new String(bytes);
|
||||
}
|
||||
|
||||
// 刷新CDN
|
||||
@Override
|
||||
public void refresh(String path) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, Object> token(String fileName, String target) {
|
||||
String secretId = ZenEnvironment.get("bucketAK");
|
||||
String secretKey = ZenEnvironment.get("bucketSK");
|
||||
String region = ZenEnvironment.get("bucketRegion");
|
||||
String domain = ZenEnvironment.get("bucketDomain");
|
||||
String filepath = this.getPath(fileName);
|
||||
TreeMap<String, Object> config = new TreeMap<>();
|
||||
// 替换为您的云 api 密钥 SecretId
|
||||
config.put("secretId", secretId);
|
||||
// 替换为您的云 api 密钥 SecretKey
|
||||
config.put("secretKey", secretKey);
|
||||
String bucket = defaultType.equals(target) ? publicBucket : ZenEnvironment.get("bucketPrivate");
|
||||
// 临时密钥有效时长,单位是秒,默认 1800 秒,目前主账号最长 2 小时(即 7200 秒),子账号最长 36 小时(即 129600)秒
|
||||
int timeout = 1800;
|
||||
config.put("durationSeconds", timeout);
|
||||
config.put("bucket", bucket);
|
||||
// 换成 publicBucket 所在地区
|
||||
config.put("region", region);
|
||||
String allowPrefix = filepath.substring(0, 18) + "*";
|
||||
config.put("allowPrefixes", new String[]{allowPrefix});
|
||||
|
||||
String[] allowActions = new String[]{
|
||||
"name/cos:PutObject",
|
||||
"name/cos:PostObject"
|
||||
};
|
||||
config.put("allowActions", allowActions);
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
try {
|
||||
Response response = CosStsClient.getCredential(config);
|
||||
// 腾讯云
|
||||
result.put("type", "cos");
|
||||
result.put("startTime", response.startTime);
|
||||
result.put("expiredTime", response.expiredTime);
|
||||
// 地域地址:https://cloud.tencent.com/document/product/436/6224
|
||||
result.put("pathname", filepath);
|
||||
result.put("bucket", bucket);
|
||||
result.put("region", region);
|
||||
result.put("url", domain + filepath);
|
||||
result.put("secretId", response.credentials.tmpSecretId);
|
||||
result.put("secretKey", response.credentials.tmpSecretKey);
|
||||
result.put("sessionToken", response.credentials.sessionToken);
|
||||
} catch (IOException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
private String getPath(String fileName) {
|
||||
String ext = StringKit.fileExt(fileName);
|
||||
String fileId = StringKit.objectId();
|
||||
return "f01/" + ext + "/" + fileId.substring(0, 2) + "/" + fileId.substring(2) + "." + ext;
|
||||
}
|
||||
}
|
@ -1,4 +0,0 @@
|
||||
package com.zeto.cms.helper.upload.oss;
|
||||
|
||||
public class OssUploader {
|
||||
}
|
@ -1,57 +0,0 @@
|
||||
package com.zeto.cms.hooks;
|
||||
|
||||
import com.zeto.IZenHook;
|
||||
import com.zeto.ZenData;
|
||||
import com.zeto.ZenEngine;
|
||||
import com.zeto.ZenResult;
|
||||
import com.zeto.annotation.ZenHook;
|
||||
import com.zeto.cms.helper.upload.Uploader;
|
||||
import com.zeto.cms.hooks.domain.PageComponentDO;
|
||||
import com.zeto.cms.hooks.domain.PageDO;
|
||||
import com.zeto.driver.JsonKit;
|
||||
import com.zeto.kit.StringKit;
|
||||
import org.noear.solon.annotation.Inject;
|
||||
|
||||
@ZenHook("patch/activityStatus")
|
||||
public class ActivityStatusHook implements IZenHook {
|
||||
private final static String online = "2";
|
||||
private final static String offline = "3";
|
||||
|
||||
@Inject
|
||||
private ZenEngine zenEngine;
|
||||
|
||||
@Override
|
||||
public ZenResult before(ZenData context) {
|
||||
String status = context.get("status");
|
||||
ZenResult result = zenEngine.execute("get/activity", context);
|
||||
String pathStr = StringKit.objectId();
|
||||
String path = "/" + pathStr.substring(0, 2) + "/" + pathStr.substring(2);
|
||||
// 页面上线
|
||||
if (ActivityStatusHook.online.equals(status)) {
|
||||
PageDO pageDO = result.get("content", PageDO.class);
|
||||
Object pageData = result.getObject("data");
|
||||
pageDO.setData(pageData);
|
||||
StringBuilder jsResult = new StringBuilder();
|
||||
for (PageComponentDO componentDO : pageDO.getComponents()) {
|
||||
String jsSource = "/" + componentDO.getLib() + "/" + componentDO.getName() + ".js";
|
||||
jsResult.append(Uploader.get(jsSource)).append(";");
|
||||
}
|
||||
String pageDataStr = JsonKit.stringify(pageDO);
|
||||
// 推送数据与js资源
|
||||
Uploader.put("/jsz" + path + ".json", pageDataStr);
|
||||
Uploader.put("/jsz" + path + ".js", jsResult.toString());
|
||||
context.put("output", path);
|
||||
}
|
||||
return ZenResult.success();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void after(ZenData context, ZenResult result) {
|
||||
String id = context.getId();
|
||||
String status = context.get("status");
|
||||
// 页面上线
|
||||
if (ActivityStatusHook.offline.equals(status)) {
|
||||
//todo: 完成cdn下线
|
||||
}
|
||||
}
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
package com.zeto.cms.hooks;
|
||||
|
||||
import com.zeto.IZenHook;
|
||||
import com.zeto.ZenData;
|
||||
import com.zeto.ZenResult;
|
||||
import com.zeto.annotation.ZenHook;
|
||||
import com.zeto.cms.helper.upload.Uploader;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
@ZenHook("zetoUploadHook")
|
||||
public class ZetoUploadHook implements IZenHook {
|
||||
@Override
|
||||
public ZenResult before(ZenData context) {
|
||||
IZenHook.super.before(context);
|
||||
String fileName = context.get("filename");
|
||||
String target = context.get("target");
|
||||
Map<String, Object> data = Uploader.token(fileName, target);
|
||||
return ZenResult.success().setData(data);
|
||||
}
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
package com.zeto.cms.hooks.domain;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
@Data
|
||||
public class PageComponentDO {
|
||||
private String name;
|
||||
private String id;
|
||||
private String lib;
|
||||
private Map<String, String> meta;
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
package com.zeto.cms.hooks.domain;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Data
|
||||
public class PageDO {
|
||||
private List<PageComponentDO> components;
|
||||
private int counter;
|
||||
private Object data;
|
||||
}
|
23
iot/src/main/resources/logback.xml
Normal file
23
iot/src/main/resources/logback.xml
Normal file
@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration>
|
||||
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
|
||||
<file>app.log</file>
|
||||
<encoder>
|
||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
<root level="INFO">
|
||||
<appender-ref ref="FILE" />
|
||||
</root>
|
||||
<root level="WARN">
|
||||
<appender-ref ref="FILE" />
|
||||
</root>
|
||||
<root level="ERROR">
|
||||
<appender-ref ref="FILE" />
|
||||
</root>
|
||||
</configuration>
|
@ -43,7 +43,7 @@
|
||||
"webpack": "^5.91.0",
|
||||
"webpack-cli": "^5.1.4",
|
||||
"webpack-dev-server": "^4.15.2",
|
||||
"@zen/app-plugin": "^0.2.1"
|
||||
"@zen/app-plugin": "^0.3.2"
|
||||
},
|
||||
"eslintIgnore": [
|
||||
"public/*",
|
||||
|
@ -1,28 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="chrome,IE=edge" />
|
||||
<meta name="HandheldFriendly" content="true" />
|
||||
<meta name="format-detection" content="telephone=no,email=no" />
|
||||
<meta name="viewport"
|
||||
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, user-scalable=no, minimal-ui, viewport-fit=cover" />
|
||||
<meta name="renderer" content="webkit" />
|
||||
<meta name="msapplication-tap-highlight" content="no" />
|
||||
<title>CMS</title>
|
||||
<script>
|
||||
var ZenEnv = 'LOCAL_DEV';
|
||||
</script>
|
||||
<script src="//b.ebus.vip/zeto/v5.1.3/zen.dev.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="//b.ebus.vip/zeto/v5.1.3/zen.css">
|
||||
<script>
|
||||
zen.host = 'http://127.0.0.1:7057';
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script src="/design.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
@ -10,14 +10,14 @@
|
||||
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, user-scalable=no, minimal-ui, viewport-fit=cover" />
|
||||
<meta name="renderer" content="webkit" />
|
||||
<meta name="msapplication-tap-highlight" content="no" />
|
||||
<title>CMS</title>
|
||||
<title>iot</title>
|
||||
<script>
|
||||
var ZenEnv = 'LOCAL_DEV';
|
||||
</script>
|
||||
<script src="//b.ebus.vip/zeto/v5.1.3/zen.dev.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="//b.ebus.vip/zeto/v5.1.3/zen.css">
|
||||
<script src="//b.ebus.vip/zeto/v5.1.5/zen.dev.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="//b.ebus.vip/zeto/v5.1.5/zen.css">
|
||||
<script>
|
||||
zen.host = 'http://127.0.0.1:7057';
|
||||
zen.host = 'http://127.0.0.1:7097';
|
||||
</script>
|
||||
</head>
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import Console from "./console/index.vue";
|
||||
import Layout from "./layout/index.vue";
|
||||
import dict from "./pages/dict";
|
||||
import Routes from "./pages/routes";
|
||||
const dict = require("./pages/dict.json");
|
||||
__webpack_public_path__ = zen.path("iot");
|
||||
|
||||
zen.setup({ com: Console, routes: Routes, dict });
|
||||
zen.setup({ com: Layout, routes: Routes, dict });
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<z-console :menus="data" title="社区智慧安全系统" />
|
||||
<z-layout />
|
||||
</template>
|
||||
|
||||
<script>
|
@ -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="确定删除该分类吗?"
|
||||
/>
|
||||
</>
|
||||
);
|
||||
},
|
||||
},
|
||||
};
|
@ -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}
|
@ -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")
|
||||
};
|
@ -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='确定删除该文章吗?' />
|
||||
</>
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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}
|
5
vue/src/pages/capital/index.js
Normal file
5
vue/src/pages/capital/index.js
Normal file
@ -0,0 +1,5 @@
|
||||
export default {
|
||||
'capital/list': () => import( /* webpackChunkName: "pages/capital/list" */ "./list/list.vue"),
|
||||
'capital/packages': () => import( /* webpackChunkName: "pages/capital/packages" */ "./packages/packages.vue"),
|
||||
'capital/renew': () => import( /* webpackChunkName: "pages/capital/renew" */ "./renew/renew.vue")
|
||||
};
|
25
vue/src/pages/capital/list/.lowcode/configs.jsx
Normal file
25
vue/src/pages/capital/list/.lowcode/configs.jsx
Normal file
@ -0,0 +1,25 @@
|
||||
export default {
|
||||
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$() {
|
||||
return (
|
||||
<>
|
||||
<z-action label='新增物联卡' fields={["msisdn","iccid","desc","imsi","status","from","meal","capacity","activityGmt"]} url='/do/put/mobile_card' />
|
||||
</>
|
||||
)
|
||||
},
|
||||
action$({ row }) {
|
||||
return (
|
||||
<>
|
||||
<z-action label='编辑' fields={["desc","status","activityGmt","capacity"]} link data={row} url='/do/patch/mobile_card' />
|
||||
<z-action label='删除' link data={row} url='/do/delete/mobile_card' title='确定删除该物联卡吗?' />
|
||||
</>
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
1
vue/src/pages/capital/list/.lowcode/data
Normal file
1
vue/src/pages/capital/list/.lowcode/data
Normal file
@ -0,0 +1 @@
|
||||
{"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}
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<z-table name="6625cbbbb7d97458478b8516" url="/do/select/page">
|
||||
<z-table name="bnnfpxf9oue">
|
||||
</z-table>
|
||||
</template>
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
import configs from './.lowcode/configs';
|
||||
|
||||
export default {
|
||||
name: 'page-source',
|
||||
name: 'p-bnnfpxf9oue',
|
||||
provide: { configs },
|
||||
data() {
|
||||
return {}
|
68
vue/src/pages/capital/packages/.lowcode/configs.jsx
Normal file
68
vue/src/pages/capital/packages/.lowcode/configs.jsx
Normal file
@ -0,0 +1,68 @@
|
||||
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 (
|
||||
<>
|
||||
<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
|
||||
title='确定删除吗?'
|
||||
data={row}
|
||||
url='/do/delete/member'
|
||||
label='删除'
|
||||
/>
|
||||
</>
|
||||
)
|
||||
},
|
||||
},
|
||||
}
|
1
vue/src/pages/capital/packages/.lowcode/data
Normal file
1
vue/src/pages/capital/packages/.lowcode/data
Normal file
@ -0,0 +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}
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<z-table name="6625cc13b7d97458478b8517" url="/do/select/category">
|
||||
<z-table name="eemwotn4jew" mocked>
|
||||
</z-table>
|
||||
</template>
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
import configs from './.lowcode/configs';
|
||||
|
||||
export default {
|
||||
name: 'page-category',
|
||||
name: 'p-eemwotn4jew',
|
||||
provide: { configs },
|
||||
data() {
|
||||
return {}
|
68
vue/src/pages/capital/renew/.lowcode/configs.jsx
Normal file
68
vue/src/pages/capital/renew/.lowcode/configs.jsx
Normal file
@ -0,0 +1,68 @@
|
||||
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 (
|
||||
<>
|
||||
<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
|
||||
title='确定删除吗?'
|
||||
data={row}
|
||||
url='/do/delete/member'
|
||||
label='删除'
|
||||
/>
|
||||
</>
|
||||
)
|
||||
},
|
||||
},
|
||||
}
|
1
vue/src/pages/capital/renew/.lowcode/data
Normal file
1
vue/src/pages/capital/renew/.lowcode/data
Normal file
@ -0,0 +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}
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<z-table name="6625cba8b7d97458478b8515" url="/do/select/activity">
|
||||
<z-table name="gp970l4mioa" mocked>
|
||||
</z-table>
|
||||
</template>
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
import configs from './.lowcode/configs';
|
||||
|
||||
export default {
|
||||
name: 'page-activity',
|
||||
name: 'p-gp970l4mioa',
|
||||
provide: { configs },
|
||||
data() {
|
||||
return {}
|
54
vue/src/pages/dict.js
Normal file
54
vue/src/pages/dict.js
Normal file
@ -0,0 +1,54 @@
|
||||
export default [
|
||||
{
|
||||
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" },
|
||||
],
|
||||
},
|
||||
];
|
@ -1 +0,0 @@
|
||||
[{"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"}]}]
|
@ -1,11 +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 page from "./page/index";
|
||||
import screen from "./screen/index";
|
||||
import system from "./system/index";
|
||||
import warn from "./warn/index";
|
||||
|
||||
export default {
|
||||
...article,
|
||||
...capital,
|
||||
...machine,
|
||||
...maintain,
|
||||
...material,
|
||||
...page,
|
||||
...screen,
|
||||
...system,
|
||||
...warn,
|
||||
};
|
||||
|
24
vue/src/pages/machine/category/.lowcode/configs.jsx
Normal file
24
vue/src/pages/machine/category/.lowcode/configs.jsx
Normal file
@ -0,0 +1,24 @@
|
||||
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"],
|
||||
condition: ["title"],
|
||||
slots: {
|
||||
header$() {
|
||||
return (
|
||||
<>
|
||||
<z-action label='新增分类' fields={["title","describe"]} url='/do/put/machine_category' />
|
||||
</>
|
||||
)
|
||||
},
|
||||
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='确定删除该分类吗?' />
|
||||
</>
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
1
vue/src/pages/machine/category/.lowcode/data
Normal file
1
vue/src/pages/machine/category/.lowcode/data
Normal file
@ -0,0 +1 @@
|
||||
{"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}
|
16
vue/src/pages/machine/category/category.vue
Normal file
16
vue/src/pages/machine/category/category.vue
Normal file
@ -0,0 +1,16 @@
|
||||
<template>
|
||||
<z-table name="1wj3jriigc6" url="/do/select/machine_category">
|
||||
</z-table>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import configs from './.lowcode/configs'
|
||||
|
||||
export default {
|
||||
name: 'p-1wj3jriigc6',
|
||||
provide: { configs },
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
}
|
||||
</script>
|
5
vue/src/pages/machine/index.js
Normal file
5
vue/src/pages/machine/index.js
Normal file
@ -0,0 +1,5 @@
|
||||
export default {
|
||||
'machine/category': () => import( /* webpackChunkName: "pages/machine/category" */ "./category/category.vue"),
|
||||
'machine/list': () => import( /* webpackChunkName: "pages/machine/list" */ "./list/list.vue"),
|
||||
'machine/test': () => import( /* webpackChunkName: "pages/machine/test" */ "./test/test.vue")
|
||||
};
|
25
vue/src/pages/machine/list/.lowcode/configs.jsx
Normal file
25
vue/src/pages/machine/list/.lowcode/configs.jsx
Normal file
@ -0,0 +1,25 @@
|
||||
export default {
|
||||
url:"/do/select/machine",
|
||||
title: "设备列表",
|
||||
entitys: [{"name":"id","label":"编号"},{"name":"title","label":"产品描述"},{"name":"describe","label":"描述"},{"name":"categoryId","label":"分类","type":"search","depend":"machine_category"},{"name":"status","label":"设备状态","code":"machineStatus"},{"name":"inline","label":"接入方式","code":"inlineMode"},{"name":"createGmt","label":"创建时间","type":"date"},{"name":"updateGmt","label":"更新时间","type":"date"}],
|
||||
columns: ["id","title","describe","categoryId","status","inline","createGmt","updateGmt"],
|
||||
condition: [],
|
||||
slots: {
|
||||
header$() {
|
||||
return (
|
||||
<>
|
||||
<z-action label='新增设备' fields={["title","describe","categoryId","status","inline"]} url='/do/put/machine' />
|
||||
</>
|
||||
)
|
||||
},
|
||||
action$({ row }) {
|
||||
return (
|
||||
<>
|
||||
<z-action label='编辑' fields={["title","describe","status","inline","categoryId"]} link data={row} url='/do/patch/machine' />
|
||||
<z-action label='删除' mode='confirm' link data={row} url='/do/delete/machine' title='确定删除该产品吗?' />
|
||||
</>
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
1
vue/src/pages/machine/list/.lowcode/data
Normal file
1
vue/src/pages/machine/list/.lowcode/data
Normal file
@ -0,0 +1 @@
|
||||
{"table":"machine","blocks":[],"counter":6788,"basic":{"title":"设备列表","selectable":1,"showIndex":1,"compact":0,"size":"","url":"/do/select/machine","actions":[{"label":"新增设备","mode":"wicket","type":"primary","url":"/do/put/machine","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":"categoryId","name":"categoryId","width":null,"rule":{},"block":null,"blockType":null},{"id":"status","name":"status","width":null,"rule":{},"block":null,"blockType":null},{"id":"inline","name":"inline","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":"category_id","name":"category_id","width":null,"rule":{},"block":null,"blockType":null},{"id":"status","name":"status","width":null,"rule":{},"block":null,"blockType":null},{"id":"inline","name":"inline","width":null,"rule":{},"block":null,"blockType":null},{"id":"create_gmt","name":"create_gmt","width":null,"rule":{},"block":null,"blockType":null},{"id":"update_gmt","name":"update_gmt","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/machine","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":"status","name":"status","width":null,"rule":{},"block":null,"blockType":null},{"id":"inline","name":"inline","width":null,"rule":{},"block":null,"blockType":null},{"id":"categoryId","name":"categoryId","width":null,"rule":{},"block":null,"blockType":null}],"name":"J_6787","_id":6788},{"label":"删除","mode":"confirm","type":"text","url":"/do/delete/machine","params":[],"tip":"确定删除该产品吗?","_id":6789}],"_id":6789}
|
17
vue/src/pages/machine/list/list.vue
Normal file
17
vue/src/pages/machine/list/list.vue
Normal file
@ -0,0 +1,17 @@
|
||||
<template>
|
||||
<z-table name="zy1b7avmfwi" url="/do/select/machine">
|
||||
<template #id="{ row }">{{ row }}dddd</template>
|
||||
</z-table>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import configs from './.lowcode/configs';
|
||||
|
||||
export default {
|
||||
name: 'p-zy1b7avmfwi',
|
||||
provide: { configs },
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
}
|
||||
</script>
|
68
vue/src/pages/machine/test/.lowcode/configs.jsx
Normal file
68
vue/src/pages/machine/test/.lowcode/configs.jsx
Normal file
@ -0,0 +1,68 @@
|
||||
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'],
|
||||
condition: ['id', 'createUid', 'nick', 'unionid', 'dingId', 'ukey'],
|
||||
slots: {
|
||||
header$() {
|
||||
return (
|
||||
<>
|
||||
<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
|
||||
title='确定删除吗?'
|
||||
data={row}
|
||||
url='/do/delete/member'
|
||||
label='删除'
|
||||
/>
|
||||
</>
|
||||
)
|
||||
},
|
||||
},
|
||||
}
|
1
vue/src/pages/machine/test/.lowcode/data
Normal file
1
vue/src/pages/machine/test/.lowcode/data
Normal file
@ -0,0 +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}
|
17
vue/src/pages/machine/test/test.vue
Normal file
17
vue/src/pages/machine/test/test.vue
Normal file
@ -0,0 +1,17 @@
|
||||
<template>
|
||||
<z-table name="v7jcoadu2br" mocked>
|
||||
</z-table>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import configs from './.lowcode/configs'
|
||||
|
||||
export default {
|
||||
name: 'p-v7jcoadu2br',
|
||||
provide: { configs },
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
68
vue/src/pages/maintain/cert/.lowcode/configs.jsx
Normal file
68
vue/src/pages/maintain/cert/.lowcode/configs.jsx
Normal file
@ -0,0 +1,68 @@
|
||||
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 (
|
||||
<>
|
||||
<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
|
||||
title='确定删除吗?'
|
||||
data={row}
|
||||
url='/do/delete/member'
|
||||
label='删除'
|
||||
/>
|
||||
</>
|
||||
)
|
||||
},
|
||||
},
|
||||
}
|
1
vue/src/pages/maintain/cert/.lowcode/data
Normal file
1
vue/src/pages/maintain/cert/.lowcode/data
Normal file
@ -0,0 +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}
|
16
vue/src/pages/maintain/cert/cert.vue
Normal file
16
vue/src/pages/maintain/cert/cert.vue
Normal file
@ -0,0 +1,16 @@
|
||||
<template>
|
||||
<z-table name="9prr5hqljq9" mocked>
|
||||
</z-table>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import configs from './.lowcode/configs';
|
||||
|
||||
export default {
|
||||
name: 'p-9prr5hqljq9',
|
||||
provide: { configs },
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
}
|
||||
</script>
|
6
vue/src/pages/maintain/index.js
Normal file
6
vue/src/pages/maintain/index.js
Normal file
@ -0,0 +1,6 @@
|
||||
export default {
|
||||
'maintain/cert': () => import( /* webpackChunkName: "pages/maintain/cert" */ "./cert/cert.vue"),
|
||||
'maintain/media': () => import( /* webpackChunkName: "pages/maintain/media" */ "./media/media.vue"),
|
||||
'maintain/net': () => import( /* webpackChunkName: "pages/maintain/net" */ "./net/net.vue"),
|
||||
'maintain/protocol': () => import( /* webpackChunkName: "pages/maintain/protocol" */ "./protocol/protocol.vue")
|
||||
};
|
68
vue/src/pages/maintain/media/.lowcode/configs.jsx
Normal file
68
vue/src/pages/maintain/media/.lowcode/configs.jsx
Normal file
@ -0,0 +1,68 @@
|
||||
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 (
|
||||
<>
|
||||
<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
|
||||
title='确定删除吗?'
|
||||
data={row}
|
||||
url='/do/delete/member'
|
||||
label='删除'
|
||||
/>
|
||||
</>
|
||||
)
|
||||
},
|
||||
},
|
||||
}
|
1
vue/src/pages/maintain/media/.lowcode/data
Normal file
1
vue/src/pages/maintain/media/.lowcode/data
Normal file
@ -0,0 +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}
|
16
vue/src/pages/maintain/media/media.vue
Normal file
16
vue/src/pages/maintain/media/media.vue
Normal file
@ -0,0 +1,16 @@
|
||||
<template>
|
||||
<z-table name="35htyca2cdq" mocked>
|
||||
</z-table>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import configs from './.lowcode/configs';
|
||||
|
||||
export default {
|
||||
name: 'p-35htyca2cdq',
|
||||
provide: { configs },
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
}
|
||||
</script>
|
68
vue/src/pages/maintain/net/.lowcode/configs.jsx
Normal file
68
vue/src/pages/maintain/net/.lowcode/configs.jsx
Normal file
@ -0,0 +1,68 @@
|
||||
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 (
|
||||
<>
|
||||
<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
|
||||
title='确定删除吗?'
|
||||
data={row}
|
||||
url='/do/delete/member'
|
||||
label='删除'
|
||||
/>
|
||||
</>
|
||||
)
|
||||
},
|
||||
},
|
||||
}
|
1
vue/src/pages/maintain/net/.lowcode/data
Normal file
1
vue/src/pages/maintain/net/.lowcode/data
Normal file
@ -0,0 +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}
|
16
vue/src/pages/maintain/net/net.vue
Normal file
16
vue/src/pages/maintain/net/net.vue
Normal file
@ -0,0 +1,16 @@
|
||||
<template>
|
||||
<z-table name="c9lq2nq8abf" mocked>
|
||||
</z-table>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import configs from './.lowcode/configs';
|
||||
|
||||
export default {
|
||||
name: 'p-c9lq2nq8abf',
|
||||
provide: { configs },
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
}
|
||||
</script>
|
68
vue/src/pages/maintain/protocol/.lowcode/configs.jsx
Normal file
68
vue/src/pages/maintain/protocol/.lowcode/configs.jsx
Normal file
@ -0,0 +1,68 @@
|
||||
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 (
|
||||
<>
|
||||
<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
|
||||
title='确定删除吗?'
|
||||
data={row}
|
||||
url='/do/delete/member'
|
||||
label='删除'
|
||||
/>
|
||||
</>
|
||||
)
|
||||
},
|
||||
},
|
||||
}
|
1
vue/src/pages/maintain/protocol/.lowcode/data
Normal file
1
vue/src/pages/maintain/protocol/.lowcode/data
Normal file
@ -0,0 +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}
|
16
vue/src/pages/maintain/protocol/protocol.vue
Normal file
16
vue/src/pages/maintain/protocol/protocol.vue
Normal file
@ -0,0 +1,16 @@
|
||||
<template>
|
||||
<z-table name="hh9sy24z62v" mocked>
|
||||
</z-table>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import configs from './.lowcode/configs';
|
||||
|
||||
export default {
|
||||
name: 'p-hh9sy24z62v',
|
||||
provide: { configs },
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
}
|
||||
</script>
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<z-table name="6625cd28b7d97458478b8519" url="/do/select/picture" mocked>
|
||||
<z-table name="6625cd28b7d97458478b8519" mocked>
|
||||
</z-table>
|
||||
</template>
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<z-table name="6625cd8eb7d97458478b851a" url="/do/select/video" mocked>
|
||||
<z-table name="6625cd8eb7d97458478b851a" mocked>
|
||||
</z-table>
|
||||
</template>
|
||||
|
||||
|
@ -1,26 +0,0 @@
|
||||
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='确定删除吗?' />
|
||||
</>
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1 +0,0 @@
|
||||
{"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}
|
@ -1,4 +0,0 @@
|
||||
export default {
|
||||
'page/activity': () => import( /* webpackChunkName: "pages/page/activity" */ "./activity/activity.vue"),
|
||||
'page/source': () => import( /* webpackChunkName: "pages/page/source" */ "./source/source.vue")
|
||||
};
|
@ -1,24 +0,0 @@
|
||||
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='确定删除该页面吗?' />
|
||||
</>
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1 +0,0 @@
|
||||
{"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}
|
68
vue/src/pages/screen/component/.lowcode/configs.jsx
Normal file
68
vue/src/pages/screen/component/.lowcode/configs.jsx
Normal file
@ -0,0 +1,68 @@
|
||||
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 (
|
||||
<>
|
||||
<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
|
||||
title='确定删除吗?'
|
||||
data={row}
|
||||
url='/do/delete/member'
|
||||
label='删除'
|
||||
/>
|
||||
</>
|
||||
)
|
||||
},
|
||||
},
|
||||
}
|
1
vue/src/pages/screen/component/.lowcode/data
Normal file
1
vue/src/pages/screen/component/.lowcode/data
Normal file
@ -0,0 +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}
|
16
vue/src/pages/screen/component/component.vue
Normal file
16
vue/src/pages/screen/component/component.vue
Normal file
@ -0,0 +1,16 @@
|
||||
<template>
|
||||
<z-table name="c76fn2avwyf" mocked>
|
||||
</z-table>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import configs from './.lowcode/configs';
|
||||
|
||||
export default {
|
||||
name: 'p-c76fn2avwyf',
|
||||
provide: { configs },
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
}
|
||||
</script>
|
12
vue/src/pages/screen/index.js
Normal file
12
vue/src/pages/screen/index.js
Normal file
@ -0,0 +1,12 @@
|
||||
export default {
|
||||
"screen/component": () =>
|
||||
import(
|
||||
/* webpackChunkName: "pages/screen/component" */ "./component/component.vue"
|
||||
),
|
||||
"screen/list": () =>
|
||||
import(/* webpackChunkName: "pages/screen/list" */ "./list/list.vue"),
|
||||
"screen/template": () =>
|
||||
import(
|
||||
/* webpackChunkName: "pages/screen/template" */ "./template/template.vue"
|
||||
),
|
||||
};
|
68
vue/src/pages/screen/list/.lowcode/configs.jsx
Normal file
68
vue/src/pages/screen/list/.lowcode/configs.jsx
Normal file
@ -0,0 +1,68 @@
|
||||
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 (
|
||||
<>
|
||||
<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
|
||||
title='确定删除吗?'
|
||||
data={row}
|
||||
url='/do/delete/member'
|
||||
label='删除'
|
||||
/>
|
||||
</>
|
||||
)
|
||||
},
|
||||
},
|
||||
}
|
1
vue/src/pages/screen/list/.lowcode/data
Normal file
1
vue/src/pages/screen/list/.lowcode/data
Normal file
@ -0,0 +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}
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<z-table name="6625cc33b7d97458478b8518" url="/do/select/article">
|
||||
<z-table name="qucodih5ukv" mocked>
|
||||
</z-table>
|
||||
</template>
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
import configs from './.lowcode/configs';
|
||||
|
||||
export default {
|
||||
name: 'page-list',
|
||||
name: 'p-qucodih5ukv',
|
||||
provide: { configs },
|
||||
data() {
|
||||
return {}
|
68
vue/src/pages/screen/template/.lowcode/configs.jsx
Normal file
68
vue/src/pages/screen/template/.lowcode/configs.jsx
Normal file
@ -0,0 +1,68 @@
|
||||
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 (
|
||||
<>
|
||||
<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
|
||||
title='确定删除吗?'
|
||||
data={row}
|
||||
url='/do/delete/member'
|
||||
label='删除'
|
||||
/>
|
||||
</>
|
||||
)
|
||||
},
|
||||
},
|
||||
}
|
1
vue/src/pages/screen/template/.lowcode/data
Normal file
1
vue/src/pages/screen/template/.lowcode/data
Normal file
@ -0,0 +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}
|
16
vue/src/pages/screen/template/template.vue
Normal file
16
vue/src/pages/screen/template/template.vue
Normal file
@ -0,0 +1,16 @@
|
||||
<template>
|
||||
<z-table name="ubfz7ze0cs8" mocked>
|
||||
</z-table>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import configs from './.lowcode/configs';
|
||||
|
||||
export default {
|
||||
name: 'p-ubfz7ze0cs8',
|
||||
provide: { configs },
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
}
|
||||
</script>
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<z-table name="6625ce33b7d97458478b851b" url="/do/select/components" mocked>
|
||||
<z-table name="6625ce33b7d97458478b851b" mocked>
|
||||
</z-table>
|
||||
</template>
|
||||
|
||||
|
2
vue/src/pages/system/env/env.vue
vendored
2
vue/src/pages/system/env/env.vue
vendored
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<z-table name="6625cf58b7d97458478b851c" url="/do/select/env" mocked>
|
||||
<z-table name="6625cf58b7d97458478b851c" mocked>
|
||||
</z-table>
|
||||
</template>
|
||||
|
||||
|
@ -1,5 +1,8 @@
|
||||
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")
|
||||
'system/role': () => import( /* webpackChunkName: "pages/system/role" */ "./role/role.vue"),
|
||||
'system/set': () => import( /* webpackChunkName: "pages/system/set" */ "./set/set.vue"),
|
||||
'system/site': () => import( /* webpackChunkName: "pages/system/site" */ "./site/site.vue"),
|
||||
'system/users': () => import( /* webpackChunkName: "pages/system/users" */ "./users/users.vue")
|
||||
};
|
68
vue/src/pages/system/role/.lowcode/configs.jsx
Normal file
68
vue/src/pages/system/role/.lowcode/configs.jsx
Normal file
@ -0,0 +1,68 @@
|
||||
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 (
|
||||
<>
|
||||
<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
|
||||
title='确定删除吗?'
|
||||
data={row}
|
||||
url='/do/delete/member'
|
||||
label='删除'
|
||||
/>
|
||||
</>
|
||||
)
|
||||
},
|
||||
},
|
||||
}
|
1
vue/src/pages/system/role/.lowcode/data
Normal file
1
vue/src/pages/system/role/.lowcode/data
Normal file
@ -0,0 +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}
|
16
vue/src/pages/system/role/role.vue
Normal file
16
vue/src/pages/system/role/role.vue
Normal file
@ -0,0 +1,16 @@
|
||||
<template>
|
||||
<z-table name="ppq48ibfqw5" mocked>
|
||||
</z-table>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import configs from './.lowcode/configs';
|
||||
|
||||
export default {
|
||||
name: 'p-ppq48ibfqw5',
|
||||
provide: { configs },
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
}
|
||||
</script>
|
68
vue/src/pages/system/set/.lowcode/configs.jsx
Normal file
68
vue/src/pages/system/set/.lowcode/configs.jsx
Normal file
@ -0,0 +1,68 @@
|
||||
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 (
|
||||
<>
|
||||
<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
|
||||
title='确定删除吗?'
|
||||
data={row}
|
||||
url='/do/delete/member'
|
||||
label='删除'
|
||||
/>
|
||||
</>
|
||||
)
|
||||
},
|
||||
},
|
||||
}
|
1
vue/src/pages/system/set/.lowcode/data
Normal file
1
vue/src/pages/system/set/.lowcode/data
Normal file
@ -0,0 +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}
|
16
vue/src/pages/system/set/set.vue
Normal file
16
vue/src/pages/system/set/set.vue
Normal file
@ -0,0 +1,16 @@
|
||||
<template>
|
||||
<z-table name="mozr5pvcyqu" mocked>
|
||||
</z-table>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import configs from './.lowcode/configs';
|
||||
|
||||
export default {
|
||||
name: 'p-mozr5pvcyqu',
|
||||
provide: { configs },
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
}
|
||||
</script>
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<z-table name="6625cf7cb7d97458478b851d" url="/do/select/site" mocked>
|
||||
<z-table name="6625cf7cb7d97458478b851d" mocked>
|
||||
</z-table>
|
||||
</template>
|
||||
|
||||
|
68
vue/src/pages/system/users/.lowcode/configs.jsx
Normal file
68
vue/src/pages/system/users/.lowcode/configs.jsx
Normal file
@ -0,0 +1,68 @@
|
||||
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 (
|
||||
<>
|
||||
<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
|
||||
title='确定删除吗?'
|
||||
data={row}
|
||||
url='/do/delete/member'
|
||||
label='删除'
|
||||
/>
|
||||
</>
|
||||
)
|
||||
},
|
||||
},
|
||||
}
|
1
vue/src/pages/system/users/.lowcode/data
Normal file
1
vue/src/pages/system/users/.lowcode/data
Normal file
@ -0,0 +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}
|
16
vue/src/pages/system/users/users.vue
Normal file
16
vue/src/pages/system/users/users.vue
Normal file
@ -0,0 +1,16 @@
|
||||
<template>
|
||||
<z-table name="lccgiq1uw28" mocked>
|
||||
</z-table>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import configs from './.lowcode/configs';
|
||||
|
||||
export default {
|
||||
name: 'p-lccgiq1uw28',
|
||||
provide: { configs },
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
}
|
||||
</script>
|
4
vue/src/pages/warn/index.js
Normal file
4
vue/src/pages/warn/index.js
Normal file
@ -0,0 +1,4 @@
|
||||
export default {
|
||||
'warn/list': () => import( /* webpackChunkName: "pages/warn/list" */ "./list/list.vue"),
|
||||
'warn/set': () => import( /* webpackChunkName: "pages/warn/set" */ "./set/set.vue")
|
||||
};
|
68
vue/src/pages/warn/list/.lowcode/configs.jsx
Normal file
68
vue/src/pages/warn/list/.lowcode/configs.jsx
Normal file
@ -0,0 +1,68 @@
|
||||
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 (
|
||||
<>
|
||||
<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
|
||||
title='确定删除吗?'
|
||||
data={row}
|
||||
url='/do/delete/member'
|
||||
label='删除'
|
||||
/>
|
||||
</>
|
||||
)
|
||||
},
|
||||
},
|
||||
}
|
1
vue/src/pages/warn/list/.lowcode/data
Normal file
1
vue/src/pages/warn/list/.lowcode/data
Normal file
@ -0,0 +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}
|
16
vue/src/pages/warn/list/list.vue
Normal file
16
vue/src/pages/warn/list/list.vue
Normal file
@ -0,0 +1,16 @@
|
||||
<template>
|
||||
<z-table name="puy4up0b4dh" mocked>
|
||||
</z-table>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import configs from './.lowcode/configs';
|
||||
|
||||
export default {
|
||||
name: 'p-puy4up0b4dh',
|
||||
provide: { configs },
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
}
|
||||
</script>
|
68
vue/src/pages/warn/set/.lowcode/configs.jsx
Normal file
68
vue/src/pages/warn/set/.lowcode/configs.jsx
Normal file
@ -0,0 +1,68 @@
|
||||
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 (
|
||||
<>
|
||||
<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
|
||||
title='确定删除吗?'
|
||||
data={row}
|
||||
url='/do/delete/member'
|
||||
label='删除'
|
||||
/>
|
||||
</>
|
||||
)
|
||||
},
|
||||
},
|
||||
}
|
1
vue/src/pages/warn/set/.lowcode/data
Normal file
1
vue/src/pages/warn/set/.lowcode/data
Normal file
@ -0,0 +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}
|
16
vue/src/pages/warn/set/set.vue
Normal file
16
vue/src/pages/warn/set/set.vue
Normal file
@ -0,0 +1,16 @@
|
||||
<template>
|
||||
<z-table name="45w53vu3q4e" mocked>
|
||||
</z-table>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import configs from './.lowcode/configs';
|
||||
|
||||
export default {
|
||||
name: 'p-45w53vu3q4e',
|
||||
provide: { configs },
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
}
|
||||
</script>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user