Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj-simple
/
dj-admin
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 15a67556
authored
Mar 21, 2025
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat 功能开发
1 parent
fda81c05
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
110 additions
and
30 deletions
src/api/sys.account.js
src/views/index/index.vue
src/views/salepre/index.vue
src/api/sys.account.js
View file @
15a6755
...
...
@@ -5,12 +5,12 @@
* @Last Modified time: 2020-12-01 10:44:09
*/
import
request
from
'./request'
import
RequestMethods
from
'./request.methods'
import
request
from
"./request"
import
RequestMethods
from
"./request.methods"
// 用户相关
const
USER_PATH
=
'dj.api.'
const
USER_PATH
=
"dj.api."
// 角色相关
const
ROLE_PATH
=
'fims.role.'
const
ROLE_PATH
=
"fims.role."
export
const
LOGIN_URL
=
`
${
USER_PATH
}
user.login`
export
const
REG_URL
=
`
${
USER_PATH
}
register`
...
...
@@ -200,3 +200,12 @@ export function RoleDetail(data = {}) {
data
.
method
=
`
${
ROLE_PATH
}
detail`
return
request
(
data
,
RequestMethods
.
GET
)
}
/**
* scrm账号登录
* @param {*} data 参数
*/
export
function
scrmLogin
(
data
=
{})
{
data
.
method
=
`scrm.api.sso.user.loginCode`
return
request
(
data
,
RequestMethods
.
POST
)
}
src/views/index/index.vue
View file @
15a6755
...
...
@@ -15,7 +15,8 @@
@
change=
"idChange"
v-show=
"isBeSuper"
size=
"mini"
style=
"margin-left: auto"
>
style=
"margin-left: auto"
>
<el-option
v-for=
"(item, index) in parkServiceList"
:key=
"index"
...
...
@@ -24,7 +25,8 @@
"
:label=
"
+accountType === 7 ? item.yqMerchantName : item.merchantName
"
/>
"
/>
</el-select>
</div>
<div
style=
"text-align: right"
>
...
...
@@ -38,7 +40,8 @@
<el-col
v-if=
"+accountType !== 7"
:span=
"8"
style=
"border-right: 1px solid #e7eaec"
>
style=
"border-right: 1px solid #e7eaec"
>
<div
class=
"top_card"
>
<div
class=
"top_card_title"
>
今日待预约
</div>
<div
class=
"top_card_main"
>
...
...
@@ -62,7 +65,9 @@
</div>
<div
class=
"top_card_bm"
>
<span
class=
"top_card_bm_left"
>
转化率
</span>
<span
class=
"top_card_bm_right"
>
{{
totalData
.
customerTransfer
}}
%
</span>
<span
class=
"top_card_bm_right"
>
{{
totalData
.
customerTransfer
}}
%
</span
>
</div>
</div>
</div>
...
...
@@ -79,7 +84,9 @@
</div>
<div
class=
"top_card_bm"
>
<span
class=
"top_card_bm_left"
>
成交总额
</span>
<span
class=
"top_card_bm_right"
>
¥
{{
totalData
.
totalSalesMoney
}}
</span>
<span
class=
"top_card_bm_right"
>
¥
{{
totalData
.
totalSalesMoney
}}
</span
>
</div>
</div>
</div>
...
...
@@ -96,7 +103,9 @@
</div>
<div
class=
"top_card_bm"
>
<span
class=
"top_card_bm_left"
>
毛利
</span>
<span
class=
"top_card_bm_right"
>
¥
{{
totalData
.
totalGrossProfit
}}
</span>
<span
class=
"top_card_bm_right"
>
¥
{{
totalData
.
totalGrossProfit
}}
</span
>
</div>
</div>
</div>
...
...
@@ -134,11 +143,16 @@
</div>
<div
class=
"top_card_bm"
v-show=
"customerType === 'today'"
>
<span
class=
"top_card_bm_left"
>
周同比:
{{
$$
(
customerData
,
"onWeekCustomerNums"
)
}}
%
</span>
<span
class=
"top_card_bm_right customer"
>
日环比:
{{
customerData
.
onDayCustomerNums
}}
%
</span>
v-show=
"customerType === 'today'"
>
<span
class=
"top_card_bm_left"
>
周同比:
{{
$$
(
customerData
,
"onWeekCustomerNums"
)
}}
%
</span
>
<span
class=
"top_card_bm_right customer"
>
日环比:
{{
customerData
.
onDayCustomerNums
}}
%
</span
>
</div>
<div
class=
"top_card_bm"
>
<span
class=
"top_card_bm_left"
>
日均新增客户(人)
</span>
...
...
@@ -160,9 +174,14 @@
</div>
<div
class=
"top_card_bm"
v-show=
"customerType === 'today'"
>
<span
class=
"top_card_bm_left"
>
周同比:
{{
customerData
.
onWeekToShop
}}
%
</span>
<span
class=
"top_card_bm_right customer"
>
日环比:
{{
customerData
.
onDayToShop
}}
%
</span>
v-show=
"customerType === 'today'"
>
<span
class=
"top_card_bm_left"
>
周同比:
{{
customerData
.
onWeekToShop
}}
%
</span
>
<span
class=
"top_card_bm_right customer"
>
日环比:
{{
customerData
.
onDayToShop
}}
%
</span
>
</div>
<div
class=
"top_card_bm"
>
<span
class=
"top_card_bm_left"
>
日均到店数(人)
</span>
...
...
@@ -178,21 +197,30 @@
<div
class=
"top_card_title"
>
转化升级率(比)
</div>
<div
class=
"top_card_main top_card_main_multi"
>
<div
class=
"top_card_md"
>
<span
class=
"top_card_md_right top_card_third"
>
{{
customerData
.
upgradeTransfer
}}
%
</span>
<span
class=
"top_card_md_right top_card_third"
>
{{
customerData
.
upgradeTransfer
}}
%
</span
>
</div>
<div
class=
"top_card_bm"
v-show=
"customerType === 'today'"
>
<span
class=
"top_card_bm_left"
>
周同比:
{{
customerData
.
onWeekUpgradeTransfer
}}
%
</span>
<span
class=
"top_card_bm_right customer"
>
日环比:
{{
customerData
.
onDayUpgradeTransfer
}}
%
</span>
v-show=
"customerType === 'today'"
>
<span
class=
"top_card_bm_left"
>
周同比:
{{
customerData
.
onWeekUpgradeTransfer
}}
%
</span
>
<span
class=
"top_card_bm_right customer"
>
日环比:
{{
customerData
.
onDayUpgradeTransfer
}}
%
</span
>
</div>
<div
class=
"top_card_bm"
>
<span
class=
"top_card_bm_left"
>
日均转化率(比)
</span>
<span
class=
"top_card_bm_right"
>
{{
customerData
.
perDayUpgradeTransfer
}}
%
</span>
<span
class=
"top_card_bm_right"
>
{{
customerData
.
perDayUpgradeTransfer
}}
%
</span
>
</div>
</div>
</div>
...
...
@@ -376,9 +404,9 @@ export default {
this
.
init
()
})
this
.
$nextTick
(()
=>
{
const
$store
=
this
.
$store
.
getters
[
'd2admin/auth/curBtns'
]
const
btnId
=
'90707'
// 渗透率报表权限ID
const
_item
=
$store
?.
find
(
i
=>
(
i
.
authId
===
btnId
)
)
const
$store
=
this
.
$store
.
getters
[
"d2admin/auth/curBtns"
]
const
btnId
=
"90707"
// 渗透率报表权限ID
const
_item
=
$store
?.
find
(
(
i
)
=>
i
.
authId
===
btnId
)
if
(
_item
)
this
.
btnFlag
=
true
})
},
...
...
src/views/salepre/index.vue
0 → 100644
View file @
15a6755
<
template
>
<div>
<iframe
style=
"
position: absolute;
width: 97%;
height: 96%;
border: 0;
margin: 20px 0;
"
allowfullscreen
src=
"http://192.168.1.178:6654/#/serviceConfig/index?sessionId=scrm-base-71136ce6-a3e6-4aed-b2c0-e50fa4d22263-rop"
></iframe>
<!--
<router-view
/>
-->
</div>
</
template
>
<
script
>
export
default
{
name
:
"salepre"
,
created
()
{
// const that = this
// window.onstorage = function (e) {
// // console.log(`The ${e.key} key has been changed from ${e.oldValue} to ${e.newValue} .`)
// that.$router.push('/login')
// }
},
methods
:
{}
}
</
script
>
<
style
lang=
"scss"
>
@import
"~@/assets/style/public-class.scss"
;
.el_table
{
thead
{
th
{
background
:
#f5f7fa
;
}
}
}
</
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