From d13617a9faab2cb13507a556d98d3874fc2a6fe0 Mon Sep 17 00:00:00 2001
From: witersen <1801168257@qq.com>
Date: Tue, 10 May 2022 17:16:19 +0800
Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=86=99=E4=BB=93=E5=BA=93=E9=92=A9?=
=?UTF-8?q?=E5=AD=90=E5=8A=9F=E8=83=BD=20=E4=B8=BA=E7=94=A8=E6=88=B7?=
=?UTF-8?q?=E6=8F=90=E4=BE=9B=E5=B8=B8=E7=94=A8=E7=9A=84=E9=92=A9=E5=AD=90?=
=?UTF-8?q?=E6=A8=A1=E6=9D=BF=20=E7=94=A8=E6=88=B7=E4=B9=9F=E5=8F=AF?=
=?UTF-8?q?=E8=87=AA=E8=A1=8C=E6=B7=BB=E5=8A=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
01.web/src/views/advance/index.vue | 237 ++++++++++------------
01.web/src/views/repositoryInfo/index.vue | 211 +++++++++++++++++--
02.php/app/service/Common.php | 17 +-
02.php/app/service/Mail.php | 80 +++++++-
02.php/app/service/Personal.php | 20 +-
02.php/app/service/Svngroup.php | 27 ++-
02.php/app/service/Svnrep.php | 25 ++-
02.php/app/service/Svnuser.php | 25 ++-
02.php/config/database.php | 46 ++---
9 files changed, 502 insertions(+), 186 deletions(-)
diff --git a/01.web/src/views/advance/index.vue b/01.web/src/views/advance/index.vue
index 8984b38..bef4056 100644
--- a/01.web/src/views/advance/index.vue
+++ b/01.web/src/views/advance/index.vue
@@ -266,18 +266,50 @@
+
+
+
+ {{ item.address }}
+
+
+
+
+
+
+
+
+
+
+
@@ -298,6 +330,12 @@
+
+
+
@@ -428,13 +466,6 @@
-
-
- -
- [{{ item.title }}] {{ item.content }}
-
-
-
-
+
+
+
@@ -495,6 +533,8 @@ export default {
tempManageHost: "",
//测试邮箱
tempTestEmail: "",
+ //添加收件人邮箱
+ tempToEmail: "",
/**
* 控制修改状态
@@ -566,6 +606,7 @@ export default {
* 对话框
*/
modalSofawareUpdateGet: false,
+ modalAddToEmail: false,
/**
* 表单
@@ -579,143 +620,33 @@ export default {
encryption: "",
autotls: true,
port: 0,
- to: "",
- from: "",
+ test: "",
+ from: {
+ address: "",
+ name: "",
+ },
status: false,
+ to: [],
+ timeout: 0,
},
//新版本信息
formUpdate: {
- version: "2.4",
+ version: "",
fixd: {
- con: [
- {
- title: "1",
- content: "修复SVN仓库权限配置的bug",
- },
- {
- title: "2",
- content: "完善用户权限控制逻辑",
- },
- ],
+ con: [],
},
add: {
- con: [
- {
- title: "1",
- content: "支持文件级授权",
- },
- {
- title: "2",
- content: "支持目录浏览",
- },
- {
- title: "3",
- content: "支持仓库备份与恢复",
- },
- {
- title: "4",
- content: "支持SVN用户禁用与启动",
- },
- {
- title: "5",
- content: "支持用户级日志记录",
- },
- {
- title: "6",
- content: "兼容PHP5.5+",
- },
- ],
+ con: [],
},
remove: {
- con: [
- {
- title: "1",
- content: "暂时移除仓库钩子的配置功能",
- },
- ],
+ con: [],
},
release: {
- download: [
- {
- nodeName: "gitee.com",
- url: "",
- },
- {
- nodeName: "github.com",
- url: "",
- },
- {
- nodeName: "witersen.com",
- url: "https://download.witersen.com/SVNAdmin/SVNAdmin-2.3.zip",
- },
- ],
+ download: [],
},
update: {
- step: [
- {
- title: "1",
- content: "php ${your_path}/server/install.php",
- },
- ],
- download: [
- {
- nodeName: "gitee.com",
- packages: [
- {
- for: {
- source: "2.3",
- dest: "2.4",
- },
- url: "xxx",
- },
- {
- for: {
- source: "2.3",
- dest: "2.5",
- },
- url: "xxx",
- },
- ],
- },
- {
- nodeName: "github.com",
- packages: [
- {
- for: {
- source: "2.3",
- dest: "2.4",
- },
- url: "xxx",
- },
- {
- for: {
- source: "2.3",
- dest: "2.5",
- },
- url: "xxx",
- },
- ],
- },
- {
- nodeName: "witersen.com",
- packages: [
- {
- for: {
- source: "2.3",
- dest: "2.4",
- },
- url: "xxx",
- },
- {
- for: {
- source: "2.3",
- dest: "2.5",
- },
- url: "xxx",
- },
- ],
- },
- ],
+ step: [],
+ download: [],
},
},
};
@@ -850,6 +781,8 @@ export default {
port: that.formMailSmtp.port,
from: that.formMailSmtp.from,
status: that.formMailSmtp.status,
+ to: that.formMailSmtp.to,
+ timeout: that.formMailSmtp.timeout,
};
that.$axios
.post("/api.php?c=Mail&a=EditEmail&t=web", data)
@@ -883,8 +816,9 @@ export default {
encryption: that.formMailSmtp.encryption,
autotls: that.formMailSmtp.autotls,
port: that.formMailSmtp.port,
- to: that.formMailSmtp.to,
+ test: that.formMailSmtp.test,
from: that.formMailSmtp.from,
+ timeout: that.formMailSmtp.timeout,
};
that.$axios
.post("/api.php?c=Mail&a=SendTest&t=web", data)
@@ -945,6 +879,41 @@ export default {
that.$Message.error("出错了 请联系管理员!");
});
},
+ /**
+ * 删除收件人邮箱
+ */
+ CloseTagToEmail(event, name) {
+ this.formMailSmtp.to = this.formMailSmtp.to.filter(
+ (item) => item.address != name
+ );
+ },
+ /**
+ * 添加收件人邮箱
+ */
+ ModalAddToEmail() {
+ this.modalAddToEmail = true;
+ this.tempToEmail = "";
+ },
+ AddToEmail() {
+ //检查为空输入
+ if (this.tempToEmail == "") {
+ this.$Message.error("输入不能为空");
+ return;
+ }
+ //检查重复输入
+ var temp = this.formMailSmtp.to.filter(
+ (item) => item.address != this.tempToEmail
+ );
+ if (temp.length != this.formMailSmtp.to.length) {
+ this.$Message.error("邮件已存在");
+ return;
+ }
+ //插入
+ this.formMailSmtp.to.push({
+ address: this.tempToEmail,
+ name: "",
+ });
+ },
/**
* 修改信息
*/
diff --git a/01.web/src/views/repositoryInfo/index.vue b/01.web/src/views/repositoryInfo/index.vue
index 00df9a6..ce8d087 100644
--- a/01.web/src/views/repositoryInfo/index.vue
+++ b/01.web/src/views/repositoryInfo/index.vue
@@ -385,8 +385,12 @@
-
-