Merge branch 'hi-ucs-dev' of http://15.2.21.221:3000/wuhongjian/hi-ucs into hi-ucs-dev

This commit is contained in:
gaoyuanwei 2022-07-01 15:59:12 +08:00
commit 5d8416a0a4
5 changed files with 29 additions and 7 deletions

View File

@ -22,7 +22,7 @@
</el-tooltip> </el-tooltip>
</div> </div>
<div class="more"> <div class="more" @click="goPage(dataInfo.url)">
查看更多 > 查看更多 >
</div> </div>
</div> </div>
@ -51,7 +51,12 @@ export default {
methods: { methods: {
formatNum(num) { formatNum(num) {
return num || num === 0 ? num : '--' return num || num === 0 ? num : '--'
} },
goPage(url) {
this.$router.push({
path: url
});
},
} }
} }
</script> </script>

View File

@ -54,7 +54,8 @@ export default {
textColor: '#f86f01', textColor: '#f86f01',
num: 0, num: 0,
list: [], list: [],
nameStr: 'taskName' nameStr: 'taskName',
url: 'activiti-my-todo-task'
}, },
// //
hasToDodoData: { hasToDodoData: {
@ -66,7 +67,8 @@ export default {
textColor: '#21b107', textColor: '#21b107',
num: 0, num: 0,
list: [], list: [],
nameStr: 'processDefinitionName' nameStr: 'processDefinitionName',
url: 'activiti-my-join-task'
}, },
// //
resourceData: [], resourceData: [],

View File

@ -12,6 +12,7 @@
<!-- 导航 --> <!-- 导航 -->
<developer-navigation <developer-navigation
:dataList="dataList.data" :dataList="dataList.data"
:associatedComponents="associatedComponents"
:class="{ fixed: scrollTop >= 600 }" :class="{ fixed: scrollTop >= 600 }"
:selectNow="selectNow" :selectNow="selectNow"
></developer-navigation> ></developer-navigation>

View File

@ -41,9 +41,10 @@
}, },
}) })
} }
if (props.associatedComponents) { if (props.associatedComponents[0].dataList.length != 0) {
flag.value = true flag.value = true
dataFrom.value = props.associatedComponents dataFrom.value = props.associatedComponents
debugger
console.log('dataFrom.value', dataFrom.value) console.log('dataFrom.value', dataFrom.value)
} else { } else {
flag.value = false flag.value = false

View File

@ -60,6 +60,7 @@
const props = defineProps({ const props = defineProps({
selectNow: { type: String, default: '' }, selectNow: { type: String, default: '' },
dataList: { type: Object, default: null }, dataList: { type: Object, default: null },
associatedComponents: { type: Array, default: null },
}) })
const select = ref('algorithm-display') const select = ref('algorithm-display')
const list = ref([]) const list = ref([])
@ -84,8 +85,14 @@
navList.value.forEach((item) => { navList.value.forEach((item) => {
console.log(item) console.log(item)
if (list.value.indexOf(item.name) > -1) { if (list.value.indexOf(item.name) > -1) {
if (item.name == '关联能力') {
if (props.associatedComponents[0].dataList.length != 0) {
item.show = true item.show = true
} }
} else {
item.show = true
}
}
}) })
select.value = navList.value.filter( select.value = navList.value.filter(
(item) => item.name === list.value[0] (item) => item.name === list.value[0]
@ -121,8 +128,14 @@
navList.value.forEach((item) => { navList.value.forEach((item) => {
console.log(item) console.log(item)
if (list.value.indexOf(item.name) > -1) { if (list.value.indexOf(item.name) > -1) {
if (item.name == '关联能力') {
if (props.associatedComponents[0].dataList.length != 0) {
item.show = true item.show = true
} }
} else {
item.show = true
}
}
}) })
if (list.value.length > 0) { if (list.value.length > 0) {
select.value = navList.value.filter( select.value = navList.value.filter(