Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
glsk-data-view-pd
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 9a093028
authored
Aug 28, 2023
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
去除打印
1 parent
df24238e
Hide whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
0 additions
and
30 deletions
src/components/Charts.vue
src/components/DetailTitle.vue
src/components/PieChart.vue
src/components/PieChartShadow.vue
src/components/SelectBox.vue
src/main.js
src/mixins/clientMixin.js
src/router/routes.js
src/views/boutique/BoutiqueLeft.vue
src/views/boutique/BoutiqueRight.vue
src/views/boutique/Map.vue
src/views/equity/EquityBottom.vue
src/views/equity/EquityLeft.vue
src/views/equity/components/BarChart.vue
src/views/home/index.vue
src/views/operational/components/UserTab.vue
src/views/operational/components/ViewSurface.vue
src/views/solar/ContentLeft.vue
src/views/solar/PurchaseProgress.vue
src/views/solar/PurchasePropertion.vue
src/views/solar/PurchaseRank.vue
src/views/solar/StorageContent.vue
src/components/Charts.vue
View file @
9a09302
...
@@ -64,7 +64,6 @@ export default {
...
@@ -64,7 +64,6 @@ export default {
this
.
chart
=
echarts
.
init
(
document
.
getElementById
(
'demo'
))
this
.
chart
=
echarts
.
init
(
document
.
getElementById
(
'demo'
))
this
.
setOptions
(
this
.
chartData
)
this
.
setOptions
(
this
.
chartData
)
this
.
chart
.
on
(
'click'
,
function
(
params
)
{
this
.
chart
.
on
(
'click'
,
function
(
params
)
{
console
.
log
(
params
.
name
)
})
})
},
},
setOptions
(
data
=
[])
{
setOptions
(
data
=
[])
{
...
...
src/components/DetailTitle.vue
View file @
9a09302
...
@@ -68,7 +68,6 @@ export default {
...
@@ -68,7 +68,6 @@ export default {
},
},
watch
:
{
watch
:
{
'dataList'
(
val
)
{
'dataList'
(
val
)
{
console
.
log
(
val
)
this
.
merchantList
=
utils
.
deepClone
(
this
.
dataList
)
this
.
merchantList
=
utils
.
deepClone
(
this
.
dataList
)
}
}
},
},
...
@@ -100,7 +99,6 @@ export default {
...
@@ -100,7 +99,6 @@ export default {
},
},
// 监听子菜单变化
// 监听子菜单变化
selectVal
(
val
)
{
selectVal
(
val
)
{
console
.
log
(
val
)
this
.
firstTab
=
val
this
.
firstTab
=
val
this
.
$bus
.
$emit
(
'selectVal'
,
val
)
this
.
$bus
.
$emit
(
'selectVal'
,
val
)
this
.
openSelect
()
this
.
openSelect
()
...
...
src/components/PieChart.vue
View file @
9a09302
...
@@ -168,7 +168,6 @@ export default {
...
@@ -168,7 +168,6 @@ export default {
_html
=
''
_html
=
''
break
break
case
'rate'
:
case
'rate'
:
console
.
log
(
params
)
_html
=
utils
.
toPercent
(
params
.
percent
)
_html
=
utils
.
toPercent
(
params
.
percent
)
break
break
default
:
default
:
...
...
src/components/PieChartShadow.vue
View file @
9a09302
...
@@ -177,8 +177,6 @@ export default {
...
@@ -177,8 +177,6 @@ export default {
this
.
mTime
=
setInterval
(
this
.
pieActive
,
15000
)
this
.
mTime
=
setInterval
(
this
.
pieActive
,
15000
)
})
})
this
.
echartsPie
.
on
(
'mouseover'
,
data
=>
{
this
.
echartsPie
.
on
(
'mouseover'
,
data
=>
{
console
.
log
(
222
);
console
.
log
(
data
);
this
.
mainValue
=
data
.
data
.
value
this
.
mainValue
=
data
.
data
.
value
this
.
numDesc
=
data
.
data
.
name
this
.
numDesc
=
data
.
data
.
name
this
.
descColor
=
data
.
color
this
.
descColor
=
data
.
color
...
...
src/components/SelectBox.vue
View file @
9a09302
...
@@ -80,9 +80,7 @@ export default {
...
@@ -80,9 +80,7 @@ export default {
mounted
()
{
mounted
()
{
const
{
valueName
,
isObject
,
dataList
,
defaultValue
}
=
this
const
{
valueName
,
isObject
,
dataList
,
defaultValue
}
=
this
const
isDefaultObject
=
(
defaultValue
instanceof
Object
)
const
isDefaultObject
=
(
defaultValue
instanceof
Object
)
console
.
log
(
isDefaultObject
,
dataList
);
this
.
value
=
isDefaultObject
?
defaultValue
[
valueName
]
:
defaultValue
||
(
isObject
?
dataList
[
0
][
valueName
]
:
dataList
[
0
])
this
.
value
=
isDefaultObject
?
defaultValue
[
valueName
]
:
defaultValue
||
(
isObject
?
dataList
[
0
][
valueName
]
:
dataList
[
0
])
console
.
log
(
this
.
value
);
},
},
methods
:
{
methods
:
{
select
(
item
)
{
select
(
item
)
{
...
...
src/main.js
View file @
9a09302
...
@@ -44,7 +44,6 @@ Vue.config.productionTip = false
...
@@ -44,7 +44,6 @@ Vue.config.productionTip = false
// Vue.use(dialog)
// Vue.use(dialog)
const
isMock
=
[
'prod'
,
'production'
].
includes
(
process
.
env
.
NODE_ENV
)
const
isMock
=
[
'prod'
,
'production'
].
includes
(
process
.
env
.
NODE_ENV
)
fetchConfig
(
!
isMock
).
then
(
res
=>
{
fetchConfig
(
!
isMock
).
then
(
res
=>
{
console
.
log
(
res
)
Vue
.
prototype
.
$roleAuth
=
res
.
roleAuth
Vue
.
prototype
.
$roleAuth
=
res
.
roleAuth
// 从配置服务器获取动态配置
// 从配置服务器获取动态配置
// 设置 js中可以访问 $cdn
// 设置 js中可以访问 $cdn
...
...
src/mixins/clientMixin.js
View file @
9a09302
...
@@ -10,7 +10,6 @@ export default {
...
@@ -10,7 +10,6 @@ export default {
methods
:
{
methods
:
{
getClientData
()
{
getClientData
()
{
console
.
log
(
22
)
this
.
api
.
operational
.
getEnterpriseDistribution
().
then
(
res
=>
{
this
.
api
.
operational
.
getEnterpriseDistribution
().
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
res
.
data
.
dataList
.
forEach
(
item
=>
{
res
.
data
.
dataList
.
forEach
(
item
=>
{
...
...
src/router/routes.js
View file @
9a09302
...
@@ -69,7 +69,6 @@ const getPages = _ => {
...
@@ -69,7 +69,6 @@ const getPages = _ => {
if
(
e
.
meta
&&
e
.
meta
.
keepAlive
)
keepAlives
.
push
(
name
)
if
(
e
.
meta
&&
e
.
meta
.
keepAlive
)
keepAlives
.
push
(
name
)
return
route
return
route
})
})
console
.
log
(
router
)
return
[
router
]
return
[
router
]
}
}
export
const
keeps
=
keepAlives
export
const
keeps
=
keepAlives
...
...
src/views/boutique/BoutiqueLeft.vue
View file @
9a09302
...
@@ -27,7 +27,6 @@ export default {
...
@@ -27,7 +27,6 @@ export default {
computed
:
{
computed
:
{
tabName
()
{
tabName
()
{
let
sname
let
sname
console
.
log
(
this
.
$store
.
state
.
app
)
switch
(
this
.
activeName
)
{
switch
(
this
.
activeName
)
{
case
0
:
case
0
:
sname
=
this
.
$store
.
state
.
app
.
boutique
.
channel
.
value
==
'cl'
?
'BarTrends'
:
'BusinessTrends'
sname
=
this
.
$store
.
state
.
app
.
boutique
.
channel
.
value
==
'cl'
?
'BarTrends'
:
'BusinessTrends'
...
@@ -170,7 +169,6 @@ export default {
...
@@ -170,7 +169,6 @@ export default {
value
:
''
value
:
''
}]
}]
const
_data
=
await
this
.
api
.
boutique
.
getYears
({})
const
_data
=
await
this
.
api
.
boutique
.
getYears
({})
console
.
log
(
_data
)
const
_yearList
=
_data
.
data
.
dataList
[
0
].
year
const
_yearList
=
_data
.
data
.
dataList
[
0
].
year
_yearList
.
forEach
(
item
=>
{
_yearList
.
forEach
(
item
=>
{
this
.
yearList
.
push
({
this
.
yearList
.
push
({
...
...
src/views/boutique/BoutiqueRight.vue
View file @
9a09302
...
@@ -39,7 +39,6 @@ export default {
...
@@ -39,7 +39,6 @@ export default {
mounted
()
{
},
mounted
()
{
},
methods
:
{
methods
:
{
changeTab
(
data
)
{
changeTab
(
data
)
{
console
.
log
(
data
);
this
.
activeName
=
data
this
.
activeName
=
data
}
}
}
}
...
...
src/views/boutique/Map.vue
View file @
9a09302
...
@@ -163,7 +163,6 @@ export default {
...
@@ -163,7 +163,6 @@ export default {
})
})
})
})
this
.
myChart
.
on
(
'mouseout'
,
function
(
e
)
{
this
.
myChart
.
on
(
'mouseout'
,
function
(
e
)
{
console
.
log
(
e
)
myChart
.
dispatchAction
({
myChart
.
dispatchAction
({
type
:
'downplay'
,
type
:
'downplay'
,
seriesIndex
:
0
seriesIndex
:
0
...
...
src/views/equity/EquityBottom.vue
View file @
9a09302
...
@@ -28,7 +28,6 @@ export default {
...
@@ -28,7 +28,6 @@ export default {
methods
:
{
methods
:
{
changeTab
(
val
)
{
changeTab
(
val
)
{
console
.
log
(
val
);
this
.
$bus
.
$emit
(
'whosaleTabChange'
,
val
===
0
?
'gh'
:
'gl'
)
this
.
$bus
.
$emit
(
'whosaleTabChange'
,
val
===
0
?
'gh'
:
'gl'
)
}
}
}
}
...
...
src/views/equity/EquityLeft.vue
View file @
9a09302
...
@@ -98,14 +98,11 @@ export default {
...
@@ -98,14 +98,11 @@ export default {
},
},
created
()
{
created
()
{
this
.
$bus
.
$on
(
'selectAreaChange'
,
val
=>
{
this
.
$bus
.
$on
(
'selectAreaChange'
,
val
=>
{
console
.
log
(
11111
);
this
.
area
=
val
this
.
area
=
val
})
})
this
.
$bus
.
$on
(
'selectMonthChange'
,
val
=>
{
this
.
$bus
.
$on
(
'selectMonthChange'
,
val
=>
{
console
.
log
(
2222
);
this
.
month
=
val
this
.
month
=
val
})
})
console
.
log
(
33333
);
this
.
getRetailOverview
()
this
.
getRetailOverview
()
this
.
getRetailTrend
()
this
.
getRetailTrend
()
},
},
...
...
src/views/equity/components/BarChart.vue
View file @
9a09302
...
@@ -73,7 +73,6 @@ export default {
...
@@ -73,7 +73,6 @@ export default {
return
_html
return
_html
},
},
drawBar
()
{
drawBar
()
{
console
.
log
(
this
.
tooltipFormatterObj
);
this
.
barOptions
.
xAxis
.
data
=
this
.
dataList
.
map
(
item
=>
item
.
statDate
)
this
.
barOptions
.
xAxis
.
data
=
this
.
dataList
.
map
(
item
=>
item
.
statDate
)
this
.
barOptions
.
series
[
0
].
data
=
this
.
dataList
.
map
(
item
=>
item
[
this
.
tooltipFormatterObj
.
attrName
])
this
.
barOptions
.
series
[
0
].
data
=
this
.
dataList
.
map
(
item
=>
item
[
this
.
tooltipFormatterObj
.
attrName
])
this
[
this
.
domId
].
setOption
(
this
.
barOptions
)
this
[
this
.
domId
].
setOption
(
this
.
barOptions
)
...
...
src/views/home/index.vue
View file @
9a09302
...
@@ -66,7 +66,6 @@ export default {
...
@@ -66,7 +66,6 @@ export default {
},
},
created
()
{
created
()
{
this
.
$bus
.
$on
(
'selectVal'
,
data
=>
{
this
.
$bus
.
$on
(
'selectVal'
,
data
=>
{
console
.
log
(
'data:'
,
data
)
this
.
activeName
=
data
this
.
activeName
=
data
})
})
},
},
...
...
src/views/operational/components/UserTab.vue
View file @
9a09302
...
@@ -128,7 +128,6 @@ export default {
...
@@ -128,7 +128,6 @@ export default {
this
.
selectIndex
=
selectIndex
this
.
selectIndex
=
selectIndex
const
params
=
{
req
:
{
queryItem
}}
const
params
=
{
req
:
{
queryItem
}}
this
.
api
.
operational
.
getTrend
(
params
).
then
(
res
=>
{
this
.
api
.
operational
.
getTrend
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
code
===
'0'
)
{
if
(
res
.
code
===
'0'
)
{
const
dataList
=
res
.
data
.
dataList
const
dataList
=
res
.
data
.
dataList
const
obj
=
{
const
obj
=
{
...
...
src/views/operational/components/ViewSurface.vue
View file @
9a09302
...
@@ -30,7 +30,6 @@ export default {
...
@@ -30,7 +30,6 @@ export default {
getEnterpriseOverviewTrend
()
{
getEnterpriseOverviewTrend
()
{
this
.
api
.
operational
.
getEnterpriseOverviewTrend
().
then
(
res
=>
{
this
.
api
.
operational
.
getEnterpriseOverviewTrend
().
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
console
.
log
(
res
,
'000000000'
)
// this.dataList = res.data.dataList
// this.dataList = res.data.dataList
this
.
$refs
.
lineBarCharts
.
drawLine
(
res
.
data
.
dataList
)
this
.
$refs
.
lineBarCharts
.
drawLine
(
res
.
data
.
dataList
)
}
}
...
...
src/views/solar/ContentLeft.vue
View file @
9a09302
...
@@ -102,7 +102,6 @@ export default {
...
@@ -102,7 +102,6 @@ export default {
const
_dataList
=
_data
.
data
.
dataList
[
0
]
const
_dataList
=
_data
.
data
.
dataList
[
0
]
this
.
$bus
.
$emit
(
'businessstarttime'
,
_dataList
.
businessstarttime
)
this
.
$bus
.
$emit
(
'businessstarttime'
,
_dataList
.
businessstarttime
)
this
.
setSolarTime
(
_dataList
.
businessstarttime
)
this
.
setSolarTime
(
_dataList
.
businessstarttime
)
console
.
log
(
this
.
$store
.
state
.
app
)
this
.
solarList
.
forEach
(
item
=>
{
this
.
solarList
.
forEach
(
item
=>
{
item
.
value
=
_dataList
[
item
.
valueName
]
item
.
value
=
_dataList
[
item
.
valueName
]
item
.
bottomValue
=
_dataList
[
item
.
bottemName
]
item
.
bottomValue
=
_dataList
[
item
.
bottemName
]
...
...
src/views/solar/PurchaseProgress.vue
View file @
9a09302
...
@@ -65,7 +65,6 @@ export default {
...
@@ -65,7 +65,6 @@ export default {
// 获取商品采购进度占比
// 获取商品采购进度占比
getBugProgress
()
{
getBugProgress
()
{
this
.
api
.
solar
.
getBugProgress
({
year
:
this
.
$store
.
state
.
app
.
solarYear
}).
then
(
res
=>
{
this
.
api
.
solar
.
getBugProgress
({
year
:
this
.
$store
.
state
.
app
.
solarYear
}).
then
(
res
=>
{
console
.
log
(
res
,
'000'
)
if
(
!
res
.
code
===
'0'
)
{
if
(
!
res
.
code
===
'0'
)
{
this
.
openMessage
(
'获取采购进度占比失败'
)
this
.
openMessage
(
'获取采购进度占比失败'
)
return
return
...
...
src/views/solar/PurchasePropertion.vue
View file @
9a09302
...
@@ -65,7 +65,6 @@ export default {
...
@@ -65,7 +65,6 @@ export default {
// 获取商品采购占比
// 获取商品采购占比
getAllGoodsRatio
()
{
getAllGoodsRatio
()
{
this
.
api
.
solar
.
getAllGoodsRatio
({
year
:
this
.
$store
.
state
.
app
.
solarYear
}).
then
(
res
=>
{
this
.
api
.
solar
.
getAllGoodsRatio
({
year
:
this
.
$store
.
state
.
app
.
solarYear
}).
then
(
res
=>
{
console
.
log
(
res
,
'000'
)
if
(
!
res
.
code
===
'0'
)
{
if
(
!
res
.
code
===
'0'
)
{
this
.
openMessage
(
'获取商品采购占比失败'
)
this
.
openMessage
(
'获取商品采购占比失败'
)
return
return
...
...
src/views/solar/PurchaseRank.vue
View file @
9a09302
...
@@ -85,7 +85,6 @@ export default {
...
@@ -85,7 +85,6 @@ export default {
// 获取各类商品采购额排名
// 获取各类商品采购额排名
getAllRanking
()
{
getAllRanking
()
{
this
.
api
.
solar
.
getAllRanking
({
year
:
this
.
$store
.
state
.
app
.
solarYear
}).
then
(
res
=>
{
this
.
api
.
solar
.
getAllRanking
({
year
:
this
.
$store
.
state
.
app
.
solarYear
}).
then
(
res
=>
{
console
.
log
(
res
,
'000'
)
if
(
!
res
.
code
===
'0'
)
{
if
(
!
res
.
code
===
'0'
)
{
this
.
openMessage
(
'获取商品采购额排名失败'
)
this
.
openMessage
(
'获取商品采购额排名失败'
)
return
return
...
@@ -101,7 +100,6 @@ export default {
...
@@ -101,7 +100,6 @@ export default {
},
},
// 排名下拉选中
// 排名下拉选中
selectPurchase
(
item
)
{
selectPurchase
(
item
)
{
console
.
log
(
item
)
this
.
purchase
=
item
this
.
purchase
=
item
const
purchaseIndex
=
this
.
purchaseList
.
findIndex
(
itm
=>
itm
.
value
===
item
.
value
)
const
purchaseIndex
=
this
.
purchaseList
.
findIndex
(
itm
=>
itm
.
value
===
item
.
value
)
// 只获取排名前五的数据
// 只获取排名前五的数据
...
@@ -111,7 +109,6 @@ export default {
...
@@ -111,7 +109,6 @@ export default {
},
},
// 跳转太阳膜详情页
// 跳转太阳膜详情页
goDetailPage
(
item
)
{
goDetailPage
(
item
)
{
console
.
log
(
this
.
$store
.
state
.
app
.
solarYear
)
// this.$router.push({ path: `solarDetail?merchantid=${item.merchantid}&merchantname=${item.merchantname}&purchaseType=${this.purchase.value}` })
// this.$router.push({ path: `solarDetail?merchantid=${item.merchantid}&merchantname=${item.merchantname}&purchaseType=${this.purchase.value}` })
const
routeData
=
this
.
$router
.
resolve
({
const
routeData
=
this
.
$router
.
resolve
({
name
:
'solarDetail'
,
name
:
'solarDetail'
,
...
...
src/views/solar/StorageContent.vue
View file @
9a09302
...
@@ -52,7 +52,6 @@ export default {
...
@@ -52,7 +52,6 @@ export default {
// 获取所有门店入库
// 获取所有门店入库
getUsedWarehousing
()
{
getUsedWarehousing
()
{
this
.
api
.
solar
.
getUsedWarehousing
({
year
:
this
.
$store
.
state
.
app
.
solarYear
}).
then
(
res
=>
{
this
.
api
.
solar
.
getUsedWarehousing
({
year
:
this
.
$store
.
state
.
app
.
solarYear
}).
then
(
res
=>
{
console
.
log
(
res
,
'000'
)
if
(
!
res
.
code
===
'0'
)
{
if
(
!
res
.
code
===
'0'
)
{
this
.
openMessage
(
'获取所有门店入库失败'
)
this
.
openMessage
(
'获取所有门店入库失败'
)
return
return
...
...
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