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 @@
+
+