Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
saas-dml
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
saas-dml
Commits
d511a02d
提交
d511a02d
authored
4月 06, 2023
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: #3334
上级
a4b9eb91
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
40 行增加
和
13 行删除
+40
-13
Config.vue
...components/conditionalBranch/attributeJudgment/Config.vue
+11
-5
ConfigView.vue
...onents/conditionalBranch/attributeJudgment/ConfigView.vue
+8
-2
Config.vue
...ts/flow/components/marketingAction/changeProps/Config.vue
+9
-1
ConfigView.vue
...low/components/marketingAction/changeProps/ConfigView.vue
+2
-2
Config.vue
...ow/components/triggeringConditions/changeProps/Config.vue
+10
-3
没有找到文件。
src/components/flow/components/conditionalBranch/attributeJudgment/Config.vue
浏览文件 @
d511a02d
...
...
@@ -39,6 +39,10 @@ function addRule() {
function
removeRule
(
index
:
number
)
{
form
.
rules
.
splice
(
index
,
1
)
}
function
getAttr
(
attrId
:
string
)
{
return
userAttrList
.
value
.
find
(
item
=>
item
.
id
===
attrId
)
}
</
script
>
<
template
>
...
...
@@ -53,10 +57,13 @@ function removeRule(index: number) {
v-for=
"item in getOperatorList(rule.attr_type)"
:key=
"item.value"
:value=
"item.value"
:label=
"item.label"
></el-option>
:label=
"item.label"
></el-option>
</el-select>
<el-input
v-model=
"rule.value"
placeholder=
"请输入属性值"
style=
"width: 180px"
></el-input>
<el-input
v-model=
"rule.value"
placeholder=
"请输入属性值"
:maxlength=
"getAttr(rule.attr_id)?.format"
style=
"width: 180px"
></el-input>
<el-icon
style=
"margin-left: 10px"
size=
"20"
color=
"#cf5b78"
@
click=
"removeRule(index)"
v-if=
"index !== 0"
>
<RemoveFilled
/>
</el-icon>
...
...
@@ -65,8 +72,7 @@ function removeRule(index: number) {
size=
"20"
color=
"#cf5b78"
@
click=
"addRule"
v-if=
"index === form.rules.length - 1"
>
v-if=
"index === form.rules.length - 1"
>
<CirclePlusFilled
/>
</el-icon>
</el-row>
...
...
src/components/flow/components/conditionalBranch/attributeJudgment/ConfigView.vue
浏览文件 @
d511a02d
...
...
@@ -22,7 +22,10 @@ function getOperatorList(type: string) {
<ConfigViewTemplate
:node=
"node"
>
<div>
<el-form-item
:label=
"role === 'student' ? '我的答案' : '学生答案'"
style=
"margin-bottom: 0"
></el-form-item>
<el-form-item
v-for=
"item in node.data.student?.rules"
style=
"margin-left: 30px; margin-bottom: 0px"
>
<el-form-item
v-for=
"(item, index) in node.data.student?.rules"
:key=
"index"
style=
"margin-left: 30px; margin-bottom: 0px"
>
{{
userAttrList
.
find
(
c
=>
c
.
id
===
item
?.
attr_id
)?.
name
}}
{{
getOperatorList
(
item
.
attr_type
).
find
(
c
=>
c
.
value
===
item
.
operate
)?.
label
}}
{{
item
.
value
}}
...
...
@@ -30,7 +33,10 @@ function getOperatorList(type: string) {
</div>
<div>
<el-form-item
label=
"正确答案"
style=
"margin-bottom: 0"
></el-form-item>
<el-form-item
v-for=
"item in node.data.teacher?.rules"
style=
"margin-left: 30px; margin-bottom: 0px"
>
<el-form-item
v-for=
"(item, index) in node.data.teacher?.rules"
:key=
"index"
style=
"margin-left: 30px; margin-bottom: 0px"
>
{{
userAttrList
.
find
(
c
=>
c
.
id
===
item
?.
attr_id
)?.
name
}}
{{
getOperatorList
(
item
.
attr_type
).
find
(
c
=>
c
.
value
===
item
.
operate
)?.
label
}}
{{
item
.
value
}}
...
...
src/components/flow/components/marketingAction/changeProps/Config.vue
浏览文件 @
d511a02d
...
...
@@ -23,6 +23,10 @@ function addRule() {
function
removeRule
(
index
:
number
)
{
form
.
rules
.
splice
(
index
,
1
)
}
function
getAttr
(
attrId
:
string
)
{
return
userAttrList
.
value
.
find
(
item
=>
item
.
id
===
attrId
)
}
</
script
>
<
template
>
...
...
@@ -33,7 +37,11 @@ function removeRule(index: number) {
<el-option
:key=
"item.id"
v-for=
"item in userAttrList"
:value=
"item.id"
:label=
"item.name"
></el-option>
</el-select>
<el-button
style=
"margin: 0 10px"
>
=
</el-button>
<el-input
v-model=
"rule.value"
placeholder=
"请输入"
style=
"width: 200px"
></el-input>
<el-input
v-model=
"rule.value"
placeholder=
"请输入"
:maxlength=
"getAttr(rule.attr_id)?.format"
style=
"width: 200px"
></el-input>
<el-icon
style=
"margin-left: 10px"
size=
"20"
color=
"#cf5b78"
@
click=
"removeRule(index)"
v-if=
"index !== 0"
>
<RemoveFilled
/>
</el-icon>
...
...
src/components/flow/components/marketingAction/changeProps/ConfigView.vue
浏览文件 @
d511a02d
...
...
@@ -13,7 +13,7 @@ const { userAttrList } = useUserAttr()
<ConfigViewTemplate
:node=
"node"
>
<div>
<el-form-item
:label=
"role === 'student' ? '我的答案' : '学生答案'"
style=
"margin-bottom: 0"
></el-form-item>
<el-form-item
v-for=
"
item in node.data.student?.rules
"
style=
"margin-left: 30px"
>
<el-form-item
v-for=
"
(item, index) in node.data.student?.rules"
:key=
"index
"
style=
"margin-left: 30px"
>
{{
userAttrList
.
find
(
c
=>
c
.
id
===
item
.
attr_id
)?.
name
}}
=
{{
item
.
value
}}
...
...
@@ -21,7 +21,7 @@ const { userAttrList } = useUserAttr()
</div>
<div>
<el-form-item
label=
"正确答案"
style=
"margin-bottom: 0"
></el-form-item>
<el-form-item
v-for=
"
item in node.data.teacher?.rules
"
style=
"margin-left: 30px"
>
<el-form-item
v-for=
"
(item, index) in node.data.teacher?.rules"
:key=
"index
"
style=
"margin-left: 30px"
>
{{
userAttrList
.
find
(
c
=>
c
.
id
===
item
.
attr_id
)?.
name
}}
=
{{
item
.
value
}}
...
...
src/components/flow/components/triggeringConditions/changeProps/Config.vue
浏览文件 @
d511a02d
...
...
@@ -35,6 +35,10 @@ function onAttrChange() {
form
.
operate
=
''
form
.
value
=
''
}
function
getAttr
(
attrId
:
string
)
{
return
userAttrList
.
value
.
find
(
item
=>
item
.
id
===
attrId
)
}
</
script
>
<
template
>
...
...
@@ -50,10 +54,13 @@ function onAttrChange() {
v-for=
"item in operatorList"
:key=
"item.value"
:value=
"item.value"
:label=
"item.label"
></el-option>
:label=
"item.label"
></el-option>
</el-select>
<el-input
v-model=
"form.value"
placeholder=
"请输入"
style=
"width: 200px"
></el-input>
<el-input
v-model=
"form.value"
placeholder=
"请输入"
:maxlength=
"getAttr(form.attr_id)?.format"
style=
"width: 200px"
></el-input>
</div>
<p
style=
"font-size: 12px; text-align: right; color: #ccc"
>
所选择属性满足该条件的用户,将会触发该旅程
</p>
</div>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论