From 67e3fd8edf00f8cb761d660b32e7bcd302041cd5 Mon Sep 17 00:00:00 2001 From: zwkjhx <1264210109@qq.com> Date: Sun, 10 Dec 2023 19:38:01 +0800 Subject: [PATCH] todo --- .../resources/workflow/linkage/asset.json | 2 +- .../cn/extension/ambient/todo-view/UI.json | 176 ++++++++++++++++++ .../cab/cn/extension/ambient/todo/UI.json | 68 +++++++ 3 files changed, 245 insertions(+), 1 deletion(-) create mode 100644 zero-wf/src/main/resources/cab/cn/extension/ambient/todo-view/UI.json create mode 100644 zero-wf/src/main/resources/cab/cn/extension/ambient/todo/UI.json diff --git a/zero-atom/src/main/resources/workflow/linkage/asset.json b/zero-atom/src/main/resources/workflow/linkage/asset.json index c7872f8e..976fb9f9 100644 --- a/zero-atom/src/main/resources/workflow/linkage/asset.json +++ b/zero-atom/src/main/resources/workflow/linkage/asset.json @@ -51,7 +51,7 @@ "placeholder": "资产编号/名称" }, "ajax": { - "uri": "/api/nm/ci.device/search", + "uri": "/api/ox/ci.device/search", "method": "POST", "error": { "message": "资产模块未启用", diff --git a/zero-wf/src/main/resources/cab/cn/extension/ambient/todo-view/UI.json b/zero-wf/src/main/resources/cab/cn/extension/ambient/todo-view/UI.json new file mode 100644 index 00000000..dc846d23 --- /dev/null +++ b/zero-wf/src/main/resources/cab/cn/extension/ambient/todo-view/UI.json @@ -0,0 +1,176 @@ +{ + "_tabs": { + "defaultActiveKey": "tabHistory", + "type": "card", + "items": "属性变更,tabHistory;配置项信息,tabRecord;最新关系,tabRelation", + "forceRender": [ + "tabRecord" + ] + }, + "_page": { + "title": "待确认变更详情", + "left": [ + "btnConfirm,确认,$opConfirm,primary,check", + "btnReject,拒绝,$opReject,,stop,,className=uc_red" + ] + }, + "_assist": { + "data.category": { + "uri": "/api/type/categories/:type", + "magic": { + "type": "FIX:ci.type" + } + }, + "category": { + "uri": "/api/types/categories", + "method": "POST", + "magic": { + "$body": [] + }, + "group": "type" + }, + "tabular": { + "uri": "/api/types/tabulars", + "method": "POST", + "magic": { + "$body": [ + "ci.environment", + "ci.status", + "ci.approval.status", + "remove.mode", + "add.mode", + "level.info.system", + "level.protect", + "deployment.mode", + "high.availability.mode", + "archiving.mode", + "read.write.mode", + "colony.type", + "ci.line.type", + "company.nature", + "company.status", + "vendor.type", + "payment.mode", + "ci.line.status", + "ci.machine", + "category.network.area", + "category.database", + "category.middleware", + "root.control.type", + "weekdays.type", + "time.slot.type", + "system.type", + "tools.type", + "brand.land.type", + "host.category.type", + "app.category.type", + "facility.ownership.type", + "deploy.area", + "operation.department", + "administrative.department", + "service.level", + "alternator.type", + "types.of.hve", + "low.vect", + "low.vet", + "transformer.type", + "precision.pd", + "ups.system", + "ups.type", + "ups.module", + "battery.type", + "app.agency.type", + "deploy.gallery", + "deploy.floor", + "deploy.computer.room", + "ddn.scope.type", + "ddn.type", + "general.enumeration", + "access.control.type", + "supply.mode", + "return.mode", + "cold.source.system", + "natural.cooling", + "fan.type", + "external.unit.type", + "cac.type", + "ac.type", + "humidifier.type", + "vs.performance", + "vs.level", + "deploy.mode", + "security.function", + "log.location", + "safe.deploy.mode", + "throughput.type", + "vpn.type", + "is.secret", + "light.path.num", + "line.rate", + "wavelength.range", + "room.gb", + "room.uptime.tier", + "db.level", + "functional.orientation", + "construction.mode", + "electricity.type", + "net.level", + "power.scheme", + "build.anti.seismic", + "build.prevent.thunder", + "outfire.system.type", + "duty.condition", + "product.architecture", + "equ.type", + "operational.mode", + "ddr.type", + "switch.function", + "general.yn", + "general.yno", + "reserve.type", + "location.storage", + "upgrade.type", + "disaster.recovery.mod", + "intellectual.property", + "service.object", + "development.mode", + "disaster.recovery.level", + "maintenance.mode" + ] + }, + "group": "type" + }, + "resource.customers": { + "uri": "/api/customer/by/sigma" + }, + "resource.departments": { + "uri": "/api/dept/by/sigma" + }, + "resource.teams": { + "uri": "/api/team/by/sigma" + }, + "resource.employees": { + "uri": "/api/employee/by/sigma" + }, + "security.users": { + "uri": "/api/user/by/sigma" + }, + "model.identifiers": { + "uri": "/api/model" + } + }, + "_module": { + "form": { + "__PATTERN__": "form.:identifier.view" + }, + "configuration": { + "tabRelation": { + "relation": { + "definition": true, + "source": "data.category" + }, + "editable": false + } + } + } +} \ No newline at end of file diff --git a/zero-wf/src/main/resources/cab/cn/extension/ambient/todo/UI.json b/zero-wf/src/main/resources/cab/cn/extension/ambient/todo/UI.json new file mode 100644 index 00000000..652828d1 --- /dev/null +++ b/zero-wf/src/main/resources/cab/cn/extension/ambient/todo/UI.json @@ -0,0 +1,68 @@ +{ + "_tabs": { + "className": "ex-tabs-tab-block-right", + "tabPosition": "right", + "defaultActiveKey": "tabPending", + "items": "待确认,tabPending,form;已确认,tabDone,check-circle" + }, + "_assist": { + "data.pending": { + "uri": "/api/todo/categories", + "method": "POST", + "magic": { + "status": "ENUM:PENDING" + } + }, + "data.done": { + "uri": "/api/todo/categories", + "method": "POST", + "magic": { + "status": "ENUM:FINISHED" + } + }, + "data.category": { + "uri": "/api/type/categories/:type", + "magic": { + "type": "FIX:ci.type" + } + }, + "resource.departments": { + "uri": "/api/dept/by/sigma" + }, + "resource.teams": { + "uri": "/api/team/by/sigma" + }, + "tabular": { + "uri": "/api/types/tabulars", + "method": "POST", + "magic": { + "$body": [ + "ci.environment", + "ci.status", + "ci.approval.status" + ] + }, + "group": "type" + } + }, + "_module": { + "selection": { + "mode": "CHILDREN_ALL_INCLUDE", + "condition": { + "modelCategory,i": "key" + } + }, + "pending": { + "$category": true, + "config": { + "tree": "text=name" + } + }, + "done": { + "$category": true, + "config": { + "tree": "text=name" + } + } + } +} \ No newline at end of file -- Gitee