Commit 494e00ce authored by zhengke's avatar zhengke

修改

parent 28678855
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
<div class="VehicleManagement"> <div class="VehicleManagement">
<div class="head-title"> <div class="head-title">
载体管理 载体管理
<el-button style="float:right;margin-top: -5px;" size="small" type="primary" <el-button style="float:right;margin-top: -5px;" size="small" type="primary" @click="CommonJump('editVehicle')">
@click="CommonJump('editVehicle')">新增载体</el-button> 新增载体</el-button>
</div> </div>
<div class="content"> <div class="content">
<div> <div>
...@@ -57,6 +57,8 @@ ...@@ -57,6 +57,8 @@
</el-date-picker> </el-date-picker>
</div> </div>
<el-table :data="tableData" v-loading="loading" border style="width: 100%;margin:20px 0"> <el-table :data="tableData" v-loading="loading" border style="width: 100%;margin:20px 0">
<el-table-column prop="CarrierName" width="200" label="载体名称">
</el-table-column>
<el-table-column prop="CarrierMetroList" label="地铁信息" width="200"> <el-table-column prop="CarrierMetroList" label="地铁信息" width="200">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-for="(item,index) in scope.row.CarrierMetroList" :key="index" class="CarrierList"> <div v-for="(item,index) in scope.row.CarrierMetroList" :key="index" class="CarrierList">
...@@ -64,21 +66,12 @@ ...@@ -64,21 +66,12 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="BannerList" label="载体图片"> <el-table-column prop="Logo" width="100" label="logo">
<template slot-scope="scope">
<img :src="item" style="width:40px;" v-for="(item,index) in scope.row.BannerList" :key="index">
</template>
</el-table-column>
<el-table-column prop="ID" label="载体id" width="80">
</el-table-column>
<el-table-column prop="CarrierName" width="200" label="载体名称">
</el-table-column>
<el-table-column prop="Logo" width="150" label="logo">
<template slot-scope="scope"> <template slot-scope="scope">
<img :src="scope.row.Logo" style="width:50px;" /> <img :src="scope.row.Logo" style="width:50px;" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="VideoUrl" width="150" label="载体视频"> <el-table-column prop="VideoUrl" width="200" label="载体视频">
</el-table-column> </el-table-column>
<el-table-column prop="Address" width="200" label="载体地址"> <el-table-column prop="Address" width="200" label="载体地址">
</el-table-column> </el-table-column>
...@@ -87,6 +80,9 @@ ...@@ -87,6 +80,9 @@
<el-table-column prop="OpenTime" width="180" label="开业时间"> <el-table-column prop="OpenTime" width="180" label="开业时间">
</el-table-column> </el-table-column>
<el-table-column prop="ProjectType" width="100" label="项目类型"> <el-table-column prop="ProjectType" width="100" label="项目类型">
<template slot-scope="scope">
{{getProject(scope.row.ProjectType)}}
</template>
</el-table-column> </el-table-column>
<el-table-column prop="CarrierSize" width="100" label="商业体量"> <el-table-column prop="CarrierSize" width="100" label="商业体量">
</el-table-column> </el-table-column>
...@@ -136,11 +132,13 @@ ...@@ -136,11 +132,13 @@
dateStr: [], //日期 dateStr: [], //日期
total: 0, total: 0,
tableData: [], //数据列表 tableData: [], //数据列表
isShowAdd:false, //新增修改载体 isShowAdd: false, //新增修改载体
ProjectTypeList: [], //项目类型
}; };
}, },
created() { created() {
this.getList(); this.getList();
this.getTypeEnumList();
}, },
methods: { methods: {
getList() { getList() {
...@@ -163,7 +161,7 @@ ...@@ -163,7 +161,7 @@
}) })
}, },
//删除 //删除
delManage(obj){ delManage(obj) {
let that = this; let that = this;
that.Confirm("是否删除?", function () { that.Confirm("是否删除?", function () {
that.apipost( that.apipost(
...@@ -186,6 +184,26 @@ ...@@ -186,6 +184,26 @@
this.msg.pageIndex = val; this.msg.pageIndex = val;
this.getList(); this.getList();
}, },
//获取项目类型
getTypeEnumList() {
this.apipost("/api/Trade/GetProjectTypeEnumList", {}, res => {
if (res.data.resultCode == 1) {
this.ProjectTypeList = res.data.data;
console.log(res, '类型');
}
})
},
//获取项目类型
getProject(type) {
let str = ''
this.ProjectTypeList.forEach(x => {
if (x.Id == type) {
str = x.Name
}
})
return str;
}
}, },
mounted() {} mounted() {}
}; };
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
</el-table-column> </el-table-column>
<el-table-column prop="BusinessLicense" width="150" label="营业执照"> <el-table-column prop="BusinessLicense" width="150" label="营业执照">
<template slot-scope="scope"> <template slot-scope="scope">
<img :src="scope.row.BusinessLicense" alt="" /> <img :src="scope.row.BusinessLicense" style="width:50px;" alt="" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="UnifiedCode" label="统一社会信用代码"> <el-table-column prop="UnifiedCode" label="统一社会信用代码">
...@@ -57,6 +57,9 @@ ...@@ -57,6 +57,9 @@
style="margin:0 9px;color:#C0C4CC">/</span><span>详情</span> style="margin:0 9px;color:#C0C4CC">/</span><span>详情</span>
</div> </div>
<div class="content"> <div class="content">
<div style="margin:20px 0;font-weight:bold;">
<span class="tradeLine"></span>公司信息
</div>
<el-row style="margin-bottom:20px;"> <el-row style="margin-bottom:20px;">
<el-col :span="6"> <el-col :span="6">
公司id:{{listInfo.CompanyId}} 公司id:{{listInfo.CompanyId}}
...@@ -65,7 +68,7 @@ ...@@ -65,7 +68,7 @@
企业名称:{{listInfo.CompanyName}} 企业名称:{{listInfo.CompanyName}}
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
营业执照:{{listInfo.BusinessLicense}} 法人:{{listInfo.LegalPerson}}
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
统一社会信用代码:{{listInfo.UnifiedCode}} 统一社会信用代码:{{listInfo.UnifiedCode}}
...@@ -81,12 +84,14 @@ ...@@ -81,12 +84,14 @@
<el-col :span="6"> <el-col :span="6">
联系电话:{{listInfo.Mobile}} 联系电话:{{listInfo.Mobile}}
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6" style="display:flex;">
法人:{{listInfo.LegalPerson}} 营业执照:<img :src="listInfo.BusinessLicense" style="width:40px;" />
</el-col> </el-col>
</el-row> </el-row>
<template v-if="listInfo.BrandModel"> <template v-if="listInfo.BrandModel">
<div style="margin:20px 0;">品牌信息</div> <div style="margin:20px 0;font-weight:bold;">
<span class="tradeLine"></span>品牌信息
</div>
<el-row style="margin-bottom:20px;"> <el-row style="margin-bottom:20px;">
<el-col :span="6"> <el-col :span="6">
客户群体:<span v-for="(item,index) in listInfo.BrandModel.CustomerTypeInfo" :key="index">{{item}}</span> 客户群体:<span v-for="(item,index) in listInfo.BrandModel.CustomerTypeInfo" :key="index">{{item}}</span>
...@@ -163,7 +168,6 @@ ...@@ -163,7 +168,6 @@
this.apipost("/api/Trade/GetCompanyPageList", this.msg, res => { this.apipost("/api/Trade/GetCompanyPageList", this.msg, res => {
this.loading = false; this.loading = false;
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
console.log(res, '数据来了');
this.total = res.data.data.count; this.total = res.data.data.count;
let pageData = res.data.data.pageData; let pageData = res.data.data.pageData;
this.tableData = pageData; this.tableData = pageData;
...@@ -184,7 +188,6 @@ ...@@ -184,7 +188,6 @@
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.isShowInfo = true; this.isShowInfo = true;
this.listInfo = res.data.data; this.listInfo = res.data.data;
console.log(res,'详情数据!');
} }
}) })
}, },
...@@ -235,5 +238,11 @@ ...@@ -235,5 +238,11 @@
padding: 20px; padding: 20px;
box-sizing: border-box; box-sizing: border-box;
} }
.realAuthentication .tradeLine{
display: inline-block;
width:3px;
height:10px;
margin-right:5px;
background-color: #409EFF;
}
</style> </style>
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