|
@@ -8,13 +8,15 @@
|
|
|
<CardGrid class="!md:w-1/3 !w-full">
|
|
|
<span class="flex">
|
|
|
<Icon :icon="item.icon" :color="item.color" size="30" />
|
|
|
- <span class="text-lg ml-4">{{ item.title }}</span>
|
|
|
+ <span class="ml-4">{{ item.name }}</span>
|
|
|
</span>
|
|
|
- <div class="flex mt-2 h-10 text-secondary"> {{ item.desc }} </div>
|
|
|
- <div class="flex justify-between text-secondary">
|
|
|
+ <div class="mt-2 h-10 text-secondary">
|
|
|
+ 您当前有<a :href="item.url">{{ item.description }}</a>条数据待处理!
|
|
|
+ </div>
|
|
|
+ <!-- <div class="flex justify-between text-secondary">
|
|
|
<span>{{ item.group }}</span>
|
|
|
<span>{{ item.date }}</span>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
</CardGrid>
|
|
|
</template>
|
|
|
</Card>
|
|
@@ -23,12 +25,32 @@
|
|
|
import { defineComponent } from 'vue';
|
|
|
import { Card } from 'ant-design-vue';
|
|
|
import { Icon } from '/@/components/Icon';
|
|
|
- import { groupItems } from './data';
|
|
|
+ // import { groupItems } from './data';
|
|
|
|
|
|
export default defineComponent({
|
|
|
components: { Card, CardGrid: Card.Grid, Icon },
|
|
|
- setup() {
|
|
|
- return { items: groupItems };
|
|
|
- },
|
|
|
+ // setup() {
|
|
|
+ // return { items: groupItems };
|
|
|
+ // },
|
|
|
+ });
|
|
|
+</script>
|
|
|
+
|
|
|
+<script lang="ts" setup>
|
|
|
+ import { defHttp } from '/@/utils/http/axios';
|
|
|
+ import { ref, onMounted } from 'vue';
|
|
|
+ import { groupItems } from './data';
|
|
|
+ const items = ref(groupItems);
|
|
|
+
|
|
|
+ onMounted(() => {
|
|
|
+ loadData();
|
|
|
});
|
|
|
+ async function loadData() {
|
|
|
+ try {
|
|
|
+ const res = await defHttp.get({ url: '/purCode/purOrder/getMsgByLogin' })
|
|
|
+ items.value = Array.isArray(res) ? res : [];
|
|
|
+ } catch (error) {
|
|
|
+ console.error(error);
|
|
|
+ items.value = [];
|
|
|
+ }
|
|
|
+ }
|
|
|
</script>
|