Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄媛媛
ElectricitySheep
Commits
6be93e19
Commit
6be93e19
authored
Jun 04, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
a863ef90
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
9 deletions
+49
-9
Index.vue
src/components/Index.vue
+33
-7
zanIndex.vue
src/components/zanIndex.vue
+16
-2
No files found.
src/components/Index.vue
View file @
6be93e19
...
@@ -98,14 +98,24 @@
...
@@ -98,14 +98,24 @@
</p>
</p>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"address"
label=
"数据统计"
show-overflow-tooltip
:render-header=
"renderHeader"
<el-table-column
prop=
"address"
label=
"数据统计"
width=
"155"
>
width=
"155"
>
<
template
slot-scope=
"scope"
>
<p>
用户数:
{{
scope
.
row
.
UserNum
}}
</p>
<p>
订单数:
<span
style=
"color:rgb(144, 147, 153)"
>
{{
scope
.
row
.
OrderNum
}}
</span></p>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"EffectiveDateStr"
label=
"有效期"
width=
"170"
>
<el-table-column
prop=
"EffectiveDateStr"
label=
"有效期"
width=
"170"
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"address"
label=
"操作"
>
<el-table-column
prop=
"address"
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"info"
plain
@
click=
"EditMall(scope.row)"
>
编辑
</el-button>
<el-button
size=
"mini"
type=
"info"
plain
@
click=
"EditMall(scope.row)"
>
编辑
</el-button>
<template
v-if=
"scope.row.Is_Recycle==0"
>
<el-button
size=
"mini"
type=
"info"
plain
@
click=
"UpdateRecycle(scope.row,1)"
>
回收
</el-button>
</
template
>
<
template
v-else
>
<el-button
size=
"mini"
type=
"info"
plain
@
click=
"UpdateRecycle(scope.row,0)"
>
取消回收
</el-button>
</
template
>
<el-button
size=
"mini"
type=
"info"
plain
@
click=
"GetCopyRight(scope.row)"
>
版权
</el-button>
<el-button
size=
"mini"
type=
"info"
plain
@
click=
"GetCopyRight(scope.row)"
>
版权
</el-button>
<el-button
size=
"mini"
type=
"info"
plain
@
click=
"RemmoveMall(scope.row)"
>
禁用
</el-button>
<el-button
size=
"mini"
type=
"info"
plain
@
click=
"RemmoveMall(scope.row)"
>
禁用
</el-button>
</template>
</template>
...
@@ -142,8 +152,12 @@
...
@@ -142,8 +152,12 @@
</p>
</p>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"address"
label=
"数据统计"
show-overflow-tooltip
:render-header=
"renderHeader"
<el-table-column
prop=
"address"
label=
"数据统计"
width=
"155"
>
width=
"155"
>
<
template
slot-scope=
"scope"
>
<p>
用户数:
{{
scope
.
row
.
UserNum
}}
</p>
<p>
订单数:
<span
style=
"color:rgb(144, 147, 153)"
>
{{
scope
.
row
.
OrderNum
}}
</span></p>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"EffectiveDateStr"
label=
"有效期"
width=
"170"
>
<el-table-column
prop=
"EffectiveDateStr"
label=
"有效期"
width=
"170"
>
</el-table-column>
</el-table-column>
...
@@ -555,7 +569,6 @@
...
@@ -555,7 +569,6 @@
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
tableData
=
res
.
data
.
data
.
pageData
;
this
.
tableData
=
res
.
data
.
data
.
pageData
;
this
.
qMsg
.
total
=
res
.
data
.
data
.
count
;
this
.
qMsg
.
total
=
res
.
data
.
data
.
count
;
}
else
{
}
else
{
this
.
Info
(
res
.
data
.
message
);
this
.
Info
(
res
.
data
.
message
);
}
}
...
@@ -661,6 +674,19 @@
...
@@ -661,6 +674,19 @@
}
}
})
})
},
},
//更新回收
UpdateRecycle
(
item
,
type
)
{
this
.
apipost
(
"/api/Tenant/SetMiniProgramRecycle"
,
{
MallBaseId
:
item
.
MallBaseId
,
Is_Recycle
:
type
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
getMiniPrograme
();
}
else
{
this
.
Info
(
res
.
data
.
message
);
}
})
},
//选择图片
//选择图片
UploadImage
(
file
)
{
UploadImage
(
file
)
{
this
.
UploadFileToTencent
(
this
.
FileType
().
UserImg
,
file
.
file
,
res
=>
{
this
.
UploadFileToTencent
(
this
.
FileType
().
UserImg
,
file
.
file
,
res
=>
{
...
@@ -697,11 +723,11 @@
...
@@ -697,11 +723,11 @@
})
})
},
},
//跳转至首页
//跳转至首页
goHomePage
(){
goHomePage
()
{
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
'mall'
,
name
:
'mall'
,
query
:
{
query
:
{
FIndex
:
1
FIndex
:
1
}
}
});
});
}
}
...
...
src/components/zanIndex.vue
View file @
6be93e19
...
@@ -607,7 +607,14 @@
...
@@ -607,7 +607,14 @@
GetMallIndesSalesIncomeStatistics
()
{
GetMallIndesSalesIncomeStatistics
()
{
this
.
apipost
(
"/api/Tenant/MallIndesSalesIncomeStatistics"
,
this
.
basicQMsg
,
res
=>
{
this
.
apipost
(
"/api/Tenant/MallIndesSalesIncomeStatistics"
,
this
.
basicQMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
saleIncomeData
=
res
.
data
.
data
;
var
array
=
res
.
data
.
data
;
if
(
array
)
{
if
(
array
.
length
<=
2
)
{
this
.
saleIncomeData
=
array
;
}
else
{
this
.
saleIncomeData
=
array
.
slice
(
0
,
10
);
}
}
}
else
{
}
else
{
this
.
Info
(
res
.
data
.
message
);
this
.
Info
(
res
.
data
.
message
);
}
}
...
@@ -617,7 +624,14 @@
...
@@ -617,7 +624,14 @@
GetMallIndesSalesUserStatistics
()
{
GetMallIndesSalesUserStatistics
()
{
this
.
apipost
(
"/api/Tenant/MallIndesSalesUserStatistics"
,
this
.
basicQMsg
,
res
=>
{
this
.
apipost
(
"/api/Tenant/MallIndesSalesUserStatistics"
,
this
.
basicQMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
saleUserData
=
res
.
data
.
data
;
var
array
=
res
.
data
.
data
;
if
(
array
)
{
if
(
array
.
length
<=
2
)
{
this
.
saleUserData
=
array
;
}
else
{
this
.
saleUserData
=
array
.
slice
(
0
,
10
);
}
}
}
else
{
}
else
{
this
.
Info
(
res
.
data
.
message
);
this
.
Info
(
res
.
data
.
message
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment