diff --git a/src/api/base/notice/index.js b/src/api/base/notice/index.js new file mode 100644 index 0000000..60079ba --- /dev/null +++ b/src/api/base/notice/index.js @@ -0,0 +1,37 @@ +import request from "@/utils/request"; + +const preUrl = "/base/notice"; + +// 分页 +export function pageNotice(params) { + return request({ + url: preUrl + "/page", + method: "get", + params + }) +} + +// 新增、修改 +export function updateNotice(data){ + return request({ + url: preUrl + "/update", + method: "post", + data + }) +} + +// 删除 +export function removeNotice(ids){ + return request({ + url: preUrl + "/remove?ids=" + ids, + method: "delete" + }) +} + +// 查询单条 +export function getNoticeById(id){ + return request({ + url: preUrl + "/get?id=" + id, + method: "get" + }) +} diff --git a/src/utils/dict.js b/src/utils/dict.js index c6fbb38..8b5ee59 100644 --- a/src/utils/dict.js +++ b/src/utils/dict.js @@ -101,6 +101,8 @@ export const DICT_TYPE = { PROMOTION_CHANNEL : 'promotion_channel', //用户类型 SYSTEM_USER_TYPE : 'system_user_type', + // 分类字典通知公告 + NOTICE_SERVER: 'notice_server', // ------- carMain模块 ------- //车辆性质 @@ -206,6 +208,8 @@ export const DICT_TYPE = { REPAIR_TICKETS_STATUS: 'repair_tickets_status', //维修工单配件状态 REPAIR_PART_STATUS: 'repair_part_status', + // 维修通知公告 + REPAIR_NOTICE_SERVER: 'weixiu', // ---------会员相关---------member_coupon_type,member_coupon_out_rule,member_car,member_active //卡券类型 diff --git a/src/views/base/notice/BaseNotice.vue b/src/views/base/notice/BaseNotice.vue new file mode 100644 index 0000000..f041058 --- /dev/null +++ b/src/views/base/notice/BaseNotice.vue @@ -0,0 +1,147 @@ + + + + + diff --git a/src/views/base/notice/form/BaseNoticeForm.vue b/src/views/base/notice/form/BaseNoticeForm.vue new file mode 100644 index 0000000..99fbf49 --- /dev/null +++ b/src/views/base/notice/form/BaseNoticeForm.vue @@ -0,0 +1,124 @@ + + + + + diff --git a/src/views/repair/notice/RepairNotice.vue b/src/views/repair/notice/RepairNotice.vue new file mode 100644 index 0000000..c3699f1 --- /dev/null +++ b/src/views/repair/notice/RepairNotice.vue @@ -0,0 +1,43 @@ + + + + +