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 @@
...
@@ -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"
,
...
@@ -44,4 +44,4 @@
...
@@ -44,4 +44,4 @@
"> 1%"
,
"> 1%"
,
"last 2 versions"
"last 2 versions"
]
]
}
\ No newline at end of file
\ No newline at end of file
}
src/config/index.js
View file @
95c2dfe
...
@@ -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-0
2-23 17:13:15
* @LastEditTime: 2022-0
4-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())
// re
quest({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' }
)
// re
turn 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
)
{
...
...
src/setup/qiankun.js
View file @
95c2dfe
/*
/*
* @Author: your name
* @Author: your name
* @Date: 2022-02-10 19:00:41
* @Date: 2022-02-10 19:00:41
* @LastEditTime: 2022-0
2-16 14:50:24
* @LastEditTime: 2022-0
4-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
...
...
src/views/appConfig/index.vue
View file @
95c2dfe
<!--
<!--
* @Author: huyue
* @Author: huyue
* @Date: 2022-02-11 10:20:32
* @Date: 2022-02-11 10:20:32
* @LastEditTime: 2022-0
2-23 16:04:09
* @LastEditTime: 2022-0
4-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
>
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