Commit 23093a38 by liangzhen

建设形式映射

1 parent 6d500e1c
...@@ -37,7 +37,7 @@ export const routes = [ ...@@ -37,7 +37,7 @@ export const routes = [
name: 'auxiliarySelection', name: 'auxiliarySelection',
component: () => import('@/views/assessZC/auxiliarySelection.vue'), component: () => import('@/views/assessZC/auxiliarySelection.vue'),
meta: { meta: {
title: "评估项目辅助选定", title: "评估批次发起",
}, },
}, },
{ {
...@@ -148,7 +148,7 @@ export const routes = [ ...@@ -148,7 +148,7 @@ export const routes = [
name: 'auxiliarySelection', name: 'auxiliarySelection',
component: () => import('@/views/assessChecks/auxiliarySelection.vue'), component: () => import('@/views/assessChecks/auxiliarySelection.vue'),
meta: { meta: {
title: "评估项目辅助选定", title: "评估批次发起",
}, },
}, },
{ {
......
...@@ -116,4 +116,19 @@ export function generateYearOptions() { ...@@ -116,4 +116,19 @@ export function generateYearOptions() {
console.log('获取时间') console.log('获取时间')
const currentYear = new Date().getFullYear(); const currentYear = new Date().getFullYear();
return Array.from({ length: 10 }, (_, i) => currentYear - i); return Array.from({ length: 10 }, (_, i) => currentYear - i);
}
export function projectCategoryText(type) {
switch (type) {
case "01":
return '统推'
break;
case "02":
return '自建'
break;
case "03":
return '独立建设'
break;
} }
}
\ No newline at end of file
...@@ -12,7 +12,7 @@ export function trendsRules(type) { ...@@ -12,7 +12,7 @@ export function trendsRules(type) {
children: [ children: [
{ {
name: "评估项目辅助选定", name: "评估批次发起",
url: "/mainLayout/auxiliarySelection", url: "/mainLayout/auxiliarySelection",
children: [], children: [],
}, },
...@@ -205,7 +205,7 @@ export function trendsRules(type) { ...@@ -205,7 +205,7 @@ export function trendsRules(type) {
url: "", url: "",
children: [ children: [
{ {
name: "自查项目辅助选定", name: "自查评估批次发起",
url: "/assesszc/auxiliarySelection", url: "/assesszc/auxiliarySelection",
children: [], children: [],
}, },
...@@ -267,7 +267,7 @@ export function trendsRules(type) { ...@@ -267,7 +267,7 @@ export function trendsRules(type) {
url: "", url: "",
children: [ children: [
{ {
name: "评估项目辅助选定", name: "评估批次发起",
url: "/mainLayout/auxiliarySelection", url: "/mainLayout/auxiliarySelection",
children: [], children: [],
}, },
......
...@@ -330,7 +330,7 @@ import { ...@@ -330,7 +330,7 @@ import {
wtssSelAssistanceConfirmatio, wtssSelAssistanceConfirmatio,
downloadObject downloadObject
} from "@/api/index"; } from "@/api/index";
import { generateYearOptions } from "@/utils/cache"; import { generateYearOptions,projectCategoryText } from "@/utils/cache";
export default { export default {
data() { data() {
return { return {
...@@ -396,6 +396,7 @@ export default { ...@@ -396,6 +396,7 @@ export default {
} else { } else {
this.$set(item, "postEvalStateText", "复核未下发"); this.$set(item, "postEvalStateText", "复核未下发");
} }
this.$set(item, "projectCategory",projectCategoryText(item.projectCategory));
}); });
console.log(this.tableData,'tableDatatableData') console.log(this.tableData,'tableDatatableData')
......
...@@ -297,7 +297,7 @@ import { ...@@ -297,7 +297,7 @@ import {
wtssSelProblemAssistedFeedback, wtssSelProblemAssistedFeedback,
ssProblemAssistedFeedback, ssProblemAssistedFeedback,
} from "@/api/index"; } from "@/api/index";
import { generateYearOptions } from "@/utils/cache"; import { generateYearOptions,projectCategoryText } from "@/utils/cache";
export default { export default {
data() { data() {
return { return {
...@@ -367,6 +367,7 @@ export default { ...@@ -367,6 +367,7 @@ export default {
} else { } else {
this.$set(item, "postEvalStateText", "未申诉"); this.$set(item, "postEvalStateText", "未申诉");
} }
this.$set(item, "projectCategory",projectCategoryText(item.projectCategory));
}); });
this.total = res.data.total * 1; this.total = res.data.total * 1;
} }
......
...@@ -24,17 +24,32 @@ ...@@ -24,17 +24,32 @@
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
<!-- <el-form-item label="后评估状态:" prop="postEvalState" class="fromItem"> <el-form-item label="问题整改状态:" prop="postEvalState" class="fromItem">
<el-select <el-select
v-model="ruleForm.postEvalState" v-model="ruleForm.postEvalState"
placeholder="请选择" placeholder="请选择"
clearable clearable
> >
<el-option label="未下发" value="0"></el-option> <el-option label="未整改" value="4"></el-option>
<el-option label="已下发" value="1"></el-option> <el-option label="整改提交" value="5"></el-option>
<el-option label="已撤回" value="2"></el-option> <el-option label="整改未完成" value="6"></el-option>
<el-option label="整改已完成" value="7"></el-option>
</el-select> </el-select>
</el-form-item> --> </el-form-item>
<el-form-item label="评估项目名称:" prop="projectName" class="fromItem">
<el-input
v-model="ruleForm.projectName"
placeholder="请输入"
clearable
></el-input>
</el-form-item>
<el-form-item label="项目ID:" prop="projectId" class="fromItem">
<el-input
v-model="ruleForm.projectId"
placeholder="请输入"
clearable
></el-input>
</el-form-item>
<el-form-item class="button"> <el-form-item class="button">
<el-button @click="submitForm()"> <el-button @click="submitForm()">
<img class="buttonIcon" src="../../assets/cx.png" />查询</el-button <img class="buttonIcon" src="../../assets/cx.png" />查询</el-button
...@@ -407,7 +422,7 @@ import { ...@@ -407,7 +422,7 @@ import {
ossupload, ossupload,
downloadObject, downloadObject,
} from "@/api/index"; } from "@/api/index";
import { generateYearOptions } from "@/utils/cache"; import { generateYearOptions,projectCategoryText } from "@/utils/cache";
export default { export default {
data() { data() {
return { return {
...@@ -457,6 +472,7 @@ export default { ...@@ -457,6 +472,7 @@ export default {
} else if (item.reviewStatus == "7") { } else if (item.reviewStatus == "7") {
this.$set(item, "postEvalState", "整改已完成"); this.$set(item, "postEvalState", "整改已完成");
} }
this.$set(item, "projectCategory",projectCategoryText(item.projectCategory));
}); });
this.total = res.data.total * 1; this.total = res.data.total * 1;
} }
......
...@@ -543,67 +543,6 @@ export default { ...@@ -543,67 +543,6 @@ export default {
}; };
Object.assign(params, this.ruleForm); Object.assign(params, this.ruleForm);
console.log(params); console.log(params);
(this.tableData = [
{
expertId: 1,
fullName: "王小明",
gender: 1,
birthday: "2024-04-23",
compId: 10001,
qualification: "硕士",
contact: "13241375678",
email: "115485@qq.com",
fields: "1",
expertLevel: 1,
description: "1",
expertState: 1,
creator: 1,
createTime: "2024-04-23 14:47:07",
lastUpdatedby: 1,
lastUpdateTime: "2024-04-23 14:47:12",
column14: 1,
},
{
expertId: 2,
fullName: "李晓帅",
gender: 0,
birthday: "2024-04-23",
compId: 10001,
qualification: "博士",
contact: "13241375678",
email: "115485@qq.com",
fields: "1",
expertLevel: 1,
description: "1",
expertState: 1,
creator: 1,
createTime: "2024-04-23 14:47:07",
lastUpdatedby: 1,
lastUpdateTime: "2024-04-23 14:47:12",
column14: 1,
},
{
expertId: 3,
fullName: "张晓楠",
gender: 1,
birthday: "2024-04-23",
compId: 10002,
qualification: "博士后",
contact: "13241375678",
email: "115485@qq.com",
fields: "1",
expertLevel: 1,
description: "1",
expertState: 1,
creator: 1,
createTime: "2024-04-23 14:47:07",
lastUpdatedby: 1,
lastUpdateTime: "2024-04-23 14:47:12",
column14: 1,
},
]),
(this.total = 2);
return;
let res = await projectInfo(params); let res = await projectInfo(params);
if (res.code == "200") { if (res.code == "200") {
......
...@@ -289,7 +289,7 @@ import { ...@@ -289,7 +289,7 @@ import {
selLcb, selLcb,
downloadObject downloadObject
} from "@/api/index"; } from "@/api/index";
import { generateYearOptions } from "@/utils/cache"; import { generateYearOptions ,projectCategoryText} from "@/utils/cache";
export default { export default {
data() { data() {
return { return {
...@@ -342,6 +342,10 @@ export default { ...@@ -342,6 +342,10 @@ export default {
if (res.code == "200") { if (res.code == "200") {
this.tableData = res.data.records; this.tableData = res.data.records;
this.tableData.forEach(item=>{
this.$set(item, "projectCategory",projectCategoryText(item.projectCategory));
})
this.total = res.data.total * 1; this.total = res.data.total * 1;
} }
}, },
......
...@@ -165,7 +165,7 @@ import { ...@@ -165,7 +165,7 @@ import {
wtplxfproblemAssistedDistribution, wtplxfproblemAssistedDistribution,
chproblemAssistedDistribution chproblemAssistedDistribution
} from "@/api/index"; } from "@/api/index";
import { generateYearOptions } from "@/utils/cache"; import { generateYearOptions,projectCategoryText } from "@/utils/cache";
export default { export default {
data() { data() {
return { return {
...@@ -233,6 +233,7 @@ export default { ...@@ -233,6 +233,7 @@ export default {
} else { } else {
this.$set(item, "postEvalState", "已下发"); this.$set(item, "postEvalState", "已下发");
} }
this.$set(item, "projectCategory",projectCategoryText(item.projectCategory));
}); });
this.total = res.data.total * 1; this.total = res.data.total * 1;
} }
......
...@@ -307,7 +307,7 @@ import { ...@@ -307,7 +307,7 @@ import {
wtqdqselect, wtqdqselect,
selLcb selLcb
} from "@/api/index"; } from "@/api/index";
import { generateYearOptions } from "@/utils/cache"; import { generateYearOptions,projectCategoryText } from "@/utils/cache";
import { MaterialsList } from "@/utils/cache"; import { MaterialsList } from "@/utils/cache";
export default { export default {
data() { data() {
...@@ -355,6 +355,9 @@ export default { ...@@ -355,6 +355,9 @@ export default {
if (res.code == "200") { if (res.code == "200") {
this.tableData = res.data.records; this.tableData = res.data.records;
this.tableData.forEach((item) => {
this.$set(item, "projectCategory",projectCategoryText(item.projectCategory));
});
this.total = res.data.total * 1; this.total = res.data.total * 1;
} }
}, },
......
...@@ -116,7 +116,7 @@ import { ...@@ -116,7 +116,7 @@ import {
chpostEvalQuesInfo, chpostEvalQuesInfo,
qrscevaluationMaterials, qrscevaluationMaterials,
} from "@/api/index"; } from "@/api/index";
import { generateYearOptions } from "@/utils/cache"; import { generateYearOptions,projectCategoryText} from "@/utils/cache";
export default { export default {
data() { data() {
return { return {
...@@ -183,6 +183,7 @@ export default { ...@@ -183,6 +183,7 @@ export default {
}else { }else {
this.$set( item,'postEvalState','已提交') this.$set( item,'postEvalState','已提交')
} }
this.$set(item, "projectCategory",projectCategoryText(item.projectCategory));
}) })
this.total = res.data.total * 1; this.total = res.data.total * 1;
} }
......
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
import { import {
fzcxpostSelect fzcxpostSelect
} from "@/api/index"; } from "@/api/index";
import { generateYearOptions } from "@/utils/cache"; import { generateYearOptions, projectCategoryText} from "@/utils/cache";
export default { export default {
data() { data() {
return { return {
...@@ -219,6 +219,7 @@ export default { ...@@ -219,6 +219,7 @@ export default {
} else { } else {
this.$set(item, "postEvalState", "未下发"); this.$set(item, "postEvalState", "未下发");
} }
this.$set(item, "projectCategory",projectCategoryText(item.projectCategory));
}); });
this.total = res.data.total * 1; this.total = res.data.total * 1;
} }
......
<!-- 评估项目辅助选定 --> <!-- 评估批次发起 -->
<template> <template>
<div class="main"> <div class="main">
<el-form <el-form
......
...@@ -188,7 +188,7 @@ ...@@ -188,7 +188,7 @@
clqdevaluationMaterials, clqdevaluationMaterials,
qrscevaluationMaterials, qrscevaluationMaterials,
} from "@/api/index"; } from "@/api/index";
import { generateYearOptions } from "@/utils/cache"; import { generateYearOptions,projectCategoryText} from "@/utils/cache";
export default { export default {
data() { data() {
return { return {
...@@ -252,6 +252,7 @@ export default { ...@@ -252,6 +252,7 @@ export default {
}else{ }else{
this.$set( item,'postEvalState','待确认') this.$set( item,'postEvalState','待确认')
} }
this.$set(item, "projectCategory",projectCategoryText(item.projectCategory));
}) })
this.total = res.data.total * 1; this.total = res.data.total * 1;
} }
......
...@@ -19,6 +19,31 @@ ...@@ -19,6 +19,31 @@
<el-form-item label="后评估批次名称:" prop="batchName" class="fromItem"> <el-form-item label="后评估批次名称:" prop="batchName" class="fromItem">
<el-input v-model="ruleForm.batchName" clearable></el-input> <el-input v-model="ruleForm.batchName" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item label="整改复核状态:" prop="postEvalState" class="fromItem">
<el-select
v-model="ruleForm.postEvalState"
placeholder="请选择"
clearable
>
<el-option label="整改提交" value="5"></el-option>
<el-option label="整改未完成" value="6"></el-option>
<el-option label="整改已完成" value="7"></el-option>
</el-select>
</el-form-item>
<el-form-item label="评估项目名称:" prop="projectName" class="fromItem">
<el-input
v-model="ruleForm.projectName"
placeholder="请输入"
clearable
></el-input>
</el-form-item>
<el-form-item label="项目ID:" prop="projectId" class="fromItem">
<el-input
v-model="ruleForm.projectId"
placeholder="请输入"
clearable
></el-input>
</el-form-item>
<!-- <el-form-item <!-- <el-form-item
label="计划评审日期:" label="计划评审日期:"
prop="planReviewDate" prop="planReviewDate"
...@@ -437,7 +462,7 @@ import { ...@@ -437,7 +462,7 @@ import {
ossupload, ossupload,
downloadObject downloadObject
} from "@/api/index"; } from "@/api/index";
import { generateYearOptions } from "@/utils/cache"; import { generateYearOptions,projectCategoryText } from "@/utils/cache";
export default { export default {
data() { data() {
return { return {
...@@ -493,6 +518,7 @@ export default { ...@@ -493,6 +518,7 @@ export default {
}else{ }else{
this.$set(item, "postEvalState", "整改已完成"); this.$set(item, "postEvalState", "整改已完成");
} }
this.$set(item, "projectCategory",projectCategoryText(item.projectCategory));
}); });
this.total = res.data.total * 1; this.total = res.data.total * 1;
} }
......
...@@ -257,7 +257,7 @@ import { ...@@ -257,7 +257,7 @@ import {
ossupload, ossupload,
downloadObject downloadObject
} from "@/api/index"; } from "@/api/index";
import { generateYearOptions } from "@/utils/cache"; import { generateYearOptions,projectCategoryText } from "@/utils/cache";
export default { export default {
data() { data() {
return { return {
...@@ -324,6 +324,7 @@ export default { ...@@ -324,6 +324,7 @@ export default {
} else if (item.postEvalState >=1) { } else if (item.postEvalState >=1) {
this.$set(item, "postEvalStateText", "已上传"); this.$set(item, "postEvalStateText", "已上传");
} }
this.$set(item, "projectCategory",projectCategoryText(item.projectCategory));
}); });
this.total = res.data.total * 1; this.total = res.data.total * 1;
} }
......
<!-- 评估项目辅助选定 --> <!-- 评估批次发起 -->
<template> <template>
<div class="main"> <div class="main">
<el-form <el-form
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!