Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
saas-dml
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
saas-dml
Commits
aa2fc83a
提交
aa2fc83a
authored
3月 09, 2023
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
触发条件查看
上级
d174382a
隐藏空白字符变更
内嵌
并排
正在显示
17 个修改的文件
包含
295 行增加
和
32 行删除
+295
-32
.eslintrc-auto-import.json
.eslintrc-auto-import.json
+0
-1
auto-imports.d.ts
auto-imports.d.ts
+2
-6
ConfigTemplate.vue
src/components/flow/components/ConfigTemplate.vue
+1
-1
ConfigViewTemplate.vue
src/components/flow/components/ConfigViewTemplate.vue
+1
-1
Config.vue
...ow/components/triggeringConditions/changeProps/Config.vue
+2
-1
ConfigView.vue
...omponents/triggeringConditions/changeProps/ConfigView.vue
+34
-2
ConfigView.vue
...low/components/triggeringConditions/custom/ConfigView.vue
+27
-2
ConfigView.vue
...low/components/triggeringConditions/douyin/ConfigView.vue
+30
-2
ConfigView.vue
.../components/triggeringConditions/joinGroup/ConfigView.vue
+22
-2
ConfigView.vue
...omponents/triggeringConditions/offiaccount/ConfigView.vue
+33
-2
Answer.vue
...omponents/triggeringConditions/realTimeTrigger/Answer.vue
+38
-0
ConfigView.vue
...nents/triggeringConditions/realTimeTrigger/ConfigView.vue
+12
-2
ConfigView.vue
...flow/components/triggeringConditions/weibo/ConfigView.vue
+23
-2
ConfigView.vue
...omponents/triggeringConditions/wenjuanxing/ConfigView.vue
+20
-2
ConfigView.vue
.../components/triggeringConditions/xiaoetong/ConfigView.vue
+20
-2
ConfigView.vue
...omponents/triggeringConditions/xiaohongshu/ConfigView.vue
+27
-2
Setting.vue
src/modules/trip/template/views/Setting.vue
+3
-2
没有找到文件。
.eslintrc-auto-import.json
浏览文件 @
aa2fc83a
...
@@ -115,7 +115,6 @@
...
@@ -115,7 +115,6 @@
"useArrayFilter"
:
true
,
"useArrayFilter"
:
true
,
"useArrayFind"
:
true
,
"useArrayFind"
:
true
,
"useArrayFindIndex"
:
true
,
"useArrayFindIndex"
:
true
,
"useArrayFindLast"
:
true
,
"useArrayJoin"
:
true
,
"useArrayJoin"
:
true
,
"useArrayMap"
:
true
,
"useArrayMap"
:
true
,
"useArrayReduce"
:
true
,
"useArrayReduce"
:
true
,
...
...
auto-imports.d.ts
浏览文件 @
aa2fc83a
/* eslint-disable */
// Generated by 'unplugin-auto-import'
/* prettier-ignore */
// @ts-nocheck
// Generated by unplugin-auto-import
export
{}
export
{}
declare
global
{
declare
global
{
const
$$
:
typeof
import
(
'vue/macros'
)[
'$$'
]
const
$$
:
typeof
import
(
'vue/macros'
)[
'$$'
]
...
@@ -112,7 +109,6 @@ declare global {
...
@@ -112,7 +109,6 @@ declare global {
const
useArrayFilter
:
typeof
import
(
'@vueuse/core'
)[
'useArrayFilter'
]
const
useArrayFilter
:
typeof
import
(
'@vueuse/core'
)[
'useArrayFilter'
]
const
useArrayFind
:
typeof
import
(
'@vueuse/core'
)[
'useArrayFind'
]
const
useArrayFind
:
typeof
import
(
'@vueuse/core'
)[
'useArrayFind'
]
const
useArrayFindIndex
:
typeof
import
(
'@vueuse/core'
)[
'useArrayFindIndex'
]
const
useArrayFindIndex
:
typeof
import
(
'@vueuse/core'
)[
'useArrayFindIndex'
]
const
useArrayFindLast
:
typeof
import
(
'@vueuse/core'
)[
'useArrayFindLast'
]
const
useArrayJoin
:
typeof
import
(
'@vueuse/core'
)[
'useArrayJoin'
]
const
useArrayJoin
:
typeof
import
(
'@vueuse/core'
)[
'useArrayJoin'
]
const
useArrayMap
:
typeof
import
(
'@vueuse/core'
)[
'useArrayMap'
]
const
useArrayMap
:
typeof
import
(
'@vueuse/core'
)[
'useArrayMap'
]
const
useArrayReduce
:
typeof
import
(
'@vueuse/core'
)[
'useArrayReduce'
]
const
useArrayReduce
:
typeof
import
(
'@vueuse/core'
)[
'useArrayReduce'
]
...
@@ -280,5 +276,5 @@ declare global {
...
@@ -280,5 +276,5 @@ declare global {
// for type re-export
// for type re-export
declare
global
{
declare
global
{
// @ts-ignore
// @ts-ignore
export
type
{
Component
,
ComponentPublicInstance
,
ComputedRef
,
InjectionKey
,
PropType
,
Ref
,
VNode
}
from
'vue'
export
type
{
Component
,
ComponentPublicInstance
,
ComputedRef
,
InjectionKey
,
PropType
,
Ref
,
VNode
}
from
'vue'
}
}
src/components/flow/components/ConfigTemplate.vue
浏览文件 @
aa2fc83a
...
@@ -61,7 +61,7 @@ function updateNode() {
...
@@ -61,7 +61,7 @@ function updateNode() {
<el-row
justify=
"space-between"
>
<el-row
justify=
"space-between"
>
<el-form-item
label=
"组件类型"
>
{{
node
.
data
.
type
}}
</el-form-item>
<el-form-item
label=
"组件类型"
>
{{
node
.
data
.
type
}}
</el-form-item>
<el-form-item
label=
"组件名称"
>
{{
node
.
data
.
name
}}
</el-form-item>
<el-form-item
label=
"组件名称"
>
{{
node
.
data
.
name
}}
</el-form-item>
<el-form-item
label=
"分值"
>
{{
node
.
data
.
teacher
.
score
}}
</el-form-item>
<el-form-item
label=
"分值"
>
{{
node
.
data
.
teacher
?
.
score
}}
</el-form-item>
</el-row>
</el-row>
<slot
:step=
"step"
:model=
"form"
></slot>
<slot
:step=
"step"
:model=
"form"
></slot>
</
template
>
</
template
>
...
...
src/components/flow/components/ConfigViewTemplate.vue
浏览文件 @
aa2fc83a
...
@@ -14,7 +14,7 @@ const form = reactive({
...
@@ -14,7 +14,7 @@ const form = reactive({
score
:
undefined
score
:
undefined
})
})
watchEffect
(()
=>
{
watchEffect
(()
=>
{
Object
.
assign
(
form
,
props
.
node
.
data
.
student
)
Object
.
assign
(
form
,
props
.
node
.
data
?
.
student
)
})
})
const
rules
=
ref
<
FormRules
>
({
const
rules
=
ref
<
FormRules
>
({
...
...
src/components/flow/components/triggeringConditions/changeProps/Config.vue
浏览文件 @
aa2fc83a
...
@@ -50,7 +50,8 @@ function onAttrChange() {
...
@@ -50,7 +50,8 @@ function onAttrChange() {
v-for=
"item in operatorList"
v-for=
"item in operatorList"
:key=
"item.value"
:key=
"item.value"
:value=
"item.value"
:value=
"item.value"
:label=
"item.label"
></el-option>
:label=
"item.label"
></el-option>
</el-select>
</el-select>
<el-input
v-model=
"form.value"
placeholder=
"请输入"
style=
"width: 200px"
></el-input>
<el-input
v-model=
"form.value"
placeholder=
"请输入"
style=
"width: 200px"
></el-input>
</div>
</div>
...
...
src/components/flow/components/triggeringConditions/changeProps/ConfigView.vue
浏览文件 @
aa2fc83a
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
ConfigViewTemplate
from
'../../ConfigViewTemplate.vue'
import
ConfigViewTemplate
from
'../../ConfigViewTemplate.vue'
import
{
useUserAttr
}
from
'../../../useAllData'
import
{
stringOperatorList
,
numberOperatorList
,
dateOperatorList
}
from
'@/utils/dictionary'
const
role
=
inject
(
'role'
)
as
string
defineProps
<
{
node
:
any
}
>
()
defineProps
<
{
node
:
any
}
>
()
const
{
userAttrList
}
=
useUserAttr
()
const
getAttrListLabel
=
function
(
id
:
string
)
{
return
userAttrList
.
value
.
find
(
item
=>
item
.
id
===
id
)?.
name
||
''
}
const
operatorList
=
function
(
attrId
:
any
,
operateId
:
any
)
{
const
found
=
userAttrList
.
value
.
find
(
item
=>
item
.
id
===
attrId
)
return
found
?
getOperatorList
(
found
.
type
).
find
(
item
=>
item
.
value
===
operateId
)?.
label
||
''
:
''
}
// 获取运算符列表
function
getOperatorList
(
type
:
string
)
{
if
(
type
===
'1'
)
return
stringOperatorList
if
(
type
===
'2'
||
type
===
'3'
)
return
numberOperatorList
if
(
type
===
'4'
||
type
===
'5'
)
return
dateOperatorList
return
stringOperatorList
}
</
script
>
</
script
>
<
template
>
<
template
>
<ConfigViewTemplate
:node=
"node"
>
<ConfigViewTemplate
:node=
"node"
>
<el-form-item
label=
"学生答案"
>
</el-form-item>
<el-form-item
:label=
"role === 'student' ? '我的答案' : '学生答案'"
v-if=
"node.data?.student"
>
<el-form-item
label=
"正确答案"
>
</el-form-item>
{{
getAttrListLabel
(
node
.
data
.
student
?.
attr_id
)
}}
{{
operatorList
(
node
.
data
.
student
?.
attr_id
,
node
.
data
.
student
?.
operate
)
}}
{{
node
.
data
.
student
?.
value
}}
</el-form-item>
<el-form-item
label=
"正确答案"
v-if=
"node.data?.teacher"
>
{{
getAttrListLabel
(
node
.
data
.
teacher
?.
attr_id
)
}}
{{
operatorList
(
node
.
data
.
teacher
?.
attr_id
,
node
.
data
.
teacher
?.
operate
)
}}
{{
node
.
data
.
teacher
?.
value
}}
</el-form-item>
</ConfigViewTemplate>
</ConfigViewTemplate>
</
template
>
</
template
>
src/components/flow/components/triggeringConditions/custom/ConfigView.vue
浏览文件 @
aa2fc83a
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
ConfigViewTemplate
from
'../../ConfigViewTemplate.vue'
import
ConfigViewTemplate
from
'../../ConfigViewTemplate.vue'
import
{
useConnection
}
from
'../../../useAllData'
const
role
=
inject
(
'role'
)
as
string
defineProps
<
{
node
:
any
}
>
()
defineProps
<
{
node
:
any
}
>
()
const
operateList
=
[
{
label
:
'用户发送文本私信'
,
value
:
'0'
},
{
label
:
'用户发送表情私信'
,
value
:
'1'
},
{
label
:
'用户发送卡片私信'
,
value
:
'2'
},
{
label
:
'在主页Tab提交预约'
,
value
:
'3'
}
]
const
{
connectionList
}
=
useConnection
()
const
getConnectionLabel
=
function
(
id
:
string
)
{
return
connectionList
.
value
.
find
(
item
=>
item
.
id
===
id
)?.
name
||
''
}
</
script
>
</
script
>
<
template
>
<
template
>
<ConfigViewTemplate
:node=
"node"
>
<ConfigViewTemplate
:node=
"node"
>
<el-form-item
label=
"学生答案"
>
</el-form-item>
<el-form-item
:label=
"role === 'student' ? '我的答案' : '学生答案'"
v-if=
"node.data?.student"
>
<el-form-item
label=
"正确答案"
>
</el-form-item>
{{
operateList
.
find
(
item
=>
item
.
value
===
node
.
data
.
student
?.
operate
)?.
label
||
''
}}
{{
getConnectionLabel
(
node
.
data
.
student
?.
connection_id
)
}}
{{
node
.
data
.
student
?.
app_name
}}
</el-form-item>
<el-form-item
label=
"正确答案"
v-if=
"node.data?.teacher"
>
{{
operateList
.
find
(
item
=>
item
.
value
===
node
.
data
.
teacher
?.
operate
)?.
label
||
''
}}
{{
getConnectionLabel
(
node
.
data
.
teacher
?.
connection_id
)
}}
{{
node
.
data
.
teacher
?.
app_name
}}
</el-form-item>
</ConfigViewTemplate>
</ConfigViewTemplate>
</
template
>
</
template
>
src/components/flow/components/triggeringConditions/douyin/ConfigView.vue
浏览文件 @
aa2fc83a
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
ConfigViewTemplate
from
'../../ConfigViewTemplate.vue'
import
ConfigViewTemplate
from
'../../ConfigViewTemplate.vue'
import
{
useConnection
}
from
'../../../useAllData'
const
role
=
inject
(
'role'
)
as
string
defineProps
<
{
node
:
any
}
>
()
defineProps
<
{
node
:
any
}
>
()
const
{
connectionList
}
=
useConnection
()
const
operateList
=
[
{
label
:
'访问网页'
,
value
:
'0'
},
{
label
:
'激活APP'
,
value
:
'1'
},
{
label
:
'启动APP'
,
value
:
'2'
},
{
label
:
'退出APP'
,
value
:
'3'
},
{
label
:
'展示APP页面'
,
value
:
'4'
},
{
label
:
'点击APP元素'
,
value
:
'5'
},
{
label
:
'退出APP页面'
,
value
:
'6'
},
{
label
:
'离开网页'
,
value
:
'7'
}
]
const
getConnectionLabel
=
function
(
id
:
string
)
{
return
connectionList
.
value
.
find
(
item
=>
item
.
id
===
id
)?.
name
||
''
}
</
script
>
</
script
>
<
template
>
<
template
>
<ConfigViewTemplate
:node=
"node"
>
<ConfigViewTemplate
:node=
"node"
>
<el-form-item
label=
"学生答案"
>
</el-form-item>
<el-form-item
:label=
"role === 'student' ? '我的答案' : '学生答案'"
v-if=
"node.data?.student"
>
<el-form-item
label=
"正确答案"
>
</el-form-item>
{{
operateList
.
find
(
item
=>
item
.
value
===
node
.
data
.
student
?.
operate
)?.
label
||
''
}}
{{
getConnectionLabel
(
node
.
data
.
student
?.
connection_id
)
}}
</el-form-item>
<el-form-item
label=
"正确答案"
v-if=
"node.data?.teacher"
>
{{
operateList
.
find
(
item
=>
item
.
value
===
node
.
data
.
teacher
?.
operate
)?.
label
||
''
}}
{{
getConnectionLabel
(
node
.
data
.
teacher
?.
connection_id
)
}}
</el-form-item>
</ConfigViewTemplate>
</ConfigViewTemplate>
</
template
>
</
template
>
d
src/components/flow/components/triggeringConditions/joinGroup/ConfigView.vue
浏览文件 @
aa2fc83a
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
useGroup
}
from
'../../../useAllData'
import
ConfigViewTemplate
from
'../../ConfigViewTemplate.vue'
import
ConfigViewTemplate
from
'../../ConfigViewTemplate.vue'
const
role
=
inject
(
'role'
)
as
string
defineProps
<
{
node
:
any
}
>
()
defineProps
<
{
node
:
any
}
>
()
const
{
groupList
}
=
useGroup
()
const
answer
=
function
(
id
:
string
)
{
return
groupList
.
value
.
find
(
item
=>
item
.
id
===
id
)?.
name
||
''
}
</
script
>
</
script
>
<
template
>
<
template
>
<ConfigViewTemplate
:node=
"node"
>
<ConfigViewTemplate
:node=
"node"
>
<el-form-item
label=
"学生答案"
>
</el-form-item>
<div
v-if=
"node.data?.student"
>
<el-form-item
label=
"正确答案"
>
</el-form-item>
<el-form-item
:label=
"role === 'student' ? '我的答案' : '学生答案'"
style=
"margin-bottom: 0"
></el-form-item>
<el-form-item
label=
"监控的群组"
style=
"margin-left: 30px"
>
{{
answer
(
node
.
data
?.
student
.
group_id
)
}}
</el-form-item>
</div>
<div
v-if=
"node.data?.teacher"
>
<el-form-item
label=
"正确答案"
style=
"margin-bottom: 0"
></el-form-item>
<el-form-item
label=
"监控的群组"
style=
"margin-left: 30px"
>
{{
answer
(
node
.
data
?.
teacher
.
group_id
)
}}
</el-form-item>
</div>
</ConfigViewTemplate>
</ConfigViewTemplate>
</
template
>
</
template
>
src/components/flow/components/triggeringConditions/offiaccount/ConfigView.vue
浏览文件 @
aa2fc83a
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
ConfigViewTemplate
from
'../../ConfigViewTemplate.vue'
import
ConfigViewTemplate
from
'../../ConfigViewTemplate.vue'
import
{
useConnection
}
from
'../../../useAllData'
const
role
=
inject
(
'role'
)
as
string
defineProps
<
{
node
:
any
}
>
()
defineProps
<
{
node
:
any
}
>
()
const
operateList
=
[
{
label
:
'关注公众号'
,
value
:
'0'
},
{
label
:
'留言文本'
,
value
:
'1'
},
{
label
:
'留言图片'
,
value
:
'2'
},
{
label
:
'留言语音'
,
value
:
'3'
},
{
label
:
'留言视频'
,
value
:
'4'
},
{
label
:
'点击菜单'
,
value
:
'5'
},
{
label
:
'点击菜单会话项'
,
value
:
'6'
},
{
label
:
'扫描二维码'
,
value
:
'7'
},
{
label
:
'取消关注'
,
value
:
'8'
},
{
label
:
'其他'
,
value
:
'9'
}
]
const
{
connectionList
}
=
useConnection
()
const
getConnectionLabel
=
function
(
id
:
string
)
{
return
connectionList
.
value
.
find
(
item
=>
item
.
id
===
id
)?.
name
||
''
}
</
script
>
</
script
>
<
template
>
<
template
>
<ConfigViewTemplate
:node=
"node"
>
<ConfigViewTemplate
:node=
"node"
>
<el-form-item
label=
"学生答案"
>
</el-form-item>
<el-form-item
:label=
"role === 'student' ? '我的答案' : '学生答案'"
v-if=
"node.data?.student"
>
<el-form-item
label=
"正确答案"
>
</el-form-item>
{{
operateList
.
find
(
item
=>
item
.
value
===
node
.
data
.
student
?.
operate
)?.
label
||
''
}}
{{
getConnectionLabel
(
node
.
data
.
student
?.
connection_id
)
}}
{{
node
.
data
.
student
?.
message
}}
</el-form-item>
<el-form-item
label=
"正确答案"
v-if=
"node.data?.teacher"
>
{{
operateList
.
find
(
item
=>
item
.
value
===
node
.
data
.
teacher
?.
operate
)?.
label
||
''
}}
{{
getConnectionLabel
(
node
.
data
.
teacher
?.
connection_id
)
}}
{{
node
.
data
.
teacher
?.
message
}}
</el-form-item>
</ConfigViewTemplate>
</ConfigViewTemplate>
</
template
>
</
template
>
src/components/flow/components/triggeringConditions/realTimeTrigger/Answer.vue
0 → 100644
浏览文件 @
aa2fc83a
<
script
setup
lang=
"ts"
>
defineProps
<
{
data
:
any
}
>
()
const
triggerType
:
any
=
{
'0'
:
'单次触发'
,
'1'
:
'重复触发'
,
'2'
:
'立即触发'
}
const
dateType
:
any
=
{
'0'
:
'天'
,
'1'
:
'周'
,
'2'
:
'月'
}
</
script
>
<
template
>
<div
class=
"answer"
>
<el-form-item
label=
"触发类型"
style=
"margin-bottom: 0"
>
{{
triggerType
[
data
.
trigger_type
]
}}
</el-form-item>
<el-form-item
label=
"触发时间"
v-if=
"data.trigger_type !== '2'"
>
<template
v-if=
"data.trigger_type === '0'"
>
{{
data
.
trigger_time
}}
</
template
>
<
template
v-if=
"data.trigger_type === '1'"
>
每
{{
data
.
repeat_trigger
.
num
}}
{{
dateType
[
data
.
repeat_trigger
.
date_unit
]
}}
的
{{
data
.
repeat_trigger
.
time
}}
触发
</
template
>
</el-form-item>
</div>
</template>
<
style
>
.answer
{
margin-left
:
30px
;
}
</
style
>
src/components/flow/components/triggeringConditions/realTimeTrigger/ConfigView.vue
浏览文件 @
aa2fc83a
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
ConfigViewTemplate
from
'../../ConfigViewTemplate.vue'
import
ConfigViewTemplate
from
'../../ConfigViewTemplate.vue'
import
Answer
from
'./Answer.vue'
const
role
=
inject
(
'role'
)
as
string
defineProps
<
{
node
:
any
}
>
()
defineProps
<
{
node
:
any
}
>
()
</
script
>
</
script
>
<
template
>
<
template
>
<ConfigViewTemplate
:node=
"node"
>
<ConfigViewTemplate
:node=
"node"
>
<el-form-item
label=
"学生答案"
v-if=
"node.data.student"
>
</el-form-item>
<div
v-if=
"node.data?.student"
>
<el-form-item
label=
"正确答案"
v-if=
"node.data.teacher"
>
</el-form-item>
<el-form-item
:label=
"role === 'student' ? '我的答案' : '学生答案'"
style=
"margin-bottom: 0"
></el-form-item>
<Answer
:data=
"node.data?.student"
></Answer>
</div>
<div
v-if=
"node.data?.teacher"
>
<el-form-item
label=
"正确答案"
style=
"margin-bottom: 0"
></el-form-item>
<Answer
:data=
"node.data?.teacher"
></Answer>
</div>
</ConfigViewTemplate>
</ConfigViewTemplate>
</
template
>
</
template
>
src/components/flow/components/triggeringConditions/weibo/ConfigView.vue
浏览文件 @
aa2fc83a
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
ConfigViewTemplate
from
'../../ConfigViewTemplate.vue'
import
ConfigViewTemplate
from
'../../ConfigViewTemplate.vue'
import
{
useConnection
}
from
'../../../useAllData'
const
role
=
inject
(
'role'
)
as
string
defineProps
<
{
node
:
any
}
>
()
defineProps
<
{
node
:
any
}
>
()
const
operateList
=
[
{
label
:
'关注微博'
,
value
:
'0'
},
{
label
:
'发送私信'
,
value
:
'1'
}
]
const
{
connectionList
}
=
useConnection
()
const
getConnectionLabel
=
function
(
id
:
string
)
{
return
connectionList
.
value
.
find
(
item
=>
item
.
id
===
id
)?.
name
||
''
}
</
script
>
</
script
>
<
template
>
<
template
>
<ConfigViewTemplate
:node=
"node"
>
<ConfigViewTemplate
:node=
"node"
>
<el-form-item
label=
"学生答案"
>
</el-form-item>
<el-form-item
:label=
"role === 'student' ? '我的答案' : '学生答案'"
v-if=
"node.data?.student"
>
<el-form-item
label=
"正确答案"
>
</el-form-item>
{{
operateList
.
find
(
item
=>
item
.
value
===
node
.
data
.
student
?.
operate
)?.
label
||
''
}}
{{
getConnectionLabel
(
node
.
data
.
student
?.
connection_id
)
}}
</el-form-item>
<el-form-item
label=
"正确答案"
v-if=
"node.data?.teacher"
>
{{
operateList
.
find
(
item
=>
item
.
value
===
node
.
data
.
teacher
?.
operate
)?.
label
||
''
}}
{{
getConnectionLabel
(
node
.
data
.
teacher
?.
connection_id
)
}}
</el-form-item>
</ConfigViewTemplate>
</ConfigViewTemplate>
</
template
>
</
template
>
src/components/flow/components/triggeringConditions/wenjuanxing/ConfigView.vue
浏览文件 @
aa2fc83a
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
ConfigViewTemplate
from
'../../ConfigViewTemplate.vue'
import
ConfigViewTemplate
from
'../../ConfigViewTemplate.vue'
import
{
useConnection
}
from
'../../../useAllData'
const
role
=
inject
(
'role'
)
as
string
defineProps
<
{
node
:
any
}
>
()
defineProps
<
{
node
:
any
}
>
()
const
{
connectionList
}
=
useConnection
()
const
operateList
=
[{
label
:
'提交表单'
,
value
:
'0'
}]
const
getConnectionLabel
=
function
(
id
:
string
)
{
return
connectionList
.
value
.
find
(
item
=>
item
.
id
===
id
)?.
name
||
''
}
</
script
>
</
script
>
<
template
>
<
template
>
<ConfigViewTemplate
:node=
"node"
>
<ConfigViewTemplate
:node=
"node"
>
<el-form-item
label=
"学生答案"
>
</el-form-item>
<el-form-item
:label=
"role === 'student' ? '我的答案' : '学生答案'"
v-if=
"node.data?.student"
>
<el-form-item
label=
"正确答案"
>
</el-form-item>
{{
operateList
.
find
(
item
=>
item
.
value
===
node
.
data
.
student
?.
operate
)?.
label
||
''
}}
{{
getConnectionLabel
(
node
.
data
.
student
?.
connection_id
)
}}
</el-form-item>
<el-form-item
label=
"正确答案"
v-if=
"node.data?.teacher"
>
{{
operateList
.
find
(
item
=>
item
.
value
===
node
.
data
.
teacher
?.
operate
)?.
label
||
''
}}
{{
getConnectionLabel
(
node
.
data
.
teacher
?.
connection_id
)
}}
</el-form-item>
</ConfigViewTemplate>
</ConfigViewTemplate>
</
template
>
</
template
>
src/components/flow/components/triggeringConditions/xiaoetong/ConfigView.vue
浏览文件 @
aa2fc83a
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
ConfigViewTemplate
from
'../../ConfigViewTemplate.vue'
import
ConfigViewTemplate
from
'../../ConfigViewTemplate.vue'
import
{
useConnection
}
from
'../../../useAllData'
const
role
=
inject
(
'role'
)
as
string
defineProps
<
{
node
:
any
}
>
()
defineProps
<
{
node
:
any
}
>
()
const
{
connectionList
}
=
useConnection
()
const
operateList
=
[{
label
:
'新用户注册'
,
value
:
'0'
}]
const
getConnectionLabel
=
function
(
id
:
string
)
{
return
connectionList
.
value
.
find
(
item
=>
item
.
id
===
id
)?.
name
||
''
}
</
script
>
</
script
>
<
template
>
<
template
>
<ConfigViewTemplate
:node=
"node"
>
<ConfigViewTemplate
:node=
"node"
>
<el-form-item
label=
"学生答案"
>
</el-form-item>
<el-form-item
:label=
"role === 'student' ? '我的答案' : '学生答案'"
v-if=
"node.data?.student"
>
<el-form-item
label=
"正确答案"
>
</el-form-item>
{{
operateList
.
find
(
item
=>
item
.
value
===
node
.
data
.
student
?.
operate
)?.
label
||
''
}}
{{
getConnectionLabel
(
node
.
data
.
student
?.
connection_id
)
}}
</el-form-item>
<el-form-item
label=
"正确答案"
v-if=
"node.data?.teacher"
>
{{
operateList
.
find
(
item
=>
item
.
value
===
node
.
data
.
teacher
?.
operate
)?.
label
||
''
}}
{{
getConnectionLabel
(
node
.
data
.
teacher
?.
connection_id
)
}}
</el-form-item>
</ConfigViewTemplate>
</ConfigViewTemplate>
</
template
>
</
template
>
src/components/flow/components/triggeringConditions/xiaohongshu/ConfigView.vue
浏览文件 @
aa2fc83a
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
ConfigViewTemplate
from
'../../ConfigViewTemplate.vue'
import
ConfigViewTemplate
from
'../../ConfigViewTemplate.vue'
import
{
useConnection
}
from
'../../../useAllData'
const
role
=
inject
(
'role'
)
as
string
defineProps
<
{
node
:
any
}
>
()
defineProps
<
{
node
:
any
}
>
()
const
{
connectionList
}
=
useConnection
()
const
operateList
=
[
{
label
:
'被用户关注'
,
value
:
'0'
},
{
label
:
'主页被点赞'
,
value
:
'1'
},
{
label
:
'主页被收藏'
,
value
:
'2'
},
{
label
:
'笔记被点赞'
,
value
:
'3'
},
{
label
:
'笔记被收藏'
,
value
:
'4'
},
{
label
:
'笔记被转发'
,
value
:
'5'
}
]
const
getConnectionLabel
=
function
(
id
:
string
)
{
return
connectionList
.
value
.
find
(
item
=>
item
.
id
===
id
)?.
name
||
''
}
</
script
>
</
script
>
<
template
>
<
template
>
<ConfigViewTemplate
:node=
"node"
>
<ConfigViewTemplate
:node=
"node"
>
<el-form-item
label=
"学生答案"
>
</el-form-item>
<el-form-item
:label=
"role === 'student' ? '我的答案' : '学生答案'"
v-if=
"node.data?.student"
>
<el-form-item
label=
"正确答案"
>
</el-form-item>
{{
operateList
.
find
(
item
=>
item
.
value
===
node
.
data
.
student
?.
operate
)?.
label
||
''
}}
{{
getConnectionLabel
(
node
.
data
.
student
?.
connection_id
)
}}
</el-form-item>
<el-form-item
label=
"正确答案"
v-if=
"node.data?.teacher"
>
{{
operateList
.
find
(
item
=>
item
.
value
===
node
.
data
.
teacher
?.
operate
)?.
label
||
''
}}
{{
getConnectionLabel
(
node
.
data
.
teacher
?.
connection_id
)
}}
</el-form-item>
</ConfigViewTemplate>
</ConfigViewTemplate>
</
template
>
</
template
>
src/modules/trip/template/views/Setting.vue
浏览文件 @
aa2fc83a
...
@@ -96,7 +96,7 @@ function handleConfig() {
...
@@ -96,7 +96,7 @@ function handleConfig() {
</el-row>
</el-row>
</el-form>
</el-form>
</el-card>
</el-card>
<TripFlow
v-model=
"elements"
action=
"edit"
role=
"
teacher
"
:templateType=
"detail?.type"
:score=
"score"
>
<TripFlow
v-model=
"elements"
action=
"edit"
role=
"
student
"
:templateType=
"detail?.type"
:score=
"score"
>
<template
#
left-panel
>
<template
#
left-panel
>
<TripFlowSidebar
:connectionIds=
"connectionIds"
/>
<TripFlowSidebar
:connectionIds=
"connectionIds"
/>
</
template
>
</
template
>
...
@@ -125,5 +125,6 @@ function handleConfig() {
...
@@ -125,5 +125,6 @@ function handleConfig() {
v-model=
"configVisible"
v-model=
"configVisible"
:data=
"detail"
:data=
"detail"
v-if=
"configVisible && detail"
v-if=
"configVisible && detail"
@
update=
"fetchConnections"
></BindConnection>
@
update=
"fetchConnections"
></BindConnection>
</template>
</template>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论