From 0719116cbc947829d85dea87a85946690183a2d3 Mon Sep 17 00:00:00 2001 From: juzi <819872918@qq.com> Date: Wed, 2 Aug 2023 09:17:46 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8F=AD=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.dev | 2 +- src/api/base/groupClasses.js | 8 + src/api/base/groupTeam.js | 10 +- src/main.js | 3 + .../groupClasses/components/groupClassAdd.vue | 181 ++++++++ src/views/group/base/groupClasses/index.vue | 403 +++++++++--------- .../groupTeam/components/groupTeamAdd.vue | 84 ++++ .../base/groupTeam/components/statusBtn.vue | 40 ++ src/views/group/base/groupTeam/index.vue | 347 ++++++++------- .../base/groupTeamScheduling/index copy.vue | 233 ++++++++++ 10 files changed, 929 insertions(+), 382 deletions(-) create mode 100644 src/views/group/base/groupClasses/components/groupClassAdd.vue create mode 100644 src/views/group/base/groupTeam/components/groupTeamAdd.vue create mode 100644 src/views/group/base/groupTeam/components/statusBtn.vue create mode 100644 src/views/group/base/groupTeamScheduling/index copy.vue diff --git a/.env.dev b/.env.dev index 6ce9baa5..8ef6dd7c 100644 --- a/.env.dev +++ b/.env.dev @@ -5,7 +5,7 @@ ENV = 'development' VUE_APP_TITLE = 芋道管理系统 # 芋道管理系统/开发环境 -VUE_APP_BASE_API = 'http://192.168.1.8:48080' +VUE_APP_BASE_API = 'http://192.168.0.33:48080' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/src/api/base/groupClasses.js b/src/api/base/groupClasses.js index b519fd70..bfc626b7 100644 --- a/src/api/base/groupClasses.js +++ b/src/api/base/groupClasses.js @@ -43,6 +43,14 @@ export function getGroupClassesPage(query) { }) } +// 获取班组code +export function getCode() { + return request({ + url: '/base/group-classes/getCode', + method: 'get' + }) +} + // 导出班次基础信息 Excel export function exportGroupClassesExcel(query) { return request({ diff --git a/src/api/base/groupTeam.js b/src/api/base/groupTeam.js index 3e0700b0..f5aa5f21 100644 --- a/src/api/base/groupTeam.js +++ b/src/api/base/groupTeam.js @@ -43,12 +43,10 @@ export function getGroupTeamPage(query) { }) } -// 导出班组基础信息 Excel -export function exportGroupTeamExcel(query) { +// 获取班组code +export function getCode() { return request({ - url: '/base/group-team/export-excel', - method: 'get', - params: query, - responseType: 'blob' + url: '/base/group-team/getCode', + method: 'get' }) } diff --git a/src/main.js b/src/main.js index 3a5bb299..7531aaab 100644 --- a/src/main.js +++ b/src/main.js @@ -49,6 +49,9 @@ Vue.prototype.DICT_TYPE = DICT_TYPE; Vue.prototype.handleTree = handleTree; Vue.prototype.addBeginAndEndTime = addBeginAndEndTime; Vue.prototype.divide = divide; +Vue.prototype.tableHeight = function(n) { + return window.innerHeight - n +} // 全局组件挂载 Vue.component('DictTag', DictTag); diff --git a/src/views/group/base/groupClasses/components/groupClassAdd.vue b/src/views/group/base/groupClasses/components/groupClassAdd.vue new file mode 100644 index 00000000..4154787d --- /dev/null +++ b/src/views/group/base/groupClasses/components/groupClassAdd.vue @@ -0,0 +1,181 @@ + + diff --git a/src/views/group/base/groupClasses/index.vue b/src/views/group/base/groupClasses/index.vue index 9ccbc2dc..38856fba 100644 --- a/src/views/group/base/groupClasses/index.vue +++ b/src/views/group/base/groupClasses/index.vue @@ -2,242 +2,243 @@
- - - - - - 搜索 - 重置 - - - - - - - 新增 - - - 导出 - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + +
diff --git a/src/views/group/base/groupTeam/components/statusBtn.vue b/src/views/group/base/groupTeam/components/statusBtn.vue new file mode 100644 index 00000000..4e67eef7 --- /dev/null +++ b/src/views/group/base/groupTeam/components/statusBtn.vue @@ -0,0 +1,40 @@ + + + diff --git a/src/views/group/base/groupTeam/index.vue b/src/views/group/base/groupTeam/index.vue index a905b42a..b0feadd5 100644 --- a/src/views/group/base/groupTeam/index.vue +++ b/src/views/group/base/groupTeam/index.vue @@ -2,221 +2,220 @@
- - - - - - - - - 搜索 - 重置 - - - - - - - 新增 - - - 导出 - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + +