Commit 54f4cad9 by liangzhen

增加首页

1 parent 34e86a30
...@@ -417,4 +417,8 @@ export function selZnfx(params){ ...@@ -417,4 +417,8 @@ export function selZnfx(params){
//保存 //保存
export function bcevalQuesInfo(params){ export function bcevalQuesInfo(params){
return post(`${ARCH_EVALUATION}/evalQuesInfo/bc`, 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 = [ ...@@ -23,7 +23,7 @@ export const routes = [
path: '/', path: '/',
name: 'main', name: 'main',
component: () => import('@/views/layout/index.vue'), component: () => import('@/views/layout/index.vue'),
redirect: '/layout/main', redirect: '/mainLayout/mianHome',
children: [ children: [
{ {
path: '/mainLayout', path: '/mainLayout',
...@@ -99,6 +99,14 @@ export const routes = [ ...@@ -99,6 +99,14 @@ export const routes = [
name: 'Compliancefz', name: 'Compliancefz',
component: () => import('@/views/assessZC/checkComplianceFZ.vue'), component: () => import('@/views/assessZC/checkComplianceFZ.vue'),
}, },
{
path: '/mainLayout/mianHome',
name: 'mianHome',
component: () => import('@/views/assessChecks/mianHome.vue'),
meta: {
title: "首页",
},
},
//后评估互查 //后评估互查
{ {
path: '/mainLayout/auxiliarySelection', path: '/mainLayout/auxiliarySelection',
......
...@@ -184,6 +184,25 @@ export function trendsRules(type) { ...@@ -184,6 +184,25 @@ export function trendsRules(type) {
break break
case 99: case 99:
return [ return [
// {
// name: "首页",
// url: "/mainLayout/mianHome",
// children: [
// {
// name: "首页首页",
// url: "mainLayout/mianHome",
// // children: [
// // {
// // name: "自查评估批次发起",
// // url: "mainLayout/mianHome",
// // children: [],
// // },
// // ]
// }
// ]
// },
{ {
name: "后评估检查", name: "后评估检查",
url: "", url: "",
......
...@@ -420,6 +420,18 @@ ...@@ -420,6 +420,18 @@
/> />
</template> </template>
</el-table-column> </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"> <el-table-column label="上传整改材料" prop="zgFileId" width="auto">
<template slot-scope="scope" v-if="scope.row.evalQues"> <template slot-scope="scope" v-if="scope.row.evalQues">
<input <input
...@@ -485,7 +497,7 @@ export default { ...@@ -485,7 +497,7 @@ export default {
fullName: "", fullName: "",
}, },
tableData: [], tableData: [],
MaterialsList:JSON.parse(JSON.stringify(MaterialsList())),
tableDataNew: MaterialsList(), tableDataNew: MaterialsList(),
tableDataQD: [], tableDataQD: [],
checkedList: [], checkedList: [],
...@@ -873,6 +885,9 @@ export default { ...@@ -873,6 +885,9 @@ export default {
for(var i=0;i<fileDom.length; i++){ for(var i=0;i<fileDom.length; i++){
formData.append("file",fileDom[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) ossuploadStr(formData)
.then((response) => { .then((response) => {
console.log(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 { ...@@ -566,7 +566,7 @@ export default {
console.log("电击取消"); console.log("电击取消");
// this.$router.go(-1); // this.$router.go(-1);
this.$router.push({ this.$router.push({
path: "/mainLayout/auxiliaryInspection", path: "/assesszc/auxiliaryInspection",
}); });
}, },
async save() { async save() {
......
...@@ -420,6 +420,18 @@ ...@@ -420,6 +420,18 @@
/> />
</template> </template>
</el-table-column> </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"> <el-table-column label="上传整改材料" prop="zgFileId" width="auto">
<template slot-scope="scope" v-if="scope.row.evalQues"> <template slot-scope="scope" v-if="scope.row.evalQues">
<input <input
...@@ -485,7 +497,7 @@ export default { ...@@ -485,7 +497,7 @@ export default {
fullName: "", fullName: "",
}, },
tableData: [], tableData: [],
MaterialsList:JSON.parse(JSON.stringify(MaterialsList())),
tableDataNew: MaterialsList(), tableDataNew: MaterialsList(),
tableDataQD: [], tableDataQD: [],
checkedList: [], checkedList: [],
...@@ -873,6 +885,9 @@ export default { ...@@ -873,6 +885,9 @@ export default {
for(var i=0;i<fileDom.length; i++){ for(var i=0;i<fileDom.length; i++){
formData.append("file",fileDom[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) ossuploadStr(formData)
.then((response) => { .then((response) => {
console.log(response,'试试'); console.log(response,'试试');
......
<template> <template>
<div class="mian"> <div class="mian">
<div class="head-container"> <!-- <div class="head-container">
<div class="logo" style="z-index: 10"> <div class="logo" style="z-index: 10">
<div class="logo-inner"> <div class="logo-inner">
<img src="../../assets/logo.png" alt="" /> <img src="../../assets/logo.png" alt="" />
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div> -->
<router-view></router-view> <router-view></router-view>
<!-- <MainLayout class="continer"> <!-- <MainLayout class="continer">
<router-view></router-view> <router-view></router-view>
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
:default-active="activeIndex" :default-active="activeIndex"
ref="kzMenu" ref="kzMenu"
> >
<el-menu-item index="/mainLayout/mianHome" class="classmain">首页</el-menu-item>
<el-submenu <el-submenu
v-for="(item, index) in menuList" v-for="(item, index) in menuList"
:key="index" :key="index"
...@@ -359,4 +360,15 @@ export default { ...@@ -359,4 +360,15 @@ export default {
> .treeIcon2 { > .treeIcon2 {
transform: rotate(90deg); 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> </style>
\ No newline at end of file
<template> <template>
<div class="main"> <div class="main">
<h2>后评估工作流程图</h2> <div class="continer">
<div class="mainpng">
<img src="../../assets/main.png" alt="">
</div> </div>
</div> </div>
</template> </template>
...@@ -13,7 +12,7 @@ export default { ...@@ -13,7 +12,7 @@ export default {
} }
</script> </script>
<style> <style scoped>
.main { .main {
font-size: 14px; font-size: 14px;
position: relative; position: relative;
...@@ -22,6 +21,18 @@ export default { ...@@ -22,6 +21,18 @@ export default {
box-sizing: border-box; box-sizing: border-box;
overflow-x: hidden; 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{ h2{
margin-top: 60px; margin-top: 60px;
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<router-view></router-view> <router-view></router-view>
</ContinerView> </ContinerView>
<div class="changeqx"> <div class="changeqx">
<el-menu <!-- <el-menu
router router
class="el-menu-vertical-demo" class="el-menu-vertical-demo"
:unique-opened="true" :unique-opened="true"
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
</el-menu-item> </el-menu-item>
</el-submenu> </el-submenu>
</el-submenu> </el-submenu>
</el-menu> </el-menu> -->
</div> </div>
</div> </div>
</template> </template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!