Commit bf380876 by liangzhen

首页新增赛选条件

1 parent 85285f7f
......@@ -454,5 +454,8 @@ export function HistoryVersion(params){
export function postExist(params){
return post(`${ARCH_EVALUATION}/pmProInitiation/postExist`, params)
}
//新增问题
export function xzwtpostEvalQuesInfo(params) {
return post(`${ARCH_EVALUATION}/postEvalQuesInfo/xzwt`, params)
}
......@@ -238,7 +238,8 @@
<el-table-column
label="问题检查项"
prop="quesCheckItem"
width="200"
width="auto"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
......@@ -248,7 +249,7 @@
show-overflow-tooltip
>
</el-table-column>
<el-table-column label="评估问题" prop="evalQues" width="auto">
<el-table-column label="评估问题" prop="evalQues" width="auto" show-overflow-tooltip>
</el-table-column>
<el-table-column label="问题响应" width="100">
<template slot-scope="scope">
......@@ -272,15 +273,15 @@
</el-switch>
</template>
</el-table-column>
<el-table-column label="解释批注" width="200">
<template
<el-table-column label="解释批注" prop="feedback" width="auto" show-overflow-tooltip>
<!-- <template
slot-scope="scope"
v-if="scope.row.confirmStatus == '1'"
>
<el-input v-model="scope.row.feedback" disabled></el-input>
</template>
</template> -->
</el-table-column>
<el-table-column label="整改材料下载" width="200">
<el-table-column label="整改材料下载" width="120">
<template slot-scope="scope">
<router-link
:to="{
......
......@@ -514,18 +514,11 @@ docxOptions: {
},
change(id) {
console.log(
JSON.stringify(this.questionList) ==
JSON.stringify(this.oldQuestionList),
"完全相同么"
);
if (
JSON.stringify(this.questionList) ==
JSON.stringify(this.oldQuestionList)
) {
this.active = id * 1;
// this.tabListKY = MaterialsListKY(id * 1 + 1);
this.init(this.clqparams);
return;
}
......@@ -536,10 +529,8 @@ docxOptions: {
type: "warning",
})
.then(() => {
this.save();
this.active = id * 1;
// this.tabListKY = MaterialsListKY(id * 1 + 1);
this.init(this.clqparams);
this.save('3',id);
})
.catch((action) => {
console.log(action, "actionaction");
......@@ -608,7 +599,7 @@ docxOptions: {
path: "/mainLayout/auxiliaryInspection",
});
},
async save(type) {
async save(type,id) {
this.questionList.forEach((item) => {
let evals = "";
item.evalList.forEach((childItem) => {
......@@ -632,9 +623,7 @@ docxOptions: {
}
});
console.log(this.questionList, "questionList");
let params = {
list: this.questionList,
...this.clqparams,
......@@ -653,6 +642,9 @@ docxOptions: {
projectName:this.projectName
},
});
}else{
this.active = id * 1;
this.init(this.clqparams);
}
} else {
......
<template>
<div class="main">
<div class="mainhome">
<div class="querytj">
年份:
<el-select v-model="ruleForm.batchYear" placeholder="请选择" clearable class="inputnf">
<el-option
v-for="(item, index) in yearsList"
:key="index"
:label="item + ''"
:value="item"
/>
</el-select>
评估形式:
<el-checkbox-group v-model="ruleForm.type" class="inputnf">
<el-checkbox label="0">自查</el-checkbox>
<el-checkbox label="1">互查</el-checkbox>
</el-checkbox-group>
</div>
<div class="pc child">
<div class="left">
<div class="pcBcg"></div>
......@@ -8,9 +24,15 @@
<div class="right">
<h3>后评估批次</h3>
<ul>
<li>批次总数量: <span>{{ info.pcCount }}</span></li>
<li>已发起:<span>{{ info.pcFqCount }}</span></li>
<li>已完成:<span>{{ info.pcWcCount }}</span></li>
<li>
批次总数量: <span>{{ info.pcCount }}</span>
</li>
<li>
已发起:<span>{{ info.pcFqCount }}</span>
</li>
<li>
已完成:<span>{{ info.pcWcCount }}</span>
</li>
</ul>
</div>
</div>
......@@ -21,12 +43,22 @@
<div class="right">
<h3>后评估项目</h3>
<ul>
<li>项目总数量: <span>{{ info.proCount }}</span></li>
<li>
项目总数量: <span>{{ info.proCount }}</span>
</li>
<!-- <li>未上传材料:<span>{{ info.proNscCount }}</span></li> -->
<li>待评估:<span>{{ info.proDpgCount }}</span></li>
<li>需整改:<span>{{ info.proXzgCount }}</span></li>
<li>己整改:<span>{{ info.proYzgCount }}</span></li>
<li>己归档:<span>{{ info.proYgdCount}}</span></li>
<li>
待评估:<span>{{ info.proDpgCount }}</span>
</li>
<li>
需整改:<span>{{ info.proXzgCount }}</span>
</li>
<li>
己整改:<span>{{ info.proYzgCount }}</span>
</li>
<li>
己归档:<span>{{ info.proYgdCount }}</span>
</li>
</ul>
</div>
</div>
......@@ -35,12 +67,20 @@
<div class="wtBcg"></div>
</div>
<div class="right">
<h3>后评估问题</h3>
<h3>后评估问题</h3>
<ul>
<li>问题总数量: <span>{{ info.quesCount, }}</span></li>
<li>未整改数量:<span>{{ info.quesWzgCount }}</span></li>
<li>整改不合格:<span>{{ info.quesZgbhgCount }}</span></li>
<li>整改完成:<span>{{ info.quesZgwcCount}}</span></li>
<li>
问题总数量: <span>{{ info.quesCount, }}</span>
</li>
<li>
未整改数量:<span>{{ info.quesWzgCount }}</span>
</li>
<li>
整改不合格:<span>{{ info.quesZgbhgCount }}</span>
</li>
<li>
整改完成:<span>{{ info.quesZgwcCount }}</span>
</li>
</ul>
</div>
</div>
......@@ -49,25 +89,53 @@
</template>
<script>
import {
projectInfoSy
} from "@/api/index";
import { projectInfoSy } from "@/api/index";
import { generateYearOptions } from "@/utils/cache";
export default {
data(){
return{
info:{}
}
data() {
return {
yearsList: generateYearOptions(),
info: {},
ruleForm: {
type: ['0', '1'],
batchYear:"2024",
module:'1,2'
},
};
},
watch: {
"ruleForm.type"(n,o) {
console.log("变了",n,o);
if(n.length>1){
this.ruleForm.module="1,2"
}else{
this.ruleForm.module=n.join(',')
}
// if(n.length>)
this.init();
},
"ruleForm.batchYear"(newVal, oldVal) {
console.log("变了1",newVal);
this.init();
},
},
mounted() {
mounted() {
this.init();
},
methods:{
async init(){
let res = await projectInfoSy({});
this.info=res.data
}
}
methods: {
async init() {
let params={
}
Object.assign(params, this.ruleForm);
let res = await projectInfoSy(params);
this.info = res.data;
},
},
};
</script>
......@@ -90,6 +158,15 @@ export default {
/* background: red; */
background-image: url("../../assets/mainbcg.png");
background-size: cover;
.querytj {
position: absolute;
right: 0;
top: 15px;
font-weight: 500;
font-size: 15px;
// width: 600px;
// border: 1px solid red;
}
.child {
display: flex;
.left {
......@@ -109,7 +186,7 @@ export default {
height: 30px;
line-height: 30px;
color: rgb(0, 104, 98);
span{
span {
font-size: 20px;
font-weight: 600;
color: rgb(0, 104, 98);
......@@ -159,7 +236,7 @@ export default {
.xm {
position: absolute;
width: 400px;
height:200px;
height: 200px;
background-image: linear-gradient(
to right,
rgb(220, 250, 250),
......@@ -188,4 +265,16 @@ export default {
h2 {
margin-top: 60px;
}
.inputnf {
display: inline-block;
width: 200px;
margin-right: 20px;
}
/deep/ .el-input--suffix .el-input__inner {
background: transparent !important;
border: 1px solid #0a7872;
}
/deep/.el-checkbox__input.is-checked .el-checkbox__inner {
background: blue;
}
</style>
\ No newline at end of file
......@@ -229,16 +229,17 @@
<el-table-column
label="项目环节"
prop="projectStagetext"
width="120"
width="100"
>
</el-table-column>
<el-table-column label="序号" width="70" type="index">
<el-table-column label="序号" width="40" type="index">
</el-table-column>
<el-table-column
label="问题检查项"
prop="quesCheckItem"
width="200"
width="auto"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
......@@ -248,7 +249,7 @@
show-overflow-tooltip
>
</el-table-column>
<el-table-column label="评估问题" prop="evalQues" width="auto">
<el-table-column label="评估问题" prop="evalQues" width="auto" show-overflow-tooltip>
</el-table-column>
<el-table-column label="问题响应" width="100">
<template slot-scope="scope">
......@@ -272,15 +273,15 @@
</el-switch>
</template>
</el-table-column>
<el-table-column label="解释批注" width="200">
<template
<el-table-column label="解释批注" prop="feedback" width="auto" show-overflow-tooltip>
<!-- <template
slot-scope="scope"
v-if="scope.row.confirmStatus == '1'"
>
<el-input v-model="scope.row.feedback" disabled></el-input>
</template>
</template> -->
</el-table-column>
<el-table-column label="整改材料下载" width="200">
<el-table-column label="整改材料下载" width="120">
<template slot-scope="scope">
<router-link
:to="{
......
......@@ -536,10 +536,9 @@ docxOptions: {
type: "warning",
})
.then(() => {
this.save();
this.active = id * 1;
// this.tabListKY = MaterialsListKY(id * 1 + 1);
this.init(this.clqparams);
this.save('3',id);
// this.active = id * 1;
// this.init(this.clqparams);
})
.catch((action) => {
console.log(action, "actionaction");
......@@ -653,6 +652,9 @@ docxOptions: {
projectName:this.projectName
},
});
}else{
this.active = id * 1;
this.init(this.clqparams);
}
} else {
......
<template>
<div class="mian">
<!-- <div class="head-container">
<div class="head-container">
<div class="logo" style="z-index: 10">
<div class="logo-inner">
<img src="../../assets/logo.png" alt="" />
......@@ -46,7 +46,7 @@
</div>
</div>
</div>
</div> -->
</div>
<router-view></router-view>
<!-- <MainLayout class="continer">
<router-view></router-view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!