diff --git a/src/api/system/claimLog.js b/src/api/system/claimLog.js
new file mode 100644
index 0000000..7c01806
--- /dev/null
+++ b/src/api/system/claimLog.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询优惠券领取记录列表
+export function listClaimLog(query) {
+ return request({
+ url: '/system/claimLog/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询优惠券领取记录详细
+export function getClaimLog(claimId) {
+ return request({
+ url: '/system/claimLog/' + claimId,
+ method: 'get'
+ })
+}
+
+// 新增优惠券领取记录
+export function addClaimLog(data) {
+ return request({
+ url: '/system/claimLog',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改优惠券领取记录
+export function updateClaimLog(data) {
+ return request({
+ url: '/system/claimLog',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除优惠券领取记录
+export function delClaimLog(claimId) {
+ return request({
+ url: '/system/claimLog/' + claimId,
+ method: 'delete'
+ })
+}
diff --git a/src/api/system/coupon.js b/src/api/system/coupon.js
new file mode 100644
index 0000000..9b81337
--- /dev/null
+++ b/src/api/system/coupon.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询优惠券列表
+export function listCoupon(query) {
+ return request({
+ url: '/system/coupon/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询优惠券详细
+export function getCoupon(couponId) {
+ return request({
+ url: '/system/coupon/' + couponId,
+ method: 'get'
+ })
+}
+
+// 新增优惠券
+export function addCoupon(data) {
+ return request({
+ url: '/system/coupon',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改优惠券
+export function updateCoupon(data) {
+ return request({
+ url: '/system/coupon',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除优惠券
+export function delCoupon(couponId) {
+ return request({
+ url: '/system/coupon/' + couponId,
+ method: 'delete'
+ })
+}
diff --git a/src/assets/icons/svg/coupon.svg b/src/assets/icons/svg/coupon.svg
new file mode 100644
index 0000000..3069f72
--- /dev/null
+++ b/src/assets/icons/svg/coupon.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/assets/icons/svg/marketing.svg b/src/assets/icons/svg/marketing.svg
new file mode 100644
index 0000000..e684c57
--- /dev/null
+++ b/src/assets/icons/svg/marketing.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/views/system/claimLog/index.vue b/src/views/system/claimLog/index.vue
new file mode 100644
index 0000000..7ab1f70
--- /dev/null
+++ b/src/views/system/claimLog/index.vue
@@ -0,0 +1,274 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/coupon/index.vue b/src/views/system/coupon/index.vue
new file mode 100644
index 0000000..5774426
--- /dev/null
+++ b/src/views/system/coupon/index.vue
@@ -0,0 +1,353 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.expirationTime, '{y}-{m}-{d}') }}
+
+
+
+
+
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/system/model/index.vue b/src/views/system/model/index.vue
index 49c8e09..1ee3110 100644
--- a/src/views/system/model/index.vue
+++ b/src/views/system/model/index.vue
@@ -155,7 +155,6 @@
import { listModel, getModel, delModel, addModel, updateModel } from "@/api/system/model";
import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
-import { deptTreeSelect } from '@/api/system/user'
import { listDept2 } from '@/api/system/dept'
export default {
@@ -225,9 +224,11 @@ export default {
},
created() {
this.getList();
- this.getDeptTree();
console.log("当前用户信息:",this.$store.state.user.name)
this.userName = this.$store.state.user.name;
+ if(this.userName == 'admin'){
+ this.getDeptTree();
+ }
},
methods: {
/** 查询车辆型号列表 */