修改品牌管理

This commit is contained in:
余同学 2024-12-27 18:03:02 +08:00
parent 38737a4f03
commit 5466e770e1
7 changed files with 138 additions and 37 deletions

View File

@ -146,4 +146,12 @@ export const marketing = {
data, data,
}); });
}, },
//概况
overview: (data) => {
return $http.request({
url: `/merchant-api/memberUnitUser/overview`,
method: "get",
params: data,
});
},
}; };

View File

@ -92,33 +92,6 @@ export default {
}, },
], ],
}, },
{
menuId: getUUID(),
parentId: 0,
parentName: null,
name: "运费管理",
url: "",
perms: "",
type: 0,
elIcon: "el-icon-money",
orderNum: 0,
open: null,
list: [
{
menuId: getUUID(),
parentId: 0,
parentName: null,
name: "运费模板",
url: "logistics-fare/logistics-template/index",
perms: "",
type: 1,
elIcon: "el-icon-postcard",
orderNum: 0,
open: null,
list: [],
},
],
},
{ {
menuId: getUUID(), menuId: getUUID(),
parentId: 0, parentId: 0,
@ -477,6 +450,33 @@ export default {
}, },
], ],
}, },
{
menuId: getUUID(),
parentId: 0,
parentName: null,
name: "运费管理",
url: "",
perms: "",
type: 0,
elIcon: "el-icon-money",
orderNum: 0,
open: null,
list: [
{
menuId: getUUID(),
parentId: 0,
parentName: null,
name: "运费模板",
url: "logistics-fare/logistics-template/index",
perms: "",
type: 1,
elIcon: "el-icon-postcard",
orderNum: 0,
open: null,
list: [],
},
],
},
], ],
code: 0, code: 0,
permissions: [], permissions: [],

View File

@ -119,7 +119,7 @@ export default {
JSON.parse(sessionStorage.getItem("password")) == "123456" && JSON.parse(sessionStorage.getItem("password")) == "123456" &&
JSON.parse(sessionStorage.getItem("role")) === "ROLE_BRAND_MANAGER" JSON.parse(sessionStorage.getItem("role")) === "ROLE_BRAND_MANAGER"
) { ) {
this.dialogVisible = false; this.dialogVisible = true;
} }
}, },
methods: { methods: {
@ -128,8 +128,9 @@ export default {
console.log(valid); console.log(valid);
if (valid) { if (valid) {
this.$api.mer_admin this.$api.mer_admin
.simplePassword({ .changePassword({
password: this.form.password, oldPassword: JSON.parse(sessionStorage.getItem("password")),
newPassword: this.form.password,
}) })
.then((res) => { .then((res) => {
this.$api.logout().then(({ data }) => { this.$api.logout().then(({ data }) => {

View File

@ -92,7 +92,9 @@
<div class="stat-right"> <div class="stat-right">
<div class="stat-title">用户数量</div> <div class="stat-title">用户数量</div>
<div class="stat-value"> <div class="stat-value">
<span style="font-size: 20px">99999</span> <span style="font-size: 20px">{{
overviewList.totalCount
}}</span>
</div> </div>
</div> </div>
</div> </div>
@ -101,7 +103,9 @@
<div class="stat-right"> <div class="stat-right">
<div class="stat-title">今日新增</div> <div class="stat-title">今日新增</div>
<div class="stat-value"> <div class="stat-value">
<span style="font-size: 20px">234</span> <span style="font-size: 20px">{{
overviewList.todayCount
}}</span>
</div> </div>
</div> </div>
</div> </div>
@ -150,6 +154,7 @@ export default {
productFilterType: "SALE", productFilterType: "SALE",
selectList: [], selectList: [],
value1: [], value1: [],
overviewList: {},
}; };
}, },
created() { created() {
@ -192,6 +197,11 @@ export default {
.catch((err) => { .catch((err) => {
this.$refs.oTable.complete(false); this.$refs.oTable.complete(false);
}); });
this.$api.marketing
.overview({ ...this.formInline, ...this.form })
.then((res) => {
this.overviewList = res.data.data;
});
}, },
Reset() { Reset() {
this.form = {}; this.form = {};

View File

@ -1,5 +1,4 @@
<template> <template>
<div>
<div style="height: calc(100vh - 200px)"> <div style="height: calc(100vh - 200px)">
<obj-table-plus <obj-table-plus
ref="oTable" ref="oTable"
@ -62,15 +61,17 @@
</div> --> </div> -->
</template> </template>
</obj-table-plus> </obj-table-plus>
</div> <!-- 订单详情 -->
<viewDetails ref="viewDetails"></viewDetails>
</div> </div>
</template> </template>
<script> <script>
import content from "./content.vue"; import viewDetails from "./popup/view-details.vue";
import content from "./popup/content.vue";
import { mapState } from "vuex"; import { mapState } from "vuex";
export default { export default {
components: { content }, components: { content,viewDetails },
data() { data() {
return { return {
activeName: "5", activeName: "5",

View File

@ -0,0 +1,81 @@
<template>
<div>
<obj-modal
ref="modal"
labelWidth="150px"
:modalCols="modalCols"
:modalConfig="modalConfig"
:modalData="modalData"
:modalHandles="modalHandles"
>
<template slot="dialog__after">
<div class="introduce">
</div>
</template>
</obj-modal>
</div>
</template>
<script>
import { debounce, cloneDeep } from "lodash";
import { Divider } from "element-ui";
export default {
components: {},
data() {
return {
isAdd: true,
//
modalConfig: {
title: "订单详情",
show: false,
width: "60%",
},
modalData: {},
value1: [],
ProductData: {},
};
},
methods: {
queryTableData(pageNo, pageSize) {},
toggle(e) {
if (this.modalConfig.show == false) {
this.modalConfig.show = true;
} else {
this.modalConfig.show = false;
}
if (e) {
this.init(cloneDeep(e));
}
return {
add: () => {
this.modalConfig.title = "订单详情";
this.isAdd = true;
},
update: () => {
this.isAdd = false;
},
};
},
init(row) {
this.modalData = row;
},
},
computed: {
modalCols() {
return [];
},
modalHandles() {
return [
{
label: "取消",
handle: () => {
this.toggle();
},
},
];
},
},
asyncComputed: {},
};
</script>
<style lang="scss" scoped>
</style>