Commit 3e11ecaa by 胡悦

账户接口许可

1 parent 6409e590
/* /*
* @Author: your name * @Author: your name
* @Date: 2022-02-10 19:00:41 * @Date: 2022-02-10 19:00:41
* @LastEditTime: 2022-04-14 14:04:27 * @LastEditTime: 2022-07-11 18:35:19
* @LastEditors: huyue * @LastEditors: huyue
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \scrm-micro-pay\src\setup\qiankun.js * @FilePath: \scrm-micro-pay\src\setup\qiankun.js
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
import Vue from 'vue' import Vue from 'vue'
import { message } from '@/plugins/element.js' import { message } from '@/plugins/element.js'
import { fetchConfig } from '@/config' import { fetchConfig } from '@/config'
import { GLButton, GLTable, GLCombiForm, GLFooter } from 'glsx-components' //权限按钮 (根据权限动态创建) import { GLButton, GLTable, GLCombiForm, GLFooter, GLTableButton } from 'glsx-components' //权限按钮 (根据权限动态创建)
import { getRoutes } from '@/router' import { getRoutes } from '@/router'
import ElementUI from 'element-ui' import ElementUI from 'element-ui'
import 'glsx-components/dist/glsx-components.css' import 'glsx-components/dist/glsx-components.css'
...@@ -22,6 +22,7 @@ Vue.use(ElementUI) ...@@ -22,6 +22,7 @@ Vue.use(ElementUI)
Vue.use(GLTable) Vue.use(GLTable)
Vue.use(GLCombiForm) Vue.use(GLCombiForm)
Vue.use(GLFooter) Vue.use(GLFooter)
Vue.use(GLTableButton)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) { export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, sign, sign_common, secret, request_common } = await fetchConfig(true) //globalState.configSwitch const { response, request, sign, sign_common, secret, request_common } = await fetchConfig(true) //globalState.configSwitch
Vue.prototype.$history = history Vue.prototype.$history = history
......
<!--
* @Author: huyue
* @Date: 2022-02-11 10:20:32
* @LastEditTime: 2022-07-12 09:54:50
* @LastEditors: huyue
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \scrm-micro-pay\src\views\account\index.vue
-->
<template>
<div class="container">
<div class="container-header">
<span>帐号接口许可</span>
<el-popover placement="bottom" width="280" trigger="hover" content="企微代开发应用的帐号接口许可管理。">
<img src="@/assets/question.png" slot="reference" class="count-item-question" />
</el-popover>
</div>
<div class="table-box">
<GLCombiForm :formObj="searchForm.condition" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<GLTable ref="accountTable" :noDataImg="url" :getListApi="getListApi" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" @setTableFinishFun="setTableFinishFun">
<template slot="auth-button" slot-scope="scope" :data="scope.scope">
<GLTableButton :buttonList="buttonList" :buttonItem="scope.scope"></GLTableButton>
<!-- <el-button type="text" @click="viewConfig(scope.scope)">查看配置</el-button> -->
<!-- <GLButton type="text" @click="viewConfig(scope.scope)" fn="查看配置">查看配置</GLButton> -->
</template>
</GLTable>
</div>
</div>
</template>
<script>
import url from '@/assets/empty.png'
export default {
name: 'AccountInterface',
data() {
return {
url,
searchForm: {
condition: {}
},
searchFormData: [
{
label: '是否已购买许可',
name: 'merchantModel',
type: 'select',
optionList: [
{
label: '全部',
value: ''
},
{
label: '是',
value: 2
},
{
label: '否',
value: 1
}
],
optionId: 'value',
optionLabel: 'label',
isClear: true
},
{
label: '商户名称',
name: 'merchantName',
type: 'input',
isClear: true
},
{
label: '商户号',
name: 'merchantId',
type: 'input',
isClear: true,
listeners: {
input: value => {
this.searchForm.condition.merchantId = value.replace(/[^\d]/g, '')
}
}
}
],
tableParams: {
listName: 'list',
tableOption: true,
tableColumns: [
{
label: '商户号',
prop: 'merchantId'
},
{
label: '商户名称',
prop: 'merchantName'
},
{
label: '关联的企业微信',
prop: 'corpAlias'
},
{
label: '是否已购许可',
prop: 'corpAlias'
},
{
label: '许可数量',
prop: 'corpAlias'
},
{
label: '已激活数量',
prop: 'corpAlias'
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
tableData: [
{
id: 1,
merchantId: 10000,
merchantName: '嘀加A门店',
merchantModel: 1,
corpAlias: '嘀加云科技'
},
{
id: 2,
merchantId: 10001,
merchantName: '嘀加b门店',
merchantModel: 2,
corpAlias: '嘀加云科技'
},
{
id: 3,
merchantId: 10002,
merchantName: '嘀加C门店',
merchantModel: 1,
corpAlias: ''
},
{
id: 4,
merchantId: 10003,
merchantName: '嘀加D门店',
merchantModel: 1,
corpAlias: '嘀加云科技'
}
],
getListApi: this.$apis.appConfig.agentList,
buttonList: [
{
type: 'GLButton',
name: row => {
return '查看配置'
},
attrs: {
type: 'text',
fn: '查看配置'
},
condition: row => {
return true
},
listeners: {
click: this.handleLook
}
}
]
}
},
mounted() {},
methods: {
viewConfig(row) {
this.$router.push('/appConfig/viewConfig/' + row.appId)
},
handleSearch() {
this.$refs.accountTable.refreshTable()
},
handleReset() {
this.searchForm.condition = {}
this.handleSearch()
},
setTableFinishFun() {
console.log(this.$refs.accountTable.data, '---')
//接收到的数据为空
this.$refs.accountTable.data.length ? (this.$refs.accountTable.tableHeightValues = '') : this.$refs.accountTable.setTableHeightFun()
}
}
}
</script>
<style lang="scss" scoped>
.container {
.table-box {
margin: 20px 0;
padding: 20px;
background-color: #fff;
}
.footer-btns {
float: right;
}
}
/deep/.el-table th > .cell {
padding: 0 16px;
}
</style>
<!-- <!--
* @Author: huyue * @Author: huyue
* @Date: 2022-02-11 10:20:32 * @Date: 2022-02-11 10:20:32
* @LastEditTime: 2022-04-14 13:56:34 * @LastEditTime: 2022-07-11 18:22:25
* @LastEditors: huyue * @LastEditors: huyue
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \scrm-micro-pay\src\views\account\index.vue * @FilePath: \scrm-micro-pay\src\views\account\index.vue
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
<GLCombiForm :formObj="searchForm.condition" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm :formObj="searchForm.condition" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<GLTable ref="accountTable" :noDataImg="url" :getListApi="getListApi" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" @setTableFinishFun="setTableFinishFun"> <GLTable ref="accountTable" :noDataImg="url" :getListApi="getListApi" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" @setTableFinishFun="setTableFinishFun">
<template slot="auth-button" slot-scope="scope" :data="scope.scope"> <template slot="auth-button" slot-scope="scope" :data="scope.scope">
<el-button type="text" @click="viewConfig(scope.scope)">查看配置</el-button> <!-- <el-button type="text" @click="viewConfig(scope.scope)">查看配置</el-button> -->
<!-- <GLButton type="text" @click="viewConfig(scope.scope)" fn="查看配置">查看配置</GLButton> --> <GLButton type="text" @click="viewConfig(scope.scope)" fn="查看配置">查看配置</GLButton>
</template> </template>
</GLTable> </GLTable>
</div> </div>
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
import { MODEL } from '@/utils/data' import { MODEL } from '@/utils/data'
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
export default { export default {
name: 'AccountList', name: 'AppConfig',
data() { data() {
return { return {
url, url,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!