Commit 4e246c6c by liangzhen

增加保存功能

1 parent fff95588
......@@ -51,6 +51,10 @@ export function projectInfo(params) {
export function fbProjectInfo(params) {
return post(`${ARCH_EVALUATION}/projectInfo/fb`, params)
}
//保存
export function bcProjectInfo(params) {
return post(`${ARCH_EVALUATION}/projectInfo/bc`, params)
}
//删除  
export function delProjectInfo(params) {
return post(`${ARCH_EVALUATION}/projectInfo/del`, params)
......
......@@ -312,11 +312,11 @@ export function trendsRules(type) {
// url: "/mainLayout/auxiliaryQuery",
// children: [],
// },
{
name: "问题反馈",
url: "/mainLayout/assistedFeedback",
children: [],
},
// {
// name: "问题反馈",
// url: "/mainLayout/assistedFeedback",
// children: [],
// },
{
name: "申诉确认",
url: "/mainLayout/assistedConfirm",
......@@ -327,16 +327,16 @@ export function trendsRules(type) {
// url: "/mainLayout/assistedRect",
// children: [],
// },
{
name: "整改核验",
url: "/mainLayout/correctiveAssistanceVerification",
children: [],
},
{
name: "同步归档",
url: "/mainLayout/attachSynchronousArchiving",
children: [],
},
// {
// name: "整改核验",
// url: "/mainLayout/correctiveAssistanceVerification",
// children: [],
// },
// {
// name: "同步归档",
// url: "/mainLayout/attachSynchronousArchiving",
// children: [],
// },
],
},
{
......
......@@ -284,11 +284,19 @@
</el-table-column>
<el-table-column label="上传整改材料" width="400">
<template slot-scope="scope" v-if="scope.row.zgFileId">
{{ scope.row.zgName }}
<el-tag
size="small"
v-for="(tag,index) in scope.row.tags"
:key="index"
@click="handleClickXZ(scope.row.tagId[index], tag)"
>
{{tag}}
</el-tag>
<!-- {{ scope.row.zgName}}
<el-button
@click="handleClickXZ(scope.row.zgFileId, scope.row.zgName)"
>下载</el-button
>
> -->
</template>
</el-table-column>
<el-table-column label="情况说明" prop="zgqkFileId" width="400">
......@@ -439,6 +447,14 @@ export default {
this.$set(item, "projectStagetext", "6.结决算及转资");
break;
}
let arr = [];
let arrID = [];
if (item.zgName) {
arr =item.zgName.split(',')
arrID =item.zgFileId.split(',')
this.$set(item, "tags", arr);
this.$set(item, "tagId", arrID);
}
});
console.log(this.tableDataQR, "加不进去?");
this.dataPretreatment();
......@@ -672,6 +688,23 @@ export default {
}
return "";
},
async handleClickXZ(fileId, fileName) {
console.log(fileId, "22222");
let response = await downloadObject({
fileId: fileId * 1,
});
let blob = new Blob([response]);
if ("download" in document.createElement("a")) {
let elink = document.createElement("a");
elink.download = fileName;
elink.style.display = "none";
elink.href = URL.createObjectURL(blob);
document.body.appendChild(elink);
elink.click();
URL.revokeObjectURL(elink.href); // 释放URL 对象
document.body.removeChild(elink);
}
},
//主列表选中行信息
handleSelectionChange(selection) {
if (Array.isArray(selection) && selection.length > 1) {
......@@ -991,6 +1024,10 @@ h3 {
overflow-x: hidden !important;
}
}
/deep/ .el-tag{
white-space: normal;
height:auto;
}
</style>
\ No newline at end of file
......@@ -224,6 +224,8 @@
scope.row.fields | filtertfields
}}</template>
</el-table-column>
<el-table-column prop="expertProfile" label="专家简介" width="auto" show-overflow-tooltip>
</el-table-column>
<el-table-column prop="expertLevel" label="专家级别" width="auto">
<template slot-scope="scope">{{
scope.row.expertLevel | filtertLevel
......@@ -366,6 +368,8 @@
scope.row.fields | filtertfields
}}</template>
</el-table-column>
<el-table-column prop="expertProfile" label="专家简介" width="auto" show-overflow-tooltip>
</el-table-column>
<el-table-column prop="expertLevel" label="专家级别" width="auto">
<template slot-scope="scope">{{
scope.row.expertLevel | filtertLevel
......@@ -400,14 +404,14 @@
<!-- 选择专家弹窗 -->
<el-dialog
title="选择专家组长"
title="选择专家"
:visible.sync="dialogAddzj"
width="90%"
:modal-append-to-body="false"
:append-to-body="false"
>
<div class="adzjdialog">
<el-form :model="ruleFormZJ" label-width="100px" class="demo-ruleForm">
<el-form :model="ruleFormZJ" label-width="100px" class="demo-ruleForm" >
<el-form-item label="专家姓名:" prop="fullName" class="fromItem">
<el-input
v-model="ruleFormZJ.fullName"
......@@ -458,7 +462,7 @@
</el-select>
</el-form-item> -->
<el-form-item class="cxItem">
<span class="zjquery" @click="xzExperts()"> 查询 </span>
<span class="zjquery" @click="xzExperts('dj')"> 查询 </span>
</el-form-item>
</el-form>
<div class="setscrolldialog">
......@@ -502,7 +506,7 @@
scope.row.fields | filtertfields
}}</template>
</el-table-column>
<el-table-column prop="新增字段" label="专家简介" width="auto">
<el-table-column prop="expertProfile" label="专家简介" width="auto" show-overflow-tooltip>
</el-table-column>
<el-table-column prop="expertLevel" label="专家级别" width="auto">
<template slot-scope="scope">{{
......@@ -650,6 +654,8 @@
scope.row.fields | filtertfields
}}</template>
</el-table-column>
<el-table-column prop="expertProfile" label="专家简介" width="auto" show-overflow-tooltip>
</el-table-column>
<el-table-column prop="expertLevel" label="专家级别" width="auto">
<template slot-scope="scope">{{
scope.row.expertLevel | filtertLevel
......@@ -1008,7 +1014,10 @@ export default {
cancelBJ() {
this.dialogedit = false;
},
async xzExperts() {
async xzExperts(type) {
if(!type){
this.ruleFormZJ={}
}
this.dialogAddzj = true;
let params = {
current: this.currentZJ,
......@@ -1205,6 +1214,7 @@ export default {
}
let res = await chEvalBatchInfo(this.checkedList[0]);
if (res.code == "200") {
this.$message('已撤回')
this.resetForm();
}
},
......
......@@ -288,7 +288,7 @@ export default {
padding-top: 0;
// display: flex;
// padding: 0 20px;
padding-bottom: 20px;
padding-bottom:80px;
position: relative;
}
......
......@@ -447,9 +447,9 @@
clearable
></el-input>
</el-form-item>
<el-form-item label="项目年度:" prop="projectYear" class="fromItem">
<el-form-item label="项目年度:" prop="projectYearStr" class="fromItem">
<el-select
v-model="ruleFormZJ.projectYear"
v-model="ruleFormZJ.projectYearStr"
placeholder="请选择"
clearable
multiple
......@@ -594,6 +594,7 @@ import {
joinProjectInfo,
getProjectInfo,
chProjectInfo,
bcProjectInfo
} from "@/api/index";
import { generateYearOptions, projectCategoryText } from "@/utils/cache";
export default {
......@@ -869,8 +870,8 @@ export default {
});
console.log(this.addtableData, "addtableData");
this.addtotal = this.addtableData.length;
this.handleCurrentChangeZJ(1);
this.handleSizeChangeAdd(5);
// this.handleCurrentChangeZJ(1);
// this.handleSizeChangeAdd(5);
this.dialogAddzj = false;
},
cancelZJ() {
......@@ -916,7 +917,7 @@ export default {
expertStr: expertIdList,
};
params.batchId = this.ruleFormdialogBJ.batchId;
params.prjsOfExpert = this.ruleFormdialogBJ.prjsOfExpert;
// params.prjsOfExpert = this.ruleFormdialogBJ.prjsOfExpert;
console.log(params, "222");
// return
fbProjectInfo(params).then((res) => {
......@@ -925,13 +926,10 @@ export default {
this.resetForm();
});
},
//保存选择项目
savepro() {
if (this.addtableData.length < 1) {
this.$message("请选择待评估项目");
this.$message("没有可保存的项目");
}
console.log('调取保存接口')
return
console.log(this.addZJList, "this.addZJList");
// 确认发布入参
let expertIdList = "";
......@@ -945,13 +943,13 @@ export default {
expertStr: expertIdList,
};
params.batchId = this.ruleFormdialogBJ.batchId;
params.prjsOfExpert = this.ruleFormdialogBJ.prjsOfExpert;
// params.prjsOfExpert = this.ruleFormdialogBJ.prjsOfExpert;
console.log(params, "222");
// return
fbProjectInfo(params).then((res) => {
this.dialogAdd = false;
bcProjectInfo(params).then((res) => {
// this.dialogAdd = false;
this.expertIdList = expertIdList;
this.resetForm();
// this.resetForm();
});
},
cancelXZ() {
......@@ -1258,16 +1256,20 @@ export default {
overflow: auto;
}
.setscrolldialog {
width: 100%;
// width: 100%;
height: 300px;
overflow-y: auto;
overflow-x: scroll;
position: relative;
overflow: auto;
box-sizing: border-box;
/deep/ .el-table {
height: 300px;
overflow: auto;
position: absolute;
min-width: 100%;
.eltable {
box-sizing: border-box;
text-align: center;
width: 190%;
min-width: 190%;
}
/deep/.el-table--scrollable-x .el-table__body-wrapper {
overflow-x: hidden !important;
}
}
.setscrolldialogx {
......@@ -1286,6 +1288,22 @@ export default {
::v-deep.el-table::before {
display: none !important;
}
.setTable {
height: 560px;
overflow-y: auto;
overflow-x: scroll;
position: relative;
overflow: auto;
.eltable {
box-sizing: border-box;
text-align: center;
width: 190%;
min-width: 190%;
}
/deep/.el-table--scrollable-x .el-table__body-wrapper {
overflow-x: hidden !important;
}
}
</style>
<style>
......
......@@ -863,8 +863,8 @@ export default {
});
console.log(this.addtableData, "addtableData");
this.addtotal = this.addtableData.length;
this.handleCurrentChangeZJ(1);
this.handleSizeChangeAdd(5);
// this.handleCurrentChangeZJ(1);
// this.handleSizeChangeAdd(5);
this.dialogAddzj = false;
},
cancelZJ() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!