222
schangxiang@126.com
2025-04-30 9bec4dcae002f36aa23231da11cb03a156b40110
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import { defineComponent, Fragment } from 'vue'
import Icon from '../Icon/Icon'
import styles from './ProcessRoutes.module.scss'
export default defineComponent({
  props: ['row'],
  setup(props, ctx) {
    return () => {
      const row = props.row
      return row.pocessRoutes.length ? (
        <el-popover
          placement="bottom"
          width={1072}
          vSlots={{
            reference: () => (
              <Icon icon="icon_process" width={64} height={10} />
            ),
            default: () => (
              <div class={styles.processStep}>
                {row.pocessRoutes.map((item: string, index: number) => (
                  <Fragment>
                    <div class={styles.stepItem}>
                      <el-tooltip
                        effect="dark"
                        content={item}
                        placement="top"
                        show-after={200}
                      >
                        <span class={styles.stepName}>{item}</span>
                      </el-tooltip>
                    </div>
                    <Icon
                      icon={`processStep${(index % 4) + 1}`}
                      width={19}
                      height={10}
                      class={styles.stepIcon}
                    />
                  </Fragment>
                ))}
              </div>
            ),
          }}
        ></el-popover>
      ) : (
        <Icon icon="not-config" width={64} height={10} />
      )
    }
  },
})