Commit 4b716ec7 by 李长胜

内容补充

1 parent bdb3a6a6
......@@ -29,6 +29,18 @@ export function getThirdTable(params) {
// })
// }
//获取功能权限树
const findMenuFunTreeByMerId = params => {
params.method = 'cn.com.glsx.merchants.merchant.findMenuFunTreeByMerId'
return http({
url: '/rop-merchants/router',
method: 'POST',
data: params,
sign: true
})
}
//获取商户信息
const getFirstInfo = params => {
params.method = 'cn.com.glsx.merchants.merchant.findMerchantDetail'
......@@ -39,6 +51,7 @@ const getFirstInfo = params => {
sign: true
})
}
//获取上下级信息
const getSecondInfo = params => {
params.method = 'cn.com.glsx.merchants.menu.findSubordinateRelationship'
......
......@@ -10,41 +10,41 @@
<div class="grayLine"></div>
<span class="content-title">账户信息</span>
<div class="detail-content">
<el-row :gutter="10">
<el-col :span="12">
<span class="itemName">登录账户名:</span>
<el-row>
<el-col :span="14">
<span class="itemName">登录账户名:</span>
<span class="itemValue">{{ firstPageObj.merchantLoginAccount }}</span>
</el-col>
<el-col :span="12">
<span class="itemName">账户等级:</span>
<el-col :span="10">
<span class="itemName itemNameCol2">账户等级:</span>
<span class="itemValue">{{ firstPageObj.accountLevelName }}</span>
</el-col>
</el-row>
<el-row :gutter="10">
<el-col :span="12">
<span class="itemName">开通模式:</span>
<el-row>
<el-col :span="14">
<span class="itemName">开通模式:</span>
<span class="itemValue">{{ firstPageObj.merchantModelName }}</span>
</el-col>
<el-col :span="12">
<span class="itemName">账户状态:</span>
<el-col :span="10">
<span class="itemName itemNameCol2">账户状态:</span>
<span class="itemValue">
{{ firstPageObj.statusName }}
</span>
</el-col>
</el-row>
<el-row :gutter="10">
<el-col :span="12">
<span class="itemName">关联企业微信名:</span>
<el-row>
<el-col :span="14">
<span class="itemName">关联企业微信名:</span>
<span class="itemValue">{{ firstPageObj.entmicroName }}</span>
</el-col>
<el-col :span="12">
<span class="itemName">账户有效期:</span>
<el-col :span="10">
<span class="itemName itemNameCol2">账户有效期:</span>
<span class="itemValue">{{ firstPageObj.effectiveTimeName }}</span>
</el-col>
</el-row>
<el-row :gutter="10">
<el-row>
<el-col :span="24">
<span class="itemName">账户类型:</span>
<span class="itemName">账户类型:</span>
<span class="account-type-span" v-for="(item, index) in firstPageObj.accountTypes" :key="index">{{ item.accounttypeName || 'null' }}</span>
</el-col>
</el-row>
......@@ -53,59 +53,67 @@
<div class="MsgWrap powerlimt">
<span class="content-title">功能权限</span>
<div class="powerTreeWrap"></div>
<div class="powerTreeWrap">
<div class="manTitleWrap">
<div class="mainTitle" :class="{ activeMainTitle: currentIndex == index }" v-for="(item, index) in firstPageObj.accountTypes" :key="index" @click="powerTabClick(index)">
{{ item.accounttypeName || 'null' }}
</div>
</div>
</div>
</div>
<div class="MsgWrap companyMsg">
<div class="grayLine"></div>
<span class="content-title">企业信息</span>
<div class="detail-content">
<el-row :gutter="10">
<el-col :span="12">
<span class="itemName">商户名称:</span>
<el-row>
<el-col :span="14">
<span class="itemName">商户名称:</span>
<span class="itemValue">{{ firstPageObj.merchantName }}</span>
</el-col>
<el-col :span="12">
<span class="itemName">简称:</span>
<el-col :span="10">
<span class="itemName itemNameCol2">简称:</span>
<span class="itemValue">
{{ firstPageObj.merchantAbbreviation }}
</span>
</el-col>
</el-row>
<el-row :gutter="10">
<el-col :span="12">
<span class="itemName">商户类型:</span>
<el-row>
<el-col :span="14">
<span class="itemName">商户类型:</span>
<span class="itemValue">{{ firstPageObj.merchantTypeName }}</span>
</el-col>
<el-col :span="12">
<span class="itemName">身份证:</span>
<el-col :span="10">
<span class="itemName itemNameCol2">身份证:</span>
<span class="itemValue">{{ firstPageObj.merchantOrgcode }}</span>
</el-col>
</el-row>
<el-row :gutter="10">
<el-col :span="12">
<span class="itemName">地址:</span>
<el-row>
<el-col :span="14">
<span class="itemName">地址:</span>
<span class="itemValue">
{{ firstPageObj.merchantAddress }}
</span>
</el-col>
<el-col :span="12">
<span class="itemName">联系人:</span>
<el-col :span="10">
<span class="itemName itemNameCol2">联系人:</span>
<span class="itemValue">{{ firstPageObj.merchantLegalPerson }}</span>
</el-col>
</el-row>
<el-row :gutter="10">
<el-col :span="12">
<span class="itemName">联系电话:</span>
<el-row>
<el-col :span="14">
<span class="itemName">联系电话:</span>
<span class="itemValue">{{ firstPageObj.merchantLegalPersonPhone }}</span>
</el-col>
<el-col :span="12">
<span class="itemName">营业范围:</span>
<el-col :span="10">
<span class="itemName itemNameCol2">营业范围:</span>
<span class="itemValue">{{ firstPageObj.businessScopName }}</span>
</el-col>
</el-row>
<el-row :gutter="10">
<el-row>
<el-col :span="24">
<span class="itemName">主营品牌:</span>
<span class="itemName">主营品牌:</span>
<span class="itemValue">{{ firstPageObj.merchantBrandName }}</span>
</el-col>
</el-row>
......@@ -164,7 +172,6 @@
</div>
</div>
<GLTable ref="subMerchantTable" :tableTotal="subMerchantTableTotal" :hasPage="false" :tableData="subMerchantTableList" :hasNum="true" :pageConf="pageConf" :tableParams="secondtableParams" @refreshTable="getSecondTable"></GLTable>
<!-- <table id="subMerchantTable" lay-filter="subMerchantTool"></table> -->
</div>
</div>
</div>
......@@ -186,8 +193,10 @@ export default {
//第一页数据
titles: ['商户信息', '上级/下级商户', '修改记录'],
curIndex: 0,
currentIndex: 0, //功能权限主标题的索引
firstPageObj: {},
//第二页表
secondPageObj: {},
treeInputName: '',
secondInputName: '',
......@@ -293,6 +302,9 @@ export default {
break
}
},
powerTabClick(index) {
this.currentIndex = index
},
getFirstInfo() {
this.$apis.merchant.getFirstInfo({ id: this.merchantId }).then(res => {
if (res) {
......@@ -354,6 +366,7 @@ export default {
.merchantDetail {
.titles {
display: flex;
margin-bottom: 20px;
.itemTitle {
margin-right: 20px;
......@@ -394,8 +407,6 @@ export default {
font-weight: 600;
color: #333333;
line-height: 48px;
/* margin-top: 8px; */
/* margin:8px 20px 15px 20px; */
padding-left: 20px;
}
.content-title h3 {
......@@ -408,7 +419,7 @@ export default {
margin-top: 20px;
.itemName {
display: inline-block;
margin-right: 20px;
margin-right: 10px;
width: 200px;
text-align: right;
height: 20px;
......@@ -418,6 +429,9 @@ export default {
color: #333333;
line-height: 20px;
}
.itemNameCol2 {
width: 90px;
}
.itemValue {
height: 20px;
font-size: 14px;
......@@ -439,6 +453,34 @@ export default {
}
}
}
.powerlimt {
padding-bottom: 30px;
.powerTreeWrap {
background-color: #f4f6fc;
margin: 0 20px;
border-radius: 4px;
min-height: 300px;
padding-top: 2px;
padding-left: 2px;
.manTitleWrap {
height: 32px;
display: flex;
.mainTitle {
background-color: #f4f6fc;
height: 32px;
width: 180px;
line-height: 32px;
text-align: center;
border-radius: 2px;
}
.activeMainTitle {
background-color: #fff;
color: #5850ff;
}
}
}
}
}
.pageTwo {
.wrapper-merchant {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!