diff --git a/client/src/api/ability.js b/client/src/api/ability.js
index 1f97b9f..51a6852 100644
--- a/client/src/api/ability.js
+++ b/client/src/api/ability.js
@@ -197,10 +197,24 @@ export function qactionMy(query) {
})
}
//报送操作操作记录
-export function qaction(id) {
+export function qactionItem(id) {
return request({
url:`/ability/qaction/${id}/`,
method:'get',
})
}
+//报送操作操作记录queren
+export function qactionConfirm(id) {
+ return request({
+ url:`/ability/qaction/${id}/confirm/`,
+ method:'put',
+ })
+}
+//报送操作操作记录del
+export function qactionDelete(id) {
+ return request({
+ url:`/ability/qaction/${id}/`,
+ method:'delete',
+ })
+}
diff --git a/client/src/router/index.js b/client/src/router/index.js
index e87f730..388abc8 100644
--- a/client/src/router/index.js
+++ b/client/src/router/index.js
@@ -136,7 +136,7 @@ export const asyncRoutes = [
path: 'qactionMy',
name: 'qactionMy',
component: () => import('@/views/ability/qactionMy.vue'),
- meta: { title: '我的报送操作', perms: ['qtask_my'] }
+ meta: { title: '资质报送操作', perms: ['qtask_my'] }
},
/* {
path: 'content',
diff --git a/client/src/views/ability/qactionMy.vue b/client/src/views/ability/qactionMy.vue
index 87b8f7f..65e792d 100644
--- a/client/src/views/ability/qactionMy.vue
+++ b/client/src/views/ability/qactionMy.vue
@@ -71,6 +71,30 @@
{{scope.row.update_time.substring(0, 10)}}
+
+
+ 删除
+
+ 审核
+
+
+
import {getOrgList} from "@/api/org";
import {getCMAGroup} from "@/api/cma";
- import { qactionMy,getQtask } from "@/api/ability";
+ import { qactionMy,getQtask,qactionDelete,qactionConfirm,qactionItem } from "@/api/ability";
import checkPermission from "@/utils/permission";
import Pagination from "@/components/Pagination";
@@ -151,6 +175,40 @@
this.listQuery.qtask = '';
this.listQuery.search = '';
},
+ handleDelete(scope) {
+ this.$confirm("确认删除?", "警告", {
+ confirmButtonText: "确认",
+ cancelButtonText: "取消",
+ type: "error",
+ })
+ .then(async () => {
+ await qactionDelete(scope.row.id);
+ this.getList();
+ this.$message({
+ type: "success",
+ message: "成功删除!",
+ });
+ })
+ .catch((err) => {
+ });
+ },
+ handleCheck(scope){
+ this.$confirm("确认审核通过?", "提示", {
+ confirmButtonText: "确认",
+ cancelButtonText: "取消",
+ type: "warning",
+ })
+ .then(async () => {
+ await qactionConfirm(scope.row.id);
+ this.getList();
+ this.$message({
+ type: "success",
+ message: "操作成功!",
+ });
+ })
+ .catch((err) => {
+ });
+ },
},
}