From 85c0fd5e30124a05baab1e021760d632c3fb5646 Mon Sep 17 00:00:00 2001
From: ssc <273702440@qq.com>
Date: Mon, 18 Dec 2023 11:19:58 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E7=9B=91=E5=90=AC=E5=99=A8=E5=BF=AB?=
=?UTF-8?q?=E6=8D=B7=E9=85=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/plugin/workflow/listener.js | 49 +++
src/views/plugin/workflow/design/index.vue | 7 +
src/views/plugin/workflow/design/listener.vue | 346 ++++++++++++++++++
3 files changed, 402 insertions(+)
create mode 100644 src/api/plugin/workflow/listener.js
create mode 100644 src/views/plugin/workflow/design/listener.vue
diff --git a/src/api/plugin/workflow/listener.js b/src/api/plugin/workflow/listener.js
new file mode 100644
index 0000000..d485493
--- /dev/null
+++ b/src/api/plugin/workflow/listener.js
@@ -0,0 +1,49 @@
+import request from '@/router/axios';
+
+const prefix = '/api/blade-workflow/design/listener'
+
+export const getList = (current, size, params) => {
+ return request({
+ url: `${prefix}/list`,
+ method: 'get',
+ params: {
+ ...params,
+ current,
+ size,
+ }
+ })
+}
+
+export const getDetail = (params) => {
+ return request({
+ url: `${prefix}/detail`,
+ method: 'get',
+ params
+ })
+}
+
+export const remove = (ids) => {
+ return request({
+ url: `${prefix}/remove`,
+ method: 'post',
+ params: {
+ ids,
+ }
+ })
+}
+
+export const add = (row) => {
+ return request({
+ url: `${prefix}/submit`,
+ method: 'post',
+ data: row
+ })
+}
+
+export const update = (row) => {
+ return request({
+ url: `${prefix}/update`,
+ method: 'post',
+ data: row
+ })
+}
\ No newline at end of file
diff --git a/src/views/plugin/workflow/design/index.vue b/src/views/plugin/workflow/design/index.vue
index 0109908..4d89eb6 100644
--- a/src/views/plugin/workflow/design/index.vue
+++ b/src/views/plugin/workflow/design/index.vue
@@ -75,6 +75,7 @@ import { submit, getDetail } from '@/api/plugin/workflow/model'
import { getList as buttonList } from '@/api/plugin/workflow/button'
import { getList as formList } from '@/api/plugin/workflow/form'
import { getList as conditionList } from '@/api/plugin/workflow/condition'
+import { getList as listenerList } from '@/api/plugin/workflow/listener'
import { fullscreenToggel } from "@/util/util";
@@ -315,6 +316,7 @@ export default {
this.getUserListV2()
this.getFormList()
this.getConditionList()
+ this.getListenerList()
},
methods: {
handleNextStep() {
@@ -479,6 +481,11 @@ export default {
this.$set(this.step2.option, 'condition', res.data.data.records)
})
},
+ getListenerList() {
+ listenerList(1, -1, { status: 1 }).then(res => {
+ this.$set(this.step2.option, 'listener', res.data.data.records)
+ });
+ },
handleFullScreen() {
fullscreenToggel()
this.$store.commit('SET_COLLAPSE')
diff --git a/src/views/plugin/workflow/design/listener.vue b/src/views/plugin/workflow/design/listener.vue
new file mode 100644
index 0000000..5c3c897
--- /dev/null
+++ b/src/views/plugin/workflow/design/listener.vue
@@ -0,0 +1,346 @@
+
+
+
+
+
+ 删 除
+
+
+
+ 此配置只做快捷选择用,具体逻辑请自行实现。具体配置方法请查看
+
+ 使用文档
+
+
+
+
+
+
+
+
+
+