Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
marketing-web
marketing
Commits
0465c6db
Commit
0465c6db
authored
Mar 24, 2022
by
crushh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: temp
parent
17967765
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
74 additions
and
1 deletions
+74
-1
index.js
src/components/dm-new-member-group/index.js
+0
-1
ai.js
src/router/modules/ai.js
+5
-0
ruleFilter.vue
src/views/ai/ruleFilter.vue
+69
-0
No files found.
src/components/dm-new-member-group/index.js
View file @
0465c6db
...
...
@@ -7,7 +7,6 @@ import gicNewMemberGroup from './index.vue'; // 导入组件
// if (typeof window !== 'undefined' && window.Vue) {
// window.Vue.use(gicNewMemberGroup);
// }
const
host
=
window
.
location
.
origin
;
export
let
baseUrl
=
''
;
...
...
src/router/modules/ai.js
View file @
0465c6db
...
...
@@ -34,6 +34,11 @@ export default {
meta
:
{
type
:
'info'
}
},
{
path
:
'rule'
,
name
:
'规则筛选器'
,
component
:
()
=>
import
(
'../../views/ai/ruleFilter.vue'
)
}
]
};
src/views/ai/ruleFilter.vue
0 → 100644
View file @
0465c6db
<
template
>
<el-dialog
title=
"设置规则"
:visible
.
sync=
"tagsDialogVisible"
width=
"900px"
>
<div
class=
"ruleContainer"
>
<el-tabs
tab-position=
"left"
style=
"height: 200px;"
@
tab-click=
"onTabsClick"
>
<el-tab-pane
:label=
"item.chainNodeName"
v-for=
"item in conditionTypeList"
:key=
"item.esScreeningWidgetChainId"
:name=
"item.esScreeningWidgetChainId"
>
{{
item
.
chainNodeName
}}
</el-tab-pane>
</el-tabs>
</div>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"tagsDialogVisible = false"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"confirmTagsDialog"
>
确定
</el-button>
</div>
</el-dialog>
</
template
>
<
script
>
import
qs
from
'qs'
;
export
default
{
data
()
{
return
{
conditionTypeList
:
[],
tagsDialogVisible
:
true
};
},
mounted
()
{
this
.
getDataList
();
},
methods
:
{
onTabsClick
(
val
)
{
console
.
log
(
val
);
const
{
name
}
=
val
;
this
.
getNode
(
name
);
},
// 获取列表
getDataList
()
{
let
para
=
{
sceneCode
:
'member02'
,
requestProject
:
'gic-web'
};
this
.
axios
.
post
(
'/api-plug/get-screening-init-data'
,
qs
.
stringify
(
para
))
.
then
(
res
=>
{
let
resData
=
res
.
data
;
if
(
resData
.
errorCode
==
0
)
{
this
.
conditionTypeList
=
resData
.
result
;
return
;
}
this
.
$message
.
error
({
duration
:
1000
,
message
:
resData
.
message
});
})
.
catch
(
error
=>
{
this
.
$message
.
error
({
duration
:
1000
,
message
:
error
.
message
});
});
},
getNode
(
widgetChainId
)
{
this
.
axios
.
get
(
`/api-plug/get-screening-widget-chain-detail?requestProject=gic-web&widgetChainId=
${
widgetChainId
}
`
).
then
(
res
=>
{
const
result
=
res
.
data
.
result
;
// 返回的结果 从第一层开始
console
.
log
(
result
);
});
}
}
};
</
script
>
<
style
></
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment