Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-settings
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 5ae1f90b
authored
Oct 16, 2021
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
切换到测试环境
1 parent
b2e15b95
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
43 additions
and
30 deletions
package-lock.json
package.json
src/api/modules/baseinfoApi.js
src/config/env.development.js
src/views/baseInfo/bloc.vue
src/views/baseInfo/index.vue
package-lock.json
View file @
5ae1f90
This diff is collapsed.
Click to expand it.
package.json
View file @
5ae1f90
...
...
@@ -11,7 +11,6 @@
"axios"
:
"^0.21.1"
,
"core-js"
:
"^3.4.4"
,
"el-tree-transfer"
:
"^2.2.6"
,
"glsx-common"
:
"^1.4.0"
,
"glsx-components"
:
"^1.0.6"
,
"vue"
:
"^2.6.10"
,
"vue-router"
:
"^3.1.3"
,
...
...
@@ -29,6 +28,7 @@
"eslint"
:
"^5.16.0"
,
"eslint-plugin-prettier"
:
"^3.1.1"
,
"eslint-plugin-vue"
:
"^5.0.0"
,
"glsx-common"
:
"^1.4.4"
,
"node-sass"
:
"^4.14.1"
,
"prettier"
:
"^1.19.1"
,
"sass-loader"
:
"^8.0.0"
,
...
...
src/api/modules/baseinfoApi.js
View file @
5ae1f90
...
...
@@ -37,7 +37,7 @@ export function toGL(params = {}) {
// cn.com.glsx.merchants.merchant.findMerchantBaseInfo
// 查询商户基本信息
export
function
merchantInfo
(
params
=
{})
{
params
.
method
=
'
cn.com.glsx.merchants.merchant.findMerchantBaseInfo
'
params
.
method
=
'
org.ore.api.common.findMerchantInfoByMerchantNo.list
'
return
http
({
data
:
params
,
})
...
...
src/config/env.development.js
View file @
5ae1f90
...
...
@@ -18,7 +18,7 @@ module.exports = {
},
request
:
{
// baseURL: 'http://192.168.3.191:8064/rop-scrm-entmicro/router',
baseURL
:
'http
://rop-merchant.test.glsx.com.cn/rop-merchants
/router'
,
baseURL
:
'http
s://scrm.test.glsx.com.cn/rop-scrm-entmicro
/router'
,
// 设置超时时间
timeout
:
180000
,
// 携带凭证
...
...
src/views/baseInfo/bloc.vue
View file @
5ae1f90
...
...
@@ -152,6 +152,10 @@ export default {
height
:
494px
;
//
transition
:
height
0.1s
ease-in-out
;
}
.table_wrapper_open
::-webkit-scrollbar
{
display
:
none
;
width
:
0px
;
}
.fixed_footer
{
width
:
100%
;
height
:
36px
;
...
...
src/views/baseInfo/index.vue
View file @
5ae1f90
<
template
>
<div
class=
"base-info-index"
>
<div
class=
"top_widget"
>
<img
class=
"sign_icon"
src=
"../../assets/scrm_base_info_icon_one.png"
/>
<div
class=
"info_widget"
>
<div
class=
"title_text"
>
{{
blocInfo
.
merchantName
}}
<span
class=
"min_text"
>
(商户号:
{{
blocInfo
.
merchantNo
}}
)
</span>
<div
class=
"out_main"
>
<div
class=
"base-info-index"
>
<div
class=
"top_widget"
>
<img
class=
"sign_icon"
src=
"../../assets/scrm_base_info_icon_one.png"
/>
<div
class=
"info_widget"
>
<div
class=
"title_text"
>
{{
blocInfo
.
merchantName
}}
<span
class=
"min_text"
>
(商户号:
{{
blocInfo
.
merchantNo
}}
)
</span>
</div>
<div
class=
"sec_title_text dr_top_1"
>
<span>
关联企微:
{{
blocInfo
.
entmicroName
||
'无'
}}
</span>
<div
v-if=
"blocInfo.entmicroName"
class=
"auth_btn"
:class=
"platform == 1 ? 'auth_btn_cp' : ''"
>
已授权
</div>
</div>
<div
class=
"min_text dr_top_1"
>
所属企业:
{{
blocInfo
.
parentName
}}
</div>
<div
class=
"min_text"
>
企微员工:
{{
blocInfo
.
entMicroEmployeeCount
}}
人
</div>
</div>
<div
class=
"sec_title_text dr_top_1"
>
<span>
关联企微:
{{
blocInfo
.
entmicroName
||
'无'
}}
</span>
<div
v-if=
"blocInfo.entmicroName"
class=
"auth_btn"
:class=
"platform == 1 ? 'auth_btn_cp' : ''"
>
已授权
</div>
</div>
<div
class=
"min_text dr_top_1"
>
所属企业:
{{
blocInfo
.
parentName
}}
</div>
<div
class=
"min_text"
>
企微员工:
{{
blocInfo
.
entMicroEmployeeCount
}}
人
</div>
</div>
<blocModule
:bloc=
"blocInfo"
:list
.
sync=
"storesList"
v-if=
"platform == 1"
></blocModule>
<shopModule
v-if=
"platform == 2"
></shopModule>
</div>
<blocModule
:bloc=
"blocInfo"
:list
.
sync=
"storesList"
v-if=
"platform == 1"
></blocModule>
<shopModule
v-if=
"platform == 2"
></shopModule>
</div>
</
template
>
...
...
@@ -41,22 +43,26 @@ export default {
}
},
created
()
{
console
.
log
(
this
.
$globalState
);
console
.
log
(
this
.
$globalState
)
const
{
session
}
=
this
.
$globalState
this
.
platform
=
session
.
merchantModel
this
.
loginInfo
=
session
this
.
getBlocData
()
},
methods
:
{
getBlocData
()
{
let
para
=
{
merchantId
:
44209603
merchantId
:
this
.
loginInfo
.
merchantId
,
sessionId
:
this
.
loginInfo
.
sessionId
}
merchantInfo
(
para
).
then
(
res
=>
{
this
.
blocInfo
=
res
this
.
storesList
=
res
.
stores
.
map
(
item
=>
{
item
.
date
=
`
${
this
.
dateFormat
(
item
.
starttime
,
'yyyy.MM.dd'
)}
--
${
this
.
dateFormat
(
item
.
endtime
,
'yyyy.MM.dd'
)}
`
this
.
storesList
=
res
.
stores
.
map
(
item
=>
{
item
.
date
=
`
${
this
.
dateFormat
(
item
.
starttime
,
'yyyy.MM.dd'
)}
--
${
this
.
dateFormat
(
item
.
endtime
,
'yyyy.MM.dd'
)}
`
return
item
})
let
aaa
=
this
.
storesList
[
0
]
for
(
let
i
=
0
;
i
<
30
;
i
++
)
{
for
(
let
i
=
0
;
i
<
30
;
i
++
)
{
this
.
storesList
.
push
(
aaa
)
}
})
...
...
@@ -90,16 +96,19 @@ export default {
}
</
script
>
<
style
lang=
"scss"
scoped
>
.base-info-index
{
.out_main
{
box-sizing
:
border-box
;
padding
:
0
20px
64px
40px
;
}
.base-info-index
{
width
:
100%
;
height
:
calc
(
100vh
-
124px
);
background
:
#
FFF
;
min-
height
:
calc
(
100vh
-
124px
);
background
:
#
fff
;
box-shadow
:
0px
10px
20px
0px
rgba
(
88
,
80
,
255
,
0.1
);
box-sizing
:
border-box
;
overflow
:
hidden
;
overflow-y
:
scroll
;
//
overflow
:
hidden
;
//
overflow-y
:
scroll
;
}
.base-info-index
::-webkit-scrollbar
{
.base-info-index
::-webkit-scrollbar
{
display
:
none
;
width
:
0px
;
}
...
...
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