Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-authorize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 95c2dfee
authored
Apr 14, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改搜索、表格
1 parent
ce293862
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
37 deletions
package.json
src/config/index.js
src/setup/qiankun.js
src/views/appConfig/index.vue
package.json
View file @
95c2dfe
...
...
@@ -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
}
src/config/index.js
View file @
95c2dfe
...
...
@@ -3,8 +3,8 @@
* @version:
* @Author: limin
* @Date: 2021-06-07 14:12:32
* @LastEditors:
Please set LastEditors
* @LastEditTime: 2022-0
2-23 17:13:15
* @LastEditors:
huyue
* @LastEditTime: 2022-0
4-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())
// re
quest({ 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'
)
// re
turn 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
)
{
...
...
src/setup/qiankun.js
View file @
95c2dfe
/*
* @Author: your name
* @Date: 2022-02-10 19:00:41
* @LastEditTime: 2022-0
2-16 14:50:24
* @LastEditors:
Please set LastEditors
* @LastEditTime: 2022-0
4-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
...
...
src/views/appConfig/index.vue
View file @
95c2dfe
<!--
* @Author: huyue
* @Date: 2022-02-11 10:20:32
* @LastEditTime: 2022-0
2-23 16:04:09
* @LastEditors:
Please set LastEditors
* @LastEditTime: 2022-0
4-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
>
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment