Commit 83010c0b by liangzhen

上传条件调整

1 parent e566e776
......@@ -131,4 +131,17 @@ export function projectCategoryText(type) {
break;
}
}
export function ruleType(msg){
switch (msg) {
case "应有可研报告或项目说明书":
return '0'
break;
case "应有可研评审意见":
return '1'
break;
case "应有可研批复":
return '2'
break;
}
}
\ No newline at end of file
......@@ -92,6 +92,8 @@
<el-table-column type="selection"> </el-table-column>
<el-table-column label="稽核名称" prop="auditName" width="320">
</el-table-column>
<el-table-column prop="auditStatusText" label="稽核状态" show-overflow-tooltip>
</el-table-column>
<el-table-column prop="auditTime" label="稽核时间" width="250">
</el-table-column>
<el-table-column prop="fullId" label="项目编码" show-overflow-tooltip>
......@@ -101,6 +103,7 @@
</el-table-column>
<el-table-column prop="fullRule" label="规则名称" show-overflow-tooltip>
</el-table-column>
<!-- <el-table-column prop="projectYear" label="项目年度" width="200">
<template slot-scope="scope">
{{ scope.row.projectYear }}
......@@ -1259,6 +1262,13 @@ export default {
if (res.code == "200") {
this.tableData = res.data.records;
this.tableData.forEach((item) => {
if(item.auditStatus=='1'){
this.$set(item, "auditStatusText", "执行中");
}else if(item.auditStatus=='2'){
this.$set(item, "auditStatusText", "已完成");
}else {
this.$set(item, "auditStatusText", "未执行");
}
});
this.total = res.data.total * 1;
......
......@@ -376,7 +376,7 @@ import {
ossupload,
downloadObject
} from "@/api/index";
import { generateYearOptions, projectCategoryText } from "@/utils/cache";
import { generateYearOptions, projectCategoryText,ruleType } from "@/utils/cache";
export default {
data() {
return {
......@@ -569,6 +569,7 @@ export default {
if (this.file) {
const formData = new FormData();
formData.append("file", this.file);
formData.append("typeCode",ruleType(row.ruleName) );
ossupload(formData)
.then((response) => {
this.$message("上传成功")
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!