Commit 494e00ce authored by zhengke's avatar zhengke

修改

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