Commit 6be93e19 authored by 黄奎's avatar 黄奎

页面修改

parent a863ef90
...@@ -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
} }
}); });
} }
......
...@@ -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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment