Commit 19f21f93 by 前端

Merge branch 'develop' into 'master'

Develop

See merge request !2
2 parents ce293862 b6b0b217
This diff could not be displayed because it is too large.
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"el-tree-transfer": "^2.2.6", "el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5", "element-ui": "^2.4.5",
"glsx-common": "^1.4.6", "glsx-common": "^1.4.6",
"glsx-components": "^1.3.7", "glsx-components": "^1.4.6",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"vue": "^2.6.10", "vue": "^2.6.10",
"vue-amap": "^0.5.10", "vue-amap": "^0.5.10",
......
...@@ -26,8 +26,9 @@ ...@@ -26,8 +26,9 @@
</div> </div>
<img src="./assets/logo.png" alt="" srcset="" /> <img src="./assets/logo.png" alt="" srcset="" />
</div> --> </div> -->
<!-- <keep-alive exclude="viewConfig"> -->
<router-view /> <router-view />
<!-- </keep-alive> -->
</div> </div>
</template> </template>
...@@ -56,5 +57,16 @@ export default { ...@@ -56,5 +57,16 @@ export default {
padding: 20px 0; padding: 20px 0;
line-height: 36px; line-height: 36px;
} }
#app {
background: #f4f5fa;
// padding: 0px 20px 20px 40px;
position: absolute;
box-sizing: border-box;
width: 100%;
top: 0px;
left: 0px;
overflow-y: auto;
height: 100%;
}
</style> </style>
> >
import { http } from '@/main'
const defaultPath = 'scrm.api.work.wechat.account.'
// 批量激活
const activeAccount = params => {
params.method = `${defaultPath}activeAccount`
return http({
url: 'rop-scrm-wechat/router',
method: 'post',
data: params,
sign: true,
returnAll: true
})
}
// 获取企业的激活列表
const listAccountCodeWithPage = params => {
params.method = `${defaultPath}listAccountCodeWithPage`
return http({
url: 'rop-scrm-wechat/router',
method: 'post',
data: params,
sign: true
})
}
// 获取企业的许可列表
const listCustomizedAgentWithPage = params => {
params.method = `${defaultPath}listCustomizedAgentWithPage`
return http({
url: 'rop-scrm-wechat/router',
method: 'post',
data: params,
sign: true
})
}
// 同步许可信息
const syncCorpAccountCode = params => {
params.method = `${defaultPath}syncCorpAccountCode`
return http({
url: 'rop-scrm-wechat/router',
method: 'post',
data: params,
sign: true,
returnAll: true
})
}
// 账号转移
const transferLicenseAccount = params => {
params.method = `${defaultPath}transferLicenseAccount`
return http({
url: 'rop-scrm-wechat/router',
method: 'post',
data: params,
sign: true,
returnAll: true
})
}
// 查询未激活员工账号
const findNotActiveStaff = params => {
params.method = `${defaultPath}findNotActiveStaff`
return http({
url: 'rop-scrm-wechat/router',
method: 'post',
data: params,
sign: true,
returnAll: true
})
}
export default {
activeAccount,
transferLicenseAccount,
syncCorpAccountCode,
listAccountCodeWithPage,
listCustomizedAgentWithPage,
findNotActiveStaff
}
...@@ -6,6 +6,7 @@ $base-color: '#5850FF'; ...@@ -6,6 +6,7 @@ $base-color: '#5850FF';
color: #333333; color: #333333;
line-height: 20px; line-height: 20px;
letter-spacing: 1px; letter-spacing: 1px;
img { img {
width: 14px; width: 14px;
height: auto; height: auto;
...@@ -14,15 +15,77 @@ $base-color: '#5850FF'; ...@@ -14,15 +15,77 @@ $base-color: '#5850FF';
} }
} }
.footer-panel { ::-webkit-scrollbar {
display: flex; /*滚动条整体样式*/
align-items: center; width: 6px;
justify-content: center; height: 4px;
position: fixed; }
width: 100%;
bottom: 0px; ::-webkit-scrollbar-thumb {
height: 64px; /*滚动条里面小方块*/
background: #ffffff; border-radius: 4px;
z-index: 999; background-color: rgba(144, 147, 153, .3);
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
} }
.dot {
display: inline-flex;
align-items: center;
div {
display: inline-block;
width: 6px;
height: 6px;
border-radius: 50%;
margin-right: 8px;
}
.normal {
background-color: #2cca74;
}
.draft {
background-color: #fdb757;
}
.dot1 {
background-color: #fdb757;
}
.dot2 {
background-color: #2cca74;
}
.dot3 {
background-color: #999999;
}
.dot4 {
background-color: #eb4e4e;
}
.dot5 {
background-color: #fdb757;
}
.dot6 {
background-color: #5850FF;
}
}
.confirm-btn {
.el-message-box__status+.el-message-box__message {
padding: 112.5px 36px 36px;
}
.confirmbtn {
border-color: #5850ff !important;
color: #fff !important;
background-color: #5850ff !important;
&:active {
background-color: #3a32e1;
}
&:focus {
background-color: #5850ff !important;
opacity: 1 !important;
}
}
}
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
* @version: * @version:
* @Author: limin * @Author: limin
* @Date: 2021-06-07 14:12:32 * @Date: 2021-06-07 14:12:32
* @LastEditors: Please set LastEditors * @LastEditors: huyue
* @LastEditTime: 2022-02-23 17:13:15 * @LastEditTime: 2022-04-25 11:31:28
*/ */
// 根据环境引入不同配置 process.env.VUE_APP_ENV // 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js') // let request = require('@/http/request.js')
...@@ -18,8 +18,8 @@ export const fetchConfig = function (isEnv = true) { ...@@ -18,8 +18,8 @@ export const fetchConfig = function (isEnv = true) {
// return Promise.resolve(cfg) // return Promise.resolve(cfg)
// } // }
//return window.fetch('https://', {}).then(res => res.json()) //return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
return new Http().get('https://oss-config.test.glsx.com.cn/mock/6215f98e60f415276f6dfe56/authorize/config') return new Http().get('https://oss-config.test.glsx.com.cn/mock/6215f98e60f415276f6dfe56/authorize/config')
// return new Http().get('https://oss-config.dev.glsx.com.cn/mock/6215f98e60f415276f6dfe56/authorize/config')
} }
export const config = { export const config = {
install(vue, cfg) { install(vue, cfg) {
......
/* /*
* @Author: your name * @Author: your name
* @Date: 2022-02-10 19:00:41 * @Date: 2022-02-10 19:00:41
* @LastEditTime: 2022-02-16 14:50:24 * @LastEditTime: 2022-07-11 18:35:19
* @LastEditors: Please set LastEditors * @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
*/ */
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 } from 'glsx-components' //权限按钮 (根据权限动态创建) import { GLButton, GLTable, GLCombiForm, GLFooter, GLTableButton, GLDialog } 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'
...@@ -20,6 +20,10 @@ let router = null ...@@ -20,6 +20,10 @@ let router = null
let instance = null let instance = null
Vue.use(ElementUI) Vue.use(ElementUI)
Vue.use(GLTable) Vue.use(GLTable)
Vue.use(GLCombiForm)
Vue.use(GLFooter)
Vue.use(GLTableButton)
Vue.use(GLDialog)
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
...@@ -27,7 +31,7 @@ export async function bootstrap({ history, common, messenger, globalState, route ...@@ -27,7 +31,7 @@ export async function bootstrap({ history, common, messenger, globalState, route
Vue.prototype.$globalState = globalState Vue.prototype.$globalState = globalState
Vue.prototype.$common = common Vue.prototype.$common = common
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } }) Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: globalState.session.token } })
Vue.prototype.$http_common = new common.Http({ response, signWay: "md5", request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } }) Vue.prototype.$http_common = new common.Http({ response, signWay: 'md5', request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState // Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
const routesData = common.utils.deepClone(globalState.routers) const routesData = common.utils.deepClone(globalState.routers)
routes = getRoutes(routesData) routes = getRoutes(routesData)
......
<!--
* @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/icon-tip.png" slot="reference" class="count-item-question" />
</el-popover>
</div>
<div class="table-box">
<GLCombiForm :formObj="searchForm" :rowNumber="1" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="table-header">
<div class="header-text">帐号接口许可列表</div>
<div>
<el-button class="table-btn" @click="handleSync" :loading="syncLoad" :size="size" type="primary" plain mode="el-button">同步购买订单</el-button>
</div>
</div>
<GLTable ref="accountTable" :noDataImg="url" :getListApi="getListApi" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" @setTableFinishFun="setTableFinishFun">
<!-- 是否已购许可 -->
<div slot="isBuyPermit" slot-scope="scope">
<span v-if="scope.scope.isBuyPermit == 1">是</span>
<span v-if="scope.scope.isBuyPermit == 0">否</span>
</div>
<template slot="auth-button" slot-scope="scope" :data="scope.scope" v-if="scope.scope.isBuyPermit">
<GLTableButton :buttonList="buttonList" :buttonItem="scope.scope"></GLTableButton>
<!-- <el-button type="text" @click="viewConfig(scope.scope)">查看</el-button> -->
<!-- <el-button type="text" @click="handelActivate(scope.scope)" :loading="loading">一键激活许可</el-button> -->
</template>
</GLTable>
</div>
</div>
</template>
<script>
import url from '@/assets/empty.png'
import Icon from '@/assets/empty.png'
export default {
name: 'AccountInterface',
data() {
return {
url,
Icon,
loading: false,
syncLoad: false,
searchForm: {
isBuyPermit: '',
merchantId: '',
merchantName: ''
},
searchFormData: [
{
label: '是否已购许可',
name: 'isBuyPermit',
type: 'select',
optionList: [
{
label: '全部',
value: ''
},
{
label: '是',
value: 1
},
{
label: '否',
value: 0
}
],
optionId: 'value',
optionLabel: 'label',
isClear: true
},
{
label: '商户名称',
name: 'merchantName',
type: 'input',
isClear: true,
placeholder: '输入关键字搜索'
},
{
label: '商户号',
name: 'merchantId',
type: 'input',
isClear: true,
placeholder: '请输入商户号',
listeners: {
input: value => {
this.searchForm.condition.merchantId = value.replace(/[^\d]/g, '')
}
}
}
],
tableParams: {
listName: 'list',
tableColumns: [
{
label: '商户号',
prop: 'merchantId',
width: '120'
},
{
label: '商户名称',
prop: 'merchantName',
width: '300'
},
{
label: '关联企业微信名称',
prop: 'corpFullName',
width: '300'
},
{
label: '是否已购许可',
prop: 'isBuyPermit',
addHtml: 'isBuyPermit'
},
{
label: '许可数量',
prop: 'permitCount',
formatter: cellValue => {
return cellValue.permitCount || '-'
}
},
{
label: '已激活数量',
prop: 'activeCount',
formatter: cellValue => {
return cellValue.activeCount || '-'
}
},
{
label: '操作',
prop: 'auth-button',
width: '220',
addHtml: 'auth-button',
fixed: 'right'
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
getListApi: this.$apis.accountConfig.listCustomizedAgentWithPage,
buttonList: [
{
type: 'GLButton',
name: row => {
return '查看'
},
attrs: {
type: 'text',
fn: '查看激活列表'
},
condition: row => {
return true
},
listeners: {
click: row => this.viewConfig(row)
}
},
{
type: 'el-button',
name: row => {
return '一键激活许可'
},
attrs: {
type: 'text',
loading: this.loading
},
listeners: {
click: row => this.handelActivate(row)
}
}
]
}
},
mounted() {},
methods: {
// 查看配置
viewConfig(row) {
const { merchantId, corpId, merchantName } = row
this.$router.push({
path: '/accountInterface/viewConfig',
query: {
merchantId,
corpId,
merchantName
}
})
},
// 搜索框搜索
handleSearch() {
this.$refs.accountTable.refreshTable()
},
// 重置搜索框搜索
handleReset() {
this.searchForm = {
isBuyPermit: '',
merchantId: '',
merchantName: ''
}
this.handleSearch()
},
setTableFinishFun() {
//接收到的数据为空
this.$refs.accountTable.data.length ? (this.$refs.accountTable.tableHeightValues = '') : this.$refs.accountTable.setTableHeightFun()
},
// 一键激活许可
handelActivate(scope) {
this.loading = true
const { corpId, merchantId } = scope
var params = {
corpId,
merchantId
}
this.$apis.accountConfig.activeAccount(params).then(res => {
this.loading = false
if (res) {
// <i class="el-icon-success" style="color:#2CCA74;font-size:48px;"></i>
var txt = '<p>已激活&nbsp;' + `${res.data ? res.data : 0}` + '&nbsp;个</p>'
this.$confirm(txt, '提示', {
confirmButtonText: '我知道了',
dangerouslyUseHTMLString: true,
showCancelButton: false,
confirmButtonClass: 'confirmbtn',
type: 'success',
customClass: 'gl-message-box confirm-btn',
callback: action => {
if (res.data && res.data > 0) {
var pras = {
pageSize: this.$refs.accountTable.page.pageSize,
pageNum: this.$refs.accountTable.page.pageNum
}
this.$apis.accountConfig.listCustomizedAgentWithPage(pras).then(res => {})
}
}
})
} else {
this.$message.error('激活失败')
}
})
},
// 同步购买订单
handleSync() {
this.syncLoad = true
this.$apis.accountConfig.syncCorpAccountCode({}).then(res => {
if (res.code == 0) {
this.syncLoad = false
this.$message({
message: '同步成功',
type: 'success'
})
this.handleSearch()
} else {
this.syncLoad = false
this.$message({
message: '同步门店许可数据异常',
type: 'error'
})
this.handleSearch()
}
})
}
}
}
</script>
<style lang="scss" scoped>
.container {
.table-box {
margin: 20px 0;
padding: 20px;
background-color: #fff;
}
.footer-btns {
float: right;
}
.table-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
.header-text {
font-size: 16px;
color: #333333;
font-weight: 600;
}
}
.table-btn {
color: #5850ff;
border: 1px solid #5850ff;
}
}
/deep/ {
.el-table th > .cell {
padding: 0 16px;
}
}
</style>
<template>
<div>
<div class="container">
<div class="title">{{ routerInfo.merchantName }}</div>
<GLCombiForm :formObj="searchForm" :rowNumber="1" :formData="searchFormData" @handleOk="getListApi" @handleRest="handleReset"></GLCombiForm>
<div class="tableBox">
<GLTable ref="accountCodeTable" @refreshTable="getListApi" :noDataImg="url" :layout="layout" :tableData="accountTableData" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :tableTotal="tableTotal" @setTableFinishFun="setTableFinishFun">
<!-- 账号许可类型 -->
<div slot="type" slot-scope="scope">
<span v-if="scope.scope.type == 1">基础帐号</span>
<span v-else>互通帐号</span>
</div>
<!-- 账号激活状态 -->
<div slot="status" class="dot" slot-scope="scope">
<div :class="accountStatus[scope.scope.status]"></div>
<span v-if="scope.scope.status == 1">未绑定</span>
<span v-if="scope.scope.status == 2">已绑定</span>
<span v-if="scope.scope.status == 3">已过期</span>
<span v-if="scope.scope.status == 4">待转移</span>
<span v-if="scope.scope.status == 5">已合并</span>
</div>
<template slot="auth-button" slot-scope="scope" :data="scope.scope" v-if="scope.scope.status == 2">
<el-button type="text" @click="handelTransfer(scope.scope)">转移</el-button>
</template>
</GLTable>
</div>
</div>
<GLDialog class="trans-dia" title="帐号接口许可转移" :visible.sync="dialogTransferVisible">
<el-form :model="transferForm">
<el-form-item label="转移员工:">
<el-select @change="selectTransferStaff" v-model="transferForm.staff" filterable :size="size" placeholder="请选择或输入关键字搜索">
<el-option v-for="item in notActiveStaffList" :key="item.userId" :label="item.staffName" :value="item.userId"></el-option>
</el-select>
</el-form-item>
<el-form-item label="接口有效期至:">{{ expireTime }}</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button :size="size" @click="handleClose">取消</el-button>
<el-button :size="size" type="primary" @click="transferCount">提交</el-button>
</span>
</GLDialog>
</div>
</template>
<script>
const accountStatus = {
'1': 'dot1',
'2': 'normal',
'3': 'dot3',
'4': 'dot6',
'5': 'normal'
}
import url from '@/assets/empty.png'
export default {
name: 'ConfigDetail',
data() {
return {
url,
accountStatus,
searchForm: {
status: '',
staffName: ''
},
transferForm: {
staff: ''
},
routerInfo: '',
dialogTransferVisible: false,
accountTableData: [],
tableTotal: 0,
notActiveStaffList: [],
expireTime: '',
takeoverUserid: '',
handoverUserid: '',
searchFormData: [
{
label: '激活状态',
name: 'status',
type: 'select',
optionList: [
{
label: '全部',
value: ''
},
{
label: '未绑定',
value: 1
},
{
label: '已绑定',
value: 2
},
{
label: '已过期',
value: 3
},
{
label: '待转移',
value: 4
},
{
label: '已合并',
value: 5
}
],
optionId: 'value',
optionLabel: 'label',
isClear: true
},
{
label: '员工姓名',
name: 'staffName',
type: 'input',
isClear: true,
placeholder: '输入关键字搜索'
}
],
tableParams: {
listName: 'list',
tableOption: true,
tableColumns: [
{
label: '帐号许可类型',
prop: 'type',
addHtml: 'type'
},
{
label: '激活状态',
prop: 'status',
addHtml: 'status'
},
{
label: '绑定员工',
prop: 'staffName'
},
{
label: '手机号码',
prop: 'staffPhone'
},
{
label: '激活时间',
prop: 'activeTime'
},
{
label: '有效期',
prop: 'expireTime'
}
]
},
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
layout: 'sizes, prev, pager, next, jumper, ->, total'
}
},
mounted() {
this.routerInfo = this.$route.query
this.getListApi()
},
methods: {
getListApi() {
const { status, staffName } = this.searchForm
const { merchantId, corpId } = this.routerInfo
let params = {
merchantId,
corpId,
status,
staffName
}
params.pageSize = this.$refs.accountCodeTable.page.pageSize
params.pageNum = this.$refs.accountCodeTable.page.pageNum
this.$apis.accountConfig.listAccountCodeWithPage(params).then(res => {
this.accountTableData = res.list
this.tableTotal = res.total
})
},
// 账号许可转移弹窗
handelTransfer(scope) {
const { merchantId, corpId } = this.routerInfo
let params = {
merchantId,
corpId
}
this.handoverUserid = scope.userid
this.expireTime = scope.expireTime
this.$apis.accountConfig.findNotActiveStaff(params).then(res => {
if (res.data) {
this.dialogTransferVisible = true
this.notActiveStaffList = res.data
} else {
// var txt = '<i class="el-icon-warning" style="color:#e6a23c;font-size:48px;"></i><p>无可用的用户转移</p>'
this.$confirm('无可用的用户转移', '提示', {
confirmButtonText: '我知道了',
dangerouslyUseHTMLString: true,
showClose: true,
showCancelButton: false,
confirmButtonClass: 'confirmbtn',
type: 'warning',
customClass: 'gl-message-box confirm-btn'
})
}
})
},
// 选择转移员工
selectTransferStaff(id) {
this.takeoverUserid = id
},
// 账号许可转移
transferCount() {
const { merchantId, corpId } = this.routerInfo
let params = {
merchantId,
corpId
}
params.handoverUserid = this.handoverUserid
params.takeoverUserid = this.takeoverUserid
this.$apis.accountConfig.transferLicenseAccount(params).then(res => {
if (res.code == 0) {
this.$message({
message: '账号转移成功',
type: 'success',
customClass: 'global-messageZindex'
})
this.getListApi()
this.dialogTransferVisible = false
this.transferForm.staff = ''
} else {
this.$message({
message: '账号转移失败,请联系管理员',
type: 'error',
customClass: 'global-messageZindex'
})
this.dialogTransferVisible = false
this.transferForm.staff = ''
}
})
},
// 关闭弹窗
handleClose() {
this.dialogTransferVisible = false
this.transferForm.staff = ''
},
// 搜索框搜索
handleSearch() {
this.$refs.accountCodeTable.refreshTable()
},
// 重置搜索框搜索
handleReset() {
this.searchForm = {
status: '',
staffName: ''
}
this.getListApi()
},
setTableFinishFun() {
//接收到的数据为空
this.$refs.accountCodeTable.data.length ? (this.$refs.accountCodeTable.tableHeightValues = '') : this.$refs.accountCodeTable.setTableHeightFun()
}
}
}
</script>
<style lang="scss" scoped>
.container {
background-color: #fff;
.title {
height: 58px;
margin-bottom: 20px;
padding-left: 20px;
font-size: 16px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 600;
color: #333333;
line-height: 58px;
border-bottom: 1px solid #e5e5e5;
}
.tableBox {
padding: 0 20px 60px 20px;
}
}
.trans-dia {
/deep/ .el-form-item__label {
width: 154px;
}
/deep/ .el-select {
width: 474px;
}
}
/deep/ .el-dialog__title {
font-weight: 600;
}
.global-messageZindex {
z-index: 3000 !important;
}
</style>
<!-- <!--
* @Author: huyue * @Author: huyue
* @Date: 2022-02-11 10:20:32 * @Date: 2022-02-11 10:20:32
* @LastEditTime: 2022-02-23 16:04:09 * @LastEditTime: 2022-07-11 18:22:25
* @LastEditors: Please set LastEditors * @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
--> -->
...@@ -15,14 +15,7 @@ ...@@ -15,14 +15,7 @@
</el-popover> </el-popover>
</div> </div>
<div class="table-box"> <div class="table-box">
<glsx-combi-form ref="showSearch" :formObj="searchForm.condition" :formData="searchFormData"></glsx-combi-form> <GLCombiForm :formObj="searchForm.condition" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<glsx-combi-form ref="showSearch" :formObj="searchForm.condition" :formData="searchFormData1">
<span slot="footer" class="footer-btns">
<el-button :size="size" type="default" @click="handleReset">重置</el-button>
<el-button :size="size" type="primary" @click="handleSearch">查询</el-button>
</span>
</glsx-combi-form>
<!-- :getListApi="getListApi" -->
<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> -->
...@@ -37,7 +30,7 @@ ...@@ -37,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,
...@@ -65,7 +58,6 @@ export default { ...@@ -65,7 +58,6 @@ export default {
], ],
optionId: 'value', optionId: 'value',
optionLabel: 'label', optionLabel: 'label',
labelWidth: 70,
isClear: true isClear: true
}, },
{ {
...@@ -77,13 +69,14 @@ export default { ...@@ -77,13 +69,14 @@ export default {
{ {
label: '商户号', label: '商户号',
name: 'merchantId', name: 'merchantId',
type: 'typeNumber', type: 'input',
labelWidth: 98, isClear: true,
maxlength: 11, listeners: {
isClear: true input: value => {
this.searchForm.condition.merchantId = value.replace(/[^\d]/g, '')
} }
], }
searchFormData1: [ },
{ {
label: '关联的企微', label: '关联的企微',
name: 'corpAlias', name: 'corpAlias',
...@@ -97,28 +90,22 @@ export default { ...@@ -97,28 +90,22 @@ export default {
tableColumns: [ tableColumns: [
{ {
label: '商户号', label: '商户号',
prop: 'merchantId', prop: 'merchantId'
line: 2
}, },
{ {
label: '商户名称', label: '商户名称',
prop: 'merchantName', prop: 'merchantName'
line: 2,
align: 'left'
}, },
{ {
label: '模式', label: '模式',
prop: 'merchantModel', prop: 'merchantModel',
line: 2,
formatter: cellValue => { formatter: cellValue => {
return MODEL[cellValue.merchantModel] return MODEL[cellValue.merchantModel]
} }
}, },
{ {
label: '关联的企业微信', label: '关联的企业微信',
prop: 'corpAlias', prop: 'corpAlias'
line: 2,
align: 'left'
} }
] ]
}, },
...@@ -179,7 +166,6 @@ export default { ...@@ -179,7 +166,6 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.container { .container {
margin: 0 20px 20px;
.table-box { .table-box {
margin: 20px 0; margin: 20px 0;
padding: 20px; padding: 20px;
...@@ -189,4 +175,7 @@ export default { ...@@ -189,4 +175,7 @@ export default {
float: right; float: right;
} }
} }
/deep/.el-table th > .cell {
padding: 0 16px;
}
</style> </style>
<!-- <!--
* @Author: your name * @Author: your name
* @Date: 2022-02-16 18:11:11 * @Date: 2022-02-16 18:11:11
* @LastEditTime: 2022-02-21 17:35:49 * @LastEditTime: 2022-04-15 14:24:00
* @LastEditors: Please set LastEditors * @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-wechat\src\views\appConfig\viewConfit.vue * @FilePath: \scrm-micro-wechat\src\views\appConfig\viewConfit.vue
--> -->
...@@ -87,15 +87,9 @@ ...@@ -87,15 +87,9 @@
</div> --> </div> -->
</div> </div>
</div> </div>
<div <!-- <GLFooter>
class="footer-panel"
:style="{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
>
<el-button type="primary" @click="handleCancel">返回</el-button> <el-button type="primary" @click="handleCancel">返回</el-button>
</div> </GLFooter> -->
</div> </div>
</template> </template>
...@@ -113,10 +107,6 @@ export default { ...@@ -113,10 +107,6 @@ export default {
created() { created() {
this.getConfig(this.appId) this.getConfig(this.appId)
}, },
mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
},
methods: { methods: {
async getConfig(appId) { async getConfig(appId) {
let configData = await this.$apis.appConfig.getAgentInfo({ appId }) let configData = await this.$apis.appConfig.getAgentInfo({ appId })
...@@ -141,7 +131,7 @@ export default { ...@@ -141,7 +131,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.config { .config {
&-container { &-container {
margin: 0 20px 84px; margin-bottom: 64px;
} }
&-content { &-content {
margin-top: 20px; margin-top: 20px;
...@@ -220,5 +210,4 @@ export default { ...@@ -220,5 +210,4 @@ export default {
} }
</style> </style>
<style lang="scss">
</style>
\ No newline at end of file \ No newline at end of file
<style lang="scss"></style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!