diff --git a/.env.development b/.env.development
index 4e32643..1f0b776 100644
--- a/.env.development
+++ b/.env.development
@@ -10,7 +10,7 @@
# 网站前缀
VITE_BASE_API_URL = http://192.168.2.92:8089/server/
-# VITE_BASE_API_URL = http://43.137.2.78:8082/server/
+# VITE_BASE_API_URL = http://43.137.2.78:8085/server/
# base api
VITE_BASE_API = '/server/'
diff --git a/.env.production b/.env.production
index 0c9e272..da5a0b1 100644
--- a/.env.production
+++ b/.env.production
@@ -9,7 +9,7 @@
# 只在生产模式中被载入
# 网站前缀
-VITE_BASE_API_URL = http://43.137.2.78:8082/server/
+VITE_BASE_API_URL = http://43.137.2.78:8085/server/
# base api
VITE_BASE_API = '/server/'
diff --git a/src/api/issue/model.d.ts b/src/api/issue/model.d.ts
index 8b5807f..dddf202 100644
--- a/src/api/issue/model.d.ts
+++ b/src/api/issue/model.d.ts
@@ -26,6 +26,7 @@ declare namespace API {
fileList?: any[]; // 附件列表
tags?: string[] | string; // 标签
solution?: string; // 解决方案
+ zentaoNos?: string; // 关联的禅道工单号
};
type CreateIssueParams = {
@@ -51,6 +52,7 @@ declare namespace API {
fileList?: any[]; // 附件列表
tags?: string[] | string; // 标签
solution?: string; // 解决方案
+ zentaoNos?: string; // 关联的禅道工单号
};
type DeleteIssueParams = {
diff --git a/src/api/user/index.ts b/src/api/user/index.ts
index d019c26..aa43a40 100644
--- a/src/api/user/index.ts
+++ b/src/api/user/index.ts
@@ -81,6 +81,28 @@ export function updateState(params: { id: string; state: number }) {
});
}
+/**
+ * @description 修改审核状态
+ */
+export function updateAuditState(params: { id: string; auditState: number }) {
+ return request({
+ url: `user/updateAuditState`,
+ method: 'get',
+ params,
+ });
+}
+
+/**
+ * @description 修改是否是管理员
+ */
+export function updateAdminState(params: { id: string; adminState: number }) {
+ return request({
+ url: `user/updateAdminState`,
+ method: 'get',
+ params,
+ });
+}
+
/**
* @description 查询单条
*/
diff --git a/src/api/user/model.d.ts b/src/api/user/model.d.ts
index 1840ca4..0267247 100644
--- a/src/api/user/model.d.ts
+++ b/src/api/user/model.d.ts
@@ -20,6 +20,7 @@ declare namespace API {
createTime: string;
isAdmin: number;
email: string;
+ auditState?: number;
pendingStatus?: boolean;
};
diff --git a/src/assets/icons/audit.svg b/src/assets/icons/audit.svg
new file mode 100644
index 0000000..76e70d1
--- /dev/null
+++ b/src/assets/icons/audit.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/src/layout/header/index.vue b/src/layout/header/index.vue
index 86abc5c..028521b 100644
--- a/src/layout/header/index.vue
+++ b/src/layout/header/index.vue
@@ -2,7 +2,7 @@