Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
saas-dml
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
saas-dml
Commits
1899b5fd
提交
1899b5fd
authored
4月 17, 2023
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: 新增触发条件组件配置生成规则
上级
0ad97f26
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
28 个修改的文件
包含
373 行增加
和
4 行删除
+373
-4
Sidebar.vue
src/components/flow/Sidebar.vue
+2
-2
ConfigTemplate.vue
src/components/flow/components/ConfigTemplate.vue
+1
-1
ConfigViewTemplate.vue
src/components/flow/components/ConfigViewTemplate.vue
+1
-1
RuleTemplate.vue
src/components/flow/components/RuleTemplate.vue
+0
-0
Index.vue
...low/components/triggeringConditions/changeProps/Index.vue
+3
-0
Rule.vue
...flow/components/triggeringConditions/changeProps/Rule.vue
+11
-0
Index.vue
...nts/flow/components/triggeringConditions/custom/Index.vue
+3
-0
Rule.vue
...ents/flow/components/triggeringConditions/custom/Rule.vue
+18
-0
Index.vue
...s/flow/components/triggeringConditions/dingtalk/Index.vue
+3
-0
Rule.vue
...ts/flow/components/triggeringConditions/dingtalk/Rule.vue
+18
-0
Index.vue
...nts/flow/components/triggeringConditions/douyin/Index.vue
+3
-0
Rule.vue
...ents/flow/components/triggeringConditions/douyin/Rule.vue
+18
-0
Index.vue
.../flow/components/triggeringConditions/joinGroup/Index.vue
+3
-0
Rule.vue
...s/flow/components/triggeringConditions/joinGroup/Rule.vue
+11
-0
Index.vue
...low/components/triggeringConditions/offiaccount/Index.vue
+3
-0
Rule.vue
...flow/components/triggeringConditions/offiaccount/Rule.vue
+18
-0
Index.vue
...components/triggeringConditions/realTimeTrigger/Index.vue
+3
-0
Rule.vue
.../components/triggeringConditions/realTimeTrigger/Rule.vue
+16
-0
Index.vue
...ents/flow/components/triggeringConditions/weibo/Index.vue
+3
-0
Rule.vue
...nents/flow/components/triggeringConditions/weibo/Rule.vue
+18
-0
Index.vue
...low/components/triggeringConditions/wenjuanxing/Index.vue
+3
-0
Rule.vue
...flow/components/triggeringConditions/wenjuanxing/Rule.vue
+18
-0
Index.vue
.../flow/components/triggeringConditions/xiaoetong/Index.vue
+3
-0
Rule.vue
...s/flow/components/triggeringConditions/xiaoetong/Rule.vue
+18
-0
Index.vue
...low/components/triggeringConditions/xiaohongshu/Index.vue
+3
-0
Rule.vue
...flow/components/triggeringConditions/xiaohongshu/Rule.vue
+18
-0
index.ts
src/modules/trip/rule/index.ts
+10
-0
Index.vue
src/modules/trip/rule/views/Index.vue
+144
-0
没有找到文件。
src/components/flow/Sidebar.vue
浏览文件 @
1899b5fd
...
...
@@ -3,7 +3,7 @@ import { useConnection } from '@/composables/useAllData'
import
Icon
from
'@/components/ConnectionIcon.vue'
const
props
=
defineProps
<
{
connectionIds
:
string
[]
connectionIds
?
:
string
[]
}
>
()
// 所有连接
...
...
@@ -11,7 +11,7 @@ const { connectionList } = useConnection()
// 绑定的连接
const
connections
=
computed
(()
=>
{
return
connectionList
.
value
.
filter
(
item
=>
props
.
connectionIds
.
includes
(
item
.
id
))
return
connectionList
.
value
.
filter
(
item
=>
props
.
connectionIds
?
.
includes
(
item
.
id
))
})
const
list
=
ref
([
...
...
src/components/flow/components/ConfigTemplate.vue
浏览文件 @
1899b5fd
<!--
学生设置组件
-->
<!--
组件设置
-->
<
script
setup
lang=
"ts"
>
import
type
{
FormInstance
,
FormRules
}
from
'element-plus'
import
{
useVueFlow
}
from
'@vue-flow/core'
...
...
src/components/flow/components/ConfigViewTemplate.vue
浏览文件 @
1899b5fd
<!--
学生设置组件
-->
<!--
查看组件设置
-->
<
script
setup
lang=
"ts"
>
import
type
{
FormInstance
,
FormRules
}
from
'element-plus'
import
{
ElMessage
}
from
'element-plus'
...
...
src/components/flow/components/RuleTemplate.vue
0 → 100644
浏览文件 @
1899b5fd
差异被折叠。
点击展开。
src/components/flow/components/triggeringConditions/changeProps/Index.vue
浏览文件 @
1899b5fd
...
...
@@ -5,6 +5,7 @@ import Icon from '@/components/ConnectionIcon.vue'
const
Config
=
defineAsyncComponent
(()
=>
import
(
'./Config.vue'
))
const
ConfigView
=
defineAsyncComponent
(()
=>
import
(
'./ConfigView.vue'
))
const
Rule
=
defineAsyncComponent
(()
=>
import
(
'./Rule.vue'
))
const
props
=
defineProps
<
{
node
:
any
}
>
()
...
...
@@ -32,4 +33,6 @@ const settingVisible = ref(false)
<Config
v-model=
"settingVisible"
:node=
"node"
v-if=
"settingVisible && action === 'edit'"
/>
<!-- 查看配置 -->
<ConfigView
v-model=
"settingVisible"
:node=
"node"
v-if=
"settingVisible && action === 'view'"
/>
<!-- 数据生成规则 -->
<Rule
v-model=
"settingVisible"
:node=
"node"
v-if=
"settingVisible && action === 'rule'"
/>
</
template
>
src/components/flow/components/triggeringConditions/changeProps/Rule.vue
0 → 100644
浏览文件 @
1899b5fd
<
script
setup
lang=
"ts"
>
import
RuleTemplate
from
'../../RuleTemplate.vue'
defineProps
<
{
node
:
any
}
>
()
</
script
>
<
template
>
<RuleTemplate
:node=
"node"
step
>
<template
#
header-answer
>
答案
</
template
>
</RuleTemplate>
</template>
src/components/flow/components/triggeringConditions/custom/Index.vue
浏览文件 @
1899b5fd
...
...
@@ -5,6 +5,7 @@ import Icon from '@/components/ConnectionIcon.vue'
const
Config
=
defineAsyncComponent
(()
=>
import
(
'./Config.vue'
))
const
ConfigView
=
defineAsyncComponent
(()
=>
import
(
'./ConfigView.vue'
))
const
Rule
=
defineAsyncComponent
(()
=>
import
(
'./Rule.vue'
))
const
props
=
defineProps
<
{
node
:
any
}
>
()
...
...
@@ -32,4 +33,6 @@ const settingVisible = ref(false)
<Config
v-model=
"settingVisible"
:node=
"node"
v-if=
"settingVisible && action === 'edit'"
/>
<!-- 查看配置 -->
<ConfigView
v-model=
"settingVisible"
:node=
"node"
v-if=
"settingVisible && action === 'view'"
/>
<!-- 数据生成规则 -->
<Rule
v-model=
"settingVisible"
:node=
"node"
v-if=
"settingVisible && action === 'rule'"
/>
</
template
>
src/components/flow/components/triggeringConditions/custom/Rule.vue
0 → 100644
浏览文件 @
1899b5fd
<
script
setup
lang=
"ts"
>
import
RuleTemplate
from
'../../RuleTemplate.vue'
defineProps
<
{
node
:
any
}
>
()
</
script
>
<
template
>
<RuleTemplate
:node=
"node"
step
>
<template
#
header-answer
>
答案
</
template
>
<
template
#
header-form-append
>
<el-form-item
label=
"事件"
>
<el-select>
<el-option
value=
"关注公众号"
></el-option>
</el-select>
</el-form-item>
</
template
>
</RuleTemplate>
</template>
src/components/flow/components/triggeringConditions/dingtalk/Index.vue
浏览文件 @
1899b5fd
...
...
@@ -5,6 +5,7 @@ import Icon from '@/components/ConnectionIcon.vue'
const
Config
=
defineAsyncComponent
(()
=>
import
(
'./Config.vue'
))
const
ConfigView
=
defineAsyncComponent
(()
=>
import
(
'./ConfigView.vue'
))
const
Rule
=
defineAsyncComponent
(()
=>
import
(
'./Rule.vue'
))
const
props
=
defineProps
<
{
node
:
any
}
>
()
...
...
@@ -32,4 +33,6 @@ const settingVisible = ref(false)
<Config
v-model=
"settingVisible"
:node=
"node"
v-if=
"settingVisible && action === 'edit'"
/>
<!-- 查看配置 -->
<ConfigView
v-model=
"settingVisible"
:node=
"node"
v-if=
"settingVisible && action === 'view'"
/>
<!-- 数据生成规则 -->
<Rule
v-model=
"settingVisible"
:node=
"node"
v-if=
"settingVisible && action === 'rule'"
/>
</
template
>
src/components/flow/components/triggeringConditions/dingtalk/Rule.vue
0 → 100644
浏览文件 @
1899b5fd
<
script
setup
lang=
"ts"
>
import
RuleTemplate
from
'../../RuleTemplate.vue'
defineProps
<
{
node
:
any
}
>
()
</
script
>
<
template
>
<RuleTemplate
:node=
"node"
step
>
<template
#
header-answer
>
答案
</
template
>
<
template
#
header-form-append
>
<el-form-item
label=
"事件"
>
<el-select>
<el-option
value=
"关注公众号"
></el-option>
</el-select>
</el-form-item>
</
template
>
</RuleTemplate>
</template>
src/components/flow/components/triggeringConditions/douyin/Index.vue
浏览文件 @
1899b5fd
...
...
@@ -5,6 +5,7 @@ import Icon from '@/components/ConnectionIcon.vue'
const
Config
=
defineAsyncComponent
(()
=>
import
(
'./Config.vue'
))
const
ConfigView
=
defineAsyncComponent
(()
=>
import
(
'./ConfigView.vue'
))
const
Rule
=
defineAsyncComponent
(()
=>
import
(
'./Rule.vue'
))
const
props
=
defineProps
<
{
node
:
any
}
>
()
...
...
@@ -32,4 +33,6 @@ const settingVisible = ref(false)
<Config
v-model=
"settingVisible"
:node=
"node"
v-if=
"settingVisible && action === 'edit'"
/>
<!-- 查看配置 -->
<ConfigView
v-model=
"settingVisible"
:node=
"node"
v-if=
"settingVisible && action === 'view'"
/>
<!-- 数据生成规则 -->
<Rule
v-model=
"settingVisible"
:node=
"node"
v-if=
"settingVisible && action === 'rule'"
/>
</
template
>
src/components/flow/components/triggeringConditions/douyin/Rule.vue
0 → 100644
浏览文件 @
1899b5fd
<
script
setup
lang=
"ts"
>
import
RuleTemplate
from
'../../RuleTemplate.vue'
defineProps
<
{
node
:
any
}
>
()
</
script
>
<
template
>
<RuleTemplate
:node=
"node"
step
>
<template
#
header-answer
>
答案
</
template
>
<
template
#
header-form-append
>
<el-form-item
label=
"事件"
>
<el-select>
<el-option
value=
"关注公众号"
></el-option>
</el-select>
</el-form-item>
</
template
>
</RuleTemplate>
</template>
src/components/flow/components/triggeringConditions/joinGroup/Index.vue
浏览文件 @
1899b5fd
...
...
@@ -5,6 +5,7 @@ import Icon from '@/components/ConnectionIcon.vue'
const
Config
=
defineAsyncComponent
(()
=>
import
(
'./Config.vue'
))
const
ConfigView
=
defineAsyncComponent
(()
=>
import
(
'./ConfigView.vue'
))
const
Rule
=
defineAsyncComponent
(()
=>
import
(
'./Rule.vue'
))
const
props
=
defineProps
<
{
node
:
any
}
>
()
...
...
@@ -32,4 +33,6 @@ const settingVisible = ref(false)
<Config
v-model=
"settingVisible"
:node=
"node"
v-if=
"settingVisible && action === 'edit'"
/>
<!-- 查看配置 -->
<ConfigView
v-model=
"settingVisible"
:node=
"node"
v-if=
"settingVisible && action === 'view'"
/>
<!-- 数据生成规则 -->
<Rule
v-model=
"settingVisible"
:node=
"node"
v-if=
"settingVisible && action === 'rule'"
/>
</
template
>
src/components/flow/components/triggeringConditions/joinGroup/Rule.vue
0 → 100644
浏览文件 @
1899b5fd
<
script
setup
lang=
"ts"
>
import
RuleTemplate
from
'../../RuleTemplate.vue'
defineProps
<
{
node
:
any
}
>
()
</
script
>
<
template
>
<RuleTemplate
:node=
"node"
step
>
<template
#
header-answer
>
答案
</
template
>
</RuleTemplate>
</template>
src/components/flow/components/triggeringConditions/offiaccount/Index.vue
浏览文件 @
1899b5fd
...
...
@@ -5,6 +5,7 @@ import Icon from '@/components/ConnectionIcon.vue'
const
Config
=
defineAsyncComponent
(()
=>
import
(
'./Config.vue'
))
const
ConfigView
=
defineAsyncComponent
(()
=>
import
(
'./ConfigView.vue'
))
const
Rule
=
defineAsyncComponent
(()
=>
import
(
'./Rule.vue'
))
const
props
=
defineProps
<
{
node
:
any
}
>
()
...
...
@@ -32,4 +33,6 @@ const settingVisible = ref(false)
<Config
v-model=
"settingVisible"
:node=
"node"
v-if=
"settingVisible && action === 'edit'"
/>
<!-- 查看配置 -->
<ConfigView
v-model=
"settingVisible"
:node=
"node"
v-if=
"settingVisible && action === 'view'"
/>
<!-- 数据生成规则 -->
<Rule
v-model=
"settingVisible"
:node=
"node"
v-if=
"settingVisible && action === 'rule'"
/>
</
template
>
src/components/flow/components/triggeringConditions/offiaccount/Rule.vue
0 → 100644
浏览文件 @
1899b5fd
<
script
setup
lang=
"ts"
>
import
RuleTemplate
from
'../../RuleTemplate.vue'
defineProps
<
{
node
:
any
}
>
()
</
script
>
<
template
>
<RuleTemplate
:node=
"node"
step
>
<template
#
header-answer
>
答案
</
template
>
<
template
#
header-form-append
>
<el-form-item
label=
"事件"
>
<el-select>
<el-option
value=
"关注公众号"
></el-option>
</el-select>
</el-form-item>
</
template
>
</RuleTemplate>
</template>
src/components/flow/components/triggeringConditions/realTimeTrigger/Index.vue
浏览文件 @
1899b5fd
...
...
@@ -5,6 +5,7 @@ import Icon from '@/components/ConnectionIcon.vue'
const
Config
=
defineAsyncComponent
(()
=>
import
(
'./Config.vue'
))
const
ConfigView
=
defineAsyncComponent
(()
=>
import
(
'./ConfigView.vue'
))
const
Rule
=
defineAsyncComponent
(()
=>
import
(
'./Rule.vue'
))
const
props
=
defineProps
<
{
node
:
any
}
>
()
...
...
@@ -31,4 +32,6 @@ const settingVisible = ref(false)
<Config
v-model=
"settingVisible"
:node=
"node"
v-if=
"settingVisible && action === 'edit'"
/>
<!-- 查看配置 -->
<ConfigView
v-model=
"settingVisible"
:node=
"node"
v-if=
"settingVisible && action === 'view'"
/>
<!-- 数据生成规则 -->
<Rule
v-model=
"settingVisible"
:node=
"node"
v-if=
"settingVisible && action === 'rule'"
/>
</
template
>
src/components/flow/components/triggeringConditions/realTimeTrigger/Rule.vue
0 → 100644
浏览文件 @
1899b5fd
<
script
setup
lang=
"ts"
>
import
RuleTemplate
from
'../../RuleTemplate.vue'
defineProps
<
{
node
:
any
}
>
()
</
script
>
<
template
>
<RuleTemplate
:node=
"node"
>
<el-form
label-suffix=
":"
>
<el-form-item
label=
"组件名称"
>
{{
node
.
data
.
name
}}
</el-form-item>
<el-form-item
label=
"用户总数"
>
10000
</el-form-item>
<el-form-item
label=
"预计选取用户总数"
>
10000
</el-form-item>
</el-form>
<p>
定时触发条件无需设置数据生成规则
</p>
</RuleTemplate>
</
template
>
src/components/flow/components/triggeringConditions/weibo/Index.vue
浏览文件 @
1899b5fd
...
...
@@ -5,6 +5,7 @@ import Icon from '@/components/ConnectionIcon.vue'
const
Config
=
defineAsyncComponent
(()
=>
import
(
'./Config.vue'
))
const
ConfigView
=
defineAsyncComponent
(()
=>
import
(
'./ConfigView.vue'
))
const
Rule
=
defineAsyncComponent
(()
=>
import
(
'./Rule.vue'
))
const
props
=
defineProps
<
{
node
:
any
}
>
()
...
...
@@ -32,4 +33,6 @@ const settingVisible = ref(false)
<Config
v-model=
"settingVisible"
:node=
"node"
v-if=
"settingVisible && action === 'edit'"
/>
<!-- 查看配置 -->
<ConfigView
v-model=
"settingVisible"
:node=
"node"
v-if=
"settingVisible && action === 'view'"
/>
<!-- 数据生成规则 -->
<Rule
v-model=
"settingVisible"
:node=
"node"
v-if=
"settingVisible && action === 'rule'"
/>
</
template
>
src/components/flow/components/triggeringConditions/weibo/Rule.vue
0 → 100644
浏览文件 @
1899b5fd
<
script
setup
lang=
"ts"
>
import
RuleTemplate
from
'../../RuleTemplate.vue'
defineProps
<
{
node
:
any
}
>
()
</
script
>
<
template
>
<RuleTemplate
:node=
"node"
step
>
<template
#
header-answer
>
答案
</
template
>
<
template
#
header-form-append
>
<el-form-item
label=
"事件"
>
<el-select>
<el-option
value=
"关注公众号"
></el-option>
</el-select>
</el-form-item>
</
template
>
</RuleTemplate>
</template>
src/components/flow/components/triggeringConditions/wenjuanxing/Index.vue
浏览文件 @
1899b5fd
...
...
@@ -5,6 +5,7 @@ import Icon from '@/components/ConnectionIcon.vue'
const
Config
=
defineAsyncComponent
(()
=>
import
(
'./Config.vue'
))
const
ConfigView
=
defineAsyncComponent
(()
=>
import
(
'./ConfigView.vue'
))
const
Rule
=
defineAsyncComponent
(()
=>
import
(
'./Rule.vue'
))
const
props
=
defineProps
<
{
node
:
any
}
>
()
...
...
@@ -32,4 +33,6 @@ const settingVisible = ref(false)
<Config
v-model=
"settingVisible"
:node=
"node"
v-if=
"settingVisible && action === 'edit'"
/>
<!-- 查看配置 -->
<ConfigView
v-model=
"settingVisible"
:node=
"node"
v-if=
"settingVisible && action === 'view'"
/>
<!-- 数据生成规则 -->
<Rule
v-model=
"settingVisible"
:node=
"node"
v-if=
"settingVisible && action === 'rule'"
/>
</
template
>
src/components/flow/components/triggeringConditions/wenjuanxing/Rule.vue
0 → 100644
浏览文件 @
1899b5fd
<
script
setup
lang=
"ts"
>
import
RuleTemplate
from
'../../RuleTemplate.vue'
defineProps
<
{
node
:
any
}
>
()
</
script
>
<
template
>
<RuleTemplate
:node=
"node"
step
>
<template
#
header-answer
>
答案
</
template
>
<
template
#
header-form-append
>
<el-form-item
label=
"事件"
>
<el-select>
<el-option
value=
"关注公众号"
></el-option>
</el-select>
</el-form-item>
</
template
>
</RuleTemplate>
</template>
src/components/flow/components/triggeringConditions/xiaoetong/Index.vue
浏览文件 @
1899b5fd
...
...
@@ -5,6 +5,7 @@ import Icon from '@/components/ConnectionIcon.vue'
const
Config
=
defineAsyncComponent
(()
=>
import
(
'./Config.vue'
))
const
ConfigView
=
defineAsyncComponent
(()
=>
import
(
'./ConfigView.vue'
))
const
Rule
=
defineAsyncComponent
(()
=>
import
(
'./Rule.vue'
))
const
props
=
defineProps
<
{
node
:
any
}
>
()
...
...
@@ -32,4 +33,6 @@ const settingVisible = ref(false)
<Config
v-model=
"settingVisible"
:node=
"node"
v-if=
"settingVisible && action === 'edit'"
/>
<!-- 查看配置 -->
<ConfigView
v-model=
"settingVisible"
:node=
"node"
v-if=
"settingVisible && action === 'view'"
/>
<!-- 数据生成规则 -->
<Rule
v-model=
"settingVisible"
:node=
"node"
v-if=
"settingVisible && action === 'rule'"
/>
</
template
>
src/components/flow/components/triggeringConditions/xiaoetong/Rule.vue
0 → 100644
浏览文件 @
1899b5fd
<
script
setup
lang=
"ts"
>
import
RuleTemplate
from
'../../RuleTemplate.vue'
defineProps
<
{
node
:
any
}
>
()
</
script
>
<
template
>
<RuleTemplate
:node=
"node"
step
>
<template
#
header-answer
>
答案
</
template
>
<
template
#
header-form-append
>
<el-form-item
label=
"事件"
>
<el-select>
<el-option
value=
"关注公众号"
></el-option>
</el-select>
</el-form-item>
</
template
>
</RuleTemplate>
</template>
src/components/flow/components/triggeringConditions/xiaohongshu/Index.vue
浏览文件 @
1899b5fd
...
...
@@ -5,6 +5,7 @@ import Icon from '@/components/ConnectionIcon.vue'
const
Config
=
defineAsyncComponent
(()
=>
import
(
'./Config.vue'
))
const
ConfigView
=
defineAsyncComponent
(()
=>
import
(
'./ConfigView.vue'
))
const
Rule
=
defineAsyncComponent
(()
=>
import
(
'./Rule.vue'
))
const
props
=
defineProps
<
{
node
:
any
}
>
()
...
...
@@ -32,4 +33,6 @@ const settingVisible = ref(false)
<Config
v-model=
"settingVisible"
:node=
"node"
v-if=
"settingVisible && action === 'edit'"
/>
<!-- 查看配置 -->
<ConfigView
v-model=
"settingVisible"
:node=
"node"
v-if=
"settingVisible && action === 'view'"
/>
<!-- 数据生成规则 -->
<Rule
v-model=
"settingVisible"
:node=
"node"
v-if=
"settingVisible && action === 'rule'"
/>
</
template
>
src/components/flow/components/triggeringConditions/xiaohongshu/Rule.vue
0 → 100644
浏览文件 @
1899b5fd
<
script
setup
lang=
"ts"
>
import
RuleTemplate
from
'../../RuleTemplate.vue'
defineProps
<
{
node
:
any
}
>
()
</
script
>
<
template
>
<RuleTemplate
:node=
"node"
step
>
<template
#
header-answer
>
答案
</
template
>
<
template
#
header-form-append
>
<el-form-item
label=
"事件"
>
<el-select>
<el-option
value=
"关注公众号"
></el-option>
</el-select>
</el-form-item>
</
template
>
</RuleTemplate>
</template>
src/modules/trip/rule/index.ts
0 → 100644
浏览文件 @
1899b5fd
import
type
{
RouteRecordRaw
}
from
'vue-router'
const
routes
:
RouteRecordRaw
[]
=
[
{
path
:
'/trip/rule'
,
component
:
()
=>
import
(
'./views/Index.vue'
)
}
]
export
{
routes
}
src/modules/trip/rule/views/Index.vue
0 → 100644
浏览文件 @
1899b5fd
<!-- 固定旅程模板配置 -->
<
script
setup
lang=
"ts"
>
import
TripFlow
from
'@/components/flow/Index.vue'
import
TripFlowSidebar
from
'@/components/flow/Sidebar.vue'
const
form
=
reactive
({
start_type
:
1
,
auto_start
:
1
,
auto_start_time
:
''
,
auto_start_type
:
1
,
stop_type
:
1
})
const
elements
=
ref
([
{
id
:
'1'
,
type
:
'custom'
,
position
:
{
x
:
100
,
y
:
100
},
label
:
'定时触发'
,
data
:
{
name
:
'定时触发'
,
type
:
'触发条件'
,
icon
:
'13'
,
componentName
:
'TCRealTimeTrigger'
}
},
{
id
:
'2'
,
type
:
'custom'
,
position
:
{
x
:
200
,
y
:
100
},
label
:
'加入群组'
,
data
:
{
name
:
'加入群组'
,
type
:
'触发条件'
,
icon
:
'14'
,
componentName
:
'TCJoinGroup'
}
},
{
id
:
'3'
,
type
:
'custom'
,
position
:
{
x
:
300
,
y
:
100
},
label
:
'变更属性'
,
data
:
{
name
:
'变更属性'
,
type
:
'触发条件'
,
icon
:
'15'
,
componentName
:
'TCChangeProps'
}
},
{
id
:
'4'
,
type
:
'custom'
,
position
:
{
x
:
400
,
y
:
100
},
label
:
'公众号'
,
data
:
{
name
:
'公众号'
,
type
:
'触发条件'
,
icon
:
'1'
,
componentName
:
'TCOffiaccount'
,
connection_type
:
1
}
},
{
id
:
'5'
,
type
:
'custom'
,
position
:
{
x
:
500
,
y
:
100
},
label
:
'抖音'
,
data
:
{
name
:
'抖音'
,
type
:
'触发条件'
,
icon
:
'6'
,
componentName
:
'TCDouyin'
,
connection_type
:
6
}
},
{
id
:
'6'
,
type
:
'custom'
,
position
:
{
x
:
600
,
y
:
100
},
label
:
'小红书'
,
data
:
{
name
:
'小红书'
,
type
:
'触发条件'
,
icon
:
'8'
,
componentName
:
'TCXiaohongshu'
,
connection_type
:
8
}
},
{
id
:
'7'
,
type
:
'custom'
,
position
:
{
x
:
700
,
y
:
100
},
label
:
'微博'
,
data
:
{
name
:
'微博'
,
type
:
'触发条件'
,
icon
:
'7'
,
componentName
:
'TCWeibo'
,
connection_type
:
7
}
},
{
id
:
'8'
,
type
:
'custom'
,
position
:
{
x
:
800
,
y
:
100
},
label
:
'自定义'
,
data
:
{
name
:
'自定义'
,
type
:
'触发条件'
,
icon
:
'12'
,
componentName
:
'TCCustom'
,
connection_type
:
12
}
},
{
id
:
'9'
,
type
:
'custom'
,
position
:
{
x
:
900
,
y
:
100
},
label
:
'小鹅通'
,
data
:
{
name
:
'小鹅通'
,
type
:
'触发条件'
,
icon
:
'3'
,
componentName
:
'TCXiaoetong'
,
connection_type
:
3
}
},
{
id
:
'10'
,
type
:
'custom'
,
position
:
{
x
:
1000
,
y
:
100
},
label
:
'问卷星'
,
data
:
{
name
:
'问卷星'
,
type
:
'触发条件'
,
icon
:
'4'
,
componentName
:
'TCWenjuanxing'
,
connection_type
:
4
}
}
])
function
handleSubmit
()
{}
</
script
>
<
template
>
<AppCard
title=
"实验数据规则配置"
>
<el-form
label-suffix=
":"
>
<el-row>
<el-col
:span=
"6"
><el-form-item
label=
"实验名称"
></el-form-item></el-col>
<el-col
:span=
"6"
><el-form-item
label=
"实验类型"
></el-form-item></el-col>
<el-col
:span=
"6"
><el-form-item
label=
"用户旅程模板"
></el-form-item></el-col>
<el-col
:span=
"6"
><el-form-item
label=
"模板类型"
></el-form-item></el-col>
</el-row>
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"数据生成启动控制"
>
<el-radio-group
v-model=
"form.start_type"
>
<el-radio
:label=
"1"
>
人工启动
</el-radio>
<el-radio
:label=
"2"
>
自动启动
</el-radio>
</el-radio-group>
<el-radio-group
v-model=
"form.auto_start"
v-if=
"form.start_type === 2"
>
<el-radio
:label=
"1"
>
<span>
每隔
</span>
<el-input
v-model=
"form.auto_start_time"
style=
"width: 200px"
>
<template
#
append
>
<el-select
v-model=
"form.auto_start_type"
style=
"width: 90px"
>
<el-option
:value=
"1"
label=
"小时"
/>
<el-option
:value=
"2"
label=
"天"
/>
</el-select>
</
template
>
</el-input>
</el-radio>
<el-radio
:label=
"2"
>
学生完成旅程配置
</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"数据生成停止控制"
>
<el-radio-group
v-model=
"form.stop_type"
>
<el-radio
:label=
"1"
>
一次性生成
</el-radio>
<el-radio
:label=
"2"
disabled
>
覆盖生成
</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
</el-row>
</el-form>
<TripFlow
v-model=
"elements"
action=
"rule"
:nodes-draggable=
"false"
:nodes-connectable=
"false"
>
<
template
#
left-panel
>
<TripFlowSidebar
/>
</
template
>
<
template
#
footer
>
<el-row
justify=
"center"
>
<el-button
plain
auto-insert-space
>
取消
</el-button>
<el-button
type=
"primary"
auto-insert-space
@
click=
"handleSubmit"
>
保存
</el-button>
</el-row>
</
template
>
</TripFlow>
</AppCard>
</template>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论