Commit 54f4cad9 by liangzhen

增加首页

1 parent 34e86a30
......@@ -417,4 +417,8 @@ export function selZnfx(params){
//保存
export function bcevalQuesInfo(params){
return post(`${ARCH_EVALUATION}/evalQuesInfo/bc`, params)
}
//首页
export function projectInfoSy(params){
return post(`${ARCH_EVALUATION}/projectInfo/sy`, params)
}
\ No newline at end of file
......@@ -23,7 +23,7 @@ export const routes = [
path: '/',
name: 'main',
component: () => import('@/views/layout/index.vue'),
redirect: '/layout/main',
redirect: '/mainLayout/mianHome',
children: [
{
path: '/mainLayout',
......@@ -99,6 +99,14 @@ export const routes = [
name: 'Compliancefz',
component: () => import('@/views/assessZC/checkComplianceFZ.vue'),
},
{
path: '/mainLayout/mianHome',
name: 'mianHome',
component: () => import('@/views/assessChecks/mianHome.vue'),
meta: {
title: "首页",
},
},
//后评估互查
{
path: '/mainLayout/auxiliarySelection',
......
......@@ -184,6 +184,25 @@ export function trendsRules(type) {
break
case 99:
return [
// {
// name: "首页",
// url: "/mainLayout/mianHome",
// children: [
// {
// name: "首页首页",
// url: "mainLayout/mianHome",
// // children: [
// // {
// // name: "自查评估批次发起",
// // url: "mainLayout/mianHome",
// // children: [],
// // },
// // ]
// }
// ]
// },
{
name: "后评估检查",
url: "",
......
......@@ -420,6 +420,18 @@
/>
</template>
</el-table-column>
<el-table-column label="上传整改材料类型" prop="typeText" width="auto">
<template slot-scope="scope" v-if="scope.row.evalQues">
<el-select v-model="scope.row.typeText" placeholder="请选择" clearable>
<el-option
v-for="(item, index) in MaterialsList"
:key="index"
:label="item.typeText"
:value="item.typeCode"
/>
</el-select>
</template>
</el-table-column>
<el-table-column label="上传整改材料" prop="zgFileId" width="auto">
<template slot-scope="scope" v-if="scope.row.evalQues">
<input
......@@ -485,7 +497,7 @@ export default {
fullName: "",
},
tableData: [],
MaterialsList:JSON.parse(JSON.stringify(MaterialsList())),
tableDataNew: MaterialsList(),
tableDataQD: [],
checkedList: [],
......@@ -873,6 +885,9 @@ export default {
for(var i=0;i<fileDom.length; i++){
formData.append("file",fileDom[i]);
}
formData.append("typeCode",row.typeText);
formData.append("prjId",this.checkedList[0].projectId);
formData.append("bathId",this.checkedList[0].batchId);
ossuploadStr(formData)
.then((response) => {
console.log(response,'试试');
......
<template>
<div class="main">
<div class="mainhome">
<div class="pc child">
<div class="left">
<div class="pcBcg"></div>
</div>
<div class="right">
<h3>后评估批次</h3>
<ul>
<li>批次总数量: <span>{{ info.pcCount }}</span></li>
<li>已发起:<span>{{ info.pcFqCount }}</span></li>
<li>已完成:<span>{{ info.pcWcCount }}</span></li>
</ul>
</div>
</div>
<div class="xm child">
<div class="left">
<div class="xmBcg"></div>
</div>
<div class="right">
<h3>后评估项目</h3>
<ul>
<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>
</ul>
</div>
</div>
<div class="wt child">
<div class="left">
<div class="wtBcg"></div>
</div>
<div class="right">
<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>
</ul>
</div>
</div>
</div>
</div>
</template>
<script>
import {
projectInfoSy
} from "@/api/index";
export default {
data(){
return{
info:{}
}
},
mounted() {
this.init();
},
methods:{
async init(){
let res = await projectInfoSy({});
this.info=res.data
}
}
};
</script>
<style lang="scss" scoped>
.main {
font-size: 14px;
position: relative;
height: 100%;
width: 100%;
box-sizing: border-box;
overflow-x: hidden;
}
.mainhome {
font-size: 14px;
position: relative;
min-height: 82vh !important;
width: 100%;
box-sizing: border-box;
overflow-x: hidden;
/* background: red; */
background-image: url("../../assets/mainbcg.png");
background-size: cover;
.child {
display: flex;
.left {
width: 40%;
display: flex;
justify-content: flex-end;
}
.right {
margin-left: 5px;
text-align: left;
width: 60%;
ul {
margin-top: 5px;
padding-left: 14px;
padding-top: 0;
li {
height: 30px;
line-height: 30px;
color: rgb(0, 104, 98);
span{
font-size: 20px;
font-weight: 600;
color: rgb(0, 104, 98);
}
}
}
}
}
.pcBcg {
width: 50px;
height: 50px;
background-image: url("../../assets/icon_tc.png");
background-size: cover;
}
.xmBcg {
width: 50px;
height: 50px;
background-image: url("../../assets/icon_ps.png");
background-size: cover;
}
.wtBcg {
width: 50px;
height: 50px;
background-image: url("../../assets/icon_xq.png");
background-size: cover;
}
h3 {
color: rgb(10, 120, 114);
font-size: 20px;
margin-top: 8px;
margin-bottom: 0;
}
.pc {
position: absolute;
width: 400px;
height: 130px;
background-image: linear-gradient(
to right,
rgb(220, 250, 250),
rgb(127, 230, 230),
rgb(220, 250, 250)
);
top: 70px;
left: 50%;
transform: translateX(-50%);
}
.xm {
position: absolute;
width: 400px;
height:230px;
background-image: linear-gradient(
to right,
rgb(220, 250, 250),
rgb(127, 230, 230),
rgb(220, 250, 250)
);
top: 50%;
left: 8%;
// transform: translateX(-50%);
}
.wt {
position: absolute;
width: 400px;
height: 160px;
background-image: linear-gradient(
to right,
rgb(220, 250, 250),
rgb(127, 230, 230),
rgb(220, 250, 250)
);
top: 50%;
right: 8%;
// transform: translateX(-50%);
}
}
h2 {
margin-top: 60px;
}
</style>
\ No newline at end of file
......@@ -566,7 +566,7 @@ export default {
console.log("电击取消");
// this.$router.go(-1);
this.$router.push({
path: "/mainLayout/auxiliaryInspection",
path: "/assesszc/auxiliaryInspection",
});
},
async save() {
......
......@@ -420,6 +420,18 @@
/>
</template>
</el-table-column>
<el-table-column label="上传整改材料类型" prop="typeText" width="auto">
<template slot-scope="scope" v-if="scope.row.evalQues">
<el-select v-model="scope.row.typeText" placeholder="请选择" clearable>
<el-option
v-for="(item, index) in MaterialsList"
:key="index"
:label="item.typeText"
:value="item.typeCode"
/>
</el-select>
</template>
</el-table-column>
<el-table-column label="上传整改材料" prop="zgFileId" width="auto">
<template slot-scope="scope" v-if="scope.row.evalQues">
<input
......@@ -485,7 +497,7 @@ export default {
fullName: "",
},
tableData: [],
MaterialsList:JSON.parse(JSON.stringify(MaterialsList())),
tableDataNew: MaterialsList(),
tableDataQD: [],
checkedList: [],
......@@ -873,6 +885,9 @@ export default {
for(var i=0;i<fileDom.length; i++){
formData.append("file",fileDom[i]);
}
formData.append("typeCode",row.typeText);
formData.append("prjId",this.checkedList[0].projectId);
formData.append("bathId",this.checkedList[0].batchId);
ossuploadStr(formData)
.then((response) => {
console.log(response,'试试');
......
<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>
......
......@@ -10,6 +10,7 @@
:default-active="activeIndex"
ref="kzMenu"
>
<el-menu-item index="/mainLayout/mianHome" class="classmain">首页</el-menu-item>
<el-submenu
v-for="(item, index) in menuList"
:key="index"
......@@ -359,4 +360,15 @@ export default {
> .treeIcon2 {
transform: rotate(90deg);
}
.classmain{
background-color: #63a4a6;
margin-bottom: 10px;
border-radius: 5px;
box-shadow: 1px 2px 4px 0px #0068624c;
height: 40px;
line-height: 40px;
font-size: 16px;
font-weight: bold;
color: #fff;
}
</style>
\ No newline at end of file
<template>
<div class="main">
<h2>后评估工作流程图</h2>
<div class="mainpng">
<img src="../../assets/main.png" alt="">
<div class="continer">
</div>
</div>
</template>
......@@ -13,7 +12,7 @@ export default {
}
</script>
<style>
<style scoped>
.main {
font-size: 14px;
position: relative;
......@@ -22,6 +21,18 @@ export default {
box-sizing: border-box;
overflow-x: hidden;
}
.continer{
font-size: 14px;
position: relative;
/* min-height: 90vh !important; */
width: 100%;
box-sizing: border-box;
overflow-x: hidden;
/* background: red; */
background-image: url('../../assets/mainbcg.png');
background-size: cover;
}
h2{
margin-top: 60px;
}
......
......@@ -5,7 +5,7 @@
<router-view></router-view>
</ContinerView>
<div class="changeqx">
<el-menu
<!-- <el-menu
router
class="el-menu-vertical-demo"
:unique-opened="true"
......@@ -42,7 +42,7 @@
</el-menu-item>
</el-submenu>
</el-submenu>
</el-menu>
</el-menu> -->
</div>
</div>
</template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!