From d0867daa585f19665a9a8743484b59f04582c0c4 Mon Sep 17 00:00:00 2001 From: GUjiYN <2946459904@qq.com> Date: Sun, 28 Jan 2024 19:40:36 +0800 Subject: [PATCH] =?UTF-8?q?user=E3=80=81role=E9=A1=B5=E9=9D=A2=E6=A8=A1?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 46 +++++ package.json | 1 + src/Manager/components/Role.vue | 310 +++++++++++++++++++++++++++- src/Manager/components/User.vue | 344 +++++++++++++++++++++++--------- 4 files changed, 609 insertions(+), 92 deletions(-) diff --git a/package-lock.json b/package-lock.json index cc478eb..a12b3b3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,6 +12,7 @@ "ant-design-vue": "^4.1.1", "axios": "^1.6.7", "vue": "^3.3.11", + "vue-request": "^2.0.4", "vue-router": "^4.2.5" }, "devDependencies": { @@ -1774,6 +1775,51 @@ } } }, + "node_modules/vue-request": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/vue-request/-/vue-request-2.0.4.tgz", + "integrity": "sha512-+Tu5rDy6ItF9UdD21Mmbjiq5Pq6NZSN9juH72hNQTMn1whHh4KZPTKWVLK2YS4nzbuEnPs+82G91AA2Fgd93mg==", + "dependencies": { + "vue-demi": "latest" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@vue/composition-api": "^1.0.0-rc.1", + "vue": "^2.0.0 || >=3.0.0" + }, + "peerDependenciesMeta": { + "@vue/composition-api": { + "optional": true + } + } + }, + "node_modules/vue-request/node_modules/vue-demi": { + "version": "0.14.6", + "resolved": "https://registry.npmjs.org/vue-demi/-/vue-demi-0.14.6.tgz", + "integrity": "sha512-8QA7wrYSHKaYgUxDA5ZC24w+eHm3sYCbp0EzcDwKqN3p6HqtTCGR/GVsPyZW92unff4UlcSh++lmqDWN3ZIq4w==", + "hasInstallScript": true, + "bin": { + "vue-demi-fix": "bin/vue-demi-fix.js", + "vue-demi-switch": "bin/vue-demi-switch.js" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "@vue/composition-api": "^1.0.0-rc.1", + "vue": "^3.0.0-0 || ^2.6.0" + }, + "peerDependenciesMeta": { + "@vue/composition-api": { + "optional": true + } + } + }, "node_modules/vue-router": { "version": "4.2.5", "resolved": "https://mirrors.cloud.tencent.com/npm/vue-router/-/vue-router-4.2.5.tgz", diff --git a/package.json b/package.json index f135f44..c0cd8c1 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "ant-design-vue": "^4.1.1", "axios": "^1.6.7", "vue": "^3.3.11", + "vue-request": "^2.0.4", "vue-router": "^4.2.5" }, "devDependencies": { diff --git a/src/Manager/components/Role.vue b/src/Manager/components/Role.vue index 5c1c218..cd5cc2a 100644 --- a/src/Manager/components/Role.vue +++ b/src/Manager/components/Role.vue @@ -1,3 +1,307 @@ - \ No newline at end of file + + + + + + + diff --git a/src/Manager/components/User.vue b/src/Manager/components/User.vue index 4d16edb..b2595cf 100644 --- a/src/Manager/components/User.vue +++ b/src/Manager/components/User.vue @@ -1,121 +1,280 @@ @@ -127,47 +286,54 @@ const rowSelection = computed(() => { height: auto; } +.header { + display: flex; +} + .input { - width: 30vw; - margin-top: 20px; - margin-bottom: 10px; + width: 35vw; + margin-top: 2vh; + margin-bottom: 1vh; display: flex; flex-direction: row; } .first-input { - margin-right: 60px; - margin-left: 20px; + margin-right: 1vw; + margin-left: 1vw; } +.second-input { + margin-right: 1vw; +} .edit { + margin-top: 2vh; width: 20vw; - display: grid; - grid-template-columns: repeat(3, auto); /* 将容器分为三列,每个按钮占一列 */ - column-gap: 20px; + display: flex; } .query-button { background-color: dodgerblue; color:white; - margin-left: 20px; + margin-left: 4vw; + margin-right: 1vw; } .add-button { background-color: limegreen; color: white; - margin-left: 20px; } .delete-button { background-color: #CD5C5C; color: white; - margin-left: 20px; + margin-left: 1vw; } .table { - width: 100%; /* 设置表格宽度为100% */ - height: 400px; /* 设置表格高度为400px */ + width: 100%; + height: auto; + margin-top: 2vh; }