diff --git a/escheduler-ui/src/font/demo_index.html b/escheduler-ui/src/font/demo_index.html index 1671172845..af55eca421 100644 --- a/escheduler-ui/src/font/demo_index.html +++ b/escheduler-ui/src/font/demo_index.html @@ -252,6 +252,12 @@

+
  • + +
    icon_禁止
    +
    
    +
  • +
  • 1116加载中
    @@ -881,6 +887,15 @@
  • +
  • + +
    + icon_禁止 +
    +
    .icon-icon_jinzhi +
    +
  • +
  • @@ -1575,6 +1590,14 @@
    #icon-tuichufffpx
  • +
  • + +
    icon_禁止
    +
    #icon-icon_jinzhi
    +
  • +
  • ` +} + /** - * 返回节点html + * return node html */ -const rtTasksTpl = ({ id, name, x, y, targetarr, isAttachment, taskType }) => { +const rtTasksTpl = ({ id, name, x, y, targetarr, isAttachment, taskType,runFlag }) => { let tpl = `` tpl += `
    ` tpl += `
    ` - tpl += `
    ` - tpl += `
    ` - tpl += `${name}` + tpl += `
    ` + tpl += `
    ` + tpl += `${name}` tpl += `
    ` tpl += `
    ` + tpl += `
    ` + if (runFlag === 'FORBIDDEN') { + tpl += rtBantpl() + } + tpl += `
    ` tpl += `
    ` + return tpl } /** - * 获取所有tasks节点 + * Get all tasks nodes */ const tasksAll = () => { let a = [] @@ -71,8 +82,8 @@ const tasksAll = () => { } /** - * 判断 name 是否在当前的dag图中 - * rely dom / backfill dom元素 回填 + * Determine if name is in the current dag map + * rely dom / backfill */ const isNameExDag = (name, rely) => { if (rely === 'dom') { @@ -83,17 +94,17 @@ const isNameExDag = (name, rely) => { } /** - * 更改svg线条颜色 + * Change svg line color */ const setSvgColor = (e, color) => { - // 遍历 清除所有颜色 + // Traverse clear all colors $('.jtk-connector').each((i, o) => { _.map($(o)[0].childNodes, v => { $(v).attr('fill', '#555').attr('stroke', '#555').attr('stroke-width', 2) }) }) - // 给选择的添加颜色 + // Add color to the selection _.map($(e.canvas)[0].childNodes, (v, i) => { $(v).attr('fill', color).attr('stroke', color) if ($(v).attr('class')) { @@ -103,7 +114,7 @@ const setSvgColor = (e, color) => { } /** - * 获取所有节点id + * Get all node ids */ const allNodesId = () => { let idArr = [] @@ -127,5 +138,6 @@ export { tasksAll, isNameExDag, setSvgColor, - allNodesId + allNodesId, + rtBantpl }