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