【更新】删除误提交测试代码

pull/189/MERGE
小诺 2023-12-31 13:09:22 +08:00 committed by 俞宝山
parent 4f9de9fc9a
commit 07fe4f8141
2 changed files with 0 additions and 72 deletions

View File

@ -1,55 +0,0 @@
<template>
<a-card :bordered="false">
<xn-card-list
:data-source="cardListData"
:page="page"
/>
</a-card>
</template>
<script setup name="orgDetail">
import orgApi from '@/api/sys/orgApi'
const cardListData = ref([])
const page = ref({
current: 0,
size: 0,
total: 0
})
onMounted(() => {
orgApi.orgPage().then((data) => {
page.value.current = data.current
page.value.size = data.size
page.value.total = data.total
// 使map
cardListData.value = data.records.map((m) => {
let color = '#1890FF'
let a = 0;
if (a === 1) {
color = '#f60808'
a++
}
if (a === 4) {
color = 'green'
a++
}
return {
title: '高可用服务器',
subTitle: '使用部门:' + m.name,
img: 'https://img1.baidu.com/it/u=3581489623,785459337&fm=253&fmt=auto&app=138&f=JPG?w=500&h=360',
contents: [
{
label: '标题',
value: m.id
}
],
badge: {
text: m.category,
color: color
},
record: []
}
})
})
})
</script>

View File

@ -1,17 +0,0 @@
<template>
<div>
测试界面
</div>
</template>
<script>
export default {
name: "tests"
}
</script>
<style scoped>
</style>