From 6f5a90ce5d859c56b56fb073ecf87ee171e3eeb2 Mon Sep 17 00:00:00 2001
From: MO <448233645@qq.com>
Date: Thu, 21 Sep 2023 15:01:21 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E5=AF=86=E7=A0=81=E6=A0=A1=E9=AA=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/setting/passwords/index.vue | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/src/views/setting/passwords/index.vue b/src/views/setting/passwords/index.vue
index 95809d4d..bdb6eae0 100644
--- a/src/views/setting/passwords/index.vue
+++ b/src/views/setting/passwords/index.vue
@@ -39,6 +39,17 @@ export default {
});
},
submit() {
+ var pwdRegex = new RegExp("(?=.*[0-9])(?=.*[a-zA-Z])");
+ if (this.passwords.length < 8 || this.passwords.length > 20) {
+ this.$modal.msgError("您的密码长度不符合!");
+ return false;
+ }
+ if (!pwdRegex.test(this.passwords)) {
+ this.$modal.msgError(
+ "您的密码复杂度太低(密码中必须包含字母、数字),请及时修改密码!"
+ );
+ return false;
+ }
const data = this.passwords;
createPasswords({ passwordValue: data }).then((response) => {
this.$modal.msgSuccess("设置成功");
From 171fa7ea9ff10f65cee04c3a43048ff809e32e14 Mon Sep 17 00:00:00 2001
From: MO <448233645@qq.com>
Date: Thu, 21 Sep 2023 17:46:24 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E4=BC=9A=E8=AE=A1=E8=B4=A6=E7=B0=BF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/accounting/book.js | 55 ++++
src/views/accounting/book/index.vue | 455 ++++++++++++++++++++++++++++
2 files changed, 510 insertions(+)
create mode 100644 src/api/accounting/book.js
create mode 100644 src/views/accounting/book/index.vue
diff --git a/src/api/accounting/book.js b/src/api/accounting/book.js
new file mode 100644
index 00000000..ba63f6af
--- /dev/null
+++ b/src/api/accounting/book.js
@@ -0,0 +1,55 @@
+import request from '@/utils/request'
+
+// 创建会计账簿
+export function createAccountingBook(query,data) {
+ return request({
+ url: '/archives/accounting-book/create',
+ method: 'post',
+ params: query,
+ data: data
+ })
+}
+
+// 更新会计账簿
+export function updateAccountingBook(data) {
+ return request({
+ url: '/archives/accounting-book/update',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除会计账簿
+export function deleteAccountingBook(id) {
+ return request({
+ url: '/archives/accounting-book/delete?id=' + id,
+ method: 'delete'
+ })
+}
+
+// 获得会计账簿
+export function getAccountingBook(id) {
+ return request({
+ url: '/archives/accounting-book/get?id=' + id,
+ method: 'get'
+ })
+}
+
+// 获得会计账簿分页
+export function getAccountingBookPage(query) {
+ return request({
+ url: '/archives/accounting-book/page',
+ method: 'get',
+ params: query
+ })
+}
+
+// 导出会计账簿 Excel
+export function exportAccountingBookExcel(query) {
+ return request({
+ url: '/archives/accounting-book/export-excel',
+ method: 'get',
+ params: query,
+ responseType: 'blob'
+ })
+}
diff --git a/src/views/accounting/book/index.vue b/src/views/accounting/book/index.vue
new file mode 100644
index 00000000..94dd1497
--- /dev/null
+++ b/src/views/accounting/book/index.vue
@@ -0,0 +1,455 @@
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+ 新增
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.createTime) }}
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 类型 |
+ 文件 |
+
+
+
+
+
+ 总 账 |
+
+
+ 点击上传,或将文件拖拽到此处
+
+ |
+
+
+ 明细账 |
+
+
+ 点击上传,或将文件拖拽到此处
+
+ |
+
+
+ 日记账 |
+
+
+ 点击上传,或将文件拖拽到此处
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+