| | |
| | | * @Author: 胡思旗 931347610@qq.com |
| | | * @Date: 2023-08-28 15:23:47 |
| | | * @LastEditors: husq 931347610@qq.com |
| | | * @LastEditTime: 2023-08-30 15:30:19 |
| | | * @LastEditTime: 2023-09-01 17:29:16 |
| | | * @FilePath: \Cloud-API-Demo-Web\src\pages\page-web\projects\project_list\list_page\components\ProjectList.vue |
| | | * @Description:项目列表组件 |
| | | * |
| | |
| | | <template #overlay> |
| | | <a-menu> |
| | | <a-menu-item> |
| | | <a href="javascript:;">编辑</a> |
| | | <a @click="goEdit(item)">编辑</a> |
| | | </a-menu-item> |
| | | <a-menu-item> |
| | | <a @click="editStatus(item)">归档</a> |
| | |
| | | <script setup lang="ts"> |
| | | import { DashOutlined, UserOutlined, ExportOutlined, ExclamationCircleOutlined } from '@ant-design/icons-vue' |
| | | import { defineEmits, defineProps, createVNode } from 'vue' |
| | | import { ERouterName } from '/@/types/index' |
| | | import { status, projectCard } from './data' |
| | | import { del, edit } from '/@/api/project-page' |
| | | import { Modal, message } from 'ant-design-vue' |
| | | |
| | | const router = useRouter() |
| | | const emit = defineEmits(['refreshList']) |
| | | const props = defineProps({ |
| | | cardList: { |
| | |
| | | }) |
| | | } |
| | | |
| | | const goEdit = (item:any) => { |
| | | console.log(item) |
| | | router.push({ |
| | | name: ERouterName.EDIT_PROJECT, |
| | | query: { id: item.id } |
| | | }) |
| | | } |
| | | |
| | | </script> |
| | | |
| | | <style scoped lang="scss"> |