Browse Source

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

pull/189/MERGE
小诺 11 months ago committed by 俞宝山
parent
commit
07fe4f8141
  1. 55
      snowy-admin-web/src/views/sys/org/detail.vue
  2. 17
      snowy-admin-web/src/views/sys/org/tests.vue

55
snowy-admin-web/src/views/sys/org/detail.vue

@ -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>

17
snowy-admin-web/src/views/sys/org/tests.vue

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