Commit 0465c6db by crushh

update: temp

parent 17967765
......@@ -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 = '';
......
......@@ -34,6 +34,11 @@ export default {
meta: {
type: 'info'
}
},
{
path: 'rule',
name: '规则筛选器',
component: () => import('../../views/ai/ruleFilter.vue')
}
]
};
<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>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment