Commit 01c00971 authored by xiongjinke's avatar xiongjinke

修改

parent 144cc399
...@@ -35,8 +35,8 @@ ...@@ -35,8 +35,8 @@
<!-- 输入框 --> <!-- 输入框 -->
<template v-if="form.type==3"> <template v-if="form.type==3">
<div class="cooperate-name"> <div class="cooperate-name">
<el-input v-model="form.value" :placeholder="form.placeholder"></el-input> <el-input @focus="clickFocus('focus'+i)" @blur="clickFocus('focus'+i)" v-model="form.value" :placeholder="form.placeholder"></el-input>
<span @click="changeSelect">搜索</span> <span :id="'focus'+i" @click="changeSelect">搜索</span>
</div> </div>
</template> </template>
<!-- 多选 --> <!-- 多选 -->
...@@ -155,6 +155,9 @@ export default { ...@@ -155,6 +155,9 @@ export default {
message: '功能正在开发中', message: '功能正在开发中',
type: 'warning' type: 'warning'
}); });
},
clickFocus(e){
document.getElementById(e).classList.toggle('span-ba')
} }
} }
} }
...@@ -214,13 +217,18 @@ export default { ...@@ -214,13 +217,18 @@ export default {
border-left: 0; border-left: 0;
cursor: pointer; cursor: pointer;
} }
.span-ba{
color: #ffffff;
background: #0081FF;
border: 1px solid #0081FF;
}
::v-deep .el-input{ ::v-deep .el-input{
flex: 1; flex: 1;
} }
::v-deep .el-input__inner { ::v-deep .el-input__inner {
border-right: 0; border-right: 0;
border-radius: 2px 0 2px 0; border-radius: 2px 0 2px 0;
width: 259px; width: 180px;
} }
} }
.fromTime{ .fromTime{
......
<template> <template>
<div class="cooperate"> <div>
<template v-if="!isDetailId">
<div class="cooperate">
<template v-if="ifEmpty"> <template v-if="ifEmpty">
<head-form <head-form
:form-data="formData" :form-data="formData"
...@@ -29,9 +31,6 @@ ...@@ -29,9 +31,6 @@
<span class="link-type" @click="clickDetail(scope.row.id)"> <span class="link-type" @click="clickDetail(scope.row.id)">
{{ scope.row.projectName }} {{ scope.row.projectName }}
</span> </span>
<!-- <router-link :to="'' + scope.row.dictId" class="link-type">-->
<!-- <span>{{ scope.row.dictType }}</span>-->
<!-- </router-link>-->
</template> </template>
</tables> </tables>
...@@ -118,8 +117,12 @@ ...@@ -118,8 +117,12 @@
</div> </div>
</div> </div>
</el-drawer> </el-drawer>
</div>
</template>
<!-- <Detail :detailId="detailId" v-if="isDetailId" />--> <div v-else class="cooperate-detail">
<Detail :detailId="detailId" @close-detail="closeDetail" />
</div>
</div> </div>
</template> </template>
...@@ -360,7 +363,13 @@ export default { ...@@ -360,7 +363,13 @@ export default {
clickDetail(id){ clickDetail(id){
this.detailId = id this.detailId = id
this.isDetailId = true this.isDetailId = true
},
//关闭详情
closeDetail(){
this.isDetailId = false
this.detailId = ''
} }
} }
} }
</script> </script>
...@@ -511,4 +520,10 @@ export default { ...@@ -511,4 +520,10 @@ export default {
} }
} }
::v-deep .cooperate-detail{
.miantitle, .app-container{
margin: 12px 0;
}
}
</style> </style>
...@@ -72,7 +72,7 @@ export default { ...@@ -72,7 +72,7 @@ export default {
}, },
{ {
prop: 'gdpGrowth', prop: 'gdpGrowth',
label: 'GDP增速', label: 'GDP增速(%)',
}, },
{ {
prop: 'gdpPerCapita', prop: 'gdpPerCapita',
...@@ -128,7 +128,7 @@ export default { ...@@ -128,7 +128,7 @@ export default {
}, },
{ {
prop: 'gbrGrowth', prop: 'gbrGrowth',
label: '一般公共预算收入增速', label: '一般公共预算收入增速(%)',
}, },
{ {
prop: 'taxIncome', prop: 'taxIncome',
...@@ -192,23 +192,23 @@ export default { ...@@ -192,23 +192,23 @@ export default {
}, },
{ {
prop: 'fiscalSelfSufficiencyRate', prop: 'fiscalSelfSufficiencyRate',
label: '财政自给率', label: '财政自给率(%)',
}, },
{ {
prop: 'govDebtToGdpRate', prop: 'govDebtToGdpRate',
label: '负债率', label: '负债率(%)',
}, },
{ {
prop: 'govDebtToGdpRateWild', prop: 'govDebtToGdpRateWild',
label: '负债率-宽口径', label: '负债率-宽口径(%)',
}, },
{ {
prop: 'govDebtRate', prop: 'govDebtRate',
label: '债务率', label: '债务率(%)',
}, },
{ {
prop: 'govDebtRateWild', prop: 'govDebtRateWild',
label: '债务率-宽口径', label: '债务率-宽口径(%)',
}, },
], ],
tableLoading: true tableLoading: true
......
...@@ -129,6 +129,10 @@ ...@@ -129,6 +129,10 @@
default: "" default: ""
}, },
datas:[],//数据源 datas:[],//数据源
detailId: { //从企业详情跳转过来ID
type: Number,
default: 0
}
}, },
name: 'gjjl', name: 'gjjl',
data(){ data(){
...@@ -152,7 +156,7 @@ ...@@ -152,7 +156,7 @@
recordlist:[],//列表数据源 recordlist:[],//列表数据源
isdel:false, isdel:false,
delID:'',//删除记录的ID delID:'',//删除记录的ID
projectId:parseInt(this.$route.query.id),//项目详情id projectId:this.detailId ? this.detailId : parseInt(this.$route.query.id),//项目详情id
} }
}, },
computed: { computed: {
......
...@@ -70,19 +70,25 @@ ...@@ -70,19 +70,25 @@
export default { export default {
name: 'gjjl', name: 'gjjl',
props: {
detailId: { //从企业详情跳转过来ID
type: Number,
default: 0
}
},
data(){ data(){
return{ return{
isEdit:false, isEdit:false,
value:'', value:'',
status:0, status:0,
queryParam:{ queryParam:{
businessId:parseInt(this.$route.query.id),//项目详情id businessId:this.detailId ? this.detailId : parseInt(this.$route.query.id),//项目详情id
target:'', target:'',
task:'', task:'',
finishTime:'', finishTime:'',
}, },
searchPram:{ searchPram:{
businessId:parseInt(this.$route.query.id), businessId:this.detailId ? this.detailId : parseInt(this.$route.query.id),
pageSize:10, pageSize:10,
pageNum:1, pageNum:1,
state:null, state:null,
......
...@@ -203,10 +203,16 @@ ...@@ -203,10 +203,16 @@
import {getJSNR,editXMNR} from '@/api/project/project' import {getJSNR,editXMNR} from '@/api/project/project'
export default { export default {
name: 'jsnr', name: 'jsnr',
props: {
detailId: { //从企业详情跳转过来ID
type: Number,
default: 0
}
},
data(){ data(){
return{ return{
nowedit:-1,//当前正在编辑的文本 nowedit:-1,//当前正在编辑的文本
id:parseInt(this.$route.query.id), id:this.detailId ? this.detailId : parseInt(this.$route.query.id),
investmentAmount: '',//总投资额 investmentAmount: '',//总投资额
amountSource: '',//资金来源 amountSource: '',//资金来源
buildProperty: '',//建设性质 buildProperty: '',//建设性质
......
...@@ -113,6 +113,12 @@ ...@@ -113,6 +113,12 @@
import {getLXR,editLXR,addLXR} from '@/api/project/project' import {getLXR,editLXR,addLXR} from '@/api/project/project'
export default { export default {
name: 'lxr', name: 'lxr',
props: {
detailId: { //从企业详情跳转过来ID
type: Number,
default: 0
}
},
data(){ data(){
return{ return{
dialogVisible:false, dialogVisible:false,
...@@ -125,9 +131,9 @@ ...@@ -125,9 +131,9 @@
searchParam:{ searchParam:{
pageNum:1, pageNum:1,
pageSize:20, pageSize:20,
businessId:this.$route.query.id businessId:this.detailId ? this.detailId : this.$route.query.id
}, },
id:this.$route.query.id, id:this.detailId ? this.detailId : this.$route.query.id,
total:0, total:0,
projectname:this.$route.query.projectname, projectname:this.$route.query.projectname,
queryParam:[], queryParam:[],
......
...@@ -139,6 +139,12 @@ ...@@ -139,6 +139,12 @@
import {getDictType} from '@/api/main' import {getDictType} from '@/api/main'
export default { export default {
name: 'xgqy', name: 'xgqy',
props: {
detailId: { //从企业详情跳转过来ID
type: Number,
default: 0
}
},
data(){ data(){
return{ return{
types:1, types:1,
...@@ -175,7 +181,7 @@ ...@@ -175,7 +181,7 @@
companytype:[], companytype:[],
companyrole:[], companyrole:[],
queryParam:{ queryParam:{
businessId:this.$route.query.id, businessId:this.detailId ? this.detailId : this.$route.query.id,
companyId:'', companyId:'',
companyName:'', companyName:'',
companyRole:'', companyRole:'',
...@@ -186,7 +192,7 @@ ...@@ -186,7 +192,7 @@
searchParam:{ searchParam:{
pageSize:20, pageSize:20,
pageNum:1, pageNum:1,
businessId:this.$route.query.id, businessId:this.detailId ? this.detailId : this.$route.query.id,
companyType:"", companyType:"",
companyName:'', companyName:'',
}, },
...@@ -259,7 +265,7 @@ ...@@ -259,7 +265,7 @@
opennew(){ opennew(){
this.dialogVisible = true this.dialogVisible = true
this.queryParam={ this.queryParam={
businessId:this.$route.query.id, businessId:this.detailId ? this.detailId : this.$route.query.id,
companyId:'', companyId:'',
companyName:'', companyName:'',
companyRole:'', companyRole:'',
......
...@@ -175,6 +175,10 @@ ...@@ -175,6 +175,10 @@
name: 'xmsl', name: 'xmsl',
props:{ props:{
datas:'', datas:'',
detailId: { //从企业详情跳转过来ID
type: Number,
default: 0
}
}, },
data(){ data(){
return{ return{
...@@ -183,7 +187,7 @@ ...@@ -183,7 +187,7 @@
tipsvalue:"",//标签填写内容 tipsvalue:"",//标签填写内容
xmjd:'待添加', xmjd:'待添加',
projectStage:[],//项目阶段 projectStage:[],//项目阶段
id: this.$route.query.id, id: this.detailId ? this.detailId : this.$route.query.id,
xmsldata:this.datas, xmsldata:this.datas,
} }
}, },
......
...@@ -116,6 +116,12 @@ ...@@ -116,6 +116,12 @@
import { getZLWD ,delZLWD} from "@/api/project/project"; import { getZLWD ,delZLWD} from "@/api/project/project";
export default { export default {
name: 'zlwd', name: 'zlwd',
props: {
detailId: { //从企业详情跳转过来ID
type: Number,
default: 0
}
},
data(){ data(){
return{ return{
isupload:false, isupload:false,
...@@ -125,12 +131,12 @@ ...@@ -125,12 +131,12 @@
fileList: [], fileList: [],
headers: { headers: {
Authorization: "Bearer " + getToken(), Authorization: "Bearer " + getToken(),
filePath:this.$route.query.id, filePath:this.detailId ? this.detailId : this.$route.query.id,
}, },
param:{ param:{
pageNum:1, pageNum:1,
pagesize:20, pagesize:20,
filePath:this.$route.query.id, filePath:this.detailId ? this.detailId : this.$route.query.id,
}, },
fileDatas:[], fileDatas:[],
filename:'', filename:'',
...@@ -142,9 +148,9 @@ ...@@ -142,9 +148,9 @@
}, },
methods:{ methods:{
getall(){ getall(){
this.param.filePath = this.$route.query.id this.param.filePath = this.detailId ? this.detailId : this.$route.query.id
this.filename='' this.filename=''
this.headers.filePath = this.$route.query.id this.headers.filePath = this.detailId ? this.detailId : this.$route.query.id
this.handleCurrentChange(1) this.handleCurrentChange(1)
}, },
getList(){ getList(){
...@@ -163,7 +169,7 @@ ...@@ -163,7 +169,7 @@
getFile(row){ getFile(row){
if(row.type == 'file'){ if(row.type == 'file'){
this.filename = row.name this.filename = row.name
this.headers.filePath = this.$route.query.id+'\\'+row.name this.headers.filePath = this.detailId ? this.detailId : this.$route.query.id+'\\'+row.name
this.param.filePath = row.filePath this.param.filePath = row.filePath
this.handleCurrentChange(1) this.handleCurrentChange(1)
......
<template> <template>
<div> <div>
<div class="miantitle"> <div class="miantitle">
<template v-if="!detailId">
<span>项目管理</span> <span>项目管理</span>
<span> / 商机列表</span> <span> / 商机列表</span>
</template>
<span v-else @click="cooperateList">合作情况</span>
<span> / 项目详情</span> <span> / 项目详情</span>
</div> </div>
<div class="app-container" v-if="ProjectData"> <div class="app-container" v-if="ProjectData">
...@@ -105,19 +108,19 @@ ...@@ -105,19 +108,19 @@
</div> </div>
</el-card> </el-card>
<!--项目概览--> <!--项目概览-->
<xmsl v-if="thistag == 'xmsl'" :datas="ProjectData"></xmsl> <xmsl v-if="thistag == 'xmsl'" :datas="ProjectData" :detailId="detailId"></xmsl>
<!--建设内容--> <!--建设内容-->
<jsnr v-if="thistag == 'jsnr'"></jsnr> <jsnr v-if="thistag == 'jsnr'" :detailId="detailId"></jsnr>
<!--联系人--> <!--联系人-->
<lxr v-if="thistag == 'lxr'"></lxr> <lxr v-if="thistag == 'lxr'" :detailId="detailId"></lxr>
<!--跟进记录--> <!--跟进记录-->
<gjjl v-if="thistag == 'gjjl'" types="gjjl"></gjjl> <gjjl v-if="thistag == 'gjjl'" types="gjjl" :detailId="detailId"></gjjl>
<!--工作待办--> <!--工作待办-->
<gzdb v-if="thistag == 'gzdb'"></gzdb> <gzdb v-if="thistag == 'gzdb'" :detailId="detailId"></gzdb>
<!--资料文档--> <!--资料文档-->
<zlwd v-if="thistag == 'zlwd'"></zlwd> <zlwd v-if="thistag == 'zlwd'" :detailId="detailId"></zlwd>
<!--相关企业--> <!--相关企业-->
<xgqy v-if="thistag == 'xgqy'"></xgqy> <xgqy v-if="thistag == 'xgqy'" :detailId="detailId"></xgqy>
</div> </div>
</div> </div>
</template> </template>
...@@ -138,6 +141,12 @@ ...@@ -138,6 +141,12 @@
export default { export default {
name: 'detail', name: 'detail',
components: {xmsl,jsnr,lxr,gjjl,gzdb,zlwd,xgqy}, components: {xmsl,jsnr,lxr,gjjl,gzdb,zlwd,xgqy},
props: {
detailId: { //从企业详情跳转过来ID
type: Number,
default: 0
}
},
data(){ data(){
return { return {
lastindex: 0,//上一个点击步骤 lastindex: 0,//上一个点击步骤
...@@ -171,7 +180,7 @@ ...@@ -171,7 +180,7 @@
}, },
created(){ created(){
this.prvinceTree() this.prvinceTree()
this.id = this.$route.query.id this.id = this.detailId ? this.detailId : this.$route.query.id
//项目阶段 //项目阶段
getDictType('project_stage_type').then(result=>{ getDictType('project_stage_type').then(result=>{
this.projectStage = result.code == 200 ? result.data:[] this.projectStage = result.code == 200 ? result.data:[]
...@@ -324,6 +333,11 @@ ...@@ -324,6 +333,11 @@
}) })
this.editXMSL(param) this.editXMSL(param)
}, },
// 跳转到企业详情合作情况
cooperateList(){
this.$emit('close-detail')
}
} }
} }
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment