Commit 95c2dfee by 胡悦

修改搜索、表格

1 parent ce293862
......@@ -13,7 +13,7 @@
"el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
"glsx-components": "^1.3.7",
"glsx-components": "^1.3.9",
"lodash": "^4.17.21",
"vue": "^2.6.10",
"vue-amap": "^0.5.10",
......@@ -44,4 +44,4 @@
"> 1%",
"last 2 versions"
]
}
\ No newline at end of file
}
......@@ -3,8 +3,8 @@
* @version:
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @LastEditors: Please set LastEditors
* @LastEditTime: 2022-02-23 17:13:15
* @LastEditors: huyue
* @LastEditTime: 2022-04-11 17:46:02
*/
// 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js')
......@@ -18,8 +18,8 @@ export const fetchConfig = function (isEnv = true) {
// return Promise.resolve(cfg)
// }
//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 = {
install(vue, cfg) {
......
/*
* @Author: your name
* @Date: 2022-02-10 19:00:41
* @LastEditTime: 2022-02-16 14:50:24
* @LastEditors: Please set LastEditors
* @LastEditTime: 2022-04-12 10:55:49
* @LastEditors: huyue
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \scrm-micro-pay\src\setup\qiankun.js
*/
import Vue from 'vue'
import { message } from '@/plugins/element.js'
import { fetchConfig } from '@/config'
import { GLButton, GLTable } from 'glsx-components' //权限按钮 (根据权限动态创建)
import { GLButton, GLTable, GLCombiForm } from 'glsx-components' //权限按钮 (根据权限动态创建)
import { getRoutes } from '@/router'
import ElementUI from 'element-ui'
import 'glsx-components/dist/glsx-components.css'
......@@ -20,6 +20,7 @@ let router = null
let instance = null
Vue.use(ElementUI)
Vue.use(GLTable)
Vue.use(GLCombiForm)
export async function bootstrap({ history, common, messenger, globalState, routerBase }) {
const { response, request, sign, sign_common, secret, request_common } = await fetchConfig(true) //globalState.configSwitch
Vue.prototype.$history = history
......
<!--
* @Author: huyue
* @Date: 2022-02-11 10:20:32
* @LastEditTime: 2022-02-23 16:04:09
* @LastEditors: Please set LastEditors
* @LastEditTime: 2022-04-14 10:22:11
* @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
-->
......@@ -15,18 +15,11 @@
</el-popover>
</div>
<div class="table-box">
<glsx-combi-form ref="showSearch" :formObj="searchForm.condition" :formData="searchFormData"></glsx-combi-form>
<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" -->
<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">
<!-- <el-button type="text" @click="viewConfig(scope.scope)">查看配置</el-button> -->
<GLButton type="text" @click="viewConfig(scope.scope)" fn="查看配置">查看配置</GLButton>
<el-button type="text" @click="viewConfig(scope.scope)">查看配置</el-button>
<!-- <GLButton type="text" @click="viewConfig(scope.scope)" fn="查看配置">查看配置</GLButton> -->
</template>
</GLTable>
</div>
......@@ -65,7 +58,6 @@ export default {
],
optionId: 'value',
optionLabel: 'label',
labelWidth: 70,
isClear: true
},
{
......@@ -77,13 +69,14 @@ export default {
{
label: '商户号',
name: 'merchantId',
type: 'typeNumber',
labelWidth: 98,
maxlength: 11,
isClear: true
}
],
searchFormData1: [
type: 'input',
isClear: true,
listeners: {
input: value => {
this.searchForm.condition.merchantId = value.replace(/[^\d]/g, '')
}
}
},
{
label: '关联的企微',
name: 'corpAlias',
......@@ -97,28 +90,24 @@ export default {
tableColumns: [
{
label: '商户号',
prop: 'merchantId',
line: 2
prop: 'merchantId'
},
{
label: '商户名称',
prop: 'merchantName',
line: 2,
align: 'left'
minWidth: 200,
line: 1
},
{
label: '模式',
prop: 'merchantModel',
line: 2,
formatter: cellValue => {
return MODEL[cellValue.merchantModel]
}
},
{
label: '关联的企业微信',
prop: 'corpAlias',
line: 2,
align: 'left'
prop: 'corpAlias'
}
]
},
......@@ -189,4 +178,7 @@ export default {
float: right;
}
}
/deep/.el-table th > .cell {
padding: 0 16px;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!