Commit f5577dc1 by liangzhen

自查

1 parent 54f4cad9
......@@ -8,6 +8,7 @@
},
"dependencies": {
"@onlyoffice/document-editor-vue": "^1.3.0",
"@vue-office/pdf": "^2.0.2",
"@wangeditor/editor-for-vue": "^1.0.2",
"axios": "^1.6.2",
"core-js": "^3.8.3",
......@@ -17,11 +18,14 @@
"element-ui": "^2.15.14",
"jquery": "^3.7.1",
"jszip": "^3.10.1",
"mammoth": "^1.7.2",
"mammoth": "^1.8.0",
"moment": "^2.30.1",
"scss": "^0.2.4",
"util": "^0.12.5",
"vue": "^2.6.14",
"vue-cli": "^2.9.6",
"vue-demi": "^0.14.10",
"vue-doc-preview": "^0.3.2",
"vue-pdf": "^4.3.0",
"vue-router": "^3.5.1",
"vuex": "^3.6.2",
......
......@@ -275,6 +275,14 @@ export function gdrectificationVerification(params) {
export function downloadObject(params) {
return download(`${ARCH_EVALUATION}/oss/downloadObject`, params)
}
//多文件下载
export function downloadObjectStr(params) {
return download(`${ARCH_EVALUATION}/oss/downloadObjectStr`, params)
}
//多文件删除 /oss/delAll
export function delAll(params) {
return post(`${ARCH_EVALUATION}/oss/delAll`, params)
}
//下载归档
export function downloadObjectAll(params) {
return download(`${ARCH_EVALUATION}/oss/downloadObjectAll`, params)
......@@ -406,6 +414,10 @@ export function selWtqdFZ(params){
export function selFile(params){
return post(`${ARCH_EVALUATION}/evalQuesInfo/selFile`, params)
}
export function selFileList(params){
return post(`${ARCH_EVALUATION}/evalQuesInfo/selFileList`, params)
}
//明显查询
export function selWtmx(params){
return post(`${ARCH_EVALUATION}/evalQuesInfo/selWtmx`, params)
......@@ -422,3 +434,21 @@ export function bcevalQuesInfo(params){
export function projectInfoSy(params){
return post(`${ARCH_EVALUATION}/projectInfo/sy`, params)
}
//项目列表页面
export function pmProInitiation(params){
return post(`${ARCH_EVALUATION}/pmProInitiation/`, params)
}
//项目清单
export function MaterialWarehous(params){
return post(`${ARCH_EVALUATION}/pmProInitiation/MaterialWarehouse`, params)
}
//更新类型
export function chpmProInitiation(params){
return post(`${ARCH_EVALUATION}/pmProInitiation/ch`, params)
}
//历史记录
export function HistoryVersion(params){
return post(`${ARCH_EVALUATION}/pmProInitiation/HistoryVersion`, params)
}
......@@ -31,6 +31,7 @@ export const routes = [
redirect: defaultRouter(),
component: () => import('@/views/layout/mainLayout.vue'),
children: [
{
path: '/layout/main',
name: 'main',
......@@ -39,6 +40,7 @@ export const routes = [
title: "首页",
},
},
//后评估自查
{
path: '/assesszc/auxiliarySelection',
......@@ -57,11 +59,19 @@ export const routes = [
},
},
{
path: '/assesszc/projectView',
name: 'projectView',
component: () => import('@/views/assessZC/projectView.vue'),
meta: {
title: "项目档案库",
},
},
{
path: '/assesszc/materialAcquisition',
name: 'materialAcquisition',
component: () => import('@/views/assessZC/materialAcquisition.vue'),
meta: {
title: "自查评估材料提交与整改",
title: "自查整改",
},
},
{
......@@ -129,7 +139,7 @@ export const routes = [
name: 'materialAcquisition',
component: () => import('@/views/assessChecks/materialAcquisition.vue'),
meta: {
title: "评估材料提交与整改",
title: "评估问题整改",
},
},
{
......
......@@ -131,6 +131,19 @@ export function projectCategoryText(type) {
}
}
export function constructionFormText(type) {
switch (type) {
case "1":
return '独立建设'
break;
case "2":
return '统推'
break;
case "3":
return '自建'
break;
}
}
export function ruleType(msg){
switch (msg) {
case "应有可研报告或项目说明书":
......
......@@ -137,7 +137,7 @@ export function trendsRules(type) {
url: "",
children: [
{
name: "评估材料提交与整改",
name: "评估问提整改",
url: "/mainLayout/materialAcquisition",
children: [],
},
......@@ -216,13 +216,21 @@ export function trendsRules(type) {
url: "/assesszc/auxiliarySelection",
children: [],
},
// {
// name: "项目档案库",
// url: "/assesszc/projectView",
// children: [],
// },
{
name: "自查评估项目确认",
url: "/assesszc/confirmRelease",
children: [],
},
{
name: "自查评估材料提交与整改",
name: "自查问题整改",
url: "/assesszc/materialAcquisition",
children: [],
},
......@@ -254,7 +262,7 @@ export function trendsRules(type) {
children: [],
},
{
name: "评估材料提交与整改",
name: "评估问题整改",
url: "/mainLayout/materialAcquisition",
children: [],
},
......
......@@ -23,7 +23,6 @@
:label="item.typeText"
:name="item.typeCode"
>
<!-- <p style="height:600px"> {{ item.typeText }}</p> -->
<iframe
v-if="blobType=='pdf'"
:src="iframeUrl"
......@@ -37,9 +36,6 @@
<div ref="word" id="preview" >
</div>
</div>
</el-tab-pane>
</el-tabs>
</div>
......@@ -242,7 +238,7 @@ export default {
disabled: false,
oldQuestionList: [], //对比列表
blobType:'pdf',//bolb类型
projectName:''
projectName:'',
};
},
mounted() {
......
......@@ -468,9 +468,9 @@
placeholder="请选择"
clearable
>
<el-option label="统推" value="01"></el-option>
<el-option label="自建" value="02"></el-option>
<el-option label="独立建设" value="03"></el-option>
<el-option label="统推" value="1"></el-option>
<el-option label="自建" value="2"></el-option>
<el-option label="独立建设" value="3"></el-option>
</el-select>
</el-form-item>
<el-form-item label="负责人:" prop="personCharge" class="fromItem">
......
......@@ -105,9 +105,9 @@
<el-button @click="detailsForm()">
<img class="buttonIcon" src="../../assets/ck.png" />详情</el-button
>
<el-button @click="submitNexts()" :disabled="subdisabled" :class="subdisabled?'noclick':''"
<!-- <el-button @click="submitNexts()" :disabled="subdisabled" :class="subdisabled?'noclick':''"
><i class="el-icon-finished"></i> 提交评估材料</el-button
>
> -->
<el-button @click="confirm()" :disabled="confirmdisabled" :class="confirmdisabled?'noclick':''">
<i class="el-icon-chat-dot-square"></i
>&nbsp;&nbsp;&nbsp;问题整改</el-button
......@@ -151,6 +151,19 @@
</el-table-column>
<el-table-column prop="postEvalStateText" label="项目审核状态" width="120">
</el-table-column>
<el-table-column
prop="contractNumber"
label="合同编号"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop="contractName"
label="合同名称"
width="auto"
show-overflow-tooltip
>
</el-table-column>
<el-table-column prop="planReviewDate" label="计划评估日期">
</el-table-column>
</el-table>
......@@ -167,7 +180,7 @@
>
</el-pagination>
<el-dialog
title="提交评估材料"
title="评估项目详情"
:visible.sync="dialog"
width="90%"
:modal-append-to-body="false"
......@@ -767,29 +780,37 @@ export default {
this.$message("请选择");
return;
}
console.log("222");
this.dialogXQ = true;
let params = {
current: this.currentPage,
pageSize: this.pageSize,
projectId: this.checkedList[0].projectId,
batchId: this.checkedList[0].batchId,
proType: this.checkedList[0]. projectType,
contractNumber: this.checkedList[0].contractNumber,
prjId: this.checkedList[0].projectCode,
};
let res = await clqdevaluationMaterials(params);
this.tableDataQD = this.tableDataNew;
this.tableDataQD = this.tableDataQD
.concat(res.data.records)
.reduce((accumulator, currentObj) => {
const existingObj = accumulator.find(
(obj) => obj.typeCode == currentObj.typeCode
);
if (existingObj) {
Object.assign(existingObj, currentObj);
} else {
accumulator.push(currentObj);
let res = await MaterialWarehous(params);
this.tableDataQD = res.data.records;
this.dialog = true;
this.tableDataQD.forEach((item) => {
switch (item.projectStage) {
case "1":
this.$set(item, "projectStagetext", "可研");
break;
case "2":
this.$set(item, "projectStagetext", "计划");
break;
case "3":
this.$set(item, "projectStagetext", "采购");
break;
case "4":
this.$set(item, "projectStagetext", "合同");
break;
case "5":
this.$set(item, "projectStagetext", "执行");
break;
case "6":
this.$set(item, "projectStagetext", "结决算及转资");
break;
}
return accumulator;
}, []);
});
},
//表格颜色
tableRowClassName({ row, rowIndex }) {
......@@ -1174,10 +1195,6 @@ export default {
/deep/ .el-dialog__headerbtn .el-dialog__close {
color: #fff;
}
// /deep/.el-table th.el-table__cell.is-leaf,
// .el-table td.el-table__cell {
// text-align: center;
// }
/deep/ .el-table__cell {
text-align: center;
}
......
<template>
<div class="dialogFrom">
<p class="xqtitle"><span></span>批次详情</p>
<el-form
:model="ruleFormdialog"
label-width="100px"
class="demo-ruleForm"
>
<el-form-item label="批次年度:" prop="batchYear" class="fromItem">
<el-input v-model="ruleFormdialog.batchYear" disabled></el-input>
</el-form-item>
<el-form-item label="后评估名称:" prop="batchName" class="fromItem">
<el-input v-model="ruleFormdialog.batchName" disabled></el-input>
</el-form-item>
<el-form-item
label="计划评估日期:"
prop="planReviewDate"
class="fromItem"
>
<el-input
v-model="ruleFormdialog.planReviewDate"
disabled
></el-input>
</el-form-item>
<el-form-item label="后评估专家:" prop="expertName" class="fromItem">
<el-input v-model="ruleFormdialog.expertName" disabled></el-input>
</el-form-item>
<el-form-item label="工作组织情况:" class="textarea">
<el-input
type="textarea"
v-model="ruleFormdialog.description"
disabled
></el-input>
</el-form-item>
</el-form>
<p class="xqtitle"><span></span>本项目材料清单</p>
<div class="setscrolldialog">
<el-table
@selection-change="handleSelectionChange"
:data="tableDataQD"
tooltip-effect="dark myTooltips"
style="width: 100%"
header-cell-class-name="custom-th-background"
class="eltable"
:row-class-name="tableRowClassName"
border
>
<el-table-column label="序号" width="55" type="index">
</el-table-column>
<el-table-column label="材料类别" prop="batchtype">
</el-table-column>
<el-table-column prop="typeText" label="资料类型">
</el-table-column>
<el-table-column
prop="fileName"
label="资料名称"
show-overflow-tooltip
>
</el-table-column>
<el-table-column prop="projectCategory" label="操作">
<template slot-scope="scope">
<input
type="file"
@change="handleFileUpload($event, scope.row)"
/>
</template>
</el-table-column>
</el-table>
</div>
<p class="Btn">
<span @click="cancel()">取消</span>
<span @click="preserve()">保存</span>
<span @click="save()">确认上传</span>
</p>
</div>
</template>
<script>
export default {
}
</script>
<style>
</style>
\ No newline at end of file
......@@ -24,9 +24,9 @@
clearable
></el-input>
</el-form-item>
<el-form-item label="项目编码:" prop="projectId" class="fromItem">
<el-form-item label="项目编码:" prop="projectCode" class="fromItem">
<el-input
v-model="ruleForm.projectId"
v-model="ruleForm.projectCode"
placeholder="请输入"
clearable
></el-input>
......@@ -38,9 +38,9 @@
clearable
></el-input>
</el-form-item>
<el-form-item label="项目年度:" prop="projectYear" class="fromItem">
<el-form-item label="项目年度:" prop="issueYear" class="fromItem">
<el-select
v-model="ruleForm.projectYear"
v-model="ruleForm.issueYear"
placeholder="请选择"
clearable
>
......@@ -126,7 +126,7 @@
<el-table-column prop="batchName" label="后评估批次名称">
</el-table-column>
<el-table-column prop="expertName" label="评审专家"> </el-table-column>
<el-table-column prop="projectId" label="项目编码" width="140"> </el-table-column>
<el-table-column prop="projectCode" label="项目编码" width="140"> </el-table-column>
<el-table-column
prop="projectName"
......@@ -134,17 +134,29 @@
show-overflow-tooltip
>
</el-table-column>
<el-table-column prop="projectYear" label="项目年度" width="120">
<template slot-scope="scope">
{{ scope.row.projectYear }}
<el-table-column prop="issueYear" label="项目年度" width="120">
<template slot-scope="scope" >
<span v-show="scope.row.issueYear"> {{ scope.row.issueYear }}</span>
</template>
</el-table-column>
<el-table-column prop="projectCategory" label="建设形式" width="120">
<el-table-column prop="constructionForm" label="建设形式" width="120">
</el-table-column>
<el-table-column prop="postEvalStateText" label="项目审核状态" width="120">
</el-table-column>
<el-table-column
prop="contractNumber"
label="合同编号"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop="contractName"
label="合同名称"
width="auto"
show-overflow-tooltip
>
</el-table-column>
<el-table-column prop="planReviewDate" label="计划评估日期">
</el-table-column>
<el-table-column prop="lastUpdateTime" label="实际评估日期">
......@@ -179,13 +191,13 @@
<div>
<p class="title"><span></span>项目基本信息</p>
<div class="content">
<p><label>项目编号:</label>{{ listData.projectId }}</p>
<p><label>项目年度:</label>{{ listData.projectYear }}年</p>
<p><label>项目编号:</label>{{ listData.projectCode }}</p>
<p><label>项目年度:</label>{{ listData.issueYear }}年</p>
<p>
<label>项目名称:</label>
<span>{{ listData.projectName }}</span>
</p>
<p><label>建设形式:</label>{{ listData.projectCategory }}</p>
<p><label>建设形式:</label>{{ listData.constructionForm }}</p>
<p>
<label>总投资计划(万元)-成本金:</label
>{{ listData.costAmountTotal }}
......@@ -346,7 +358,7 @@ import {
downloadObject,
downloadObjectAll
} from "@/api/index";
import { generateYearOptions, projectCategoryText } from "@/utils/cache";
import { generateYearOptions, constructionFormText } from "@/utils/cache";
export default {
data() {
return {
......@@ -361,7 +373,7 @@ export default {
batchName: "",
postEvalState: "",
projectName: "",
projectId: "",
projectCode: "",
},
ruleFormdialog: {
batchYear: "",
......@@ -386,7 +398,7 @@ export default {
},
mounted() {
this.ruleForm.batchName = this.$route.query.batchName;
this.ruleForm.projectId = this.$route.query.projCode;
this.ruleForm.projectCode = this.$route.query.projCode;
this.submitForm();
},
......@@ -428,8 +440,8 @@ export default {
}
this.$set(
item,
"projectCategory",
projectCategoryText(item.projectCategory)
"constructionForm",
constructionFormText(item.constructionForm)
);
});
this.total = res.data.total * 1;
......@@ -453,12 +465,12 @@ export default {
this.dialog = true;
let params = {
batchId: this.checkedList[0].batchId,
projectId: this.checkedList[0].projectId,
projectCode: this.checkedList[0].projectCode,
};
Promise.all([fzcxXqselect(params), clqdselect(params)]).then((res) => {
this.listData = res[0].data.records[0];
this.listData.projectCategory = projectCategoryText(
this.listData.projectCategory
this.listData.constructionForm = constructionFormText(
this.listData.constructionForm
);
this.qdtableData = JSON.parse(JSON.stringify(this.tableDataNew));
if (res[1].data.records.length > 0) {
......@@ -523,7 +535,7 @@ export default {
if (this.activeName == "second") {
let params = {
batchId: this.checkedList[0].batchId,
projectId: this.checkedList[0].projectId,
projectCode: this.checkedList[0].projectCode,
};
this.xxtableData = [];
let res = await wtqdqselect(params);
......@@ -582,7 +594,7 @@ export default {
} else if (this.activeName == "third") {
let params = {
batchId: this.checkedList[0].batchId,
projectId: this.checkedList[0].projectId,
projectCode: this.checkedList[0].projectCode,
};
let res = await selLcb(params);
if (res.code == "200") {
......@@ -641,7 +653,7 @@ export default {
return;
}
let response = await downloadObjectAll({
prjId:this.checkedList[0].projectId,
prjId:this.checkedList[0].projectCode,
bathId: this.checkedList[0].batchId,
});
let blob = new Blob([response], { type: 'application/zip' })
......
......@@ -24,9 +24,9 @@
clearable
></el-input>
</el-form-item>
<el-form-item label="项目编码:" prop="projectId" class="fromItem">
<el-form-item label="项目编码:" prop="projectCode" class="fromItem">
<el-input
v-model="ruleForm.projectId"
v-model="ruleForm.projectCode"
placeholder="请输入"
clearable
></el-input>
......@@ -38,9 +38,9 @@
clearable
></el-input>
</el-form-item>
<el-form-item label="项目年度:" prop="projectYear" class="fromItem">
<el-form-item label="项目年度:" prop="issueYear" class="fromItem">
<el-select
v-model="ruleForm.projectYear"
v-model="ruleForm.issueYear"
placeholder="请选择"
clearable
>
......@@ -132,7 +132,7 @@
</el-table-column>
<el-table-column prop="expertName" label="评审专家"> </el-table-column>
<el-table-column prop="projectId" label="项目编码" width="120">
<el-table-column prop="projectCode" label="项目编码" width="120">
</el-table-column>
<el-table-column
prop="projectName"
......@@ -140,19 +140,40 @@
show-overflow-tooltip
>
</el-table-column>
<el-table-column prop="projectYear" label="项目年度" width="120">
<template slot-scope="scope">
{{ scope.row.projectYear }}
<el-table-column prop="issueYear" label="项目年度" width="120">
<template slot-scope="scope" >
<span v-show="scope.row.issueYear"> {{ scope.row.issueYear }}</span>
</template>
</el-table-column>
<el-table-column prop="projectCategory" label="建设形式" width="120">
<el-table-column prop="projectType" label="项目类型" width="120">
<template slot-scope="scope" >
<span v-show="scope.row.projectType"> {{ scope.row.projectType|proType }}</span>
</template>
</el-table-column>
<el-table-column prop="constructionForm" label="建设形式" width="120">
</el-table-column>
<el-table-column
prop="postEvalStateText"
label="项目审核状态 "
width="120"
>
</el-table-column>
<el-table-column
prop="contractNumber"
label="合同编号"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop="contractName"
label="合同名称"
width="auto"
show-overflow-tooltip
>
</el-table-column>
<!-- <el-table-column prop="reviewStatusText" label="项目审核状态" width="120">
</el-table-column> -->
<el-table-column prop="planReviewDate" label="计划评估日期">
......@@ -372,10 +393,11 @@ import {
downloadObject,
tjrectificationVerification
} from "@/api/index";
import { generateYearOptions, projectCategoryText } from "@/utils/cache";
import { generateYearOptions, constructionFormText } from "@/utils/cache";
export default {
data() {
return {
dialogFullScreen:false,
yearsList: generateYearOptions(),
showButton: true,
ruleForm: {
......@@ -383,7 +405,7 @@ export default {
batchName: "",
postEvalState: "",
projectName: "",
projectId: "",
projectCode: "",
dates: [],
},
ruleFormdialog: {
......@@ -426,6 +448,21 @@ export default {
this.ruleForm.batchName = this.$route.query.batchName;
this.submitForm();
},
filters: {
proType(val) {
if (val == 1) {
return "咨询设计类";
} else if (val == 2) {
return "开发实施类";
}else if (val == 3){
return "业务运营类";
}else if (val == 4){
return "数据工程类";
}else if (val == 5){
return "产品购置类";
}
},
},
methods: {
//整改复核
async rectificationReview() {
......@@ -437,7 +474,7 @@ export default {
}
this.dialogQR = true;
let params = {
projectId: this.checkedList[0].projectId,
projectCode: this.checkedList[0].projectCode,
batchId: this.checkedList[0].batchId,
};
......@@ -586,8 +623,8 @@ export default {
this.$set(
item,
"projectCategory",
projectCategoryText(item.projectCategory)
"constructionForm",
constructionFormText(item.constructionForm)
);
});
this.total = res.data.total * 1;
......@@ -609,8 +646,10 @@ export default {
return;
}
let params = {
projectId: this.checkedList[0].projectId,
batchId: this.checkedList[0].batchId,
projectId: this.checkedList[0].projectCode,
contractNumber: this.checkedList[0].contractNumber,
proType:this.checkedList[0].projectType
};
this.$router.push({
path: "/assesszc/Compliance",
......@@ -627,7 +666,7 @@ export default {
return;
}
let params = {
projectId: this.checkedList[0].projectId,
projectId: this.checkedList[0].projectCode,
batchId: this.checkedList[0].batchId,
};
this.$router.push({
......@@ -656,7 +695,7 @@ export default {
console.log("222");
// this.dialog = true;
let params = {
projectId: this.checkedList[0].projectId,
projectId: this.checkedList[0].projectCode,
batchId: this.checkedList[0].batchId,
};
this.$router.push({
......@@ -679,7 +718,7 @@ export default {
let params = {
current: this.currentPage,
pageSize: this.pageSize,
projectId: this.checkedList[0].projectId,
projectId: this.checkedList[0].projectCode,
batchId: this.checkedList[0].batchId,
};
let res = await chpostEvalQuesInfo(params);
......
......@@ -23,9 +23,20 @@
:label="item.typeText"
:name="item.typeCode"
>
<!-- <p style="height:600px"> {{ item.typeText }}</p> -->
<div class="opt" v-show="options.length>0">
<el-select v-model="valuesel" clearable placeholder="请选择" @change="changexm">
<el-option
v-for="(item,index) in options"
:key="item.name"
:label="item.name"
:value="index">
</el-option>
</el-select>
</div>
<iframe
v-if="blobType=='pdf'"
v-if="blobType=='pdf'&&options.length>0"
:key="iframeUrl"
:src="iframeUrl"
frameborder="0"
style="width: 80%; height: 60vh; margin: auto; display: block"
......@@ -33,13 +44,10 @@
<div v-else-if="blobType=='png'||blobType=='jpg'" class="blobImg">
<img :src="iframeUrl" alt="">
</div>
<div class="docDiv" v-else-if="blobType=='docx'">
<div ref="word" id="preview" >
<div class="docDiv" v-else-if="blobType=='docx'&&options.length>0">
<div :ref="`word${item.typeCode}`" :id="`word${item.typeCode}`" >
</div>
</div>
</el-tab-pane>
</el-tabs>
</div>
......@@ -206,11 +214,14 @@ import {
bcevalQuesInfo,
ossupload,
presignedUrl,
selFileList
} from "@/api/index";
import { MaterialsListKY } from "@/utils/cache";
export default {
data() {
return {
valuesel:'',
options:[],
dialogImageUrl: "",
fileList: [],
evalList: [
......@@ -227,7 +238,7 @@ export default {
{ label: "执行", id: 4 },
{ label: "结决算及转资", id: 5 },
],
tabListKY: MaterialsListKY(1),
tabListKY:[],
active: 0,
activeName: "0",
clqparams: {},
......@@ -242,7 +253,8 @@ export default {
disabled: false,
oldQuestionList: [], //对比列表
blobType:'pdf',//bolb类型
projectName:""
projectName:"",
valuesel:""
};
},
mounted() {
......@@ -261,13 +273,7 @@ export default {
})
.then(() => {
this.save();
this.$router.push({
path: "/assesszc/Compliancefz",
query: {
clqparams: JSON.stringify(this.clqparams),
projectName:this.projectName
},
});
})
.catch((action) => {
......@@ -342,6 +348,10 @@ export default {
handleExceed() {
this.$message.warning(`只能选择一张图片`);
},
changexm(row){
this.downloadObject(this.options[row])
console.log(row,'换文件')
},
async init(type) {
let params = {
projectStage: this.active * 1 + 1,
......@@ -349,8 +359,25 @@ export default {
...type,
};
Promise.all([selFile(params), selWtqdFZ(params)]).then(async (res) => {
this.tabListKY=[]
this.urlList = res[0].data;
if(this.urlList.length>0){
this.urlList.forEach(item=>{
this.tabListKY.push({typeText:item.materialName,typeCode:item.mid})
})
this.activeName=this.tabListKY[0].typeCode
let resList= await selFileList({ ...params,typeCode:this.tabListKY[0].typeCode });
this.options= resList.data
if(this.options.length>0){
this.valuesel=this.options[0].name
this. downloadObject(this.options[0])
}else{
this.blobType='png'
this.iframeUrl = "/nopdf.png";
}
}else{
// this.iframeUrl = "/nopdf.png";
}
if (res[1].data) {
this.questionList = res[1].data.records;
let counterNum = 0;
......@@ -425,54 +452,47 @@ export default {
}
})
}
console.log(this.questionList,'2')
if (this.urlList.length <= 0) {
this.iframeUrl = "/nopdf.png";
} else {
let resUrl = await downloadObject({fileId: this.urlList[0].id});
this.blobType=this.urlList[0].fileType
const binaryData = []
binaryData.push(resUrl)
let URL = window.URL.createObjectURL(new Blob(binaryData, { type: this.urlList[0].contentType}))
this.iframeUrl = URL
if(this.blobType=='docx'){
let docx = require("docx-preview");
window.JSZip = require("jszip");
this.$nextTick(()=>{
docx.renderAsync(resUrl,document.getElementById("preview")) // 渲染到页面预览
})
}
}
});
},
async handleClick(tab) {
console.log("切换", tab.name, this.urlList);
this.urlList.forEach(async (item) => {
if (item.typeCode == tab.name) {
let resUrl = await downloadObject({fileId:item.id});
this.blobType=item.fileType
async downloadObject(row){
let resUrl = await downloadObject({fileId:row.id});
this.blobType=row.suffix
const binaryData = []
binaryData.push(resUrl)
let URL = window.URL.createObjectURL(new Blob(binaryData, { type:item.contentType}))
this.iframeUrl = URL;
let URL = window.URL.createObjectURL(new Blob(binaryData, { type:row.contentType}))
this.iframeUrl = URL+'#view=FitH,top'
console.log(this.blobType,'文件类型')
if(this.blobType=='docx'){
let docx = require("docx-preview");
window.JSZip = require("jszip");
this.$nextTick(()=>{
docx.renderAsync(resUrl,document.getElementById("preview")) // 渲染到页面预览
docx.renderAsync(resUrl,document.getElementById(`word${item.typeCode}`)) // 渲染到页面预览
})
}
} else {
// this.iframeUrl =""
},
async handleClick(tab) {
let params = {
projectStage: this.active * 1 + 1,
hgx:"hgx",
...this.clqparams,
};
this.options=[]
this.valuesel=''
this.iframeUrl =""
console.log("切换", tab.index,);
let resList= await selFileList({ ...params,typeCode:this.tabListKY[tab.index].typeCode });
this.options= resList.data
if(this.options.length>0){
this.valuesel=this.options[0].name
this.downloadObject(this.options[0])
}else{
this.blobType='png'
this.iframeUrl = "/nopdf.png";
}
});
console.log(this.iframeUrl, "this.iframeUrl");
},
change(id) {
console.log(this.questionList, this.oldQuestionList, "相同么");
console.log(
JSON.stringify(this.questionList) ==
JSON.stringify(this.oldQuestionList),
......@@ -484,7 +504,7 @@ export default {
JSON.stringify(this.oldQuestionList)
) {
this.active = id * 1;
this.tabListKY = MaterialsListKY(id * 1 + 1);
// this.tabListKY = MaterialsListKY(id * 1 + 1);
this.init(this.clqparams);
return;
}
......@@ -497,14 +517,14 @@ export default {
.then(() => {
this.save();
this.active = id * 1;
this.tabListKY = MaterialsListKY(id * 1 + 1);
// this.tabListKY = MaterialsListKY(id * 1 + 1);
this.init(this.clqparams);
})
.catch((action) => {
console.log(action, "actionaction");
if (action === "cancel") {
this.active = id * 1;
this.tabListKY = MaterialsListKY(id * 1 + 1);
// this.tabListKY = MaterialsListKY(id * 1 + 1);
this.init(this.clqparams);
} else {
}
......@@ -563,8 +583,6 @@ export default {
}
},
cancel() {
console.log("电击取消");
// this.$router.go(-1);
this.$router.push({
path: "/assesszc/auxiliaryInspection",
});
......@@ -591,6 +609,13 @@ export default {
let res = await bcevalQuesInfo(params);
if (res.code == "200") {
this.$message("保存成功");
this.$router.push({
path: "/assesszc/Compliancefz",
query: {
clqparams: JSON.stringify(this.clqparams),
projectName:this.projectName
},
});
} else {
this.$message("保存失败");
}
......@@ -852,12 +877,22 @@ export default {
.blobImg{
width: 100%;
img{
width: 100%;
text-align: center;
width:80%;
}
}
.docDiv{
width: 100%;
height:600px;
overflow-y: auto;
overflow: auto;
}
.opt{
height: 40px;
width: 100%;
text-align: left;
padding-left: 10px;
/deep/ .el-input__inner{
width:600px;
}
}
</style>
\ No newline at end of file
......@@ -30,7 +30,7 @@ export default {
<style lang="scss" scoped>
.main{
min-height: 100%;
min-height:80vh;
padding: 10px;
padding-top:5px;
padding-bottom: 0;
......
<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>
......
......@@ -11,6 +11,7 @@
ref="kzMenu"
>
<el-menu-item index="/mainLayout/mianHome" class="classmain">首页</el-menu-item>
<el-menu-item index="/assesszc/projectView" class="classmain">项目档案库</el-menu-item>
<el-submenu
v-for="(item, index) in menuList"
:key="index"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!