product_decision_flow.js 3.6 KB
import request from "@/utils/request";

// 决策流配置管理列表查询
export function strategyConfigList(query) {
  return request({
    url: "/engine-strategy/strategyConfig/page",
    method: "get",
    params: query,
  });
}

// 下一步
export function strategyConfigNext(query) {
  return request({
    url: "/engine-strategy/strategyConfig/next",
    method: "post",
    data: query,
  });
}

// 决策流配置  完成策略配置 
export function strategyConfigFinish(query) {
  return request({
    url: "/engine-strategy/strategyConfig/finish",
    method: "post",
    data: query,
  });
}

// 复制决策流配置 
export function strategyConfigCopy(query) {
  return request({
    url: "/engine-strategy/strategyConfig/copy",
    method: "post",
    data: query,
  });
}

// 启用决策流配置
export function strategyConfigEnable(query) {
  return request({
    url: "/engine-strategy/strategyConfig/enable",
    method: "post",
    data: query,
  });
}

// 禁用决策流配置 
export function strategyConfigDisable(query) {
  return request({
    url: "/engine-strategy/strategyConfig/disable",
    method: "post",
    data: query,
  });
}


// 上传xml
export function activityUpload(query) {
  return request({
    url: "/engine-strategy/activity/upload",
    method: "post",
    data: query,
  });
}

export function strategyConfigUpload(query) {
  return request({
    url: "/engine-strategy/strategyConfig/upload",
    method: "post",
    data: query,
  });
}

// 模糊查询指标
export function targetBaseVagueName(query) {
  return request({
    url: "/engine-strategy/targetBase/vagueName",
    method: "post",
    data: query,
  });
}

// xml流程图保存
export function flowChartSave(query) {
  return request({
    url: "/engine-strategy/strategyConfig/flowChartSave",
    method: "post",
    data: query,
  });
}

// 查询决策流明细
export function strategyConfigGetOne(query) {
  return request({
    url: "/engine-strategy/strategyConfig/findById",
    method: "post",
    data: query,
  });
}

// 决策节点规则集查询
export function strategyRuleList(query) {
  return request({
    url: "/engine-strategy/strategyRule/list",
    method: "post",
    data: query,
  });
}

// 决策节点查询
export function strategyGroupList(query) {
  return request({
    url: "/engine-strategy/strategyGroup/list",
    method: "post",
    data: query,
  });
}

// 新增一条规则保存
export function strategyRuleSave(query) {
  return request({
    url: "/engine-strategy/strategyRule/save",
    method: "post",
    data: query,
  });
}

// 刪除一条规则
export function strategyRuleDelete(query) {
  return request({
    url: "/engine-strategy/strategyRule/delete",
    method: "post",
    data: query,
  });
}

// 规则 修改执行顺序
export function adjustExecIndex(query) {
  return request({
    url: "/engine-strategy/strategyRule/adjustExecIndex",
    method: "post",
    data: query,
  });
}

// 删除一条策略
export function strategyConfigDelete(query) {
  return request({
    url: "/engine-strategy/strategyConfig/delete",
    method: "post",
    data: query,
  });
}

// 配置策略时 查询产品
export function productDown(query) {
  return request({
    url: "/engine-strategy/businessSource/productDown",
    method: "post",
    data: query,
  });
}

// 获取额度测算模块
export function getAllModel(query) {
  return request({
    url: "/engine-strategy/modelManager/getAll",
    method: "post",
    data: query,
  });
}
// 查询字典数据列表
export function listData(query) {
  return request({
    url: '/system/dict/data/list',
    method: 'get',
    params: query
  })
}