-
count is {{ count }}
+
count is {{ count }}
Edit
components/HelloWorld.vue to test HMR
diff --git a/src/components/authentication.vue b/src/components/authentication.vue
new file mode 100644
index 0000000..9cc18ce
--- /dev/null
+++ b/src/components/authentication.vue
@@ -0,0 +1,13 @@
+
+
+
+ 登录
+ pls enter the username
+ pls enter the username
+
+
+
\ No newline at end of file
diff --git a/src/router/index.js b/src/router/index.js
index 7f56f2f..6bbaefe 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -6,9 +6,11 @@ import meetingManagementRoutes from './meetingManagement'
import newsManagementRoutes from './newsManagement'
import organizationManagementRoutes from './organizationManagement'
import userManagementRoutes from './userManagement'
+import authentication from "../components/authentication.vue";
const routes = [
- { path: '/', component: HelloWorld },
+ { path: '/about', component: HelloWorld },
+ { path: '/login', component: authentication},
...authenticationRoutes,
...courseManagementRoutes,
...meetingManagementRoutes,
diff --git a/src/services/authenticationService.js b/src/services/authenticationService.js
index e69de29..d7ef9ee 100644
--- a/src/services/authenticationService.js
+++ b/src/services/authenticationService.js
@@ -0,0 +1,5 @@
+import { createApp } from 'vue';
+import App from '../App.vue';
+import router from '../router';
+
+createApp(App).use(router).mount('#app');
From d5611562e6e430e304d102ea6606026deb55ba44 Mon Sep 17 00:00:00 2001
From: MiLla <18826902282@163.com>
Date: Mon, 24 Jun 2024 19:19:51 +0800
Subject: [PATCH 2/7] =?UTF-8?q?=E4=BF=AE=E6=94=B9No2.=E5=B0=9D=E8=AF=95?=
=?UTF-8?q?=E5=B0=86routes=E4=B8=AD=E7=9A=84authenticationRoutes=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9=E4=BA=86=EF=BC=8C=E6=B2=A1=E6=9C=89=E9=97=AE=E9=A2=98?=
=?UTF-8?q?=EF=BC=8C=E5=B0=86authentication.vue=E4=BB=8Ecomponents?=
=?UTF-8?q?=E7=A7=BB=E5=8A=A8=E5=88=B0=E6=96=B0=E5=BB=BA=E7=9A=84=E6=96=87?=
=?UTF-8?q?=E4=BB=B6=E5=A4=B9views=E4=B8=AD=EF=BC=8C=E6=B5=8B=E8=AF=95?=
=?UTF-8?q?=E5=AE=8C=E6=88=90=E4=BA=86authentication.js=E4=B8=AD=E7=9A=84l?=
=?UTF-8?q?ogin=E6=96=B9=E6=B3=95=EF=BC=8C=E4=B8=8D=E7=9F=A5=E4=B8=BA?=
=?UTF-8?q?=E4=BD=95=E5=88=A0=E9=99=A4#{apiUrl}'/checkLogin'=E4=B8=AD?=
=?UTF-8?q?=E7=9A=84${apiUrl}=E5=B0=B1=E8=83=BD=E7=94=A8=EF=BC=8C=E4=B8=8D?=
=?UTF-8?q?=E5=88=A0=E5=B0=B1=E4=B8=8D=E8=A1=8C=EF=BC=8C=E7=95=99=E5=BE=85?=
=?UTF-8?q?=E4=B8=8B=E6=AC=A1=E5=AD=A6=E4=B9=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/App.vue | 2 +-
src/components/authentication.vue | 13 ----------
src/router/authentication.js | 7 ++----
src/router/index.js | 5 ++--
src/services/authenticationService.js | 15 ++++++++---
src/views/authentication.vue | 36 +++++++++++++++++++++++++++
6 files changed, 52 insertions(+), 26 deletions(-)
delete mode 100644 src/components/authentication.vue
create mode 100644 src/views/authentication.vue
diff --git a/src/App.vue b/src/App.vue
index d839ad5..32af3d5 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,6 +1,6 @@
diff --git a/src/components/authentication.vue b/src/components/authentication.vue
deleted file mode 100644
index 9cc18ce..0000000
--- a/src/components/authentication.vue
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
- 登录
- pls enter the username
- pls enter the username
-
-
-
\ No newline at end of file
diff --git a/src/router/authentication.js b/src/router/authentication.js
index 7c0f2e7..5fcc93d 100644
--- a/src/router/authentication.js
+++ b/src/router/authentication.js
@@ -1,10 +1,7 @@
-// !!!这是一个示例,请根据实际情况修改!!!
-// import Login from '../views/authentication/Login.vue'
-// import Register from '../views/authentication/Register.vue'
-// import Profile from '../views/authentication/Profile.vue'
+import authentication from '../views/authentication.vue'
export default [
- // { path: '/login', component: Login },
+ { path: '/login', component: authentication },
// { path: '/register', component: Register },
// { path: '/profile', component: Profile }
]
diff --git a/src/router/index.js b/src/router/index.js
index 6bbaefe..e8d32ad 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -6,11 +6,10 @@ import meetingManagementRoutes from './meetingManagement'
import newsManagementRoutes from './newsManagement'
import organizationManagementRoutes from './organizationManagement'
import userManagementRoutes from './userManagement'
-import authentication from "../components/authentication.vue";
+import authentication from "../views/authentication.vue";
const routes = [
- { path: '/about', component: HelloWorld },
- { path: '/login', component: authentication},
+ { path: '/', component: HelloWorld },
...authenticationRoutes,
...courseManagementRoutes,
...meetingManagementRoutes,
diff --git a/src/services/authenticationService.js b/src/services/authenticationService.js
index d7ef9ee..58f78bb 100644
--- a/src/services/authenticationService.js
+++ b/src/services/authenticationService.js
@@ -1,5 +1,12 @@
-import { createApp } from 'vue';
-import App from '../App.vue';
-import router from '../router';
+import axios from "axios";
-createApp(App).use(router).mount('#app');
+export default {
+ login(username, password, apiUrl="http://localhost:8080"){
+ return axios.get(`/checkLogin`, {username:username, password:password})
+ .then(response => {
+ alert("hahaha");
+ // 处理登录成功的逻辑
+ return response.data;
+ });
+ }
+}
\ No newline at end of file
diff --git a/src/views/authentication.vue b/src/views/authentication.vue
new file mode 100644
index 0000000..2c3a3b1
--- /dev/null
+++ b/src/views/authentication.vue
@@ -0,0 +1,36 @@
+
+
+
+ 登录
+
+
+ LOGIN
+
+
+
+
+
\ No newline at end of file
From 14522088223990dd99030ef8379d4100de5c324e Mon Sep 17 00:00:00 2001
From: MiLla <18826902282@163.com>
Date: Tue, 25 Jun 2024 14:54:39 +0800
Subject: [PATCH 3/7] =?UTF-8?q?=E8=BF=98=E6=98=AF=E6=9C=89=E9=97=AE?=
=?UTF-8?q?=E9=A2=98=EF=BC=8C=E4=B8=8D=E8=BF=87=E7=8E=B0=E5=9C=A8=E5=90=8E?=
=?UTF-8?q?=E7=AB=AF=E5=8F=AF=E4=BB=A5=E6=AD=A3=E5=B8=B8=E6=94=B6=E5=88=B0?=
=?UTF-8?q?username=E5=92=8Cpassword?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/services/authenticationService.js | 14 +++++++++++---
src/views/authentication.vue | 8 +++++++-
2 files changed, 18 insertions(+), 4 deletions(-)
diff --git a/src/services/authenticationService.js b/src/services/authenticationService.js
index 58f78bb..36a7db4 100644
--- a/src/services/authenticationService.js
+++ b/src/services/authenticationService.js
@@ -2,11 +2,19 @@ import axios from "axios";
export default {
login(username, password, apiUrl="http://localhost:8080"){
- return axios.get(`/checkLogin`, {username:username, password:password})
+ const url = `${apiUrl}/users/checkLogin`
+ const data = {
+ username: username,
+ password: password
+ };
+ return axios.post(url, data)
.then(response => {
- alert("hahaha");
- // 处理登录成功的逻辑
+ alert(">login方法中<");
+ alert(response.data);
return response.data;
});
+ },
+ register(){
+ //跳转逻辑
}
}
\ No newline at end of file
diff --git a/src/views/authentication.vue b/src/views/authentication.vue
index 2c3a3b1..726e27f 100644
--- a/src/views/authentication.vue
+++ b/src/views/authentication.vue
@@ -7,6 +7,7 @@
LOGIN
+ REGISTER
diff --git a/src/router/authentication.js b/src/router/authentication.js
index 5fcc93d..5bf05ef 100644
--- a/src/router/authentication.js
+++ b/src/router/authentication.js
@@ -1,4 +1,4 @@
-import authentication from '../views/authentication.vue'
+import authentication from '../views/authentication_login.vue'
export default [
{ path: '/login', component: authentication },
diff --git a/src/router/index.js b/src/router/index.js
index e8d32ad..d6483bb 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -6,7 +6,7 @@ import meetingManagementRoutes from './meetingManagement'
import newsManagementRoutes from './newsManagement'
import organizationManagementRoutes from './organizationManagement'
import userManagementRoutes from './userManagement'
-import authentication from "../views/authentication.vue";
+import authentication from "../views/authentication_login.vue";
const routes = [
{ path: '/', component: HelloWorld },
diff --git a/src/services/authenticationService.js b/src/services/authenticationService.js
index 36a7db4..c1025e9 100644
--- a/src/services/authenticationService.js
+++ b/src/services/authenticationService.js
@@ -10,11 +10,22 @@ export default {
return axios.post(url, data)
.then(response => {
alert(">login方法中<");
- alert(response.data);
+ alert(response.data.username);
return response.data;
});
},
- register(){
+ register(user){
+ const url = `${apiUrl}/users/checkLogin`
+ const data = {
+ username: username,
+ password: password
+ };
+ return axios.post(url, data)
+ .then(response => {
+ alert(">login方法中<");
+ alert(response.data.username);
+ return response.data;
+ });
//跳转逻辑
}
}
\ No newline at end of file
diff --git a/src/views/authentication.vue b/src/views/authentication_login.vue
similarity index 92%
rename from src/views/authentication.vue
rename to src/views/authentication_login.vue
index 726e27f..3c51846 100644
--- a/src/views/authentication.vue
+++ b/src/views/authentication_login.vue
@@ -23,8 +23,9 @@
},methods:{
handleLogin(){
authenticationService.login(this.username,this.password).then(res=>{
- alert("login方法调用完毕");
- alert(res.data);
+ alert(res.username);
+ alert("login方法调用完毕");
+
});
},handleRegister(){
authenticationService.register(this.username,this.password).then(res=>{
diff --git a/src/views/authentication_register.vue b/src/views/authentication_register.vue
new file mode 100644
index 0000000..5617421
--- /dev/null
+++ b/src/views/authentication_register.vue
@@ -0,0 +1,51 @@
+
+
+
+
+
+
+
+
+
+
+
+ BACK
+ REGISTER
+
+
+
+
\ No newline at end of file
From f369e99292745a6a80363cf4a8841115eedc2ac6 Mon Sep 17 00:00:00 2001
From: MiLla <18826902282@163.com>
Date: Sat, 29 Jun 2024 17:10:39 +0800
Subject: [PATCH 5/7] =?UTF-8?q?=E5=9F=BA=E6=9C=AC=E5=AE=8C=E6=88=90?=
=?UTF-8?q?=EF=BC=8C=E5=86=8D=E5=AE=8C=E5=96=84=E5=85=B6=E4=BB=96=E7=9A=84?=
=?UTF-8?q?=E5=8A=9F=E8=83=BD=E4=B8=8E=E7=95=8C=E9=9D=A2=E5=B0=B1=E8=A1=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/App.vue | 3 +-
src/router/authentication.js | 5 +-
src/router/index.js | 1 -
src/router/organizationManagement.js | 6 +-
src/services/authenticationService.js | 19 +-
src/services/organizationService.js | 14 ++
src/views/authentication_login.vue | 41 ++--
src/views/authentication_register.vue | 24 ++-
.../Organization_main.vue | 202 ++++++++++++++++++
9 files changed, 261 insertions(+), 54 deletions(-)
create mode 100644 src/views/organization-management/Organization_main.vue
diff --git a/src/App.vue b/src/App.vue
index bc687ea..3095b3e 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -5,8 +5,7 @@ import authentication from "./views/authentication_login.vue";
diff --git a/src/router/authentication.js b/src/router/authentication.js
index 5bf05ef..1ef2554 100644
--- a/src/router/authentication.js
+++ b/src/router/authentication.js
@@ -1,7 +1,8 @@
import authentication from '../views/authentication_login.vue'
-
+import register from '../views/authentication_register.vue'
export default [
+ { path: '/', component: authentication },
{ path: '/login', component: authentication },
- // { path: '/register', component: Register },
+ { path: '/register', component: register },
// { path: '/profile', component: Profile }
]
diff --git a/src/router/index.js b/src/router/index.js
index d6483bb..da53169 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -9,7 +9,6 @@ import userManagementRoutes from './userManagement'
import authentication from "../views/authentication_login.vue";
const routes = [
- { path: '/', component: HelloWorld },
...authenticationRoutes,
...courseManagementRoutes,
...meetingManagementRoutes,
diff --git a/src/router/organizationManagement.js b/src/router/organizationManagement.js
index 78fb824..56bfbb5 100644
--- a/src/router/organizationManagement.js
+++ b/src/router/organizationManagement.js
@@ -1,9 +1,7 @@
-// import OrganizationList from '../views/organization-management/OrganizationList.vue'
-// import OrganizationDetail from '../views/organization-management/OrganizationDetail.vue'
-// import OrganizationEdit from '../views/organization-management/OrganizationEdit.vue'
+import Organization_main from '../views/organization-management/Organization_main.vue'
export default [
- // { path: '/organizations', component: OrganizationList },
+ { path: '/organizations', component: Organization_main},
// { path: '/organizations/:id', component: OrganizationDetail },
// { path: '/organizations/:id/edit', component: OrganizationEdit }
]
diff --git a/src/services/authenticationService.js b/src/services/authenticationService.js
index c1025e9..9c190ac 100644
--- a/src/services/authenticationService.js
+++ b/src/services/authenticationService.js
@@ -1,29 +1,22 @@
import axios from "axios";
export default {
- login(username, password, apiUrl="http://localhost:8080"){
- const url = `${apiUrl}/users/checkLogin`
+ login(account, password){
+ const url = `http://localhost:8080/users/checkLogin`
const data = {
- username: username,
+ account: account,
password: password
};
return axios.post(url, data)
.then(response => {
- alert(">login方法中<");
- alert(response.data.username);
+ alert(response.data.account);
return response.data;
});
},
register(user){
- const url = `${apiUrl}/users/checkLogin`
- const data = {
- username: username,
- password: password
- };
- return axios.post(url, data)
+ const url = `http://localhost:8080/users/checkRegister`
+ return axios.post(url, user)
.then(response => {
- alert(">login方法中<");
- alert(response.data.username);
return response.data;
});
//跳转逻辑
diff --git a/src/services/organizationService.js b/src/services/organizationService.js
index e69de29..0984050 100644
--- a/src/services/organizationService.js
+++ b/src/services/organizationService.js
@@ -0,0 +1,14 @@
+import axios from "axios";
+
+export default {
+ getAllOrganizations() {
+ return axios.get('http://localhost:8080/organizations/listAll').then(response => {
+ return response.data;
+ });
+ },
+ addOrganization(organization) {
+ return axios.post('http://localhost:8080/organizations/addOrganization', organization).then(response => {
+ return response.data;
+ });
+ }
+}
\ No newline at end of file
diff --git a/src/views/authentication_login.vue b/src/views/authentication_login.vue
index 3c51846..6c2d6dc 100644
--- a/src/views/authentication_login.vue
+++ b/src/views/authentication_login.vue
@@ -1,39 +1,32 @@
- 登录
-
+ 登录
+
LOGIN
REGISTER
diff --git a/src/views/authentication_register.vue b/src/views/authentication_register.vue
index 5617421..9c83d33 100644
--- a/src/views/authentication_register.vue
+++ b/src/views/authentication_register.vue
@@ -1,7 +1,9 @@
+
-
+
+
-
+
-
BACK
REGISTER
+
\ No newline at end of file
diff --git a/src/views/organization-management/Organization_main.vue b/src/views/organization-management/Organization_main.vue
new file mode 100644
index 0000000..75a880b
--- /dev/null
+++ b/src/views/organization-management/Organization_main.vue
@@ -0,0 +1,202 @@
+
+ {{ showDialog }}
+ 添加部门
+
+
+
+
+
+
+
+
+
+
+
+ {{ row.parentOrganization ? row.parentOrganization.organizationName : '无' }}
+
+
+
+
+
+
+
+
+
+ 启用
+
+
+ 禁用
+
+
+
+
+
+
+
+
+
+
+
+ {{item.organizationName}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
From 34efcf19eebc5277f6c7c69a5b0f8a720371a754 Mon Sep 17 00:00:00 2001
From: MiLla <18826902282@163.com>
Date: Thu, 4 Jul 2024 16:47:53 +0800
Subject: [PATCH 6/7] =?UTF-8?q?=E5=9F=BA=E6=9C=AC=E5=AE=8C=E6=88=90?=
=?UTF-8?q?=EF=BC=8C=E5=86=8D=E5=AE=8C=E5=96=84=E5=85=B6=E4=BB=96=E7=9A=84?=
=?UTF-8?q?=E5=8A=9F=E8=83=BD=E4=B8=8E=E7=95=8C=E9=9D=A2=E5=B0=B1=E8=A1=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/HelloWorld.vue | 217 +++++++++++----
src/router/authentication.js | 9 +-
src/services/authenticationService.js | 1 -
src/services/organizationService.js | 21 +-
.../authentication/authentication_login.vue | 90 +++++++
.../authentication/authentication_main.vue | 143 ++++++++++
.../authentication_register.vue | 103 ++++++++
src/views/authentication_login.vue | 36 ---
src/views/authentication_register.vue | 59 -----
.../Organization_main.vue | 250 +++++++++++++-----
10 files changed, 714 insertions(+), 215 deletions(-)
create mode 100644 src/views/authentication/authentication_login.vue
create mode 100644 src/views/authentication/authentication_main.vue
create mode 100644 src/views/authentication/authentication_register.vue
delete mode 100644 src/views/authentication_login.vue
delete mode 100644 src/views/authentication_register.vue
diff --git a/src/components/HelloWorld.vue b/src/components/HelloWorld.vue
index 66ccd16..b7569a2 100644
--- a/src/components/HelloWorld.vue
+++ b/src/components/HelloWorld.vue
@@ -1,60 +1,175 @@
-
-
-
-
-
-
-
-
-
+
+
+
测器汇管理系统
+
+
+
+
+
+
+
+
+ 记住密码
+
+
+ 登录
+
+
+
-
{{ this.$route.meta.msg }}
-
-
-
-
count is {{ count }}
-
- Edit
- components/HelloWorld.vue to test HMR
-
-
-
-
- Check out
- create-vue, the official Vue + Vite starter
-
-
- Learn more about IDE Support for Vue in the
- Vue Docs Scaling up Guide.
-
-
Click on the Vite and Vue logos to learn more
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/router/authentication.js b/src/router/authentication.js
index 1ef2554..a86507e 100644
--- a/src/router/authentication.js
+++ b/src/router/authentication.js
@@ -1,8 +1,9 @@
-import authentication from '../views/authentication_login.vue'
-import register from '../views/authentication_register.vue'
+import authentication_main from '../views/authentication/authentication_main.vue'
+import register from '../views/authentication/authentication_register.vue'
+import authentication_login from "../views/authentication/authentication_login.vue";
export default [
- { path: '/', component: authentication },
- { path: '/login', component: authentication },
+ { path: '/main', component: authentication_main },
+ { path: '/login', component: authentication_login },
{ path: '/register', component: register },
// { path: '/profile', component: Profile }
]
diff --git a/src/services/authenticationService.js b/src/services/authenticationService.js
index 9c190ac..0f312a5 100644
--- a/src/services/authenticationService.js
+++ b/src/services/authenticationService.js
@@ -9,7 +9,6 @@ export default {
};
return axios.post(url, data)
.then(response => {
- alert(response.data.account);
return response.data;
});
},
diff --git a/src/services/organizationService.js b/src/services/organizationService.js
index 0984050..431ab03 100644
--- a/src/services/organizationService.js
+++ b/src/services/organizationService.js
@@ -10,5 +10,24 @@ export default {
return axios.post('http://localhost:8080/organizations/addOrganization', organization).then(response => {
return response.data;
});
- }
+ },
+ deleteOrganization(organizationId) {
+ return axios.post('http://localhost:8080/organizations/deleteOrganization' , {organizationId:organizationId},{headers: {
+ 'Content-Type': 'application/json' // 设置 Content-Type 为 application/json
+ }}).then(response => {
+ return response.data;
+ });
+ },
+ updateOrganization(organization) {
+ return axios.post('http://localhost:8080/organizations/updateOrganization', organization).then(response => {
+ return response.data;
+ });
+ },
+ getOrganizationById(organizationId) {
+ return axios.post('http://localhost:8080/organizations/getOrganizationById', {organizationId:organizationId},{headers: {
+ 'Content-Type': 'application/json' // 设置 Content-Type 为 application/json
+ }}).then(response => {
+ return response.data;
+ });
+ },
}
\ No newline at end of file
diff --git a/src/views/authentication/authentication_login.vue b/src/views/authentication/authentication_login.vue
new file mode 100644
index 0000000..0ee1cba
--- /dev/null
+++ b/src/views/authentication/authentication_login.vue
@@ -0,0 +1,90 @@
+
+
+
+
测器汇管理系统
+
+
+
+
+
+
+
+
+ 记住密码
+
+
+ 登录
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/authentication/authentication_main.vue b/src/views/authentication/authentication_main.vue
new file mode 100644
index 0000000..6ec09e1
--- /dev/null
+++ b/src/views/authentication/authentication_main.vue
@@ -0,0 +1,143 @@
+
+
+
+
个人信息
+
+
+
+
+ {{user.name}}
+ {{user.gender}}
+ {{ user.phone }}
+ {{user.email}}
+ {{user.organization}}
+ {{user.role}}
+ {{user.createdTime}}
+
+
+ 修改信息
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 男
+ 女
+
+
+ 确认修改
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/authentication/authentication_register.vue b/src/views/authentication/authentication_register.vue
new file mode 100644
index 0000000..56826c0
--- /dev/null
+++ b/src/views/authentication/authentication_register.vue
@@ -0,0 +1,103 @@
+
+
+
+
+
+
+
企业租户注册
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 注册
+ 返回
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/authentication_login.vue b/src/views/authentication_login.vue
deleted file mode 100644
index 6c2d6dc..0000000
--- a/src/views/authentication_login.vue
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
- 登录
-
-
- LOGIN
- REGISTER
-
-
-
-
-
\ No newline at end of file
diff --git a/src/views/authentication_register.vue b/src/views/authentication_register.vue
deleted file mode 100644
index 9c83d33..0000000
--- a/src/views/authentication_register.vue
+++ /dev/null
@@ -1,59 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
- BACK
- REGISTER
-
-
-
-
-
\ No newline at end of file
diff --git a/src/views/organization-management/Organization_main.vue b/src/views/organization-management/Organization_main.vue
index 75a880b..3acab73 100644
--- a/src/views/organization-management/Organization_main.vue
+++ b/src/views/organization-management/Organization_main.vue
@@ -1,13 +1,27 @@
- {{ showDialog }}
- 添加部门
-
-
-
-
-
-
-
+
+
+ 登录界面
+ Hello world
+ 部门管理
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+ 添加部门
- 启用
+ 正常
- 禁用
+ 停用
+
+
+ 删除
+ 修改
+
+
-
+
-
-
+
+
-
+
{{item.organizationName}}
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
+
-
From c9ab7e221a813a9a9d5be72ef7f6d7125bb9dd9c Mon Sep 17 00:00:00 2001
From: MiLla <18826902282@163.com>
Date: Thu, 4 Jul 2024 17:25:49 +0800
Subject: [PATCH 7/7] =?UTF-8?q?=E5=9F=BA=E6=9C=AC=E5=AE=8C=E6=88=90?=
=?UTF-8?q?=EF=BC=8C=E5=86=8D=E5=AE=8C=E5=96=84=E5=85=B6=E4=BB=96=E7=9A=84?=
=?UTF-8?q?=E5=8A=9F=E8=83=BD=E4=B8=8E=E7=95=8C=E9=9D=A2=E5=B0=B1=E8=A1=8C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/services/organizationService.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/services/organizationService.js b/src/services/organizationService.js
index 431ab03..9258df3 100644
--- a/src/services/organizationService.js
+++ b/src/services/organizationService.js
@@ -2,24 +2,24 @@ import axios from "axios";
export default {
getAllOrganizations() {
- return axios.get('http://localhost:8080/organizations/listAll').then(response => {
+ return axios.get('http://localhost:8080/api/organizations/listAll').then(response => {
return response.data;
});
},
addOrganization(organization) {
- return axios.post('http://localhost:8080/organizations/addOrganization', organization).then(response => {
+ return axios.post('http://localhost:8080/api/organizations/addOrganization', organization).then(response => {
return response.data;
});
},
deleteOrganization(organizationId) {
- return axios.post('http://localhost:8080/organizations/deleteOrganization' , {organizationId:organizationId},{headers: {
+ return axios.post('http://localhost:8080/api/organizations/deleteOrganization' , {organizationId:organizationId},{headers: {
'Content-Type': 'application/json' // 设置 Content-Type 为 application/json
}}).then(response => {
return response.data;
});
},
updateOrganization(organization) {
- return axios.post('http://localhost:8080/organizations/updateOrganization', organization).then(response => {
+ return axios.post('http://localhost:8080/api/organizations/updateOrganization', organization).then(response => {
return response.data;
});
},