Commit d8b6f8bf by liangzhen

暂存一版

1 parent 7a7b3680
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
...@@ -16,21 +16,21 @@ export function trendsRules(type) { ...@@ -16,21 +16,21 @@ export function trendsRules(type) {
url: "/mainLayout/auxiliarySelection", url: "/mainLayout/auxiliarySelection",
children: [], children: [],
}, },
{ // {
name: "项目评估结果确认更改", // name: "项目评估结果确认更改",
url: "/mainLayout/confirmChanges", // url: "/mainLayout/confirmChanges",
children: [], // children: [],
}, // },
{ {
name: "评估结果查看", name: "评估结果查看",
url: "/mainLayout/assistedViewing", url: "/mainLayout/assistedViewing",
children: [], children: [],
}, },
{ // {
name: "问题查询", // name: "问题查询",
url: "/mainLayout/auxiliaryQuery", // url: "/mainLayout/auxiliaryQuery",
children: [], // children: [],
}, // },
], ],
}, },
], ],
...@@ -108,17 +108,17 @@ export function trendsRules(type) { ...@@ -108,17 +108,17 @@ export function trendsRules(type) {
url: "/mainLayout/confirmRelease", url: "/mainLayout/confirmRelease",
children: [], children: [],
}, },
// { name: "评估材料自动解析", url: "/mainLayout/materialAnalysis", children: [] },
{ {
name: "项目检查", name: "项目检查",
url: "/mainLayout/auxiliaryInspection", url: "/mainLayout/auxiliaryInspection",
children: [], children: [],
}, },
{ // {
name: "问题下发", // name: "问题下发",
url: "/mainLayout/assitedDistribution", // url: "/mainLayout/assitedDistribution",
children: [], // children: [],
}, // },
{ {
name: "申诉确认", name: "申诉确认",
...@@ -158,11 +158,11 @@ export function trendsRules(type) { ...@@ -158,11 +158,11 @@ export function trendsRules(type) {
url: "/mainLayout/assistedFeedback", url: "/mainLayout/assistedFeedback",
children: [], children: [],
}, },
{ // {
name: "问题整改", // name: "问题整改",
url: "/mainLayout/assistedRect", // url: "/mainLayout/assistedRect",
children: [], // children: [],
}, // },
{ {
name: "专家同步归档", name: "专家同步归档",
url: "/mainLayout/attachSynchronousArchiving", url: "/mainLayout/attachSynchronousArchiving",
...@@ -230,11 +230,11 @@ export function trendsRules(type) { ...@@ -230,11 +230,11 @@ export function trendsRules(type) {
children: [], children: [],
}, },
{ // {
name: "自查问题下发", // name: "自查问题下发",
url: "/assesszc/assitedDistribution", // url: "/assesszc/assitedDistribution",
children: [], // children: [],
}, // },
{ {
name: "自查问题反馈", name: "自查问题反馈",
url: "/assesszc/assistedFeedback", url: "/assesszc/assistedFeedback",
...@@ -287,26 +287,26 @@ export function trendsRules(type) { ...@@ -287,26 +287,26 @@ export function trendsRules(type) {
url: "/mainLayout/auxiliaryInspection", url: "/mainLayout/auxiliaryInspection",
children: [], children: [],
}, },
{ // {
name: "项目评估结果确认更改", // name: "项目评估结果确认更改",
url: "/mainLayout/confirmChanges", // url: "/mainLayout/confirmChanges",
children: [], // children: [],
}, // },
{ {
name: "评估结果查看", name: "评估结果查看",
url: "/mainLayout/assistedViewing", url: "/mainLayout/assistedViewing",
children: [], children: [],
}, },
{ // {
name: "问题下发", // name: "问题下发",
url: "/mainLayout/assitedDistribution", // url: "/mainLayout/assitedDistribution",
children: [], // children: [],
}, // },
{ // {
name: "问题查询", // name: "问题查询",
url: "/mainLayout/auxiliaryQuery", // url: "/mainLayout/auxiliaryQuery",
children: [], // children: [],
}, // },
{ {
name: "问题反馈", name: "问题反馈",
url: "/mainLayout/assistedFeedback", url: "/mainLayout/assistedFeedback",
...@@ -317,11 +317,11 @@ export function trendsRules(type) { ...@@ -317,11 +317,11 @@ export function trendsRules(type) {
url: "/mainLayout/assistedConfirm", url: "/mainLayout/assistedConfirm",
children: [], children: [],
}, },
{ // {
name: "问题整改", // name: "问题整改",
url: "/mainLayout/assistedRect", // url: "/mainLayout/assistedRect",
children: [], // children: [],
}, // },
{ {
name: "整改核验", name: "整改核验",
url: "/mainLayout/correctiveAssistanceVerification", url: "/mainLayout/correctiveAssistanceVerification",
......
...@@ -24,9 +24,9 @@ ...@@ -24,9 +24,9 @@
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="appealStatus" class="fromItem">
<el-select <el-select
v-model="ruleForm.postEvalState" v-model="ruleForm.appealStatus"
placeholder="请选择" placeholder="请选择"
clearable clearable
> >
...@@ -36,6 +36,18 @@ ...@@ -36,6 +36,18 @@
<el-option label="申诉通过" value="3"></el-option> <el-option label="申诉通过" value="3"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="问题整改状态:" prop="reviewStatus" class="fromItem">
<el-select
v-model="ruleForm.reviewStatus"
placeholder="请选择"
clearable
>
<el-option label="未整改" value="4"></el-option>
<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-form-item label="评估项目名称:" prop="projectName" class="fromItem">
<el-input <el-input
v-model="ruleForm.projectName" v-model="ruleForm.projectName"
...@@ -57,14 +69,18 @@ ...@@ -57,14 +69,18 @@
<el-button @click="resetForm('ruleForm')"> <el-button @click="resetForm('ruleForm')">
<img class="buttonIcon" src="../../assets/cz.png" />重置</el-button <img class="buttonIcon" src="../../assets/cz.png" />重置</el-button
> >
<el-button @click="confirm()"> <!-- <el-button @click="confirm()">
<i class="el-icon-chat-dot-square"></i <i class="el-icon-chat-dot-square"></i
>&nbsp;&nbsp;&nbsp;问题确认</el-button >&nbsp;&nbsp;&nbsp;问题确认</el-button
> > -->
<el-button @click="appeal()"> <el-button @click="appeal()">
<i class="el-icon-document-remove"></i <i class="el-icon-document-remove"></i
>&nbsp;&nbsp;&nbsp;申诉</el-button >&nbsp;&nbsp;&nbsp;申诉</el-button
> >
<el-button @click="confirm()">
<i class="el-icon-chat-dot-square"></i
>&nbsp;&nbsp;&nbsp;问题整改</el-button
>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="setscroll"> <div class="setscroll">
...@@ -109,6 +125,8 @@ ...@@ -109,6 +125,8 @@
</el-table-column> </el-table-column>
<el-table-column prop="postEvalStateText" label="申诉状态"> <el-table-column prop="postEvalStateText" label="申诉状态">
</el-table-column> </el-table-column>
<el-table-column prop="reviewStatusText" label="问题整改状态">
</el-table-column>
<!-- <el-table-column prop="reviewStatus" label="后评估状态"> </el-table-column> --> <!-- <el-table-column prop="reviewStatus" label="后评估状态"> </el-table-column> -->
<el-table-column prop="reviewDate" label="评估日期"> </el-table-column> <el-table-column prop="reviewDate" label="评估日期"> </el-table-column>
</el-table> </el-table>
...@@ -124,11 +142,11 @@ ...@@ -124,11 +142,11 @@
class="elpagination" class="elpagination"
> >
</el-pagination> </el-pagination>
<!-- 问题确认 --> <!-- 问题整改 -->
<el-dialog <el-dialog
title="问题确认" title="问题整改"
:visible.sync="dialogQR" :visible.sync="dialogQR"
width="90%" width="79%"
:modal-append-to-body="false" :modal-append-to-body="false"
:append-to-body="false" :append-to-body="false"
@close="closed" @close="closed"
...@@ -139,62 +157,136 @@ ...@@ -139,62 +157,136 @@
</h3> </h3>
<div class="continer"> <div class="continer">
<p class="xqtitle"><span></span>问题清单</p> <p class="xqtitle"><span></span>问题清单</p>
<el-table <div class="setTable">
:data="tableDataQR" <el-table
tooltip-effect="dark" :data="tableDataQR"
style="width: 100%" tooltip-effect="dark"
header-cell-class-name="custom-th-background" style="width: 100%"
class="eltable" header-cell-class-name="custom-th-background"
:row-class-name="tableRowClassName" class="eltable"
:span-method="arraySpanMethod" :row-class-name="tableRowClassName"
border :span-method="arraySpanMethod"
> border
<el-table-column
label="项目环节"
prop="projectStagetext"
width="150"
> >
</el-table-column> <el-table-column
<el-table-column label="序号" width="100" type="index"> label="项目环节"
</el-table-column> prop="projectStagetext"
width="150"
>
</el-table-column>
<el-table-column label="序号" width="100" type="index">
</el-table-column>
<el-table-column label="问题检查项" prop="quesCheckItem"> <el-table-column
</el-table-column> label="问题检查项"
<el-table-column prop="quesCheckItem"
label="检查说明" width="200"
prop="checkDesc" >
show-overflow-tooltip </el-table-column>
> <el-table-column
</el-table-column> label="检查说明"
<el-table-column label="评估问题" prop="evalQues"> prop="checkDesc"
</el-table-column> show-overflow-tooltip
<el-table-column label="问题确认" width="auto"> >
<template slot-scope="scope"> </el-table-column>
<el-switch <el-table-column
v-show="scope.row.evalQues" label="评估问题"
v-model="scope.row.confirmStatus" prop="evalQues"
active-color="#C0C0C0" show-overflow-tooltip
inactive-color="#13ce66" >
active-value="2" </el-table-column>
inactive-value="1" <el-table-column label="问题确认" width="auto">
active-text="无异议" <template slot-scope="scope">
inactive-text="有异议" <el-switch
@change="controlSwitch($event, scope.row)" v-model="scope.row.confirmStatus"
active-color="#C0C0C0"
inactive-color="#13ce66"
active-value="2"
inactive-value="1"
active-text="无异议"
inactive-text="有异议"
@change="controlSwitch($event, scope.row)"
disabled
>
<template v-slot:active>
<span>开启</span>
</template>
<template v-slot:inactive>
<span>关闭</span>
</template>
</el-switch>
</template>
</el-table-column>
<el-table-column label="解释批注" width="200" prop="feedback">
<!-- <template
slot-scope="scope"
v-if="scope.row.confirmStatus == '1'"
> >
<template v-slot:active> <el-input v-model="scope.row.feedback"></el-input>
<span>开启</span> </template> -->
</template> </el-table-column>
<template v-slot:inactive> <el-table-column label="附加解释材料" prop="fileId" width="400">
<span>关闭</span> <template
</template> slot-scope="scope"
</el-switch> v-if="scope.row.confirmStatus == '1'"
</template> >
</el-table-column> <input
</el-table> type="file"
@change="handleFileUpload($event, scope.row, 'fileId')"
/>
</template>
</el-table-column>
<el-table-column
label="复核情况"
prop="rectificationStatus"
width="200"
>
<template
slot-scope="scope"
v-if="scope.row.confirmStatus == '1'"
>
<el-select
v-model="scope.row.appealStatus"
placeholder="请选择"
disabled
>
<el-option label="请选择" value=""></el-option>
<el-option label="未申诉" :value="0"></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>
</template>
</el-table-column>
<el-table-column label="上传整改材料" prop="zgFileId" width="400">
<template
slot-scope="scope"
>
<input
type="file"
@change="handleFileUpload($event, scope.row, 'zgFileId')"
/>
</template>
</el-table-column>
<el-table-column label="情况说明" prop="zgqkFileId" width="400">
<template
slot-scope="scope"
>
<input
type="file"
@change="handleFileUpload($event, scope.row, 'zgqkFileId')"
/>
</template>
</el-table-column>
</el-table>
</div>
</div> </div>
</div> </div>
<p class="midBtn"> <p class="midBtn">
<span @click="cancelSS()">取消</span><span @click="saveSS()">确认</span> <span @click="cancelSS()">取消</span><span @click="saveSS()">保存</span
><span @click="save()">提交</span>
</p> </p>
</el-dialog> </el-dialog>
<!-- 申诉 --> <!-- 申诉 -->
...@@ -251,7 +343,7 @@ ...@@ -251,7 +343,7 @@
active-text="无异议" active-text="无异议"
inactive-text="有异议" inactive-text="有异议"
@change="controlSwitch($event, scope.row)" @change="controlSwitch($event, scope.row)"
disabled
> >
<template v-slot:active> <template v-slot:active>
<span>开启</span> <span>开启</span>
...@@ -296,6 +388,7 @@ import { ...@@ -296,6 +388,7 @@ import {
qrProblemAssistedFeedback, qrProblemAssistedFeedback,
wtssSelProblemAssistedFeedback, wtssSelProblemAssistedFeedback,
ssProblemAssistedFeedback, ssProblemAssistedFeedback,
wtssSelProblemRectification
} from "@/api/index"; } from "@/api/index";
import { generateYearOptions,projectCategoryText } from "@/utils/cache"; import { generateYearOptions,projectCategoryText } from "@/utils/cache";
export default { export default {
...@@ -367,6 +460,15 @@ export default { ...@@ -367,6 +460,15 @@ export default {
} else { } else {
this.$set(item, "postEvalStateText", "未申诉"); this.$set(item, "postEvalStateText", "未申诉");
} }
if (item.reviewStatus == "4") {
this.$set(item, "reviewStatusText", "未整改");
} else if (item.reviewStatus == "5") {
this.$set(item, "reviewStatusText", "整改提交");
} else if (item.reviewStatus == "6") {
this.$set(item, "reviewStatusText", "整改未完成");
} else if (item.reviewStatus == "7") {
this.$set(item, "reviewStatusText", "整改已完成");
}
this.$set(item, "projectCategory",projectCategoryText(item.projectCategory)); this.$set(item, "projectCategory",projectCategoryText(item.projectCategory));
}); });
this.total = res.data.total * 1; this.total = res.data.total * 1;
...@@ -634,6 +736,55 @@ export default { ...@@ -634,6 +736,55 @@ export default {
console.log("关闭"); console.log("关闭");
this.handleSelectionChange(); this.handleSelectionChange();
}, },
//问题整改
async confirm() {
this.mergingPos = 0;
this.mergingRows = [];
if (this.checkedList.length != 1) {
this.$message("请选择一条数据进行整改");
return;
}
if (this.checkedList[0].reviewStatusText == '整改提交') {
this.$message("整改已经提交");
return;
}
this.dialogQR = true;
let params = {
projectId: this.checkedList[0].projectId,
batchId: this.checkedList[0].batchId,
};
let res = await wtssSelProblemRectification(params);
if (res.code == "200") {
this.tableDataQR = res.data.records;
this.tableDataQR.forEach((item) => {
if (!item.confirmStatus) {
this.$set(item, "confirmStatus", "2");
}
switch (item.projectStage) {
case "1":
this.$set(item, "projectStagetext", "1.可研");
break;
case "2":
this.$set(item, "projectStagetext", "2.计划");
break;
case "3":
this.$set(item, "projectStagetext", "3.采购");
break;
case "4":
this.$set(item, "projectStagetext", "4.合同");
break;
case "5":
this.$set(item, "projectStagetext", "5.执行");
break;
case "6":
this.$set(item, "projectStagetext", "6.结决算及转资");
break;
}
});
this.dataPretreatment();
}
},
}, },
}; };
</script> </script>
...@@ -828,8 +979,8 @@ export default { ...@@ -828,8 +979,8 @@ export default {
} }
} }
.midBtn { .midBtn {
margin: 0 auto; margin: 20px auto;
margin-top: 20px; // margin-top: 20px;
span { span {
display: inline-block; display: inline-block;
width: 80px; width: 80px;
...@@ -839,15 +990,20 @@ export default { ...@@ -839,15 +990,20 @@ export default {
margin-right: 10px; margin-right: 10px;
border-radius: 5px; border-radius: 5px;
box-sizing: border-box; box-sizing: border-box;
}
span:first-of-type {
border: 1px solid grey;
}
span:last-of-type {
background-color: #4ca6a7; background-color: #4ca6a7;
color: #fff; color: #fff;
border: 1px solid #4ca6a7; border: 1px solid #4ca6a7;
} }
span:first-of-type {
border: 1px solid grey;
background-color: #fff;
color: grey;
}
// span:last-of-type {
// background-color: #4ca6a7;
// color: #fff;
// border: 1px solid #4ca6a7;
// }
} }
.dialog { .dialog {
height: 680px; height: 680px;
......
...@@ -414,7 +414,7 @@ ...@@ -414,7 +414,7 @@
</el-table-column> </el-table-column>
<el-table-column prop="字段待确认" label="承建单位" width="200"> <el-table-column prop="字段待确认" label="承建单位" width="200">
</el-table-column> </el-table-column>
<el-table-column prop="字段待确认" label="项目经理" width="200"> <el-table-column prop="personCharge" label="负责人" width="200">
</el-table-column> </el-table-column>
<el-table-column prop="projectInfo" label="项目内容" width="200" show-overflow-tooltip> <el-table-column prop="projectInfo" label="项目内容" width="200" show-overflow-tooltip>
</el-table-column> </el-table-column>
......
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
</el-table-column> </el-table-column>
<el-table-column prop="字段待确认" label="承建单位" width="200"> <el-table-column prop="字段待确认" label="承建单位" width="200">
</el-table-column> </el-table-column>
<el-table-column prop="字段待确认" label="项目经理" width="200"> <el-table-column prop="personCharge" label="负责人" width="200">
</el-table-column> </el-table-column>
<el-table-column prop="projectInfo" label="项目内容" show-overflow-tooltip> <el-table-column prop="projectInfo" label="项目内容" show-overflow-tooltip>
</el-table-column> </el-table-column>
......
...@@ -68,15 +68,15 @@ ...@@ -68,15 +68,15 @@
type="textarea" type="textarea"
:autosize="{ minRows: 1, maxRows: 4 }" :autosize="{ minRows: 1, maxRows: 4 }"
v-model="itemfz.checkDesc" v-model="itemfz.checkDesc"
> >
</el-input </el-input
><el-button @click="adopt(item, index, itemfz)" type="primary" ><el-button
v-if="itemfz.type!='1'">采纳</el-button @click="adopt(item, index, itemfz)"
> type="primary"
<el-button type="info" v-if="itemfz.type != '1'"
v-else>采纳</el-button >采纳</el-button
> >
<el-button type="info" v-else>采纳</el-button>
</div> </div>
</div> </div>
<div class="question"> <div class="question">
...@@ -313,6 +313,10 @@ export default { ...@@ -313,6 +313,10 @@ export default {
if (res[1].data) { if (res[1].data) {
this.questionList = res[1].data.records; this.questionList = res[1].data.records;
this.questionList.forEach(async (item) => { this.questionList.forEach(async (item) => {
// let promiseArray = []
// let p = new Promise((resolve, reject) => {
// })
let respon = await selWtmx({ qid: item.qid }); let respon = await selWtmx({ qid: item.qid });
let paramsFX = { let paramsFX = {
...@@ -329,9 +333,6 @@ export default { ...@@ -329,9 +333,6 @@ export default {
url: itemImg.url, url: itemImg.url,
}; };
let resUrl = await presignedUrl(paramsImg); let resUrl = await presignedUrl(paramsImg);
// itemImg.fileList=[{
// url:resUrl.msg
// }]
this.$set(itemImg, "fileList", [ this.$set(itemImg, "fileList", [
{ {
url: resUrl.msg, url: resUrl.msg,
...@@ -342,7 +343,6 @@ export default { ...@@ -342,7 +343,6 @@ export default {
itemImg.hideUploadEdit = false; itemImg.hideUploadEdit = false;
} }
}); });
this.$set(item, "evalList", [...respon.data.records]); this.$set(item, "evalList", [...respon.data.records]);
console.log(item, "itemitemitem"); console.log(item, "itemitemitem");
} else { } else {
...@@ -375,29 +375,25 @@ export default { ...@@ -375,29 +375,25 @@ export default {
this.$set(item, "znfxList", []); this.$set(item, "znfxList", []);
this.$set(item, "fzfxList", []); this.$set(item, "fzfxList", []);
} }
// this.$set(item, "Id", 0);
}); });
} }
if (this.urlList.length <= 0) { if (this.urlList.length <= 0) {
this.iframeUrl = "/nopdf.png"; this.iframeUrl = "/nopdf.png";
return; } else {
} let paramsUrl = {
let paramsUrl = { fileId: this.urlList[0].id,
fileId: this.urlList[0].id, url: this.urlList[0].url,
url: this.urlList[0].url, };
};
let resUrl = await presignedUrl(paramsUrl); let resUrl = await presignedUrl(paramsUrl);
this.iframeUrl = '/pdf/web/viewer.html?file='+resUrl.msg; this.iframeUrl = "/pdf/web/viewer.html?file=" + resUrl.msg;
// this.iframeUrl='/pdf/web/viewer.html?file=http://arch-file.oss-cn-beijing.aliyuncs.com/arch-file/665994f479f6157c744951bd.pdf?Expires=1718011134&OSSAccessKeyId=LTAI5tGjidtvVSCvwGxTp8FH&Signature=blOuzxUwnotgqo7mxM9rShOEJ1I%3D' }
// console.log(this.questionList, "总列表");
setTimeout(() => { setTimeout(() => {
this.oldQuestionList = JSON.parse(JSON.stringify(this.questionList)); this.oldQuestionList = JSON.parse(JSON.stringify(this.questionList));
console.log(this.questionList,this.oldQuestionList, "总列表"); console.log(this.questionList, this.oldQuestionList, "总列表");
}, 300); }, 1000);
}); });
}, },
async handleClick(tab) { async handleClick(tab) {
...@@ -409,7 +405,7 @@ export default { ...@@ -409,7 +405,7 @@ export default {
url: item.url, url: item.url,
}; };
let resUrl = await presignedUrl(paramsUrl); let resUrl = await presignedUrl(paramsUrl);
this.iframeUrl = '/pdf/web/viewer.html?file='+resUrl.msg; this.iframeUrl = "/pdf/web/viewer.html?file=" + resUrl.msg;
} else { } else {
// this.iframeUrl ="" // this.iframeUrl =""
this.iframeUrl = "/nopdf.png"; this.iframeUrl = "/nopdf.png";
...@@ -418,14 +414,21 @@ export default { ...@@ -418,14 +414,21 @@ export default {
console.log(this.iframeUrl, "this.iframeUrl"); console.log(this.iframeUrl, "this.iframeUrl");
}, },
change(id) { change(id) {
console.log(this.questionList,this.oldQuestionList,'相同么') console.log(this.questionList, this.oldQuestionList, "相同么");
console.log(JSON.stringify(this.questionList)==JSON.stringify(this.oldQuestionList),'完全相同么') console.log(
JSON.stringify(this.questionList) ==
if(JSON.stringify(this.questionList)==JSON.stringify(this.oldQuestionList)){ JSON.stringify(this.oldQuestionList),
"完全相同么"
);
if (
JSON.stringify(this.questionList) ==
JSON.stringify(this.oldQuestionList)
) {
this.active = id * 1; this.active = id * 1;
this.tabListKY = MaterialsListKY(id * 1 + 1); this.tabListKY = MaterialsListKY(id * 1 + 1);
this.init(this.clqparams); this.init(this.clqparams);
return return;
} }
this.$confirm("是否保存?", "提示", { this.$confirm("是否保存?", "提示", {
confirmButtonText: "是", confirmButtonText: "是",
...@@ -523,7 +526,7 @@ export default { ...@@ -523,7 +526,7 @@ export default {
item.evalList.forEach((childItem) => { item.evalList.forEach((childItem) => {
evals = evals.concat(childItem.evalQues + ","); evals = evals.concat(childItem.evalQues + ",");
}); });
evals=evals.slice(0, -1) evals = evals.slice(0, -1);
item.evalQues = evals; item.evalQues = evals;
}); });
console.log(this.questionList, "questionList"); console.log(this.questionList, "questionList");
...@@ -580,6 +583,35 @@ export default { ...@@ -580,6 +583,35 @@ export default {
// console.log("来了么222222", this.fileList); // console.log("来了么222222", this.fileList);
// }, // },
}, },
beforeRouteLeave(to,from,next){
if(JSON.stringify(this.questionList) ==JSON.stringify(this.oldQuestionList)){
console.log('相同么')
next({replace: true,redirect: '/mainLayout/auxiliaryInspection'})
}else{
console.log('不同么')
setTimeout(() => {
this.$confirm("是否保存?", "提示", {
confirmButtonText: "是",
cancelButtonText: "否",
distinguishCancelAndClose: true,
type: "warning",
}).then(() => {
this.save('leave');
next({replace: true,redirect: '/mainLayout/auxiliaryInspection'})
})
.catch((action) => {
console.log(action, "actionaction");
if (action === "cancel") {
next({replace: true,redirect: '/mainLayout/auxiliaryInspection'})
} else {
// next()
}
});
},16)
}
}
}; };
</script> </script>
......
...@@ -32,10 +32,10 @@ ...@@ -32,10 +32,10 @@
width="auto" width="auto"
> >
</el-table-column> </el-table-column>
<el-table-column label="评估问题" width="auto"> <el-table-column label="评估问题" width="auto" prop="evalQues" >
<template slot-scope="scope"> <!-- <template slot-scope="scope">
<el-input v-model="scope.row.evalQues" :disabled="ishow"></el-input> <el-input v-model="scope.row.evalQues" :disabled="ishow"></el-input>
</template> </template> -->
</el-table-column> </el-table-column>
<el-table-column label="问题截图" width="auto"> <el-table-column label="问题截图" width="auto">
<template slot-scope="scope"> <template slot-scope="scope">
......
...@@ -539,7 +539,7 @@ ...@@ -539,7 +539,7 @@
</el-table-column> </el-table-column>
<el-table-column prop="department" label="承建单位" width="200"> <el-table-column prop="department" label="承建单位" width="200">
</el-table-column> </el-table-column>
<el-table-column prop="personCharge" label="项目经理" width="200"> <el-table-column prop="personCharge" label="负责人" width="200">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="projectInfo" prop="projectInfo"
...@@ -584,7 +584,7 @@ import { ...@@ -584,7 +584,7 @@ import {
getProjectInfo, getProjectInfo,
chProjectInfo, chProjectInfo,
} 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 {
...@@ -729,6 +729,9 @@ export default { ...@@ -729,6 +729,9 @@ export default {
let res = await joinProjectInfo(params); let res = await joinProjectInfo(params);
if (res.code == "200") { if (res.code == "200") {
this.addtableData = res.data.records; this.addtableData = res.data.records;
this.addtableData.forEach((item) => {
this.$set(item, "projectCategory",projectCategoryText(item.projectCategory));
});
this.addtotal = res.data.total * 1; this.addtotal = res.data.total * 1;
} }
}, },
...@@ -755,6 +758,9 @@ export default { ...@@ -755,6 +758,9 @@ export default {
let res = await joinProjectInfo(params); let res = await joinProjectInfo(params);
if (res.code == "200") { if (res.code == "200") {
this.addtableData = res.data.records; this.addtableData = res.data.records;
this.addtableData.forEach((item) => {
this.$set(item, "projectCategory",projectCategoryText(item.projectCategory));
});
this.addtotal = res.data.total * 1; this.addtotal = res.data.total * 1;
this.oldid = ""; this.oldid = "";
if (this.addtableData.length > 0) { if (this.addtableData.length > 0) {
...@@ -844,6 +850,9 @@ export default { ...@@ -844,6 +850,9 @@ export default {
let res = await getProjectInfo(params); let res = await getProjectInfo(params);
console.log(res.data.records, "res.data.recordsres.data.records"); console.log(res.data.records, "res.data.recordsres.data.records");
this.zjtableData = res.data.records; this.zjtableData = res.data.records;
this.zjtableData.forEach((item) => {
this.$set(item, "projectCategory",projectCategoryText(item.projectCategory));
});
this.zjtotal = res.data.total * 1; this.zjtotal = res.data.total * 1;
console.log(res, "xxx"); console.log(res, "xxx");
}, },
......
...@@ -414,7 +414,7 @@ ...@@ -414,7 +414,7 @@
</el-table-column> </el-table-column>
<el-table-column prop="字段待确认" label="承建单位" width="200"> <el-table-column prop="字段待确认" label="承建单位" width="200">
</el-table-column> </el-table-column>
<el-table-column prop="字段待确认" label="项目经理" width="200"> <el-table-column prop="personCharge" label="负责人" width="200">
</el-table-column> </el-table-column>
<el-table-column prop="projectInfo" label="项目内容" width="200" show-overflow-tooltip> <el-table-column prop="projectInfo" label="项目内容" width="200" show-overflow-tooltip>
</el-table-column> </el-table-column>
......
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
</el-table-column> </el-table-column>
<el-table-column prop="字段待确认" label="承建单位" width="200"> <el-table-column prop="字段待确认" label="承建单位" width="200">
</el-table-column> </el-table-column>
<el-table-column prop="字段待确认" label="项目经理" width="200"> <el-table-column prop="字段待确认" label="负责人" width="200">
</el-table-column> </el-table-column>
<el-table-column prop="projectInfo" label="项目内容" show-overflow-tooltip> <el-table-column prop="projectInfo" label="项目内容" show-overflow-tooltip>
</el-table-column> </el-table-column>
......
...@@ -539,7 +539,7 @@ ...@@ -539,7 +539,7 @@
</el-table-column> </el-table-column>
<el-table-column prop="department" label="承建单位" width="200"> <el-table-column prop="department" label="承建单位" width="200">
</el-table-column> </el-table-column>
<el-table-column prop="personCharge" label="项目经理" width="200"> <el-table-column prop="personCharge" label="负责人" width="200">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="projectInfo" prop="projectInfo"
......
...@@ -605,7 +605,7 @@ ...@@ -605,7 +605,7 @@
</el-table-column> </el-table-column>
<el-table-column prop="department" label="承建单位" width="200"> <el-table-column prop="department" label="承建单位" width="200">
</el-table-column> </el-table-column>
<el-table-column prop="personCharge" label="项目经理" width="200"> <el-table-column prop="personCharge" label="负责人" width="200">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="projectInfo" prop="projectInfo"
......
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
</el-table-column> </el-table-column>
<el-table-column type="selection"> </el-table-column> <el-table-column type="selection"> </el-table-column>
<el-table-column label="项目名称" prop="projectName"> </el-table-column> <el-table-column label="项目名称" prop="projectName"> </el-table-column>
<el-table-column prop="personCharge" label="项目经理"> <el-table-column prop="personCharge" label="负责人">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
......
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
</el-table-column> </el-table-column>
<el-table-column type="selection"> </el-table-column> <el-table-column type="selection"> </el-table-column>
<el-table-column label="项目名称" prop="projectName"> </el-table-column> <el-table-column label="项目名称" prop="projectName"> </el-table-column>
<el-table-column prop="personCharge" label="项目经理"> <el-table-column prop="personCharge" label="负责人">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!