|
|
@@ -35,6 +35,7 @@ import MenuPage from '../common/menu.vue';
|
|
|
import PaginationPage from '@/components/PaginationPage.vue';
|
|
|
|
|
|
import { PageQueryMyProjectList_Leader } from '@/api/list.js';
|
|
|
+import { DeleteProject } from '@/api/project';
|
|
|
|
|
|
export default {
|
|
|
name: 'ProjectPage',
|
|
|
@@ -89,8 +90,19 @@ export default {
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning',
|
|
|
})
|
|
|
- .then(() => {})
|
|
|
- .catch(() => {});
|
|
|
+ .then(() => {
|
|
|
+ DeleteProject({ id })
|
|
|
+ .then(() => {
|
|
|
+ this.$message({ type: 'success', message: '项目删除成功' });
|
|
|
+ this.$refs.pagination.getList();
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.$message({ type: 'error', message: '项目删除失败' });
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.$message({ type: 'info', message: '已取消删除' });
|
|
|
+ });
|
|
|
},
|
|
|
},
|
|
|
};
|