Commit 95c2dfee by 胡悦

修改搜索、表格

1 parent ce293862
...@@ -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.3.9",
"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",
......
...@@ -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-11 17:46:02
*/ */
// 根据环境引入不同配置 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-04-12 10:55:49
* @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 } 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,7 @@ let router = null ...@@ -20,6 +20,7 @@ let router = null
let instance = null let instance = null
Vue.use(ElementUI) Vue.use(ElementUI)
Vue.use(GLTable) Vue.use(GLTable)
Vue.use(GLCombiForm)
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 * @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-04-14 10:22:11
* @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,18 +15,11 @@ ...@@ -15,18 +15,11 @@
</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>
<GLButton type="text" @click="viewConfig(scope.scope)" fn="查看配置">查看配置</GLButton> <!-- <GLButton type="text" @click="viewConfig(scope.scope)" fn="查看配置">查看配置</GLButton> -->
</template> </template>
</GLTable> </GLTable>
</div> </div>
...@@ -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,24 @@ export default { ...@@ -97,28 +90,24 @@ export default {
tableColumns: [ tableColumns: [
{ {
label: '商户号', label: '商户号',
prop: 'merchantId', prop: 'merchantId'
line: 2
}, },
{ {
label: '商户名称', label: '商户名称',
prop: 'merchantName', prop: 'merchantName',
line: 2, minWidth: 200,
align: 'left' line: 1
}, },
{ {
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'
} }
] ]
}, },
...@@ -189,4 +178,7 @@ export default { ...@@ -189,4 +178,7 @@ export default {
float: right; float: right;
} }
} }
/deep/.el-table th > .cell {
padding: 0 16px;
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!