Browse Source

Merge remote-tracking branch 'origin/master'

wangzeyan
liutong 11 months ago
parent
commit
36b41209e9
  1. 2
      admin/.env.development
  2. 1
      admin/.env.production
  3. 18
      admin/components.d.ts
  4. 4
      admin/src/app/api/lesson_course_teaching.ts
  5. 9
      admin/src/app/lang/zh-cn/children_like.children_like.json
  6. 9
      admin/src/app/lang/zh-cn/future_ontent.future_ontent.json
  7. 9
      admin/src/app/lang/zh-cn/instructional_material.instructional_material.json
  8. 9
      admin/src/app/lang/zh-cn/lesson_course_teaching.lesson_course_teaching.json
  9. 9
      admin/src/app/lang/zh-cn/physical_testing.physical_testing.json
  10. 9
      admin/src/app/lang/zh-cn/professional_skills.professional_skills.json
  11. 295
      admin/src/app/views/binding_personnel/binding_personnel.vue
  12. 89
      admin/src/app/views/children_like/children_like.vue
  13. 86
      admin/src/app/views/future_ontent/future_ontent.vue
  14. 99
      admin/src/app/views/instructional_material/instructional_material.vue
  15. 8
      admin/src/app/views/lesson_course_teaching/components/Jump-lesson-library-edit.vue
  16. 8
      admin/src/app/views/lesson_course_teaching/components/basketball-course-teaching-edit.vue
  17. 8
      admin/src/app/views/lesson_course_teaching/components/en-course-teaching-edit.vue
  18. 8
      admin/src/app/views/lesson_course_teaching/components/lesson-course-teaching-edit.vue
  19. 8
      admin/src/app/views/lesson_course_teaching/components/ninja-teaching-edit.vue
  20. 8
      admin/src/app/views/lesson_course_teaching/components/physical-teaching-edit.vue
  21. 8
      admin/src/app/views/lesson_course_teaching/components/security-teaching-edit.vue
  22. 8
      admin/src/app/views/lesson_course_teaching/components/strengthen-course-teaching-edit.vue
  23. 192
      admin/src/app/views/lesson_course_teaching/lesson_course_teaching.vue
  24. 115
      admin/src/app/views/physical_testing/physical_testing.vue
  25. 196
      admin/src/app/views/professional_skills/professional_skills.vue
  26. 20
      niucloud/app/adminapi/controller/lesson_course_teaching/LessonCourseTeaching.php
  27. 2
      niucloud/app/adminapi/route/lesson_course_teaching.php
  28. 22
      niucloud/app/service/admin/lesson_course_teaching/LessonCourseTeachingService.php

2
admin/.env.development

@ -1,6 +1,6 @@
# api请求地址 # api请求地址
VITE_APP_BASE_URL='http://146.56.228.75:20024/adminapi/' VITE_APP_BASE_URL='http://146.56.228.75:20024/adminapi/'
# VITE_APP_BASE_URL='https://zh.hnhbty.cn/adminapi/'
# 图片服务器地址 # 图片服务器地址
VITE_IMG_DOMAIN='' VITE_IMG_DOMAIN=''

1
admin/.env.production

@ -1,5 +1,6 @@
# api请求地址 # api请求地址
VITE_APP_BASE_URL='http://146.56.228.75:20024/adminapi/' VITE_APP_BASE_URL='http://146.56.228.75:20024/adminapi/'
# VITE_APP_BASE_URL='https://zh.hnhbty.cn/adminapi/'
# 图片服务器地址 # 图片服务器地址
VITE_IMG_DOMAIN='' VITE_IMG_DOMAIN=''

18
admin/components.d.ts

@ -17,17 +17,26 @@ declare module '@vue/runtime-core' {
ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem'] ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem']
ElButton: typeof import('element-plus/es')['ElButton'] ElButton: typeof import('element-plus/es')['ElButton']
ElCard: typeof import('element-plus/es')['ElCard'] ElCard: typeof import('element-plus/es')['ElCard']
ElCarousel: typeof import('element-plus/es')['ElCarousel']
ElCarouselItem: typeof import('element-plus/es')['ElCarouselItem']
ElCascader: typeof import('element-plus/es')['ElCascader']
ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup']
ElCol: typeof import('element-plus/es')['ElCol'] ElCol: typeof import('element-plus/es')['ElCol']
ElCollapse: typeof import('element-plus/es')['ElCollapse']
ElCollapseItem: typeof import('element-plus/es')['ElCollapseItem']
ElColorPicker: typeof import('element-plus/es')['ElColorPicker'] ElColorPicker: typeof import('element-plus/es')['ElColorPicker']
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider'] ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
ElContainer: typeof import('element-plus/es')['ElContainer'] ElContainer: typeof import('element-plus/es')['ElContainer']
ElDatePicker: typeof import('element-plus/es')['ElDatePicker'] ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
ElDescriptions: typeof import('element-plus/es')['ElDescriptions']
ElDescriptionsItem: typeof import('element-plus/es')['ElDescriptionsItem']
ElDialog: typeof import('element-plus/es')['ElDialog'] ElDialog: typeof import('element-plus/es')['ElDialog']
ElDrawer: typeof import('element-plus/es')['ElDrawer'] ElDrawer: typeof import('element-plus/es')['ElDrawer']
ElDropdown: typeof import('element-plus/es')['ElDropdown'] ElDropdown: typeof import('element-plus/es')['ElDropdown']
ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem'] ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem']
ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu'] ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu']
ElEmpty: typeof import('element-plus/es')['ElEmpty']
ElForm: typeof import('element-plus/es')['ElForm'] ElForm: typeof import('element-plus/es')['ElForm']
ElFormItem: typeof import('element-plus/es')['ElFormItem'] ElFormItem: typeof import('element-plus/es')['ElFormItem']
ElHeader: typeof import('element-plus/es')['ElHeader'] ElHeader: typeof import('element-plus/es')['ElHeader']
@ -36,19 +45,26 @@ declare module '@vue/runtime-core' {
ElImageViewer: typeof import('element-plus/es')['ElImageViewer'] ElImageViewer: typeof import('element-plus/es')['ElImageViewer']
ElInput: typeof import('element-plus/es')['ElInput'] ElInput: typeof import('element-plus/es')['ElInput']
ElInputNumber: typeof import('element-plus/es')['ElInputNumber'] ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
ElLink: typeof import('element-plus/es')['ElLink']
ElMain: typeof import('element-plus/es')['ElMain'] ElMain: typeof import('element-plus/es')['ElMain']
ElMenu: typeof import('element-plus/es')['ElMenu'] ElMenu: typeof import('element-plus/es')['ElMenu']
ElMenuItem: typeof import('element-plus/es')['ElMenuItem'] ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
ElOption: typeof import('element-plus/es')['ElOption'] ElOption: typeof import('element-plus/es')['ElOption']
ElOptionGroup: typeof import('element-plus/es')['ElOptionGroup']
ElPageHeader: typeof import('element-plus/es')['ElPageHeader'] ElPageHeader: typeof import('element-plus/es')['ElPageHeader']
ElPagination: typeof import('element-plus/es')['ElPagination'] ElPagination: typeof import('element-plus/es')['ElPagination']
ElPopover: typeof import('element-plus/es')['ElPopover'] ElPopover: typeof import('element-plus/es')['ElPopover']
ElProgress: typeof import('element-plus/es')['ElProgress']
ElRadio: typeof import('element-plus/es')['ElRadio'] ElRadio: typeof import('element-plus/es')['ElRadio']
ElRadioButton: typeof import('element-plus/es')['ElRadioButton']
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup'] ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
ElRate: typeof import('element-plus/es')['ElRate']
ElResult: typeof import('element-plus/es')['ElResult'] ElResult: typeof import('element-plus/es')['ElResult']
ElRow: typeof import('element-plus/es')['ElRow'] ElRow: typeof import('element-plus/es')['ElRow']
ElScrollbar: typeof import('element-plus/es')['ElScrollbar'] ElScrollbar: typeof import('element-plus/es')['ElScrollbar']
ElSelect: typeof import('element-plus/es')['ElSelect'] ElSelect: typeof import('element-plus/es')['ElSelect']
ElSlider: typeof import('element-plus/es')['ElSlider']
ElStatistic: typeof import('element-plus/es')['ElStatistic']
ElStep: typeof import('element-plus/es')['ElStep'] ElStep: typeof import('element-plus/es')['ElStep']
ElSteps: typeof import('element-plus/es')['ElSteps'] ElSteps: typeof import('element-plus/es')['ElSteps']
ElSubMenu: typeof import('element-plus/es')['ElSubMenu'] ElSubMenu: typeof import('element-plus/es')['ElSubMenu']
@ -60,6 +76,7 @@ declare module '@vue/runtime-core' {
ElTag: typeof import('element-plus/es')['ElTag'] ElTag: typeof import('element-plus/es')['ElTag']
ElTimeline: typeof import('element-plus/es')['ElTimeline'] ElTimeline: typeof import('element-plus/es')['ElTimeline']
ElTimelineItem: typeof import('element-plus/es')['ElTimelineItem'] ElTimelineItem: typeof import('element-plus/es')['ElTimelineItem']
ElTimePicker: typeof import('element-plus/es')['ElTimePicker']
ElTooltip: typeof import('element-plus/es')['ElTooltip'] ElTooltip: typeof import('element-plus/es')['ElTooltip']
ElTree: typeof import('element-plus/es')['ElTree'] ElTree: typeof import('element-plus/es')['ElTree']
ElTreeSelect: typeof import('element-plus/es')['ElTreeSelect'] ElTreeSelect: typeof import('element-plus/es')['ElTreeSelect']
@ -73,7 +90,6 @@ declare module '@vue/runtime-core' {
RouterView: typeof import('vue-router')['RouterView'] RouterView: typeof import('vue-router')['RouterView']
SelectArea: typeof import('./src/components/select-area/index.vue')['default'] SelectArea: typeof import('./src/components/select-area/index.vue')['default']
SelectIcon: typeof import('./src/components/select-icon/index.vue')['default'] SelectIcon: typeof import('./src/components/select-icon/index.vue')['default']
TencentMapPicker: typeof import('./src/components/TencentMapPicker.vue')['default']
UploadAttachment: typeof import('./src/components/upload-attachment/index.vue')['default'] UploadAttachment: typeof import('./src/components/upload-attachment/index.vue')['default']
UploadFile: typeof import('./src/components/upload-file/index.vue')['default'] UploadFile: typeof import('./src/components/upload-file/index.vue')['default']
UploadImage: typeof import('./src/components/upload-image/index.vue')['default'] UploadImage: typeof import('./src/components/upload-image/index.vue')['default']

4
admin/src/app/api/lesson_course_teaching.ts

@ -233,6 +233,10 @@ export function getLessonCourseTeachingInfo(id: number) {
return request.get(`lesson_course_teaching/lesson_course_teaching/${id}`); return request.get(`lesson_course_teaching/lesson_course_teaching/${id}`);
} }
export function setBindingModule(params: Record<string, any>) {
return request.put(`lesson_course_teaching/binding_module/${params.id}`, params)
}
/** /**
* *
* @param id * @param id

9
admin/src/app/lang/zh-cn/children_like.children_like.json

@ -23,5 +23,12 @@
"addJumpLessonLibrary":"添加套圈游戏", "addJumpLessonLibrary":"添加套圈游戏",
"updateJumpLessonLibrary":"编辑套圈游戏", "updateJumpLessonLibrary":"编辑套圈游戏",
"addEnTeachingLibrary":"添加鼓励方式", "addEnTeachingLibrary":"添加鼓励方式",
"editEnTeachingLibrary":"编辑鼓励方式" "editEnTeachingLibrary":"编辑鼓励方式",
"addBindingPersonnel":"添加绑定人员",
"userName":"姓名",
"userPhone":"电话",
"userStatus":"状态",
"userCreateTime":"创建时间",
"userUpdateTime":"更新时间",
"bindingModule": "绑定模块"
} }

9
admin/src/app/lang/zh-cn/future_ontent.future_ontent.json

@ -23,5 +23,12 @@
"addJumpLessonLibrary":"添加训练视频", "addJumpLessonLibrary":"添加训练视频",
"updateJumpLessonLibrary":"编辑训练视频", "updateJumpLessonLibrary":"编辑训练视频",
"addEnTeachingLibrary":"添加课后作业", "addEnTeachingLibrary":"添加课后作业",
"editEnTeachingLibrary":"编辑课后作业" "editEnTeachingLibrary":"编辑课后作业",
"addBindingPersonnel":"添加绑定人员",
"userName":"姓名",
"userPhone":"电话",
"userStatus":"状态",
"userCreateTime":"创建时间",
"userUpdateTime":"更新时间",
"bindingModule": "绑定模块"
} }

9
admin/src/app/lang/zh-cn/instructional_material.instructional_material.json

@ -25,6 +25,13 @@
"addEnTeachingLibrary":"添加趣味游戏库", "addEnTeachingLibrary":"添加趣味游戏库",
"editEnTeachingLibrary":"编辑趣味游戏库", "editEnTeachingLibrary":"编辑趣味游戏库",
"addBasketballTeachingLibrary":"添加放松动作库", "addBasketballTeachingLibrary":"添加放松动作库",
"editBasketballTeachingLibrary":"编辑放松动作库" "editBasketballTeachingLibrary":"编辑放松动作库",
"addBindingPersonnel":"添加绑定人员",
"userName":"姓名",
"userPhone":"电话",
"userStatus":"状态",
"userCreateTime":"创建时间",
"userUpdateTime":"更新时间",
"bindingModule": "绑定模块"
} }

9
admin/src/app/lang/zh-cn/lesson_course_teaching.lesson_course_teaching.json

@ -33,5 +33,12 @@
"addSecurityTeachingLibrary":"添加少儿安防教案库", "addSecurityTeachingLibrary":"添加少儿安防教案库",
"editSecurityTeachingLibrary":"编辑少儿安防教案库", "editSecurityTeachingLibrary":"编辑少儿安防教案库",
"addPhysicalTeachingLibrary":"添加体能教案库", "addPhysicalTeachingLibrary":"添加体能教案库",
"editPhysicalTeachingLibrary":"编辑体能教案库" "editPhysicalTeachingLibrary":"编辑体能教案库",
"addBindingPersonnel":"添加绑定人员",
"userName":"姓名",
"userPhone":"电话",
"userStatus":"状态",
"userCreateTime":"创建时间",
"userUpdateTime":"更新时间",
"bindingModule": "绑定模块"
} }

9
admin/src/app/lang/zh-cn/physical_testing.physical_testing.json

@ -25,5 +25,12 @@
"addEnTeachingLibrary":"添加3-6岁体测讲解—解读", "addEnTeachingLibrary":"添加3-6岁体测讲解—解读",
"editEnTeachingLibrary":"编辑3-6岁体测讲解—解读", "editEnTeachingLibrary":"编辑3-6岁体测讲解—解读",
"addBasketballTeachingLibrary":"添加7+岁体测讲解—解读", "addBasketballTeachingLibrary":"添加7+岁体测讲解—解读",
"editBasketballTeachingLibrary":"编辑7+岁体测讲解—解读" "editBasketballTeachingLibrary":"编辑7+岁体测讲解—解读",
"addBindingPersonnel":"添加绑定人员",
"userName":"姓名",
"userPhone":"电话",
"userStatus":"状态",
"userCreateTime":"创建时间",
"userUpdateTime":"更新时间",
"bindingModule": "绑定模块"
} }

9
admin/src/app/lang/zh-cn/professional_skills.professional_skills.json

@ -31,5 +31,12 @@
"addNinjaTeachingLibrary":"添加安防动作", "addNinjaTeachingLibrary":"添加安防动作",
"editNinjaTeachingLibrary":"编辑安防动作", "editNinjaTeachingLibrary":"编辑安防动作",
"addSecurityTeachingLibrary":"添加标准化动作", "addSecurityTeachingLibrary":"添加标准化动作",
"editSecurityTeachingLibrary":"编辑标准化动作" "editSecurityTeachingLibrary":"编辑标准化动作",
"addBindingPersonnel":"添加绑定人员",
"userName":"姓名",
"userPhone":"电话",
"userStatus":"状态",
"userCreateTime":"创建时间",
"userUpdateTime":"更新时间",
"bindingModule": "绑定模块"
} }

295
admin/src/app/views/binding_personnel/binding_personnel.vue

@ -0,0 +1,295 @@
<template>
<el-dialog v-model="showDialog" :title="t('addBindingPersonnel')" width="50%" class="diy-dialog-wrap" :destroy-on-close="true">
<el-form :inline="true" :model="lessonCourseTeachingTable.searchParam" ref="searchFormRef">
<el-form-item :label="t('userName')" prop="title">
<el-input v-model="lessonCourseTeachingTable.searchParam.name" :placeholder="t('userName')" />
</el-form-item>
<el-form-item :label="t('userPhone')" prop="status">
<el-input v-model="lessonCourseTeachingTable.searchParam.phone" :placeholder="t('userPhone')" />
</el-form-item>
<el-form-item>
<el-button type="primary" @click="loadLessonCourseTeachingList()">{{ t('search') }}</el-button>
<el-button @click="resetForm(searchFormRef)">{{ t('reset') }}</el-button>
</el-form-item>
</el-form>
<div class="mt-[10px]">
<el-table :data="lessonCourseTeachingTable.data" size="large" v-loading="lessonCourseTeachingTable.loading" @selection-change="handleSelectionChange">
<template #empty>
<span>{{ !lessonCourseTeachingTable.loading ? t('emptyData') : '' }}</span>
</template>
<el-table-column type="selection" width="55" />
<el-table-column prop="name" :label="t('userName')" min-width="70" :show-overflow-tooltip="true"/>
<el-table-column prop="phone" :label="t('userPhone')" min-width="120" :show-overflow-tooltip="true"/>
<el-table-column :label="t('userStatus')" min-width="100" align="center" :show-overflow-tooltip="true">
<template #default="{ row }">
<div v-if="row.status == 1">待审核</div>
<div v-if="row.status == 2">已审核</div>
<div v-if="row.status == 3">已禁用</div>
</template>
</el-table-column>
<el-table-column prop="create_time" :label="t('userCreateTime')" min-width="150" :show-overflow-tooltip="true"/>
<el-table-column prop="update_time" :label="t('userUpdateTime')" min-width="150" :show-overflow-tooltip="true"/>
<el-table-column :label="t('operation')" fixed="right" min-width="120">
<template #default="{ row }">
<el-button type="primary" link @click="editEvent(row)">{{ t('edit') }}</el-button>
<el-button type="primary" link @click="deleteEvent(row.id, 1)">{{ t('delete') }}</el-button>
</template>
</el-table-column>
</el-table>
<div class="mt-[16px] flex justify-end">
<el-pagination v-model:current-page="lessonCourseTeachingTable.page" v-model:page-size="lessonCourseTeachingTable.limit"
layout="total, sizes, prev, pager, next, jumper" :total="lessonCourseTeachingTable.total"
@size-change="loadLessonCourseTeachingList()" @current-change="loadLessonCourseTeachingList" />
</div>
</div>
<!-- <el-form-item :label="t('bindingModule')" style="margin-top: 15px;">-->
<!-- <el-select class="w-[280px]" v-model="binding_module" clearable :placeholder="t('bindingModule')">-->
<!-- <el-option label="课程教学大纲" value="1" />-->
<!-- <el-option label="跳绳教案库" value="2" />-->
<!-- <el-option label="增高教案库" value="3" />-->
<!-- <el-option label="篮球教案库" value="4" />-->
<!-- <el-option label="强化教案库" value="5" />-->
<!-- <el-option label="空中忍者教案库" value="6" />-->
<!-- <el-option label="少儿安防教案库" value="7" />-->
<!-- <el-option label="体能教案库" value="8" />-->
<!-- <el-option label="热身动作库" value="9" />-->
<!-- <el-option label="体能动作库" value="10" />-->
<!-- <el-option label="趣味游戏库" value="11" />-->
<!-- <el-option label="放松动作库" value="12" />-->
<!-- <el-option label="训练内容" value="13" />-->
<!-- <el-option label="训练视频" value="14" />-->
<!-- <el-option label="课后作业" value="15" />-->
<!-- <el-option label="优秀一堂课" value="16" />-->
<!-- <el-option label="空中忍者" value="17" />-->
<!-- <el-option label="篮球动作" value="18" />-->
<!-- <el-option label="跳绳动作" value="19" />-->
<!-- <el-option label="跑酷动作" value="20" />-->
<!-- <el-option label="安防动作" value="21" />-->
<!-- <el-option label="标准化动作" value="22" />-->
<!-- <el-option label="3-6岁体测" value="23" />-->
<!-- <el-option label="7+体测" value="24" />-->
<!-- <el-option label="3-6岁体测讲解—解读" value="25" />-->
<!-- <el-option label="7+岁体测讲解—解读" value="26" />-->
<!-- <el-option label="互动游戏" value="27" />-->
<!-- <el-option label="套圈游戏" value="28" />-->
<!-- <el-option label="鼓励方式" value="29" />-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<template #footer>
<span class="dialog-footer">
<el-button @click="showDialog = false">{{ t('cancel') }}</el-button>
<el-button type="primary" :loading="loading" @click="confirm(formRef)">{{
t('confirm')
}}</el-button>
</span>
</template>
</el-dialog>
</template>
<script lang="ts" setup>
import { ref, reactive, computed, watch } from 'vue'
import { useDictionary } from '@/app/api/dict'
import { t } from '@/lang'
import type { FormInstance } from 'element-plus'
import {
addLessonCourseTeaching,
editLessonCourseTeaching,
getLessonCourseTeachingInfo,
getLessonCourseTeachingList,
getWithPersonnelDataList,
setBindingModule
} from '@/app/api/lesson_course_teaching'
let showDialog = ref(false)
const loading = ref(false)
let lessonCourseTeachingTable = reactive({
page: 1,
limit: 10,
total: 0,
loading: true,
data: [],
searchParam:{
"name":"",
"phone":""
}
})
const multipleSelection = ref<[]>([])
const binding_module = ref('')
const handleSelectionChange = (val: []) => {
multipleSelection.value = val
}
const loadLessonCourseTeachingList = (page: number = 1) => {
lessonCourseTeachingTable.loading = true
lessonCourseTeachingTable.page = page
getWithPersonnelDataList({
page: lessonCourseTeachingTable.page,
limit: lessonCourseTeachingTable.limit,
...lessonCourseTeachingTable.searchParam
}).then(res => {
lessonCourseTeachingTable.loading = false
lessonCourseTeachingTable.data = res.data.data
lessonCourseTeachingTable.total = res.data.total
}).catch(() => {
lessonCourseTeachingTable.loading = false
})
}
loadLessonCourseTeachingList()
const resetForm = (page: number = 1) => {
lessonCourseTeachingTable.searchParam.name = ''
lessonCourseTeachingTable.searchParam.phone = ''
loadLessonCourseTeachingList()
}
/**
* 表单数据
*/
const initialFormData = {
id: '',
title: '',
image: '',
type: '',
content: '',
status: ''
// user_permission: [],
}
const formData: Record<string, any> = reactive({ ...initialFormData })
const formRef = ref<FormInstance>()
//
const formRules = computed(() => {
return {
title: [
{ required: true, message: t('titlePlaceholder'), trigger: 'blur' },
]
,
image: [
{ required: true, message: t('imagePlaceholder'), trigger: 'blur' },
]
,
type: [
{ required: true, message: t('typePlaceholder'), trigger: 'blur' },
]
,
content: [
{ required: true, message: t('contentPlaceholder'), trigger: 'blur' },
]
,
status: [
{ required: true, message: t('statusPlaceholder'), trigger: 'blur' },
]
}
})
const emit = defineEmits(['complete'])
/**
* 确认
* @param formEl
*/
const confirm = async (formEl: FormInstance | undefined) => {
let data = {
id: BindingId.value,
user_permission: multipleSelection.value.map(item => item.sys_user_id).join(','),
user_permission_name: multipleSelection.value.map(item => item.name).join(','),
table_type: binding_module.value,
}
setBindingModule(data).then(res => {
loading.value = false
showDialog.value = false
emit('complete')
}).catch(err => {
loading.value = false
})
}
//
let typeList = ref([])
const typeDictList = async () => {
typeList.value = await (await useDictionary('material_type')).data.dictionary
}
typeDictList();
watch(() => typeList.value, () => { formData.type = typeList.value[0].value })
let statusList = ref([])
const statusDictList = async () => {
statusList.value = await (await useDictionary('course_status')).data.dictionary
}
statusDictList();
watch(() => statusList.value, () => { formData.status = statusList.value[0].value })
const userPermissionList = ref([] as any[])
const BindingId = ref(undefined)
const setUserPermissionList = async () => {
userPermissionList.value = await (await getWithPersonnelDataList({})).data
}
setUserPermissionList()
const setFormData = async (row: any = null) => {
BindingId.value = row.id
binding_module.value = row.table_type
}
//
const mobileVerify = (rule: any, value: any, callback: any) => {
if (value && !/^1[3-9]\d{9}$/.test(value)) {
callback(new Error(t('generateMobile')))
} else {
callback()
}
}
//
const idCardVerify = (rule: any, value: any, callback: any) => {
if (value && !/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test(value)) {
callback(new Error(t('generateIdCard')))
} else {
callback()
}
}
//
const emailVerify = (rule: any, value: any, callback: any) => {
if (value && !/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/.test(value)) {
callback(new Error(t('generateEmail')))
} else {
callback()
}
}
//
const numberVerify = (rule: any, value: any, callback: any) => {
if (!Number.isInteger(value)) {
callback(new Error(t('generateNumber')))
} else {
callback()
}
}
defineExpose({
showDialog,
setFormData
})
</script>
<style lang="scss" scoped></style>
<style lang="scss">
.diy-dialog-wrap .el-form-item__label{
height: auto !important;
}
</style>

89
admin/src/app/views/children_like/children_like.vue

@ -72,10 +72,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="t('operation')" fixed="right" min-width="120"> <el-table-column :label="t('operation')" fixed="right" min-width="180">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" link @click="editEvent(row)">{{ t('edit') }}</el-button> <el-button type="primary" link @click="editEvent(row)">{{ t('edit') }}</el-button>
<el-button type="primary" link @click="deleteEvent(row.id, 27)">{{ t('delete') }}</el-button> <el-button type="primary" link @click="deleteEvent(row.id, 27)">{{ t('delete') }}</el-button>
<el-button type="primary" link @click="addBindingPersonnel(row)">{{ t('addBindingPersonnel') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -159,10 +160,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="t('operation')" fixed="right" min-width="120"> <el-table-column :label="t('operation')" fixed="right" min-width="180">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" link @click="editJumpLessonLibrary(row)">{{ t('edit') }}</el-button> <el-button type="primary" link @click="editJumpLessonLibrary(row)">{{ t('edit') }}</el-button>
<el-button type="primary" link @click="deleteEvent(row.id, 28)">{{ t('delete') }}</el-button> <el-button type="primary" link @click="deleteEvent(row.id, 28)">{{ t('delete') }}</el-button>
<el-button type="primary" link @click="addBindingPersonnel(row)">{{ t('addBindingPersonnel') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -246,10 +248,12 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="t('operation')" fixed="right" min-width="120">
<el-table-column :label="t('operation')" fixed="right" min-width="180">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" link @click="editEnTeachingLibrary(row)">{{ t('edit') }}</el-button> <el-button type="primary" link @click="editEnTeachingLibrary(row)">{{ t('edit') }}</el-button>
<el-button type="primary" link @click="deleteEvent(row.id, 29)">{{ t('delete') }}</el-button> <el-button type="primary" link @click="deleteEvent(row.id, 29)">{{ t('delete') }}</el-button>
<el-button type="primary" link @click="addBindingPersonnel(row)">{{ t('addBindingPersonnel') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -265,6 +269,7 @@
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</el-card> </el-card>
<binding-personnel ref="BindingPersonnelDialog" @complete="loadLessonCourseTeachingList" />
</div> </div>
</template> </template>
@ -279,6 +284,7 @@ import Edit from '@/app/views/children_like/components/lesson-course-teaching-ed
import EditJump from '@/app/views/children_like/components/Jump-lesson-library-edit.vue' import EditJump from '@/app/views/children_like/components/Jump-lesson-library-edit.vue'
import EditEn from '@/app/views/children_like/components/en-course-teaching-edit.vue' import EditEn from '@/app/views/children_like/components/en-course-teaching-edit.vue'
import { useRoute } from 'vue-router' import { useRoute } from 'vue-router'
import bindingPersonnel from '@/app/views/binding_personnel/binding_personnel.vue'
const route = useRoute() const route = useRoute()
const pageName = route.meta.title; const pageName = route.meta.title;
const active = 'CourseSyllabus' const active = 'CourseSyllabus'
@ -294,7 +300,7 @@ let lessonCourseTeachingTable = reactive({
"status":"", "status":"",
"create_time":[], "create_time":[],
"update_time":[], "update_time":[],
table_type: 27 "table_type": 27
} }
}) })
let JumpLessonLibraryTable = reactive({ let JumpLessonLibraryTable = reactive({
@ -308,7 +314,7 @@ let JumpLessonLibraryTable = reactive({
"status":"", "status":"",
"create_time":[], "create_time":[],
"update_time":[], "update_time":[],
table_type: 28 "table_type": 28
} }
}) })
let EnTeachingLibraryTable = reactive({ let EnTeachingLibraryTable = reactive({
@ -322,7 +328,7 @@ let EnTeachingLibraryTable = reactive({
"status":"", "status":"",
"create_time":[], "create_time":[],
"update_time":[], "update_time":[],
table_type: 29 "table_type": 29
} }
}) })
@ -347,7 +353,12 @@ const editLessonCourseTeachingDialog: Record<string, any> | null = ref(null)
const editJumpLessonLibraryDialog: Record<string, any> | null = ref(null) const editJumpLessonLibraryDialog: Record<string, any> | null = ref(null)
const editEnTeachingLibraryDialog: Record<string, any> | null = ref(null) const editEnTeachingLibraryDialog: Record<string, any> | null = ref(null)
const editBasketballTeachingLibraryDialog: Record<string, any> | null = ref(null) const editBasketballTeachingLibraryDialog: Record<string, any> | null = ref(null)
const BindingPersonnelDialog: Record<string, any> | null = ref(null)
const addBindingPersonnel = (row) => {
BindingPersonnelDialog.value.setFormData(row)
BindingPersonnelDialog.value.showDialog = true
}
/** /**
* 获取课程教学大纲列表 * 获取课程教学大纲列表
*/ */
@ -500,52 +511,34 @@ const resetForm = (formEl: FormInstance | undefined, type: number) => {
if (!formEl) return if (!formEl) return
formEl.resetFields() formEl.resetFields()
if (type === 27) { if (type === 27) {
lessonCourseTeachingTable = reactive({ lessonCourseTeachingTable.searchParam.title = ''
page: 1, lessonCourseTeachingTable.searchParam.status = ''
limit: 10, lessonCourseTeachingTable.searchParam.create_time = ''
total: 0, lessonCourseTeachingTable.searchParam.update_time = ''
loading: true, lessonCourseTeachingTable.page = 1
data: [], lessonCourseTeachingTable.limit = 10
searchParam: { lessonCourseTeachingTable.data = []
"title": "", lessonCourseTeachingTable.table_type = 27
"status": "",
"create_time": [],
"update_time": [],
table_type: 27
}
})
loadLessonCourseTeachingList() loadLessonCourseTeachingList()
} else if (type === 28) { } else if (type === 28) {
JumpLessonLibraryTable = reactive({ JumpLessonLibraryTable.searchParam.title = ''
page: 1, JumpLessonLibraryTable.searchParam.status = ''
limit: 10, JumpLessonLibraryTable.searchParam.create_time = ''
total: 0, JumpLessonLibraryTable.searchParam.update_time = ''
loading: true, JumpLessonLibraryTable.page = 1
data: [], JumpLessonLibraryTable.limit = 10
searchParam: { JumpLessonLibraryTable.data = []
"title": "", JumpLessonLibraryTable.table_type = 28
"status": "",
"create_time": [],
"update_time": [],
table_type: 28
}
})
loadJumpLessonLibraryList() loadJumpLessonLibraryList()
} else if (type === 29) { } else if (type === 29) {
EnTeachingLibraryTable = reactive({ EnTeachingLibraryTable.searchParam.title = ''
page: 1, EnTeachingLibraryTable.searchParam.status = ''
limit: 10, EnTeachingLibraryTable.searchParam.create_time = ''
total: 0, EnTeachingLibraryTable.searchParam.update_time = ''
loading: true, EnTeachingLibraryTable.page = 1
data: [], EnTeachingLibraryTable.limit = 10
searchParam: { EnTeachingLibraryTable.data = []
"title": "", EnTeachingLibraryTable.table_type = 29
"status": "",
"create_time": [],
"update_time": [],
table_type: 29
}
})
loadEnTeachingLibraryList() loadEnTeachingLibraryList()
} }
} }

86
admin/src/app/views/future_ontent/future_ontent.vue

@ -72,10 +72,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="t('operation')" fixed="right" min-width="120"> <el-table-column :label="t('operation')" fixed="right" min-width="180">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" link @click="editEvent(row)">{{ t('edit') }}</el-button> <el-button type="primary" link @click="editEvent(row)">{{ t('edit') }}</el-button>
<el-button type="primary" link @click="deleteEvent(row.id, 13)">{{ t('delete') }}</el-button> <el-button type="primary" link @click="deleteEvent(row.id, 13)">{{ t('delete') }}</el-button>
<el-button type="primary" link @click="addBindingPersonnel(row)">{{ t('addBindingPersonnel') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -159,10 +160,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="t('operation')" fixed="right" min-width="120"> <el-table-column :label="t('operation')" fixed="right" min-width="180">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" link @click="editJumpLessonLibrary(row)">{{ t('edit') }}</el-button> <el-button type="primary" link @click="editJumpLessonLibrary(row)">{{ t('edit') }}</el-button>
<el-button type="primary" link @click="deleteEvent(row.id, 14)">{{ t('delete') }}</el-button> <el-button type="primary" link @click="deleteEvent(row.id, 14)">{{ t('delete') }}</el-button>
<el-button type="primary" link @click="addBindingPersonnel(row)">{{ t('addBindingPersonnel') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -246,10 +248,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="t('operation')" fixed="right" min-width="120"> <el-table-column :label="t('operation')" fixed="right" min-width="180">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" link @click="editEnTeachingLibrary(row)">{{ t('edit') }}</el-button> <el-button type="primary" link @click="editEnTeachingLibrary(row)">{{ t('edit') }}</el-button>
<el-button type="primary" link @click="deleteEvent(row.id, 15)">{{ t('delete') }}</el-button> <el-button type="primary" link @click="deleteEvent(row.id, 15)">{{ t('delete') }}</el-button>
<el-button type="primary" link @click="addBindingPersonnel(row)">{{ t('addBindingPersonnel') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -265,12 +268,9 @@
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</el-card> </el-card>
<binding-personnel ref="BindingPersonnelDialog" @complete="loadLessonCourseTeachingList" />
</div> </div>
</template> </template>
addPublicLibraryList editPublicLibraryList
<script lang="ts" setup> <script lang="ts" setup>
import { reactive, ref, watch } from 'vue' import { reactive, ref, watch } from 'vue'
import { t } from '@/lang' import { t } from '@/lang'
@ -282,6 +282,7 @@ import { ElMessageBox,FormInstance } from 'element-plus'
import Edit from '@/app/views/future_ontent/components/lesson-course-teaching-edit.vue' import Edit from '@/app/views/future_ontent/components/lesson-course-teaching-edit.vue'
import EditJump from '@/app/views/future_ontent/components/Jump-lesson-library-edit.vue' import EditJump from '@/app/views/future_ontent/components/Jump-lesson-library-edit.vue'
import EditEn from '@/app/views/future_ontent/components/en-course-teaching-edit.vue' import EditEn from '@/app/views/future_ontent/components/en-course-teaching-edit.vue'
import bindingPersonnel from '@/app/views/binding_personnel/binding_personnel.vue'
import { useRoute } from 'vue-router' import { useRoute } from 'vue-router'
const route = useRoute() const route = useRoute()
const pageName = route.meta.title; const pageName = route.meta.title;
@ -350,7 +351,12 @@ statusDictList();
const editLessonCourseTeachingDialog: Record<string, any> | null = ref(null) const editLessonCourseTeachingDialog: Record<string, any> | null = ref(null)
const editJumpLessonLibraryDialog: Record<string, any> | null = ref(null) const editJumpLessonLibraryDialog: Record<string, any> | null = ref(null)
const editEnTeachingLibraryDialog: Record<string, any> | null = ref(null) const editEnTeachingLibraryDialog: Record<string, any> | null = ref(null)
const BindingPersonnelDialog: Record<string, any> | null = ref(null)
const addBindingPersonnel = (row) => {
BindingPersonnelDialog.value.setFormData(row)
BindingPersonnelDialog.value.showDialog = true
}
/** /**
* 获取课程教学大纲列表 * 获取课程教学大纲列表
*/ */
@ -503,52 +509,34 @@ const resetForm = (formEl: FormInstance | undefined, type: number) => {
if (!formEl) return if (!formEl) return
formEl.resetFields() formEl.resetFields()
if (type === 13) { if (type === 13) {
lessonCourseTeachingTable = reactive({ lessonCourseTeachingTable.searchParam.title = ''
page: 1, lessonCourseTeachingTable.searchParam.status = ''
limit: 10, lessonCourseTeachingTable.searchParam.create_time = ''
total: 0, lessonCourseTeachingTable.searchParam.update_time = ''
loading: true, lessonCourseTeachingTable.page = 1
data: [], lessonCourseTeachingTable.limit = 10
searchParam: { lessonCourseTeachingTable.data = []
"title": "", lessonCourseTeachingTable.table_type = 13
"status": "",
"create_time": [],
"update_time": [],
"table_type":13
}
})
loadLessonCourseTeachingList() loadLessonCourseTeachingList()
} else if (type === 14) { } else if (type === 14) {
JumpLessonLibraryTable = reactive({ JumpLessonLibraryTable.searchParam.title = ''
page: 1, JumpLessonLibraryTable.searchParam.status = ''
limit: 10, JumpLessonLibraryTable.searchParam.create_time = ''
total: 0, JumpLessonLibraryTable.searchParam.update_time = ''
loading: true, JumpLessonLibraryTable.page = 1
data: [], JumpLessonLibraryTable.limit = 10
searchParam: { JumpLessonLibraryTable.data = []
"title": "", JumpLessonLibraryTable.table_type = 14
"status": "",
"create_time": [],
"update_time": [],
"table_type":14
}
})
loadJumpLessonLibraryList() loadJumpLessonLibraryList()
} else if (type === 15) { } else if (type === 15) {
EnTeachingLibraryTable = reactive({ EnTeachingLibraryTable.searchParam.title = ''
page: 1, EnTeachingLibraryTable.searchParam.status = ''
limit: 10, EnTeachingLibraryTable.searchParam.create_time = ''
total: 0, EnTeachingLibraryTable.searchParam.update_time = ''
loading: true, EnTeachingLibraryTable.page = 1
data: [], EnTeachingLibraryTable.limit = 10
searchParam: { EnTeachingLibraryTable.data = []
"title": "", EnTeachingLibraryTable.table_type = 15
"status": "",
"create_time": [],
"update_time": [],
"table_type":15
}
})
loadEnTeachingLibraryList() loadEnTeachingLibraryList()
} }
} }

99
admin/src/app/views/instructional_material/instructional_material.vue

@ -72,10 +72,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="t('operation')" fixed="right" min-width="120"> <el-table-column :label="t('operation')" fixed="right" min-width="180">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" link @click="updateActionLibrary(row)">{{ t('edit') }}</el-button> <el-button type="primary" link @click="updateActionLibrary(row)">{{ t('edit') }}</el-button>
<el-button type="primary" link @click="deleteEvent(row.id, 9)">{{ t('delete') }}</el-button> <el-button type="primary" link @click="deleteEvent(row.id, 9)">{{ t('delete') }}</el-button>
<el-button type="primary" link @click="addBindingPersonnel(row)">{{ t('addBindingPersonnel') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -158,10 +159,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="t('operation')" fixed="right" min-width="120"> <el-table-column :label="t('operation')" fixed="right" min-width="180">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" link @click="editJumpLessonLibrary(row)">{{ t('edit') }}</el-button> <el-button type="primary" link @click="editJumpLessonLibrary(row)">{{ t('edit') }}</el-button>
<el-button type="primary" link @click="deleteEvent(row.id, 10)">{{ t('delete') }}</el-button> <el-button type="primary" link @click="deleteEvent(row.id, 10)">{{ t('delete') }}</el-button>
<el-button type="primary" link @click="addBindingPersonnel(row)">{{ t('addBindingPersonnel') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -245,10 +247,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="t('operation')" fixed="right" min-width="120"> <el-table-column :label="t('operation')" fixed="right" min-width="180">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" link @click="editEnTeachingLibrary(row)">{{ t('edit') }}</el-button> <el-button type="primary" link @click="editEnTeachingLibrary(row)">{{ t('edit') }}</el-button>
<el-button type="primary" link @click="deleteEvent(row.id, 11)">{{ t('delete') }}</el-button> <el-button type="primary" link @click="deleteEvent(row.id, 11)">{{ t('delete') }}</el-button>
<el-button type="primary" link @click="addBindingPersonnel(row)">{{ t('addBindingPersonnel') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -332,10 +335,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="t('operation')" fixed="right" min-width="120"> <el-table-column :label="t('operation')" fixed="right" min-width="180">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" link @click="editBasketballTeachingLibrary(row)">{{ t('edit') }}</el-button> <el-button type="primary" link @click="editBasketballTeachingLibrary(row)">{{ t('edit') }}</el-button>
<el-button type="primary" link @click="deleteEvent(row.id, 12)">{{ t('delete') }}</el-button> <el-button type="primary" link @click="deleteEvent(row.id, 12)">{{ t('delete') }}</el-button>
<el-button type="primary" link @click="addBindingPersonnel(row)">{{ t('addBindingPersonnel') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -351,6 +355,7 @@
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</el-card> </el-card>
<binding-personnel ref="BindingPersonnelDialog" @complete="loadLessonCourseTeachingList" />
</div> </div>
</template> </template>
@ -366,6 +371,7 @@ import Edit from '@/app/views/instructional_material/components/lesson-course-te
import EditJump from '@/app/views/instructional_material/components/Jump-lesson-library-edit.vue' import EditJump from '@/app/views/instructional_material/components/Jump-lesson-library-edit.vue'
import EditEn from '@/app/views/instructional_material/components/en-course-teaching-edit.vue' import EditEn from '@/app/views/instructional_material/components/en-course-teaching-edit.vue'
import EditBasketball from '@/app/views/instructional_material/components/basketball-course-teaching-edit.vue' import EditBasketball from '@/app/views/instructional_material/components/basketball-course-teaching-edit.vue'
import bindingPersonnel from '@/app/views/binding_personnel/binding_personnel.vue'
import { useRoute } from 'vue-router' import { useRoute } from 'vue-router'
const route = useRoute() const route = useRoute()
const pageName = route.meta.title; const pageName = route.meta.title;
@ -446,7 +452,12 @@ const editJumpLessonLibraryDialog: Record<string, any> | null = ref(null)
const editEnTeachingLibraryDialog: Record<string, any> | null = ref(null) const editEnTeachingLibraryDialog: Record<string, any> | null = ref(null)
const editBasketballTeachingLibraryDialog: Record<string, any> | null = ref(null) const editBasketballTeachingLibraryDialog: Record<string, any> | null = ref(null)
const editStrengthenTeachingLibraryDialog: Record<string, any> | null = ref(null) const editStrengthenTeachingLibraryDialog: Record<string, any> | null = ref(null)
const BindingPersonnelDialog: Record<string, any> | null = ref(null)
const addBindingPersonnel = (row) => {
BindingPersonnelDialog.value.setFormData(row)
BindingPersonnelDialog.value.showDialog = true
}
/** /**
* 获取热身动作库列表 * 获取热身动作库列表
*/ */
@ -637,64 +648,40 @@ const resetForm = (formEl: FormInstance | undefined, type: number) => {
if (!formEl) return if (!formEl) return
formEl.resetFields() formEl.resetFields()
if (type === 9) { if (type === 9) {
ActionLibraryTable = reactive({ ActionLibraryTable.searchParam.title = ''
page: 1, ActionLibraryTable.searchParam.status = ''
limit: 10, ActionLibraryTable.searchParam.create_time = ''
total: 0, ActionLibraryTable.searchParam.update_time = ''
loading: true, ActionLibraryTable.page = 1
data: [], ActionLibraryTable.limit = 10
searchParam: { ActionLibraryTable.data = []
"title": "",
"status": "",
"create_time": [],
"update_time": []
}
})
loadActionLibraryList() loadActionLibraryList()
} else if (type === 10) { } else if (type === 10) {
JumpLessonLibraryTable = reactive({ JumpLessonLibraryTable.searchParam.title = ''
page: 1, JumpLessonLibraryTable.searchParam.status = ''
limit: 10, JumpLessonLibraryTable.searchParam.create_time = ''
total: 0, JumpLessonLibraryTable.searchParam.update_time = ''
loading: true, JumpLessonLibraryTable.page = 1
data: [], JumpLessonLibraryTable.limit = 10
searchParam: { JumpLessonLibraryTable.data = []
"title": "",
"status": "",
"create_time": [],
"update_time": []
}
})
loadJumpLessonLibraryList() loadJumpLessonLibraryList()
} else if (type === 11) { } else if (type === 11) {
EnTeachingLibraryTable = reactive({ EnTeachingLibraryTable.searchParam.title = ''
page: 1, EnTeachingLibraryTable.searchParam.status = ''
limit: 10, EnTeachingLibraryTable.searchParam.create_time = ''
total: 0, EnTeachingLibraryTable.searchParam.update_time = ''
loading: true, EnTeachingLibraryTable.page = 1
data: [], EnTeachingLibraryTable.limit = 10
searchParam: { EnTeachingLibraryTable.data = []
"title": "",
"status": "",
"create_time": [],
"update_time": []
}
})
loadEnTeachingLibraryList() loadEnTeachingLibraryList()
} else if (type === 12) { } else if (type === 12) {
BasketballTeachingLibraryTable = reactive({ BasketballTeachingLibraryTable.searchParam.title = ''
page: 1, BasketballTeachingLibraryTable.searchParam.status = ''
limit: 10, BasketballTeachingLibraryTable.searchParam.create_time = ''
total: 0, BasketballTeachingLibraryTable.searchParam.update_time = ''
loading: true, BasketballTeachingLibraryTable.page = 1
data: [], BasketballTeachingLibraryTable.limit = 10
searchParam: { BasketballTeachingLibraryTable.data = []
"title": "",
"status": "",
"create_time": [],
"update_time": []
}
})
loadBasketballTeachingLibraryList() loadBasketballTeachingLibraryList()
} }
} }

8
admin/src/app/views/lesson_course_teaching/components/Jump-lesson-library-edit.vue

@ -161,10 +161,10 @@ const confirm = async (formEl: FormInstance | undefined) => {
const userPermissionList = ref([] as any[]) const userPermissionList = ref([] as any[])
const setUserPermissionList = async () => { // const setUserPermissionList = async () => {
userPermissionList.value = await (await getWithPersonnelDataList({})).data // userPermissionList.value = await (await getWithPersonnelDataList({})).data
} // }
setUserPermissionList() // setUserPermissionList()
const setFormData = async (row: any = null) => { const setFormData = async (row: any = null) => {
Object.assign(formData, initialFormData) Object.assign(formData, initialFormData)
loading.value = true loading.value = true

8
admin/src/app/views/lesson_course_teaching/components/basketball-course-teaching-edit.vue

@ -157,10 +157,10 @@ const confirm = async (formEl: FormInstance | undefined) => {
const userPermissionList = ref([] as any[]) const userPermissionList = ref([] as any[])
const setUserPermissionList = async () => { // const setUserPermissionList = async () => {
userPermissionList.value = await (await getWithPersonnelDataList({})).data // userPermissionList.value = await (await getWithPersonnelDataList({})).data
} // }
setUserPermissionList() // setUserPermissionList()
const setFormData = async (row: any = null) => { const setFormData = async (row: any = null) => {
Object.assign(formData, initialFormData) Object.assign(formData, initialFormData)
loading.value = true loading.value = true

8
admin/src/app/views/lesson_course_teaching/components/en-course-teaching-edit.vue

@ -156,10 +156,10 @@ const confirm = async (formEl: FormInstance | undefined) => {
const userPermissionList = ref([] as any[]) const userPermissionList = ref([] as any[])
const setUserPermissionList = async () => { // const setUserPermissionList = async () => {
userPermissionList.value = await (await getWithPersonnelDataList({})).data // userPermissionList.value = await (await getWithPersonnelDataList({})).data
} // }
setUserPermissionList() // setUserPermissionList()
const setFormData = async (row: any = null) => { const setFormData = async (row: any = null) => {
Object.assign(formData, initialFormData) Object.assign(formData, initialFormData)
loading.value = true loading.value = true

8
admin/src/app/views/lesson_course_teaching/components/lesson-course-teaching-edit.vue

@ -157,10 +157,10 @@ const confirm = async (formEl: FormInstance | undefined) => {
const userPermissionList = ref([] as any[]) const userPermissionList = ref([] as any[])
const setUserPermissionList = async () => { // const setUserPermissionList = async () => {
userPermissionList.value = await (await getWithPersonnelDataList({})).data // userPermissionList.value = await (await getWithPersonnelDataList({})).data
} // }
setUserPermissionList() // setUserPermissionList()
const setFormData = async (row: any = null) => { const setFormData = async (row: any = null) => {
Object.assign(formData, initialFormData) Object.assign(formData, initialFormData)
loading.value = true loading.value = true

8
admin/src/app/views/lesson_course_teaching/components/ninja-teaching-edit.vue

@ -157,10 +157,10 @@ const confirm = async (formEl: FormInstance | undefined) => {
const userPermissionList = ref([] as any[]) const userPermissionList = ref([] as any[])
const setUserPermissionList = async () => { // const setUserPermissionList = async () => {
userPermissionList.value = await (await getWithPersonnelDataList({})).data // userPermissionList.value = await (await getWithPersonnelDataList({})).data
} // }
setUserPermissionList() // setUserPermissionList()
const setFormData = async (row: any = null) => { const setFormData = async (row: any = null) => {
Object.assign(formData, initialFormData) Object.assign(formData, initialFormData)
loading.value = true loading.value = true

8
admin/src/app/views/lesson_course_teaching/components/physical-teaching-edit.vue

@ -157,10 +157,10 @@ const confirm = async (formEl: FormInstance | undefined) => {
const userPermissionList = ref([] as any[]) const userPermissionList = ref([] as any[])
const setUserPermissionList = async () => { // const setUserPermissionList = async () => {
userPermissionList.value = await (await getWithPersonnelDataList({})).data // userPermissionList.value = await (await getWithPersonnelDataList({})).data
} // }
setUserPermissionList() // setUserPermissionList()
const setFormData = async (row: any = null) => { const setFormData = async (row: any = null) => {
Object.assign(formData, initialFormData) Object.assign(formData, initialFormData)
loading.value = true loading.value = true

8
admin/src/app/views/lesson_course_teaching/components/security-teaching-edit.vue

@ -157,10 +157,10 @@ const confirm = async (formEl: FormInstance | undefined) => {
const userPermissionList = ref([] as any[]) const userPermissionList = ref([] as any[])
const setUserPermissionList = async () => { // const setUserPermissionList = async () => {
userPermissionList.value = await (await getWithPersonnelDataList({})).data // userPermissionList.value = await (await getWithPersonnelDataList({})).data
} // }
setUserPermissionList() // setUserPermissionList()
const setFormData = async (row: any = null) => { const setFormData = async (row: any = null) => {
Object.assign(formData, initialFormData) Object.assign(formData, initialFormData)
loading.value = true loading.value = true

8
admin/src/app/views/lesson_course_teaching/components/strengthen-course-teaching-edit.vue

@ -156,10 +156,10 @@ const confirm = async (formEl: FormInstance | undefined) => {
const userPermissionList = ref([] as any[]) const userPermissionList = ref([] as any[])
const setUserPermissionList = async () => { // const setUserPermissionList = async () => {
userPermissionList.value = await (await getWithPersonnelDataList({})).data // userPermissionList.value = await (await getWithPersonnelDataList({})).data
} // }
setUserPermissionList() // setUserPermissionList()
const setFormData = async (row: any = null) => { const setFormData = async (row: any = null) => {
Object.assign(formData, initialFormData) Object.assign(formData, initialFormData)
loading.value = true loading.value = true

192
admin/src/app/views/lesson_course_teaching/lesson_course_teaching.vue

@ -72,10 +72,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="t('operation')" fixed="right" min-width="120"> <el-table-column :label="t('operation')" fixed="right" min-width="180">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" link @click="editEvent(row)">{{ t('edit') }}</el-button> <el-button type="primary" link @click="editEvent(row)">{{ t('edit') }}</el-button>
<el-button type="primary" link @click="deleteEvent(row.id, 1)">{{ t('delete') }}</el-button> <el-button type="primary" link @click="deleteEvent(row.id, 1)">{{ t('delete') }}</el-button>
<el-button type="primary" link @click="addBindingPersonnel(row)">{{ t('addBindingPersonnel') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -159,10 +160,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="t('operation')" fixed="right" min-width="120"> <el-table-column :label="t('operation')" fixed="right" min-width="180">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" link @click="editJumpLessonLibrary(row)">{{ t('edit') }}</el-button> <el-button type="primary" link @click="editJumpLessonLibrary(row)">{{ t('edit') }}</el-button>
<el-button type="primary" link @click="deleteEvent(row.id, 2)">{{ t('delete') }}</el-button> <el-button type="primary" link @click="deleteEvent(row.id, 2)">{{ t('delete') }}</el-button>
<el-button type="primary" link @click="addBindingPersonnel(row)">{{ t('addBindingPersonnel') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -246,10 +248,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="t('operation')" fixed="right" min-width="120"> <el-table-column :label="t('operation')" fixed="right" min-width="180">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" link @click="editEnTeachingLibrary(row)">{{ t('edit') }}</el-button> <el-button type="primary" link @click="editEnTeachingLibrary(row)">{{ t('edit') }}</el-button>
<el-button type="primary" link @click="deleteEvent(row.id, 3)">{{ t('delete') }}</el-button> <el-button type="primary" link @click="deleteEvent(row.id, 3)">{{ t('delete') }}</el-button>
<el-button type="primary" link @click="addBindingPersonnel(row)">{{ t('addBindingPersonnel') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -333,10 +336,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="t('operation')" fixed="right" min-width="120"> <el-table-column :label="t('operation')" fixed="right" min-width="180">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" link @click="editBasketballTeachingLibrary(row)">{{ t('edit') }}</el-button> <el-button type="primary" link @click="editBasketballTeachingLibrary(row)">{{ t('edit') }}</el-button>
<el-button type="primary" link @click="deleteEvent(row.id, 4)">{{ t('delete') }}</el-button> <el-button type="primary" link @click="deleteEvent(row.id, 4)">{{ t('delete') }}</el-button>
<el-button type="primary" link @click="addBindingPersonnel(row)">{{ t('addBindingPersonnel') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -420,10 +424,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="t('operation')" fixed="right" min-width="120"> <el-table-column :label="t('operation')" fixed="right" min-width="180">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" link @click="editStrengthenTeachingLibrary(row)">{{ t('edit') }}</el-button> <el-button type="primary" link @click="editStrengthenTeachingLibrary(row)">{{ t('edit') }}</el-button>
<el-button type="primary" link @click="deleteEvent(row.id, 5)">{{ t('delete') }}</el-button> <el-button type="primary" link @click="deleteEvent(row.id, 5)">{{ t('delete') }}</el-button>
<el-button type="primary" link @click="addBindingPersonnel(row)">{{ t('addBindingPersonnel') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -507,10 +512,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="t('operation')" fixed="right" min-width="120"> <el-table-column :label="t('operation')" fixed="right" min-width="180">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" link @click="editNinjaTeachingLibrary(row)">{{ t('edit') }}</el-button> <el-button type="primary" link @click="editNinjaTeachingLibrary(row)">{{ t('edit') }}</el-button>
<el-button type="primary" link @click="deleteEvent(row.id, 6)">{{ t('delete') }}</el-button> <el-button type="primary" link @click="deleteEvent(row.id, 6)">{{ t('delete') }}</el-button>
<el-button type="primary" link @click="addBindingPersonnel(row)">{{ t('addBindingPersonnel') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -594,10 +600,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="t('operation')" fixed="right" min-width="120"> <el-table-column :label="t('operation')" fixed="right" min-width="180">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" link @click="editSecurityTeachingLibrary(row)">{{ t('edit') }}</el-button> <el-button type="primary" link @click="editSecurityTeachingLibrary(row)">{{ t('edit') }}</el-button>
<el-button type="primary" link @click="deleteEvent(row.id, 7)">{{ t('delete') }}</el-button> <el-button type="primary" link @click="deleteEvent(row.id, 7)">{{ t('delete') }}</el-button>
<el-button type="primary" link @click="addBindingPersonnel(row)">{{ t('addBindingPersonnel') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -681,10 +688,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="t('operation')" fixed="right" min-width="120"> <el-table-column :label="t('operation')" fixed="right" min-width="180">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" link @click="editPhysicalTeachingLibrary(row)">{{ t('edit') }}</el-button> <el-button type="primary" link @click="editPhysicalTeachingLibrary(row)">{{ t('edit') }}</el-button>
<el-button type="primary" link @click="deleteEvent(row.id, 8)">{{ t('delete') }}</el-button> <el-button type="primary" link @click="deleteEvent(row.id, 8)">{{ t('delete') }}</el-button>
<el-button type="primary" link @click="addBindingPersonnel(row)">{{ t('addBindingPersonnel') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -700,6 +708,7 @@
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</el-card> </el-card>
<binding-personnel ref="BindingPersonnelDialog" @complete="loadLessonCourseTeachingList" />
</div> </div>
</template> </template>
@ -718,6 +727,7 @@ import EditStrengthen from '@/app/views/lesson_course_teaching/components/streng
import EditNinja from '@/app/views/lesson_course_teaching/components/ninja-teaching-edit.vue' import EditNinja from '@/app/views/lesson_course_teaching/components/ninja-teaching-edit.vue'
import EditSecurity from '@/app/views/lesson_course_teaching/components/security-teaching-edit.vue' import EditSecurity from '@/app/views/lesson_course_teaching/components/security-teaching-edit.vue'
import EditPhysical from '@/app/views/lesson_course_teaching/components/physical-teaching-edit.vue' import EditPhysical from '@/app/views/lesson_course_teaching/components/physical-teaching-edit.vue'
import bindingPersonnel from '@/app/views/binding_personnel/binding_personnel.vue'
import { useRoute } from 'vue-router' import { useRoute } from 'vue-router'
const route = useRoute() const route = useRoute()
const pageName = route.meta.title; const pageName = route.meta.title;
@ -852,6 +862,12 @@ const editStrengthenTeachingLibraryDialog: Record<string, any> | null = ref(null
const editNinjaTeachingLibraryDialog: Record<string, any> | null = ref(null) const editNinjaTeachingLibraryDialog: Record<string, any> | null = ref(null)
const editSecurityTeachingLibraryDialog: Record<string, any> | null = ref(null) const editSecurityTeachingLibraryDialog: Record<string, any> | null = ref(null)
const editPhysicalTeachingLibraryDialog: Record<string, any> | null = ref(null) const editPhysicalTeachingLibraryDialog: Record<string, any> | null = ref(null)
const BindingPersonnelDialog: Record<string, any> | null = ref(null)
const addBindingPersonnel = (row) => {
BindingPersonnelDialog.value.setFormData(row)
BindingPersonnelDialog.value.showDialog = true
}
/** /**
* 获取课程教学大纲列表 * 获取课程教学大纲列表
@ -1205,124 +1221,76 @@ const resetForm = (formEl: FormInstance | undefined, type: number) => {
if (!formEl) return if (!formEl) return
formEl.resetFields() formEl.resetFields()
if (type === 1) { if (type === 1) {
lessonCourseTeachingTable = reactive({ lessonCourseTeachingTable.searchParam.title = ''
page: 1, lessonCourseTeachingTable.searchParam.status = ''
limit: 10, lessonCourseTeachingTable.searchParam.create_time = ''
total: 0, lessonCourseTeachingTable.searchParam.update_time = ''
loading: true, lessonCourseTeachingTable.page = 1
data: [], lessonCourseTeachingTable.limit = 10
searchParam: { lessonCourseTeachingTable.data = []
"title": "",
"status": "",
"create_time": [],
"update_time": []
}
})
loadLessonCourseTeachingList() loadLessonCourseTeachingList()
} else if (type === 2) { } else if (type === 2) {
JumpLessonLibraryTable = reactive({ JumpLessonLibraryTable.searchParam.title = ''
page: 1, JumpLessonLibraryTable.searchParam.status = ''
limit: 10, JumpLessonLibraryTable.searchParam.create_time = ''
total: 0, JumpLessonLibraryTable.searchParam.update_time = ''
loading: true, JumpLessonLibraryTable.page = 1
data: [], JumpLessonLibraryTable.limit = 10
searchParam: { JumpLessonLibraryTable.data = []
"title": "",
"status": "",
"create_time": [],
"update_time": []
}
})
loadJumpLessonLibraryList() loadJumpLessonLibraryList()
} else if (type === 3) { } else if (type === 3) {
EnTeachingLibraryTable = reactive({ EnTeachingLibraryTable.searchParam.title = ''
page: 1, EnTeachingLibraryTable.searchParam.status = ''
limit: 10, EnTeachingLibraryTable.searchParam.create_time = ''
total: 0, EnTeachingLibraryTable.searchParam.update_time = ''
loading: true, EnTeachingLibraryTable.page = 1
data: [], EnTeachingLibraryTable.limit = 10
searchParam: { EnTeachingLibraryTable.data = []
"title": "",
"status": "",
"create_time": [],
"update_time": []
}
})
loadEnTeachingLibraryList() loadEnTeachingLibraryList()
} else if (type === 4) { } else if (type === 4) {
BasketballTeachingLibraryTable = reactive({ BasketballTeachingLibraryTable.searchParam.title = ''
page: 1, BasketballTeachingLibraryTable.searchParam.status = ''
limit: 10, BasketballTeachingLibraryTable.searchParam.create_time = ''
total: 0, BasketballTeachingLibraryTable.searchParam.update_time = ''
loading: true, BasketballTeachingLibraryTable.page = 1
data: [], BasketballTeachingLibraryTable.limit = 10
searchParam: { BasketballTeachingLibraryTable.data = []
"title": "",
"status": "",
"create_time": [],
"update_time": []
}
})
loadBasketballTeachingLibraryList() loadBasketballTeachingLibraryList()
} else if (type === 5) { } else if (type === 5) {
StrengTeachingLibraryTable = reactive({ StrengTeachingLibraryTable.searchParam.title = ''
page: 1, StrengTeachingLibraryTable.searchParam.status = ''
limit: 10, StrengTeachingLibraryTable.searchParam.create_time = ''
total: 0, StrengTeachingLibraryTable.searchParam.update_time = ''
loading: true, StrengTeachingLibraryTable.page = 1
data: [], StrengTeachingLibraryTable.limit = 10
searchParam: { StrengTeachingLibraryTable.data = []
"title": "",
"status": "",
"create_time": [],
"update_time": []
}
})
loadStrengthenTeachingLibraryList() loadStrengthenTeachingLibraryList()
} else if (type === 6) { } else if (type === 6) {
NinjaTeachingLibraryTable = reactive({ NinjaTeachingLibraryTable.searchParam.title = ''
page: 1, NinjaTeachingLibraryTable.searchParam.status = ''
limit: 10, NinjaTeachingLibraryTable.searchParam.create_time = ''
total: 0, NinjaTeachingLibraryTable.searchParam.update_time = ''
loading: true, NinjaTeachingLibraryTable.page = 1
data: [], NinjaTeachingLibraryTable.limit = 10
searchParam: { NinjaTeachingLibraryTable.data = []
"title": "",
"status": "",
"create_time": [],
"update_time": []
}
})
loadStrengthenTeachingLibraryList() loadStrengthenTeachingLibraryList()
} else if (type === 7) { } else if (type === 7) {
SecurityTeachingLibraryTable = reactive({ SecurityTeachingLibraryTable.searchParam.title = ''
page: 1, SecurityTeachingLibraryTable.searchParam.status = ''
limit: 10, SecurityTeachingLibraryTable.searchParam.create_time = ''
total: 0, SecurityTeachingLibraryTable.searchParam.update_time = ''
loading: true, SecurityTeachingLibraryTable.page = 1
data: [], SecurityTeachingLibraryTable.limit = 10
searchParam: { SecurityTeachingLibraryTable.data = []
"title": "",
"status": "",
"create_time": [],
"update_time": []
}
})
loadStrengthenTeachingLibraryList() loadStrengthenTeachingLibraryList()
} else if (type === 8) { } else if (type === 8) {
PhysicalTeachingLibraryTable = reactive({ PhysicalTeachingLibraryTable.searchParam.title = ''
page: 1, PhysicalTeachingLibraryTable.searchParam.status = ''
limit: 10, PhysicalTeachingLibraryTable.searchParam.create_time = ''
total: 0, PhysicalTeachingLibraryTable.searchParam.update_time = ''
loading: true, PhysicalTeachingLibraryTable.page = 1
data: [], PhysicalTeachingLibraryTable.limit = 10
searchParam: { PhysicalTeachingLibraryTable.data = []
"title": "",
"status": "",
"create_time": [],
"update_time": []
}
})
loadStrengthenTeachingLibraryList() loadStrengthenTeachingLibraryList()
} }
} }

115
admin/src/app/views/physical_testing/physical_testing.vue

@ -72,10 +72,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="t('operation')" fixed="right" min-width="120"> <el-table-column :label="t('operation')" fixed="right" min-width="180">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" link @click="editEvent(row)">{{ t('edit') }}</el-button> <el-button type="primary" link @click="editEvent(row)">{{ t('edit') }}</el-button>
<el-button type="primary" link @click="deleteEvent(row.id, 23)">{{ t('delete') }}</el-button> <el-button type="primary" link @click="deleteEvent(row.id, 23)">{{ t('delete') }}</el-button>
<el-button type="primary" link @click="addBindingPersonnel(row)">{{ t('addBindingPersonnel') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -159,10 +160,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="t('operation')" fixed="right" min-width="120"> <el-table-column :label="t('operation')" fixed="right" min-width="180">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" link @click="editJumpLessonLibrary(row)">{{ t('edit') }}</el-button> <el-button type="primary" link @click="editJumpLessonLibrary(row)">{{ t('edit') }}</el-button>
<el-button type="primary" link @click="deleteEvent(row.id, 24)">{{ t('delete') }}</el-button> <el-button type="primary" link @click="deleteEvent(row.id, 24)">{{ t('delete') }}</el-button>
<el-button type="primary" link @click="addBindingPersonnel(row)">{{ t('addBindingPersonnel') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -246,10 +248,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="t('operation')" fixed="right" min-width="120"> <el-table-column :label="t('operation')" fixed="right" min-width="180">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" link @click="editEnTeachingLibrary(row)">{{ t('edit') }}</el-button> <el-button type="primary" link @click="editEnTeachingLibrary(row)">{{ t('edit') }}</el-button>
<el-button type="primary" link @click="deleteEvent(row.id, 25)">{{ t('delete') }}</el-button> <el-button type="primary" link @click="deleteEvent(row.id, 25)">{{ t('delete') }}</el-button>
<el-button type="primary" link @click="addBindingPersonnel(row)">{{ t('addBindingPersonnel') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -333,10 +336,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="t('operation')" fixed="right" min-width="120"> <el-table-column :label="t('operation')" fixed="right" min-width="180">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" link @click="editBasketballTeachingLibrary(row)">{{ t('edit') }}</el-button> <el-button type="primary" link @click="editBasketballTeachingLibrary(row)">{{ t('edit') }}</el-button>
<el-button type="primary" link @click="deleteEvent(row.id, 26)">{{ t('delete') }}</el-button> <el-button type="primary" link @click="deleteEvent(row.id, 26)">{{ t('delete') }}</el-button>
<el-button type="primary" link @click="addBindingPersonnel(row)">{{ t('addBindingPersonnel') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -352,6 +356,7 @@
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</el-card> </el-card>
<binding-personnel ref="BindingPersonnelDialog" @complete="loadLessonCourseTeachingList" />
</div> </div>
</template> </template>
@ -367,6 +372,7 @@ import EditJump from '@/app/views/physical_testing/components/Jump-lesson-librar
import EditEn from '@/app/views/physical_testing/components/en-course-teaching-edit.vue' import EditEn from '@/app/views/physical_testing/components/en-course-teaching-edit.vue'
import EditBasketball from '@/app/views/physical_testing/components/basketball-course-teaching-edit.vue' import EditBasketball from '@/app/views/physical_testing/components/basketball-course-teaching-edit.vue'
import { useRoute } from 'vue-router' import { useRoute } from 'vue-router'
import bindingPersonnel from '@/app/views/binding_personnel/binding_personnel.vue'
const route = useRoute() const route = useRoute()
const pageName = route.meta.title; const pageName = route.meta.title;
const active = 'CourseSyllabus' const active = 'CourseSyllabus'
@ -382,7 +388,7 @@ let lessonCourseTeachingTable = reactive({
"status":"", "status":"",
"create_time":[], "create_time":[],
"update_time":[], "update_time":[],
table_type: 23 "table_type": 23
} }
}) })
let JumpLessonLibraryTable = reactive({ let JumpLessonLibraryTable = reactive({
@ -396,7 +402,7 @@ let JumpLessonLibraryTable = reactive({
"status":"", "status":"",
"create_time":[], "create_time":[],
"update_time":[], "update_time":[],
table_type: 24 "table_type": 24
} }
}) })
let EnTeachingLibraryTable = reactive({ let EnTeachingLibraryTable = reactive({
@ -410,7 +416,7 @@ let EnTeachingLibraryTable = reactive({
"status":"", "status":"",
"create_time":[], "create_time":[],
"update_time":[], "update_time":[],
table_type: 25 "table_type": 25
} }
}) })
let BasketballTeachingLibraryTable = reactive({ let BasketballTeachingLibraryTable = reactive({
@ -424,7 +430,7 @@ let BasketballTeachingLibraryTable = reactive({
"status":"", "status":"",
"create_time":[], "create_time":[],
"update_time":[], "update_time":[],
table_type: 26 "table_type": 26
} }
}) })
@ -449,7 +455,12 @@ const editLessonCourseTeachingDialog: Record<string, any> | null = ref(null)
const editJumpLessonLibraryDialog: Record<string, any> | null = ref(null) const editJumpLessonLibraryDialog: Record<string, any> | null = ref(null)
const editEnTeachingLibraryDialog: Record<string, any> | null = ref(null) const editEnTeachingLibraryDialog: Record<string, any> | null = ref(null)
const editBasketballTeachingLibraryDialog: Record<string, any> | null = ref(null) const editBasketballTeachingLibraryDialog: Record<string, any> | null = ref(null)
const BindingPersonnelDialog: Record<string, any> | null = ref(null)
const addBindingPersonnel = (row) => {
BindingPersonnelDialog.value.setFormData(row)
BindingPersonnelDialog.value.showDialog = true
}
/** /**
* 获取课程教学大纲列表 * 获取课程教学大纲列表
*/ */
@ -644,68 +655,44 @@ const resetForm = (formEl: FormInstance | undefined, type: number) => {
if (!formEl) return if (!formEl) return
formEl.resetFields() formEl.resetFields()
if (type === 23) { if (type === 23) {
lessonCourseTeachingTable = reactive({ lessonCourseTeachingTable.searchParam.title = ''
page: 1, lessonCourseTeachingTable.searchParam.status = ''
limit: 10, lessonCourseTeachingTable.searchParam.create_time = ''
total: 0, lessonCourseTeachingTable.searchParam.update_time = ''
loading: true, lessonCourseTeachingTable.page = 1
data: [], lessonCourseTeachingTable.limit = 10
searchParam: { lessonCourseTeachingTable.data = []
"title": "", lessonCourseTeachingTable.table_type = 23
"status": "",
"create_time": [],
"update_time": [],
table_type: 23
}
})
loadLessonCourseTeachingList() loadLessonCourseTeachingList()
} else if (type === 24) { } else if (type === 24) {
JumpLessonLibraryTable = reactive({ JumpLessonLibraryTable.searchParam.title = ''
page: 1, JumpLessonLibraryTable.searchParam.status = ''
limit: 10, JumpLessonLibraryTable.searchParam.create_time = ''
total: 0, JumpLessonLibraryTable.searchParam.update_time = ''
loading: true, JumpLessonLibraryTable.page = 1
data: [], JumpLessonLibraryTable.limit = 10
searchParam: { JumpLessonLibraryTable.data = []
"title": "", JumpLessonLibraryTable.table_type = 24
"status": "",
"create_time": [],
"update_time": [],
table_type: 24
}
})
loadJumpLessonLibraryList() loadJumpLessonLibraryList()
} else if (type === 25) { } else if (type === 25) {
EnTeachingLibraryTable = reactive({ EnTeachingLibraryTable.searchParam.title = ''
page: 1, EnTeachingLibraryTable.searchParam.status = ''
limit: 10, EnTeachingLibraryTable.searchParam.create_time = ''
total: 0, EnTeachingLibraryTable.searchParam.update_time = ''
loading: true, EnTeachingLibraryTable.page = 1
data: [], EnTeachingLibraryTable.limit = 10
searchParam: { EnTeachingLibraryTable.data = []
"title": "", EnTeachingLibraryTable.table_type = 25
"status": "",
"create_time": [],
"update_time": [],
table_type: 25
}
})
loadEnTeachingLibraryList() loadEnTeachingLibraryList()
} else if (type === 26) { } else if (type === 26) {
BasketballTeachingLibraryTable = reactive({ BasketballTeachingLibraryTable.searchParam.title = ''
page: 1, BasketballTeachingLibraryTable.searchParam.status = ''
limit: 10, BasketballTeachingLibraryTable.searchParam.create_time = ''
total: 0, BasketballTeachingLibraryTable.searchParam.update_time = ''
loading: true, BasketballTeachingLibraryTable.page = 1
data: [], BasketballTeachingLibraryTable.limit = 10
searchParam: { BasketballTeachingLibraryTable.data = []
"title": "", BasketballTeachingLibraryTable.table_type = 26
"status": "",
"create_time": [],
"update_time": [],
table_type: 26
}
})
loadBasketballTeachingLibraryList() loadBasketballTeachingLibraryList()
} }
} }

196
admin/src/app/views/professional_skills/professional_skills.vue

@ -72,10 +72,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="t('operation')" fixed="right" min-width="120"> <el-table-column :label="t('operation')" fixed="right" min-width="180">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" link @click="editEvent(row)">{{ t('edit') }}</el-button> <el-button type="primary" link @click="editEvent(row)">{{ t('edit') }}</el-button>
<el-button type="primary" link @click="deleteEvent(row.id, 16)">{{ t('delete') }}</el-button> <el-button type="primary" link @click="deleteEvent(row.id, 16)">{{ t('delete') }}</el-button>
<el-button type="primary" link @click="addBindingPersonnel(row)">{{ t('addBindingPersonnel') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -159,10 +160,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="t('operation')" fixed="right" min-width="120"> <el-table-column :label="t('operation')" fixed="right" min-width="180">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" link @click="editJumpLessonLibrary(row)">{{ t('edit') }}</el-button> <el-button type="primary" link @click="editJumpLessonLibrary(row)">{{ t('edit') }}</el-button>
<el-button type="primary" link @click="deleteEvent(row.id, 17)">{{ t('delete') }}</el-button> <el-button type="primary" link @click="deleteEvent(row.id, 17)">{{ t('delete') }}</el-button>
<el-button type="primary" link @click="addBindingPersonnel(row)">{{ t('addBindingPersonnel') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -246,10 +248,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="t('operation')" fixed="right" min-width="120"> <el-table-column :label="t('operation')" fixed="right" min-width="180">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" link @click="editEnTeachingLibrary(row)">{{ t('edit') }}</el-button> <el-button type="primary" link @click="editEnTeachingLibrary(row)">{{ t('edit') }}</el-button>
<el-button type="primary" link @click="deleteEvent(row.id, 18)">{{ t('delete') }}</el-button> <el-button type="primary" link @click="deleteEvent(row.id, 18)">{{ t('delete') }}</el-button>
<el-button type="primary" link @click="addBindingPersonnel(row)">{{ t('addBindingPersonnel') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -333,10 +336,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="t('operation')" fixed="right" min-width="120"> <el-table-column :label="t('operation')" fixed="right" min-width="180">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" link @click="editBasketballTeachingLibrary(row)">{{ t('edit') }}</el-button> <el-button type="primary" link @click="editBasketballTeachingLibrary(row)">{{ t('edit') }}</el-button>
<el-button type="primary" link @click="deleteEvent(row.id, 19)">{{ t('delete') }}</el-button> <el-button type="primary" link @click="deleteEvent(row.id, 19)">{{ t('delete') }}</el-button>
<el-button type="primary" link @click="addBindingPersonnel(row)">{{ t('addBindingPersonnel') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -420,10 +424,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="t('operation')" fixed="right" min-width="120"> <el-table-column :label="t('operation')" fixed="right" min-width="180">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" link @click="editStrengthenTeachingLibrary(row)">{{ t('edit') }}</el-button> <el-button type="primary" link @click="editStrengthenTeachingLibrary(row)">{{ t('edit') }}</el-button>
<el-button type="primary" link @click="deleteEvent(row.id, 20)">{{ t('delete') }}</el-button> <el-button type="primary" link @click="deleteEvent(row.id, 20)">{{ t('delete') }}</el-button>
<el-button type="primary" link @click="addBindingPersonnel(row)">{{ t('addBindingPersonnel') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -507,10 +512,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="t('operation')" fixed="right" min-width="120"> <el-table-column :label="t('operation')" fixed="right" min-width="180">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" link @click="editNinjaTeachingLibrary(row)">{{ t('edit') }}</el-button> <el-button type="primary" link @click="editNinjaTeachingLibrary(row)">{{ t('edit') }}</el-button>
<el-button type="primary" link @click="deleteEvent(row.id, 21)">{{ t('delete') }}</el-button> <el-button type="primary" link @click="deleteEvent(row.id, 21)">{{ t('delete') }}</el-button>
<el-button type="primary" link @click="addBindingPersonnel(row)">{{ t('addBindingPersonnel') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -594,10 +600,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="t('operation')" fixed="right" min-width="120"> <el-table-column :label="t('operation')" fixed="right" min-width="180">
<template #default="{ row }"> <template #default="{ row }">
<el-button type="primary" link @click="editSecurityTeachingLibrary(row)">{{ t('edit') }}</el-button> <el-button type="primary" link @click="editSecurityTeachingLibrary(row)">{{ t('edit') }}</el-button>
<el-button type="primary" link @click="deleteEvent(row.id, 22)">{{ t('delete') }}</el-button> <el-button type="primary" link @click="deleteEvent(row.id, 22)">{{ t('delete') }}</el-button>
<el-button type="primary" link @click="addBindingPersonnel(row)">{{ t('addBindingPersonnel') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -613,6 +620,7 @@
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</el-card> </el-card>
<binding-personnel ref="BindingPersonnelDialog" @complete="loadLessonCourseTeachingList" />
</div> </div>
</template> </template>
@ -632,6 +640,7 @@ import EditNinja from '@/app/views/professional_skills/components/ninja-teaching
import EditSecurity from '@/app/views/professional_skills/components/security-teaching-edit.vue' import EditSecurity from '@/app/views/professional_skills/components/security-teaching-edit.vue'
import EditPhysical from '@/app/views/professional_skills/components/physical-teaching-edit.vue' import EditPhysical from '@/app/views/professional_skills/components/physical-teaching-edit.vue'
import { useRoute } from 'vue-router' import { useRoute } from 'vue-router'
import bindingPersonnel from '@/app/views/binding_personnel/binding_personnel.vue'
const route = useRoute() const route = useRoute()
const pageName = route.meta.title; const pageName = route.meta.title;
const active = 'CourseSyllabus' const active = 'CourseSyllabus'
@ -647,7 +656,7 @@ let lessonCourseTeachingTable = reactive({
"status":"", "status":"",
"create_time":[], "create_time":[],
"update_time":[], "update_time":[],
table_type: 16 "table_type": 16
} }
}) })
let JumpLessonLibraryTable = reactive({ let JumpLessonLibraryTable = reactive({
@ -661,7 +670,7 @@ let JumpLessonLibraryTable = reactive({
"status":"", "status":"",
"create_time":[], "create_time":[],
"update_time":[], "update_time":[],
table_type: 17 "table_type": 17
} }
}) })
let EnTeachingLibraryTable = reactive({ let EnTeachingLibraryTable = reactive({
@ -675,7 +684,7 @@ let EnTeachingLibraryTable = reactive({
"status":"", "status":"",
"create_time":[], "create_time":[],
"update_time":[], "update_time":[],
table_type: 18 "table_type": 18
} }
}) })
let BasketballTeachingLibraryTable = reactive({ let BasketballTeachingLibraryTable = reactive({
@ -689,7 +698,7 @@ let BasketballTeachingLibraryTable = reactive({
"status":"", "status":"",
"create_time":[], "create_time":[],
"update_time":[], "update_time":[],
table_type: 19 "table_type": 19
} }
}) })
let StrengTeachingLibraryTable = reactive({ let StrengTeachingLibraryTable = reactive({
@ -703,7 +712,7 @@ let StrengTeachingLibraryTable = reactive({
"status":"", "status":"",
"create_time":[], "create_time":[],
"update_time":[], "update_time":[],
table_type: 20 "table_type": 20
} }
}) })
let NinjaTeachingLibraryTable = reactive({ let NinjaTeachingLibraryTable = reactive({
@ -717,7 +726,7 @@ let NinjaTeachingLibraryTable = reactive({
"status":"", "status":"",
"create_time":[], "create_time":[],
"update_time":[], "update_time":[],
table_type: 21 "table_type": 21
} }
}) })
let SecurityTeachingLibraryTable = reactive({ let SecurityTeachingLibraryTable = reactive({
@ -731,7 +740,7 @@ let SecurityTeachingLibraryTable = reactive({
"status":"", "status":"",
"create_time":[], "create_time":[],
"update_time":[], "update_time":[],
table_type: 22 "table_type": 22
} }
}) })
@ -759,7 +768,12 @@ const editBasketballTeachingLibraryDialog: Record<string, any> | null = ref(null
const editStrengthenTeachingLibraryDialog: Record<string, any> | null = ref(null) const editStrengthenTeachingLibraryDialog: Record<string, any> | null = ref(null)
const editNinjaTeachingLibraryDialog: Record<string, any> | null = ref(null) const editNinjaTeachingLibraryDialog: Record<string, any> | null = ref(null)
const editSecurityTeachingLibraryDialog: Record<string, any> | null = ref(null) const editSecurityTeachingLibraryDialog: Record<string, any> | null = ref(null)
const BindingPersonnelDialog: Record<string, any> | null = ref(null)
const addBindingPersonnel = (row) => {
BindingPersonnelDialog.value.setFormData(row)
BindingPersonnelDialog.value.showDialog = true
}
/** /**
* 获取课程教学大纲列表 * 获取课程教学大纲列表
*/ */
@ -1072,116 +1086,74 @@ const resetForm = (formEl: FormInstance | undefined, type: number) => {
if (!formEl) return if (!formEl) return
formEl.resetFields() formEl.resetFields()
if (type === 16) { if (type === 16) {
lessonCourseTeachingTable = reactive({ lessonCourseTeachingTable.searchParam.title = ''
page: 1, lessonCourseTeachingTable.searchParam.status = ''
limit: 10, lessonCourseTeachingTable.searchParam.create_time = ''
total: 0, lessonCourseTeachingTable.searchParam.update_time = ''
loading: true, lessonCourseTeachingTable.page = 1
data: [], lessonCourseTeachingTable.limit = 10
searchParam: { lessonCourseTeachingTable.data = []
"title": "", lessonCourseTeachingTable.table_type = 16
"status": "",
"create_time": [],
"update_time": [],
table_type: 16
}
})
loadLessonCourseTeachingList() loadLessonCourseTeachingList()
} else if (type === 17) { } else if (type === 17) {
JumpLessonLibraryTable = reactive({ JumpLessonLibraryTable.searchParam.title = ''
page: 1, JumpLessonLibraryTable.searchParam.status = ''
limit: 10, JumpLessonLibraryTable.searchParam.create_time = ''
total: 0, JumpLessonLibraryTable.searchParam.update_time = ''
loading: true, JumpLessonLibraryTable.page = 1
data: [], JumpLessonLibraryTable.limit = 10
searchParam: { JumpLessonLibraryTable.data = []
"title": "", JumpLessonLibraryTable.table_type = 17
"status": "",
"create_time": [],
"update_time": [],
table_type: 17
}
})
loadJumpLessonLibraryList() loadJumpLessonLibraryList()
} else if (type === 18) { } else if (type === 18) {
EnTeachingLibraryTable = reactive({ EnTeachingLibraryTable.searchParam.title = ''
page: 1, EnTeachingLibraryTable.searchParam.status = ''
limit: 10, EnTeachingLibraryTable.searchParam.create_time = ''
total: 0, EnTeachingLibraryTable.searchParam.update_time = ''
loading: true, EnTeachingLibraryTable.page = 1
data: [], EnTeachingLibraryTable.limit = 10
searchParam: { EnTeachingLibraryTable.data = []
"title": "", EnTeachingLibraryTable.table_type = 18
"status": "",
"create_time": [],
"update_time": [],
table_type: 18
}
})
loadEnTeachingLibraryList() loadEnTeachingLibraryList()
} else if (type === 19) { } else if (type === 19) {
BasketballTeachingLibraryTable = reactive({ BasketballTeachingLibraryTable.searchParam.title = ''
page: 1, BasketballTeachingLibraryTable.searchParam.status = ''
limit: 10, BasketballTeachingLibraryTable.searchParam.create_time = ''
total: 0, BasketballTeachingLibraryTable.searchParam.update_time = ''
loading: true, BasketballTeachingLibraryTable.page = 1
data: [], BasketballTeachingLibraryTable.limit = 10
searchParam: { BasketballTeachingLibraryTable.data = []
"title": "", BasketballTeachingLibraryTable.table_type = 19
"status": "",
"create_time": [],
"update_time": [],
table_type: 19
}
})
loadBasketballTeachingLibraryList() loadBasketballTeachingLibraryList()
} else if (type === 20) { } else if (type === 20) {
StrengTeachingLibraryTable = reactive({ StrengTeachingLibraryTable.searchParam.title = ''
page: 1, StrengTeachingLibraryTable.searchParam.status = ''
limit: 10, StrengTeachingLibraryTable.searchParam.create_time = ''
total: 0, StrengTeachingLibraryTable.searchParam.update_time = ''
loading: true, StrengTeachingLibraryTable.page = 1
data: [], StrengTeachingLibraryTable.limit = 10
searchParam: { StrengTeachingLibraryTable.data = []
"title": "", StrengTeachingLibraryTable.table_type = 20
"status": "",
"create_time": [],
"update_time": [],
table_type: 20
}
})
loadStrengthenTeachingLibraryList() loadStrengthenTeachingLibraryList()
} else if (type === 21) { } else if (type === 21) {
NinjaTeachingLibraryTable = reactive({ NinjaTeachingLibraryTable.searchParam.title = ''
page: 1, NinjaTeachingLibraryTable.searchParam.status = ''
limit: 10, NinjaTeachingLibraryTable.searchParam.create_time = ''
total: 0, NinjaTeachingLibraryTable.searchParam.update_time = ''
loading: true, NinjaTeachingLibraryTable.page = 1
data: [], NinjaTeachingLibraryTable.limit = 10
searchParam: { NinjaTeachingLibraryTable.data = []
"title": "", NinjaTeachingLibraryTable.table_type = 21
"status": "",
"create_time": [],
"update_time": [],
table_type: 21
}
})
loadStrengthenTeachingLibraryList() loadStrengthenTeachingLibraryList()
} else if (type === 22) { } else if (type === 22) {
SecurityTeachingLibraryTable = reactive({ SecurityTeachingLibraryTable.searchParam.title = ''
page: 1, SecurityTeachingLibraryTable.searchParam.status = ''
limit: 10, SecurityTeachingLibraryTable.searchParam.create_time = ''
total: 0, SecurityTeachingLibraryTable.searchParam.update_time = ''
loading: true, SecurityTeachingLibraryTable.page = 1
data: [], SecurityTeachingLibraryTable.limit = 10
searchParam: { SecurityTeachingLibraryTable.data = []
"title": "", SecurityTeachingLibraryTable.table_type = 22
"status": "",
"create_time": [],
"update_time": [],
table_type: 22
}
})
loadStrengthenTeachingLibraryList() loadStrengthenTeachingLibraryList()
} }
} }

20
niucloud/app/adminapi/controller/lesson_course_teaching/LessonCourseTeaching.php

@ -688,6 +688,20 @@ class LessonCourseTeaching extends BaseAdminController
return success('EDIT_SUCCESS'); return success('EDIT_SUCCESS');
} }
public function setBindingModule(int $id){
$data = $this->request->params([
["user_permission",""],
["user_permission_name",""],
["table_type",0],
["id",0],
]);
$this->validate($data, 'app\validate\lesson_course_teaching\LessonCourseTeaching.add');
$id = (new LessonCourseTeachingService())->bindingModuleAdd($id, $data);
return success('ADD_SUCCESS', ['id' => $id]);
}
/** /**
@ -712,7 +726,11 @@ class LessonCourseTeaching extends BaseAdminController
public function getPersonnelDataAll(){ public function getPersonnelDataAll(){
return success(( new LessonCourseTeachingService())->getPersonnelDataAll()); $data = $this->request->params([
["name",""],
["phone",""]
]);
return success((new LessonCourseTeachingService())->getPersonnelDataAll($data));
} }
} }

2
niucloud/app/adminapi/route/lesson_course_teaching.php

@ -107,6 +107,8 @@ Route::group('lesson_course_teaching', function () {
Route::post('public_library', 'lesson_course_teaching.LessonCourseTeaching/publicAdd'); Route::post('public_library', 'lesson_course_teaching.LessonCourseTeaching/publicAdd');
Route::put('public_library/:id', 'lesson_course_teaching.LessonCourseTeaching/publicEdit'); Route::put('public_library/:id', 'lesson_course_teaching.LessonCourseTeaching/publicEdit');
Route::put('binding_module/:id', 'lesson_course_teaching.LessonCourseTeaching/setBindingModule');
//教研管理详情 //教研管理详情
Route::get('lesson_course_teaching/:id', 'lesson_course_teaching.LessonCourseTeaching/info'); Route::get('lesson_course_teaching/:id', 'lesson_course_teaching.LessonCourseTeaching/info');
//删除教研管理 //删除教研管理

22
niucloud/app/service/admin/lesson_course_teaching/LessonCourseTeachingService.php

@ -598,6 +598,11 @@ class LessonCourseTeachingService extends BaseAdminService
} }
public function bindingModuleAdd(int $id, array $data)
{
$this->model->where([['id', '=', $id]])->update($data);
return true;
}
/** /**
* 获取教研管理信息 * 获取教研管理信息
* @param int $id * @param int $id
@ -625,9 +630,22 @@ class LessonCourseTeachingService extends BaseAdminService
} }
public function getPersonnelDataAll(){ public function getPersonnelDataAll(array $where = []){
$personnelDataModel = new PersonnelData(); $personnelDataModel = new PersonnelData();
return $personnelDataModel->where('is_sys_user',1)->select()->toArray(); $field = 'id,name,gender,phone,status,status,sys_user_id,create_time,update_time';
$order = 'id desc';
$whereArr = [];
if (!empty($where['name'])) {
$whereArr[] = ['name','like',"'%'".$where['name']."'%'"];
}
if (!empty($where['phone'])) {
$whereArr[] = ['phone','like',"'%'".$where['phone']."'%'"];
}
$search_model = $personnelDataModel->where('is_sys_user', 1)->where($whereArr)->field($field)->order($order);
$list = $this->pageQuery($search_model);
return $list;
} }

Loading…
Cancel
Save