优化基地区级审核

This commit is contained in:
sk1551 2020-08-22 11:01:46 +08:00
parent 2831d912f7
commit 708bee6eee
4 changed files with 2796 additions and 37 deletions

View File

@ -108,4 +108,14 @@ public class TsbzJxzxpxfaController extends BaseController {
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(tsbzJxzxpxfaService.deleteTsbzJxzxpxfaByIds(ids));
}
/**
* 复制见习之星评选方案
*/
@PreAuthorize("@ss.hasPermi('jxjs:jxzxpxfa:add')")
@Log(title = "见习之星评选方案", businessType = BusinessType.INSERT)
@PostMapping("/copy/{id}")
public AjaxResult copy(@PathVariable Long id) {
TsbzJxzxpxfa tsbzJx = tsbzJxzxpxfaService.selectTsbzJxzxpxfaById(id);
return toAjax(tsbzJxzxpxfaService.insertTsbzJxzxpxfa(tsbzJx));
}
}

View File

@ -2,65 +2,73 @@ import request from '@/utils/request'
// 查询见习之星评选方案列表
export function listJxzxpxfa(query) {
return request({
url: '/jxjs/jxzxpxfa/list',
method: 'get',
params: query
})
return request({
url: '/jxjs/jxzxpxfa/list',
method: 'get',
params: query
})
}
// 查询见习之星评选方案详细
export function getJxzxpxfa(id) {
return request({
url: '/jxjs/jxzxpxfa/' + id,
method: 'get'
})
return request({
url: '/jxjs/jxzxpxfa/' + id,
method: 'get'
})
}
// 新增见习之星评选方案
export function addJxzxpxfa(data) {
return request({
url: '/jxjs/jxzxpxfa',
method: 'post',
data: data
})
return request({
url: '/jxjs/jxzxpxfa',
method: 'post',
data: data
})
}
// 修改见习之星评选方案
export function updateJxzxpxfa(data) {
return request({
url: '/jxjs/jxzxpxfa',
method: 'put',
data: data
})
return request({
url: '/jxjs/jxzxpxfa',
method: 'put',
data: data
})
}
// 删除见习之星评选方案
export function delJxzxpxfa(id) {
return request({
url: '/jxjs/jxzxpxfa/' + id,
method: 'delete'
})
return request({
url: '/jxjs/jxzxpxfa/' + id,
method: 'delete'
})
}
// 导出见习之星评选方案
export function exportJxzxpxfa(query) {
return request({
url: '/jxjs/jxzxpxfa/export',
method: 'get',
params: query
})
return request({
url: '/jxjs/jxzxpxfa/export',
method: 'get',
params: query
})
}
// 修改方案状态
export function changeStatus(id, fazt) {
const data = {
id,
fazt
}
return request({
url: '/jxjs/jxzxpxfa/changeStatus',
method: 'put',
data: data
})
const data = {
id,
fazt
}
return request({
url: '/jxjs/jxzxpxfa/changeStatus',
method: 'put',
data: data
})
}
// 复制方案
export function copyJxzxpxfa(id) {
return request({
url: '/jxjs/jxzxpxfa/copy/' + id,
method: 'post'
})
}

View File

@ -124,6 +124,13 @@
<el-table-column label="评选学科" align="center" prop="pxxk" :formatter="pxxkFormat" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleCopy(scope.row)"
v-hasPermi="['jxjs:jxzxpxfa:add']"
>复制</el-button>
<el-button
size="mini"
type="text"
@ -241,6 +248,7 @@ import {
addJxzxpxfa,
updateJxzxpxfa,
changeStatus,
copyJxzxpxfa,
} from "@/api/jxjs/jxzxpxfa";
import { getToken } from "@/utils/auth";
@ -253,6 +261,7 @@ export default {
},
data() {
return {
inviteCode: "",
//
loading: true,
//
@ -385,6 +394,62 @@ export default {
this.loading = false;
});
},
/** 复制按钮操作 */
handleCopy(row) {
const id = row.id;
this.$confirm(
'是否复制见习之星评选方案编号为"' + id + '"的数据项?',
"警告",
{
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
}
)
.then(function () {
return copyJxzxpxfa(id);
})
.then(() => {
this.getList();
this.msgSuccess("复制成功");
})
.catch(function () {});
},
// //
// getUser() {
// getUserProfile().then((response) => {
// this.user = response.data;
// console.log(this.user);
// // this.inviteCode =
// // response.data.dept.deptName +
// // " " +
// // "http://" +
// // domain +
// // "/experience/apply/" +
// // response.data.dept.deptId;
// });
// },
// //
// copy(e, text) {
// const clipboard = new Clipboard(e.target, { text: () => text });
// clipboard.on("success", (e) => {
// this.msgSuccess("");
// //
// clipboard.off("error");
// clipboard.off("success");
// clipboard.destroy();
// });
// clipboard.on("error", (e) => {
// //
// this.msgError("");
// //
// clipboard.off("error");
// clipboard.off("success");
// clipboard.destroy();
// });
// clipboard.onClick(e);
// },
//
cancel() {
this.open = false;

File diff suppressed because it is too large Load Diff