Compare commits
No commits in common. "257de521eee88daa61a676a9a3e8735ec11a047d" and "7b33296a78a6bf6c54c4c6a2ee3fd23216792fc6" have entirely different histories.
257de521ee
...
7b33296a78
|
|
@ -10,7 +10,7 @@
|
||||||
:canExpan="false"
|
:canExpan="false"
|
||||||
>
|
>
|
||||||
<template #extra>
|
<template #extra>
|
||||||
<!-- <router-link :to='item.action'>查看详情</router-link>-->
|
<router-link :to='item.action'>查看详情</router-link>
|
||||||
<!-- <Tag :color="item.color">{{ item.action }}</Tag> -->
|
<!-- <Tag :color="item.color">{{ item.action }}</Tag> -->
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -36,35 +36,24 @@
|
||||||
import { ref, onMounted } from 'vue';
|
import { ref, onMounted } from 'vue';
|
||||||
import { growCardListSummary} from '../api';
|
import { growCardListSummary} from '../api';
|
||||||
|
|
||||||
const growCardList =ref([]);
|
const growCardList =ref('');
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
|
||||||
getSummary();
|
getSummary();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
function getSummary() {
|
function getSummary() {
|
||||||
growCardListSummary().then((res) => {
|
growCardListSummary().then((res) => {
|
||||||
|
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
growCardList.value = res.result;
|
growCardList.value = res.result
|
||||||
let has = false;
|
|
||||||
growCardList.value.map((item) => {
|
|
||||||
if(item.title.indexOf('监控')){
|
|
||||||
has = true;
|
|
||||||
}
|
|
||||||
})
|
|
||||||
if(!has){
|
|
||||||
growCardList.value.push({
|
|
||||||
'action': '/appmana/liveCamra/index2',
|
|
||||||
'color': 'purple',
|
|
||||||
'icon': '',
|
|
||||||
'title': '监控数量',
|
|
||||||
'total': 4,
|
|
||||||
'value': 4,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
}
|
}
|
||||||
});
|
})
|
||||||
};
|
}
|
||||||
|
|
||||||
|
|
||||||
defineProps({
|
defineProps({
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue