dsy преди 1 седмица
родител
ревизия
f8b2cfc0b8
променени са 4 файла, в които са добавени 25 реда и са изтрити 4 реда
  1. 1 1
      .env
  2. 1 1
      package.json
  3. 9 0
      src/api/project.js
  4. 14 2
      src/views/personal_workbench/project/index.vue

+ 1 - 1
.env

@@ -11,4 +11,4 @@ VUE_APP_BookWebSI = '/GCLSBookWebSI/ServiceInterface'
 VUE_APP_EepServer = '/EEPServer/SI'
 
 #version
-VUE_APP_VERSION = '2025.11.21'
+VUE_APP_VERSION = '2025.11.31'

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "eep_page",
-  "version": "2025.12.27",
+  "version": "2025.12.31",
   "private": true,
   "main": "main.js",
   "description": "智慧梧桐数字教材编辑器",

+ 9 - 0
src/api/project.js

@@ -269,6 +269,15 @@ export function RollbackProject(data) {
 }
 
 /**
+ * @description 删除项目
+ * @param {object} data
+ * @param {string} data.id 项目ID
+ */
+export function DeleteProject(data) {
+  return http.post(`${process.env.VUE_APP_EepServer}?MethodName=project_manager-DeleteProject`, data);
+}
+
+/**
  * @description 驳回退改项目申请
  * @param {object} data
  * @param {string} data.project_id 项目ID

+ 14 - 2
src/views/personal_workbench/project/index.vue

@@ -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: '已取消删除' });
+        });
     },
   },
 };