diff --git a/src/api/batch-sub-school/batch-sub-school.js b/src/api/batch-sub-school/batch-sub-school.js new file mode 100644 index 0000000..670f251 --- /dev/null +++ b/src/api/batch-sub-school/batch-sub-school.js @@ -0,0 +1,37 @@ +import request from '@/utils/request' + +export function index(params,isLoading = true) { + return request({ + method: 'get', + url: '/api/admin/batch-sub-school/index', + params, +isLoading + }) +} + +export function show(params,isLoading = true) { + return request({ + method: 'get', + url: '/api/admin/batch-sub-school/show', + params, + isLoading + }) +} + +export function save(data, isLoading = true) { + return request({ + method: 'post', + url: '/api/admin/batch-sub-school/save', + data, + isLoading + }) +} + +export function destroy(params, isLoading = true) { + return request({ + method: 'get', + url: '/api/admin/batch-sub-school/destroy', + params, + isLoading + }) +} diff --git a/src/views/BatchSub/components/AddBatchSub.vue b/src/views/BatchSub/components/AddBatchSub.vue index fd4740c..0961a28 100644 --- a/src/views/BatchSub/components/AddBatchSub.vue +++ b/src/views/BatchSub/components/AddBatchSub.vue @@ -30,19 +30,38 @@ - - - + :options="aspirations" + :props="{ + value: 'id', + label: 'name', + lazy: true, + emitPath: false, + lazyLoad: (node, resolve) => { + const { level, value } = node + getBatches(value).then(res => { + resolve(res.map(i => ({ + ...i, + leaf: true + }))) + }) + } + }"> + + + + + + + + + + + + + @@ -116,6 +135,8 @@ diff --git a/src/views/BatchSubSchool/BatchSubSchool.vue b/src/views/BatchSubSchool/BatchSubSchool.vue new file mode 100644 index 0000000..3beb43c --- /dev/null +++ b/src/views/BatchSubSchool/BatchSubSchool.vue @@ -0,0 +1,536 @@ + + + + + diff --git a/src/views/BatchSubSchool/components/AddBatchSubSchool.vue b/src/views/BatchSubSchool/components/AddBatchSubSchool.vue new file mode 100644 index 0000000..e2cf22f --- /dev/null +++ b/src/views/BatchSubSchool/components/AddBatchSubSchool.vue @@ -0,0 +1,339 @@ + + + + + diff --git a/src/views/BatchSubSchool/components/ShowBatchSubSchool.vue b/src/views/BatchSubSchool/components/ShowBatchSubSchool.vue new file mode 100644 index 0000000..f36ae88 --- /dev/null +++ b/src/views/BatchSubSchool/components/ShowBatchSubSchool.vue @@ -0,0 +1,109 @@ + + + + + +