|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div class="pageWrap">
|
|
|
+ <div class="flex-column-page-wrap pageWrap">
|
|
|
<div style="padding: 10px">
|
|
|
<el-card class="box-card">
|
|
|
<el-collapse v-model="activeNames" @change="handleChange">
|
|
@@ -7,13 +7,15 @@
|
|
|
<el-row>
|
|
|
<el-col
|
|
|
v-for="i_children in item.processList"
|
|
|
+ :key="i_children.processId"
|
|
|
:span="6"
|
|
|
style="padding-left: 8px; padding-right: 8px; margin-bottom: 12px; cursor: pointer"
|
|
|
>
|
|
|
<div class="card-in" @click="testEv">
|
|
|
- <div class="flow-icon">
|
|
|
+ <LeIcon class="flow-icon" :icon-class="`${flowIconPrefix}${i_children.processIcon}`" />
|
|
|
+ <!-- <div class="flow-icon">
|
|
|
<img :src="getAssetsFile(i_children.processIcon + '.svg')" />
|
|
|
- </div>
|
|
|
+ </div>-->
|
|
|
<div class="space space-vertical">
|
|
|
<div class="space-item">
|
|
|
<div class="first-edit">
|
|
@@ -42,7 +44,7 @@ import { ref, onMounted } from 'vue'
|
|
|
const input = ref('')
|
|
|
const activeNames = ref(['1'])
|
|
|
import model from '@/api/flow/process'
|
|
|
-import { getAssetsFile } from '@/utils/index'
|
|
|
+import { flowIconPrefix/*, getAssetsFile*/ } from '@/utils/index'
|
|
|
const startList = ref([])
|
|
|
const handleChange = val => {
|
|
|
console.log(val)
|
|
@@ -52,7 +54,7 @@ const handleChange = val => {
|
|
|
const listEv = async () => {
|
|
|
const res = await model.launchProcessListApi()
|
|
|
startList.value = res || []
|
|
|
- activeNames.value = res.length ? [res[0].categoryName] : ['']
|
|
|
+ activeNames.value = startList.value.map(v => v.categoryName)
|
|
|
}
|
|
|
|
|
|
const testEv = () => {
|
|
@@ -66,7 +68,7 @@ onMounted(() => {
|
|
|
<style scoped lang="scss">
|
|
|
.pageWrap {
|
|
|
//height: 100%;
|
|
|
- overflow-x: scroll;
|
|
|
+ //overflow-x: scroll;
|
|
|
//background: #fff;
|
|
|
}
|
|
|
.card-in {
|
|
@@ -105,15 +107,8 @@ onMounted(() => {
|
|
|
}
|
|
|
}
|
|
|
.flow-icon {
|
|
|
- flex: 0 0 66px;
|
|
|
-
|
|
|
- img {
|
|
|
- flex: 0 0 auto;
|
|
|
- height: 100%;
|
|
|
- border-radius: 8px;
|
|
|
- vertical-align: middle;
|
|
|
- border-style: none;
|
|
|
- }
|
|
|
+ font-size: 66px;
|
|
|
+ flex-shrink: 0;
|
|
|
}
|
|
|
.space {
|
|
|
display: inline-flex;
|