This commit is contained in:
shijing 2022-05-30 10:08:00 +08:00
parent 177531485a
commit 0dc4b56a13
3 changed files with 75 additions and 3 deletions

View File

@ -197,10 +197,24 @@ export function qactionMy(query) {
}) })
} }
//报送操作操作记录 //报送操作操作记录
export function qaction(id) { export function qactionItem(id) {
return request({ return request({
url:`/ability/qaction/${id}/`, url:`/ability/qaction/${id}/`,
method:'get', 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',
})
}

View File

@ -136,7 +136,7 @@ export const asyncRoutes = [
path: 'qactionMy', path: 'qactionMy',
name: 'qactionMy', name: 'qactionMy',
component: () => import('@/views/ability/qactionMy.vue'), component: () => import('@/views/ability/qactionMy.vue'),
meta: { title: '我的报送操作', perms: ['qtask_my'] } meta: { title: '资质报送操作', perms: ['qtask_my'] }
}, },
/* { /* {
path: 'content', path: 'content',

View File

@ -71,6 +71,30 @@
<el-table-column label="变更日期"> <el-table-column label="变更日期">
<template slot-scope="scope">{{scope.row.update_time.substring(0, 10)}}</template> <template slot-scope="scope">{{scope.row.update_time.substring(0, 10)}}</template>
</el-table-column> </el-table-column>
<el-table-column
align="center"
label="操作"
fixed="right"
>
<template slot-scope="scope">
<el-link
v-if="checkPermission(['qaction_confirm'])"
type="warning"
size="small"
icon="el-icon-s-promotion"
@click="handleDelete(scope)"
>删除
</el-link>
<el-link
v-if="checkPermission(['qaction_confirm'])"
type="primary"
size="small"
icon="el-icon-s-promotion"
@click="handleCheck(scope)"
>审核
</el-link>
</template>
</el-table-column>
</el-table> </el-table>
<pagination <pagination
@ -88,7 +112,7 @@
<script> <script>
import {getOrgList} from "@/api/org"; import {getOrgList} from "@/api/org";
import {getCMAGroup} from "@/api/cma"; 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 checkPermission from "@/utils/permission";
import Pagination from "@/components/Pagination"; import Pagination from "@/components/Pagination";
@ -151,6 +175,40 @@
this.listQuery.qtask = ''; this.listQuery.qtask = '';
this.listQuery.search = ''; 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) => {
});
},
}, },
} }
</script> </script>