|
|
@ -1,10 +1,11 @@ |
|
|
|
<template> |
|
|
|
<div class="page"> |
|
|
|
<div class="pageBox"> |
|
|
|
<div class="pageBox" v-if="msg === '项目'"> |
|
|
|
<div class="topTitle">关联项目</div> |
|
|
|
<!-- <div class="tip">提示:{{ this.msg }}</div> --> |
|
|
|
<div class="biaodan"> |
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="84px"> |
|
|
|
<projectBinding :isCom="true" /> |
|
|
|
<!-- <el-form ref="form" :model="form" :rules="rules" label-width="84px"> |
|
|
|
<el-form-item label="项目名称" prop="projectName"> |
|
|
|
<el-select |
|
|
|
v-model="form.projectName" |
|
|
@ -16,9 +17,9 @@ |
|
|
|
multiple |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="dict in projectNameOptions" |
|
|
|
:key="dict.bidProjectName + dict.id" |
|
|
|
:label="dict.bidProjectName" |
|
|
|
v-for="dict in infoList" |
|
|
|
:key="dict.projectName + dict.id" |
|
|
|
:label="dict.projectName" |
|
|
|
:value="dict.proNo" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
@ -26,7 +27,14 @@ |
|
|
|
</el-form> |
|
|
|
<div class="btn"> |
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button> |
|
|
|
</div> |
|
|
|
</div> --> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="pageBox" v-if="msg === '企业'"> |
|
|
|
<div class="topTitle">关联企业</div> |
|
|
|
<!-- <div class="tip">提示:{{ this.msg }}</div> --> |
|
|
|
<div class="biaodan"> |
|
|
|
<enterpriseBinding :isCom="true" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -40,10 +48,16 @@ import { |
|
|
|
updateBidResult, |
|
|
|
exportBidResult, |
|
|
|
} from "@/api/earlyStage/bidResult"; |
|
|
|
import { legalLinkProject } from "@/api/common"; |
|
|
|
import { legalLinkProject, legalProjectList } from "@/api/common"; |
|
|
|
import { isLegal } from "@/api/common"; |
|
|
|
import projectBinding from "./projectAndEnterpriseBindingMange/projectBinding/index.vue"; |
|
|
|
import enterpriseBinding from "./projectAndEnterpriseBindingMange/enterpriseBinding/index.vue"; |
|
|
|
export default { |
|
|
|
name: "legalLinkProject", |
|
|
|
components: { |
|
|
|
projectBinding, |
|
|
|
enterpriseBinding, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
title: "关联项目", |
|
|
@ -56,24 +70,48 @@ export default { |
|
|
|
}, |
|
|
|
projectNameOptions: [], |
|
|
|
msg: "", |
|
|
|
infoList: [], |
|
|
|
// 查询参数 |
|
|
|
queryParams1: { |
|
|
|
pageNum: 1, |
|
|
|
pageSize: 10, |
|
|
|
ids: null, |
|
|
|
data: { |
|
|
|
projectName: null, |
|
|
|
adcd: null, |
|
|
|
}, |
|
|
|
// 排序方式 |
|
|
|
params: { |
|
|
|
// 按哪个字段排序 |
|
|
|
orderBy: "create_time", |
|
|
|
// desc降序,升序asc |
|
|
|
sortBy: "desc", |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.getProjectNameOptions(); |
|
|
|
isLegal().then((res) => { |
|
|
|
console.log("data--mag", res); |
|
|
|
if (!res.data) { |
|
|
|
this.msg = res.msg; |
|
|
|
} |
|
|
|
// if (res.msg === "项目") { |
|
|
|
// this.getProjectNameOptions(); |
|
|
|
// } |
|
|
|
}); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
getProjectNameOptions() { |
|
|
|
listBidResult({}).then((res) => { |
|
|
|
console.log(res); |
|
|
|
this.projectNameOptions = res.records; |
|
|
|
}); |
|
|
|
}, |
|
|
|
// getProjectNameOptions() { |
|
|
|
// legalProjectList(this.queryParams1).then((res) => { |
|
|
|
// this.infoList = res.records; |
|
|
|
// console.log("this.infoList", this.infoList); |
|
|
|
// }); |
|
|
|
// // listBidResult({}).then((res) => { |
|
|
|
// // console.log(res); |
|
|
|
// // this.projectNameOptions = res.records; |
|
|
|
// // }); |
|
|
|
// }, |
|
|
|
submitForm() { |
|
|
|
this.$refs["form"].validate((valid) => { |
|
|
|
if (valid) { |
|
|
@ -98,8 +136,9 @@ export default { |
|
|
|
justify-content: center; |
|
|
|
align-items: center; |
|
|
|
.pageBox { |
|
|
|
width: 500px; |
|
|
|
height: 300px; |
|
|
|
width: 1200px; |
|
|
|
height: 800px; |
|
|
|
overflow: auto; |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
background: #fff; |
|
|
|