Commit 4b716ec7 by 李长胜

内容补充

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