sc
This commit is contained in:
7
src/views/ExamVenue/Calendar/index.vue
Normal file
7
src/views/ExamVenue/Calendar/index.vue
Normal file
@@ -0,0 +1,7 @@
|
||||
<template>
|
||||
<div> 考试日历 </div>
|
||||
</template>
|
||||
|
||||
<script setup name="Calendar"></script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
13
src/views/ExamVenue/Room/index.vue
Normal file
13
src/views/ExamVenue/Room/index.vue
Normal file
@@ -0,0 +1,13 @@
|
||||
<template>
|
||||
<div>
|
||||
<div>无人机章节</div>
|
||||
<div>权限:</div>
|
||||
<div>新增:ExamVenue:Room:add</div>
|
||||
<div>修改:ExamVenue:Room:edit</div>
|
||||
<div>删除:ExamVenue:Room:delete</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup name="ExamVenue"></script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
11
src/views/JoinUs/Coach/index.vue
Normal file
11
src/views/JoinUs/Coach/index.vue
Normal file
@@ -0,0 +1,11 @@
|
||||
<template>
|
||||
<div>
|
||||
<div>教员入驻</div>
|
||||
<div>权限:</div>
|
||||
<div>审核:JoinUs:Coach:audit</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup name="Coach"></script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
11
src/views/JoinUs/Station/index.vue
Normal file
11
src/views/JoinUs/Station/index.vue
Normal file
@@ -0,0 +1,11 @@
|
||||
<template>
|
||||
<div>
|
||||
<div>机构入驻</div>
|
||||
<div>权限:</div>
|
||||
<div>审核:JoinUs:Station:audit</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup name="Station"></script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
@@ -55,10 +55,8 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="handleQuery" v-hasPermi="['question:database:search']">
|
||||
搜索
|
||||
</el-button>
|
||||
<el-button type="primary" @click="handleAdd" v-hasPermi="['question:database:add']">
|
||||
<el-button type="primary" @click="handleQuery"> 搜索 </el-button>
|
||||
<el-button type="primary" @click="handleAdd" v-hasPermi="['Question:UAV:add']">
|
||||
新增
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
@@ -114,7 +112,7 @@
|
||||
type="primary"
|
||||
link
|
||||
@click="handleEdit(scope.row)"
|
||||
v-hasPermi="['question:database:edit']"
|
||||
v-hasPermi="['Question:UAVVip:edit']"
|
||||
>
|
||||
修改
|
||||
</el-button>
|
||||
@@ -122,7 +120,7 @@
|
||||
type="primary"
|
||||
link
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['question:database:remove']"
|
||||
v-hasPermi="['Question:UAVVip:delete']"
|
||||
>
|
||||
删除
|
||||
</el-button>
|
||||
@@ -220,6 +218,7 @@ function getList() {
|
||||
}
|
||||
|
||||
function handleQuery() {
|
||||
queryParams.value.pageNo = 1
|
||||
getList()
|
||||
}
|
||||
|
||||
|
||||
243
src/views/Question/UAVChapter/index.vue
Normal file
243
src/views/Question/UAVChapter/index.vue
Normal file
@@ -0,0 +1,243 @@
|
||||
<template>
|
||||
<div>
|
||||
<!-- 查询条件 -->
|
||||
<el-form ref="queryParamsRef" :model="queryParams" inline label-width="0" @submit.prevent>
|
||||
<el-form-item>
|
||||
<el-input
|
||||
v-model="queryParams.chapterName"
|
||||
placeholder="请输入章节名称"
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="handleQuery"> 搜索 </el-button>
|
||||
<el-button type="primary" @click="handleAdd" v-hasPermi="['Question:UAVChapter:add']">
|
||||
新增
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="tableList"
|
||||
highlight-current-row
|
||||
max-height="calc(100vh - 320px)"
|
||||
>
|
||||
<el-table-column type="index" width="55" align="center" />
|
||||
<el-table-column label="章节名称" prop="chapterName" />
|
||||
<el-table-column label="排序" prop="sort" />
|
||||
<el-table-column label="创建时间" prop="createTime" />
|
||||
<el-table-column label="创建人" prop="creator" />
|
||||
<el-table-column label="最近修改时间" prop="updateTime" />
|
||||
<el-table-column label="修改人" prop="updater" />
|
||||
|
||||
<el-table-column label="操作" align="center" width="140">
|
||||
<template #default="scope">
|
||||
<el-button
|
||||
type="primary"
|
||||
link
|
||||
@click="handleEdit(scope.row)"
|
||||
v-hasPermi="['Question:UAVChapter:edit']"
|
||||
>
|
||||
修改
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
link
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['Question:UAVChapter:delete']"
|
||||
>
|
||||
删除
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
style="margin-bottom: 0"
|
||||
v-show="total > 0"
|
||||
:total="total"
|
||||
v-model:page="queryParams.pageNo"
|
||||
v-model:limit="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<Dialog v-model="showDialog" :title="dialogTitle" style="width: 880px">
|
||||
<el-form ref="dialogFormRef" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="章节名称" prop="chapterName">
|
||||
<el-input v-model="form.chapterName" placeholder="请输入章节名称" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="排序" prop="sort">
|
||||
<el-input v-model="form.sort" placeholder="请输入排序" type="number" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-form-item label="知识总结" prop="remark">
|
||||
<Editor v-model="form.remark" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="showDialog = false">取 消</el-button>
|
||||
</template>
|
||||
</Dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup name="UAVChapter">
|
||||
import Editor from '@/components/Editor/src/Editor.vue'
|
||||
|
||||
const message = useMessage()
|
||||
|
||||
const loading = ref(false)
|
||||
const total = ref(0)
|
||||
const tableList = ref([])
|
||||
const queryParams = ref({
|
||||
chapterName: '',
|
||||
pageNo: 1,
|
||||
pageSize: 100
|
||||
})
|
||||
|
||||
onMounted(() => {
|
||||
handleQuery()
|
||||
})
|
||||
|
||||
function getList() {
|
||||
loading.value = true
|
||||
// 查询无人机章节列表
|
||||
tableList.value = [
|
||||
{
|
||||
chapterId: '1',
|
||||
chapterName: '概述',
|
||||
sort: 1,
|
||||
createTime: '2022-01-01',
|
||||
updateTime: '2022-01-01',
|
||||
creator: 'admin',
|
||||
updater: 'admin'
|
||||
},
|
||||
{
|
||||
chapterId: '2',
|
||||
chapterName: '无人机基础知识',
|
||||
sort: 2,
|
||||
createTime: '2022-01-01',
|
||||
updateTime: '2022-01-01',
|
||||
creator: 'admin',
|
||||
updater: 'admin'
|
||||
},
|
||||
{
|
||||
chapterId: '3',
|
||||
chapterName: '飞行原理',
|
||||
sort: 3,
|
||||
createTime: '2022-01-01',
|
||||
updateTime: '2022-01-01',
|
||||
creator: 'admin',
|
||||
updater: 'admin'
|
||||
},
|
||||
{
|
||||
chapterId: '4',
|
||||
chapterName: '飞行技术',
|
||||
sort: 4,
|
||||
createTime: '2022-01-01',
|
||||
updateTime: '2022-01-01',
|
||||
creator: 'admin',
|
||||
updater: 'admin'
|
||||
},
|
||||
{
|
||||
chapterId: '5',
|
||||
chapterName: '飞行安全',
|
||||
sort: 11,
|
||||
createTime: '2022-01-01',
|
||||
updateTime: '2022-01-01',
|
||||
creator: 'admin',
|
||||
updater: 'admin'
|
||||
},
|
||||
{
|
||||
chapterId: '6',
|
||||
chapterName: '飞行技能',
|
||||
sort: 12,
|
||||
createTime: '2022-01-01',
|
||||
updateTime: '2022-01-01',
|
||||
creator: 'admin',
|
||||
updater: 'admin'
|
||||
}
|
||||
]
|
||||
loading.value = false
|
||||
total.value = 0
|
||||
// searchQuestion(queryParams.value).then((response) => {
|
||||
// tableList.value = response.list
|
||||
// total.value = response.total
|
||||
// loading.value = false
|
||||
// })
|
||||
}
|
||||
|
||||
function handleQuery() {
|
||||
queryParams.value.pageNo = 1
|
||||
getList()
|
||||
}
|
||||
|
||||
const form = ref({})
|
||||
const showDialog = ref(false)
|
||||
const rules = {
|
||||
chapterName: [{ required: true, message: '请输入章节名称', trigger: 'blur' }],
|
||||
sort: [{ required: true, message: '请输入排序', trigger: 'blur' }]
|
||||
}
|
||||
|
||||
const dialogTitle = ref('新增章节')
|
||||
const dialogFormRef = ref()
|
||||
function handleAdd() {
|
||||
showDialog.value = true
|
||||
dialogTitle.value = '新增章节'
|
||||
resetForm()
|
||||
}
|
||||
|
||||
function handleEdit(row) {
|
||||
showDialog.value = true
|
||||
resetForm()
|
||||
dialogTitle.value = '修改章节'
|
||||
form.value = row
|
||||
}
|
||||
|
||||
function resetForm() {
|
||||
form.value = {}
|
||||
if (dialogFormRef.value) {
|
||||
dialogFormRef.value.resetFields()
|
||||
}
|
||||
}
|
||||
|
||||
function handleDelete(row) {
|
||||
message
|
||||
.confirm('是否确认删除该章节?')
|
||||
.then(function () {
|
||||
console.log(row)
|
||||
|
||||
// deleteQuestion(row.questionId).then(() => {
|
||||
// getList()
|
||||
message.success('删除成功')
|
||||
// })
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err)
|
||||
})
|
||||
}
|
||||
|
||||
const submitForm = async () => {
|
||||
if (!dialogFormRef.value) return
|
||||
const valid = await dialogFormRef.value.validate()
|
||||
if (!valid) return
|
||||
|
||||
if (form.value.chapterId) {
|
||||
message.success('修改成功')
|
||||
getList()
|
||||
showDialog.value = false
|
||||
} else {
|
||||
message.success('新增成功')
|
||||
showDialog.value = false
|
||||
getList()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
11
src/views/UAVClue/CluePool/index.vue
Normal file
11
src/views/UAVClue/CluePool/index.vue
Normal file
@@ -0,0 +1,11 @@
|
||||
<template>
|
||||
<div>
|
||||
<div>线索池</div>
|
||||
<div>权限:</div>
|
||||
<div>修改:UAVClue:CluePool:edit</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup name="CluePool"></script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
14
src/views/UAVClue/StudyRecord/index.vue
Normal file
14
src/views/UAVClue/StudyRecord/index.vue
Normal file
@@ -0,0 +1,14 @@
|
||||
<template>
|
||||
<div>
|
||||
<div>学习记录</div>
|
||||
<div>权限:</div>
|
||||
<div>做题记录:UAVClue:StudyRecord:practice</div>
|
||||
<div>模考记录:UAVClue:StudyRecord:exam</div>
|
||||
<div>错题记录:UAVClue:StudyRecord:wrong</div>
|
||||
<div>收藏记录:UAVClue:StudyRecord:collect</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup name="StudyRecord"></script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
Reference in New Issue
Block a user