| | |
| | | title="选择资源" |
| | | width="600px" |
| | | :before-close="handleClose" |
| | | :close-on-press-escape="false" |
| | | :close-on-click-modal="false" |
| | | > |
| | | <div style="margin-bottom: 10px"> |
| | | <el-form> |
| | |
| | | <el-input style="width: 20%" v-model="data.queryParams.name "></el-input> |
| | | <el-button type="primary" style="margin-left: 30px" @click="getList">查询</el-button> |
| | | <el-button plain @click="reset">重置</el-button> |
| | | <el-button type="primary" @click="openResource">资源上传</el-button> |
| | | </el-form-item> |
| | | |
| | | </el-form> |
| | | </div> |
| | | <!-- 表格数据 --> |
| | |
| | | @pagination="getList" |
| | | /> |
| | | </el-dialog> |
| | | <resource-dialog ref="resourceRef" @getList="getList"></resource-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | | <script setup> |
| | | import {getCurrentInstance, onMounted, onUnmounted, reactive, ref, toRefs} from "vue"; |
| | | import {ElMessage, ElMessageBox} from "element-plus"; |
| | | import resourceDialog from '@/views/onlineEducation/courseManage/courseResource/componets/resourceDialog.vue' |
| | | import {checkResourceName, delResource, getResource} from "@/api/onlineEducation/courseResource"; |
| | | import {checkName} from "@/api/onlineEducation/company"; |
| | | const { proxy } = getCurrentInstance(); |
| | | const loading = ref(false); |
| | | const emit = defineEmits(["chooseRes"]); |
| | | const dialogRef = ref(); |
| | | const resourceRef = ref() |
| | | const data = reactive({ |
| | | queryParams: { |
| | | pageNum: 1, |
| | |
| | | loading.value = false |
| | | } |
| | | |
| | | const openResource = () => { |
| | | resourceRef.value.openDialog('add',{}) |
| | | } |
| | | |
| | | const choose = (value) => { |
| | | console.log("co",value) |
| | | emit('chooseRes',value) |