From 29a579ab77f1354e99e43661746745d8b0a7ba24 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=B0=8F=E4=B9=85=E5=93=A5?= <787952492@qq.com>
Date: Tue, 14 Jun 2022 18:04:45 +0800
Subject: [PATCH] =?UTF-8?q?=E5=86=9C=E5=9C=BA=E6=97=A5=E5=BF=97=E4=BF=A1?=
=?UTF-8?q?=E6=81=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/farm/logMsg.js | 54 ++++++++
src/views/farm/logMsg/index.vue | 236 ++++++++++++++++++++++++++++++++
2 files changed, 290 insertions(+)
create mode 100644 src/api/farm/logMsg.js
create mode 100644 src/views/farm/logMsg/index.vue
diff --git a/src/api/farm/logMsg.js b/src/api/farm/logMsg.js
new file mode 100644
index 0000000..2c9f1c1
--- /dev/null
+++ b/src/api/farm/logMsg.js
@@ -0,0 +1,54 @@
+import request from '@/utils/request'
+
+// 创建
+export function createLogMsg(data) {
+ return request({
+ url: '/farm/log-msg/create',
+ method: 'post',
+ data: data
+ })
+}
+
+// 更新
+export function updateLogMsg(data) {
+ return request({
+ url: '/farm/log-msg/update',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除
+export function deleteLogMsg(id) {
+ return request({
+ url: '/farm/log-msg/delete?id=' + id,
+ method: 'delete'
+ })
+}
+
+// 获得
+export function getLogMsg(id) {
+ return request({
+ url: '/farm/log-msg/get?id=' + id,
+ method: 'get'
+ })
+}
+
+// 获得分页
+export function getLogMsgPage(query) {
+ return request({
+ url: '/farm/log-msg/page',
+ method: 'get',
+ params: query
+ })
+}
+
+// 导出 Excel
+export function exportLogMsgExcel(query) {
+ return request({
+ url: '/farm/log-msg/export-excel',
+ method: 'get',
+ params: query,
+ responseType: 'blob'
+ })
+}
diff --git a/src/views/farm/logMsg/index.vue b/src/views/farm/logMsg/index.vue
new file mode 100644
index 0000000..5738322
--- /dev/null
+++ b/src/views/farm/logMsg/index.vue
@@ -0,0 +1,236 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+ 新增
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.createTime) }}
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+