Commit 09312624 by 张权

显示操作列

1 parent 96185c5a
<template> <template>
<div class="equity-wrap"> <div class="equity-wrap">
<template if="showTableOperate">
<GLButton fn="开通配置" class="addGood" type="primary" icon="el-icon-plus" @click="jump('add')">开通配置</GLButton> <GLButton fn="开通配置" class="addGood" type="primary" icon="el-icon-plus" @click="jump('add')">开通配置</GLButton>
<!-- <el-button fn="开通配置" class="addGood" type="primary" icon="el-icon-plus" @click="jump('add')">开通配置</el-button> --> <!-- <el-button fn="开通配置" class="addGood" type="primary" icon="el-icon-plus" @click="jump('add')">开通配置</el-button> -->
<div class="equity-wrap contain merchant-select"> <div class="equity-wrap contain merchant-select">
...@@ -44,7 +43,6 @@ ...@@ -44,7 +43,6 @@
</span> </span>
</GLTable> </GLTable>
</div> </div>
</template>
</div> </div>
</template> </template>
...@@ -110,84 +108,7 @@ export default { ...@@ -110,84 +108,7 @@ export default {
value: '0' value: '0'
} }
], ],
tableParams: {}, tableParams: {
goodsBrandList: [],
selectStatus: false
}
},
mounted() {
},
created(){
// this.diffHost()
this.tableColData()
},
methods: {
// 区分滴加和广汇
diffHost(){
let href = window.location.host;
// 从域名判断是不是广汇的
let gxurl1 = 'http://scrm.cgacar.com'
let gxurl2 = 'https://scrm.cgacar.com'
if (href == gxurl1 || href == gxurl2) {
this.showGh = true
}else{
this.showGh = false
}
},
tableColData(){
const tableParams = {
listName: 'list',
mutiSelectName: 'configIndex',
mutiSelectUniqueKey: 'id',
tableOption: false,
tableColumns: [
{
label: '商户名称',
prop: 'merchantName'
},
{
label: '商户号',
prop: 'merchantId'
},
{
label: '状态',
prop: 'openFlag',
formatter: cell => {
return cell.openFlag == 0 ? '未开通' : '已开通'
}
},
{
prop: 'createdDate',
label: '开通时间',
formatter: cellValue => {
return this.date_format(cellValue.createdDate)
}
},
{
label: '操作人',
prop: 'updatedBy'
},
// {
// label: '操作',
// minWidth: '200',
// addHtml: 'operate'
// },
{
label: '开通开关',
addHtml: 'openFlag',
formatter: cellValue => {
if (cellValue.openFlag == '1') {
return true
} else {
return false
}
}
}
]
}
const tableParamsOperate = {
listName: 'list', listName: 'list',
mutiSelectName: 'configIndex', mutiSelectName: 'configIndex',
mutiSelectUniqueKey: 'id', mutiSelectUniqueKey: 'id',
...@@ -236,9 +157,28 @@ export default { ...@@ -236,9 +157,28 @@ export default {
} }
} }
] ]
},
goodsBrandList: [],
selectStatus: false
}
},
mounted() {
},
created(){
},
methods: {
// 区分滴加和广汇
diffHost(){
let href = window.location.host;
// 从域名判断是不是广汇的
let gxurl1 = 'http://scrm.cgacar.com'
let gxurl2 = 'https://scrm.cgacar.com'
if (href == gxurl1 || href == gxurl2) {
this.showGh = true
}else{
this.showGh = false
} }
this.tableParams = this.showGh ? tableParams : tableParamsOperate
this.showTableOperate = true;
}, },
check() { check() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!