2025-05-29 15:39:50 +08:00
|
|
|
|
<template>
|
|
|
|
|
<div class="edit-dialog">
|
|
|
|
|
<Dialog v-model="dialogVisible" :title="dialogTitle" width="85%" top="10vh">
|
|
|
|
|
<el-scrollbar>
|
|
|
|
|
<div class="main">
|
|
|
|
|
<el-form
|
|
|
|
|
ref="formRef"
|
|
|
|
|
v-loading="formLoading"
|
|
|
|
|
:model="formData"
|
|
|
|
|
:rules="formRules"
|
|
|
|
|
label-width="80px"
|
|
|
|
|
>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="专业" prop="specialtyName">
|
|
|
|
|
<el-input v-model="formData.specialtyName" placeholder="请输入专业" disabled />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
2025-08-06 14:52:17 +08:00
|
|
|
|
|
2025-05-29 15:39:50 +08:00
|
|
|
|
<el-col :span="12">
|
2025-06-12 11:23:43 +08:00
|
|
|
|
<el-form-item label="章节名称" prop="chapteridDictText">
|
2025-06-23 14:24:37 +08:00
|
|
|
|
<el-input
|
|
|
|
|
v-model="formData.chapteridDictTextVo"
|
|
|
|
|
placeholder="请输入章节名称"
|
|
|
|
|
disabled
|
|
|
|
|
/>
|
2025-05-29 15:39:50 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="课程" prop="courseName">
|
|
|
|
|
<el-input v-model="formData.courseName" placeholder="请输入课程" disabled />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="题型难度" prop="quLevel">
|
2025-06-23 14:24:37 +08:00
|
|
|
|
<el-select v-model="formData.quLevel" placeholder="请选择题型难度" clearable>
|
2025-06-04 14:47:07 +08:00
|
|
|
|
<el-option
|
2025-06-12 11:23:43 +08:00
|
|
|
|
v-for="dict in getIntDictOptions(DICT_TYPE.EXAM_QUE_DIFF)"
|
2025-06-04 14:47:07 +08:00
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
/>
|
2025-05-29 15:39:50 +08:00
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="题型" prop="subjectName">
|
|
|
|
|
<el-input v-model="formData.subjectName" placeholder="请输入题型" disabled />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="12">
|
2025-06-12 11:23:43 +08:00
|
|
|
|
<el-form-item label="知识点" prop="pointNames">
|
2025-05-29 15:39:50 +08:00
|
|
|
|
<el-input
|
2025-06-12 11:23:43 +08:00
|
|
|
|
v-model="formData.pointNamesVo"
|
|
|
|
|
placeholder="请选择知识点"
|
|
|
|
|
readonly
|
|
|
|
|
@click="openPoints()"
|
2025-05-29 15:39:50 +08:00
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
2025-06-12 11:23:43 +08:00
|
|
|
|
|
|
|
|
|
<el-dialog v-model="dialogVisiblePoints" title="选择知识点" width="30%">
|
|
|
|
|
<el-tree
|
|
|
|
|
ref="treeRef"
|
|
|
|
|
:data="deptList"
|
|
|
|
|
node-key="id"
|
|
|
|
|
:props="{ label: 'name', children: 'children' }"
|
|
|
|
|
highlight-current
|
|
|
|
|
default-expand-all
|
|
|
|
|
@node-click="handleNodeClick"
|
|
|
|
|
/>
|
|
|
|
|
</el-dialog>
|
2025-05-29 15:39:50 +08:00
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
<el-form-item label="启用状态" prop="status">
|
|
|
|
|
<el-radio-group v-model="formData.status">
|
2025-06-03 16:22:03 +08:00
|
|
|
|
<el-radio :label="'0'">启用</el-radio>
|
|
|
|
|
<el-radio :label="'1'">禁用</el-radio>
|
2025-05-29 15:39:50 +08:00
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
2025-06-12 11:23:43 +08:00
|
|
|
|
<!-- <el-col :span="12">
|
2025-06-04 14:47:07 +08:00
|
|
|
|
<el-form-item label="审核状态" prop="audit">
|
|
|
|
|
<el-select v-model="formData.audit" placeholder="请选择审核状态">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in getStrDictOptions(DICT_TYPE.QUESTION_AUDIT)"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
2025-06-12 11:23:43 +08:00
|
|
|
|
</el-col> -->
|
2025-05-29 15:39:50 +08:00
|
|
|
|
</el-row>
|
|
|
|
|
</el-form>
|
|
|
|
|
<div class="edit-bottom">
|
|
|
|
|
<div class="edit-left bottom-common">
|
|
|
|
|
<el-tabs v-model="leftActiveName" class="demo-tabs">
|
|
|
|
|
<el-tab-pane label="试题描述" name="desc">
|
|
|
|
|
<div class="block">
|
|
|
|
|
<Editor v-model="formData.content" height="150px" />
|
|
|
|
|
</div>
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
</el-tabs>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="edit-right bottom-common">
|
|
|
|
|
<el-tabs v-model="rightActiveName" class="demo-tabs" @tab-click="rightHandleClick">
|
|
|
|
|
<el-tab-pane label="试题解析" name="analysis">
|
|
|
|
|
<div class="block">
|
|
|
|
|
<Editor v-model="formData.analysis" height="150px" />
|
|
|
|
|
</div>
|
|
|
|
|
</el-tab-pane>
|
2025-06-04 14:48:17 +08:00
|
|
|
|
<el-tab-pane name="answer">
|
|
|
|
|
<template #label>
|
|
|
|
|
<div class="custom-tabs-label">
|
|
|
|
|
<p>试题考点</p>
|
|
|
|
|
<el-dropdown>
|
|
|
|
|
<span class="el-dropdown-link" @click.stop="false">
|
|
|
|
|
<div class="setting_icon"></div>
|
|
|
|
|
</span>
|
|
|
|
|
<template #dropdown>
|
|
|
|
|
<el-dropdown-menu>
|
|
|
|
|
<el-dropdown-item>
|
2025-08-06 14:52:17 +08:00
|
|
|
|
<el-button @click="addPptxForm">添加</el-button>
|
2025-06-04 14:48:17 +08:00
|
|
|
|
</el-dropdown-item>
|
|
|
|
|
</el-dropdown-menu>
|
|
|
|
|
</template>
|
|
|
|
|
</el-dropdown>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
2025-05-29 15:39:50 +08:00
|
|
|
|
<!-- <el-button type="danger">删除</el-button> -->
|
|
|
|
|
<div class="block">
|
|
|
|
|
<el-table
|
|
|
|
|
v-loading="loading"
|
|
|
|
|
:data="list"
|
|
|
|
|
@selection-change="handleSelectionChange"
|
|
|
|
|
>
|
|
|
|
|
<!-- <el-table-column type="selection" width="55" /> -->
|
2025-06-23 14:24:37 +08:00
|
|
|
|
<el-table-column label="考点" align="center" prop="contentIn" width="360px" />
|
|
|
|
|
<el-table-column label="权值" align="center" prop="scoreRate" width="100px" />
|
2025-06-04 14:47:07 +08:00
|
|
|
|
<el-table-column label="操作" align="center" width="100px">
|
|
|
|
|
<template #default="scope">
|
|
|
|
|
<el-button type="primary" link @click="handleDelete(scope.row)">
|
|
|
|
|
<Icon icon="ep:delete" />删除
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
2025-05-29 15:39:50 +08:00
|
|
|
|
</el-table>
|
|
|
|
|
</div>
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
<!-- <el-tab-pane name="medium">
|
|
|
|
|
<template #label>
|
|
|
|
|
<div class="custom-tabs-label">
|
|
|
|
|
<p>媒体文件</p>
|
|
|
|
|
<el-dropdown>
|
|
|
|
|
<span class="el-dropdown-link" @click.stop="false">
|
|
|
|
|
<div class="setting_icon"></div>
|
|
|
|
|
</span>
|
|
|
|
|
<template #dropdown>
|
|
|
|
|
<el-dropdown-menu>
|
|
|
|
|
<el-dropdown-item>
|
|
|
|
|
<el-upload
|
|
|
|
|
v-model:file-list="fileList"
|
|
|
|
|
class="upload-demo"
|
|
|
|
|
action="https://run.mocky.io/v3/9d059bf9-4660-45f2-925d-ce80ad6c4d15"
|
|
|
|
|
>
|
|
|
|
|
<el-button>导入</el-button>
|
|
|
|
|
</el-upload>
|
|
|
|
|
</el-dropdown-item>
|
|
|
|
|
<el-dropdown-item>导出</el-dropdown-item>
|
|
|
|
|
<el-dropdown-item>播放</el-dropdown-item>
|
|
|
|
|
<el-dropdown-item>编辑</el-dropdown-item>
|
|
|
|
|
<el-dropdown-item>删除选中</el-dropdown-item>
|
|
|
|
|
</el-dropdown-menu>
|
|
|
|
|
</template>
|
|
|
|
|
</el-dropdown>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<div class="block">
|
|
|
|
|
<el-table
|
|
|
|
|
:data="mediumList"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
@selection-change="handleMediumSelectionChange"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column type="index" width="50" />
|
|
|
|
|
<el-table-column type="selection" width="55" />
|
|
|
|
|
<el-table-column prop="type" label="媒体类型" width="80" />
|
|
|
|
|
<el-table-column prop="title" label="标题" />
|
|
|
|
|
<el-table-column prop="displayIndex" label="显示序号" />
|
|
|
|
|
<el-table-column prop="size" label="大小" />
|
|
|
|
|
</el-table>
|
|
|
|
|
</div>
|
|
|
|
|
</el-tab-pane> -->
|
|
|
|
|
<el-tab-pane name="annex">
|
|
|
|
|
<template #label>
|
|
|
|
|
<div class="custom-tabs-label">
|
|
|
|
|
<p>试题附件</p>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
<!-- 提示 -->
|
|
|
|
|
<el-alert type="warning" show-icon :closable="false">
|
|
|
|
|
<template #default>
|
|
|
|
|
<span>提示:文件名称可默认不设置</span>
|
|
|
|
|
</template>
|
|
|
|
|
</el-alert>
|
|
|
|
|
<div class="block">
|
|
|
|
|
<el-table :data="documentList" style="width: 100%">
|
|
|
|
|
<el-table-column type="index" label="#" width="50" />
|
|
|
|
|
<el-table-column label="文件名称" width="250">
|
|
|
|
|
<template #default="scope">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="scope.row.fileName"
|
|
|
|
|
size="small"
|
|
|
|
|
placeholder="请输入文件名称(未输入自动命名)"
|
|
|
|
|
/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="fileType"
|
|
|
|
|
label="类型"
|
|
|
|
|
:formatter="fileTypeFormatter"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column prop="url" label="地址" width="200">
|
|
|
|
|
<template #default="{ row }">
|
|
|
|
|
<div
|
|
|
|
|
style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis"
|
|
|
|
|
:title="row.url"
|
|
|
|
|
>
|
|
|
|
|
{{ row.url }}
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="操作" width="150">
|
|
|
|
|
<template #default="scope">
|
2025-06-04 14:47:07 +08:00
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
plain
|
|
|
|
|
@click="openForm(scope.row.fileType)"
|
|
|
|
|
size="small"
|
|
|
|
|
>
|
2025-05-29 15:39:50 +08:00
|
|
|
|
<Icon icon="ep:upload" class="mr-5px" /> 上传
|
|
|
|
|
</el-button>
|
2025-06-04 14:47:07 +08:00
|
|
|
|
<el-button
|
|
|
|
|
type="success"
|
|
|
|
|
plain
|
|
|
|
|
@click="downloadFile(scope.row.url)"
|
|
|
|
|
size="small"
|
|
|
|
|
>
|
|
|
|
|
<Icon icon="ep:download" class="mr-5px" /> 下载
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
type="danger"
|
|
|
|
|
plain
|
|
|
|
|
@click="deleteUrl(scope.$index)"
|
|
|
|
|
size="small"
|
|
|
|
|
><Icon icon="ep:download" class="mr-5px" />删除
|
|
|
|
|
</el-button>
|
2025-05-29 15:39:50 +08:00
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
</div>
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
</el-tabs>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</el-scrollbar>
|
|
|
|
|
<template #footer>
|
|
|
|
|
<el-button :disabled="formLoading" type="primary" @click="submitForm">确 定</el-button>
|
|
|
|
|
<el-button @click="dialogVisible = false">取 消</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</Dialog>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 表单弹窗:添加/修改 -->
|
|
|
|
|
<FileForm ref="FileRef" @success="handleUploadSuccess" />
|
2025-07-07 21:30:32 +08:00
|
|
|
|
|
|
|
|
|
<el-dialog v-model="dialogFormVisiblePptxInfo" title="考点设置" width="70%">
|
2025-08-06 14:52:17 +08:00
|
|
|
|
<input type="file" id="slideFile" accept=".pptx" />
|
|
|
|
|
<button @click="getSlideDataInfo">文件解析</button>
|
2025-07-07 21:30:32 +08:00
|
|
|
|
<div style="height: 400px; overflow: hidden; display: flex; gap: 16px">
|
|
|
|
|
<div style="flex: 0.5; overflow: auto; border: 1px solid #eee; padding: 8px">
|
|
|
|
|
<h3>考点</h3>
|
|
|
|
|
<el-tree
|
|
|
|
|
style="max-width: 600px"
|
|
|
|
|
:data="pptxPointsList"
|
|
|
|
|
:props="defaultProps"
|
|
|
|
|
:expand-on-click-node="false"
|
|
|
|
|
@node-click="handleNodelClick"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div style="flex: 1.5; overflow: auto; border: 1px solid #eee; padding: 8px">
|
2025-08-06 14:52:17 +08:00
|
|
|
|
<h3>考点详情</h3>
|
2025-07-07 21:30:32 +08:00
|
|
|
|
<el-table :data="list" style="width: 100%">
|
|
|
|
|
<el-table-column prop="contentIn" label="值" width="500px" />
|
|
|
|
|
|
2025-08-06 14:52:17 +08:00
|
|
|
|
<el-table-column prop="scoreRate" label="权值" width="100">
|
2025-07-07 21:30:32 +08:00
|
|
|
|
<template #default="{ row }">
|
|
|
|
|
<el-input v-model="row.scoreRate" size="small" style="width: 40px" />
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="操作" width="100">
|
|
|
|
|
<template #default="{ row }">
|
|
|
|
|
<span
|
|
|
|
|
@click="removePoint(row)"
|
|
|
|
|
style="cursor: pointer; font-weight: bold; font-size: 18px"
|
|
|
|
|
title="点击删除"
|
|
|
|
|
>—</span
|
|
|
|
|
>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2025-08-06 14:52:17 +08:00
|
|
|
|
<!-- <el-skeleton :rows="5" animated v-if="pptxPointsList.length < 0 && isLoading" />
|
2025-07-07 21:30:32 +08:00
|
|
|
|
-->
|
2025-05-29 15:39:50 +08:00
|
|
|
|
</el-dialog>
|
2025-08-18 15:20:11 +08:00
|
|
|
|
<el-dialog v-model="dialogFormVisiblePptxInfos" :title="titles" width="300px" class="fixed-dialog-height">
|
|
|
|
|
<div class="dialog-scroll-content">
|
|
|
|
|
<el-tree
|
|
|
|
|
style="max-width: 600px"
|
|
|
|
|
:data="pptxPointsInfoList"
|
|
|
|
|
:props="defaultProps"
|
|
|
|
|
:expand-on-click-node="false"
|
|
|
|
|
show-checkbox
|
|
|
|
|
@check-change="handleCheckChange"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
2025-05-29 15:39:50 +08:00
|
|
|
|
<template #footer>
|
|
|
|
|
<el-button type="primary" @click="submitPptxPoints">确 定</el-button>
|
|
|
|
|
<el-button @click="dialogFormVisiblePptxInfos = false">取 消</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
</template>
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import * as QuestionApi from '@/api/paper/question'
|
2025-08-06 14:52:17 +08:00
|
|
|
|
import * as SpecialtyApi from '@/api/points'
|
2025-05-29 15:39:50 +08:00
|
|
|
|
import * as PptxApi from '@/api/wps/pptx'
|
2025-08-06 14:52:17 +08:00
|
|
|
|
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
|
2025-05-29 15:39:50 +08:00
|
|
|
|
import { defaultProps, handleTree } from '@/utils/tree'
|
2025-08-06 14:52:17 +08:00
|
|
|
|
import { FormRules } from 'element-plus'
|
2025-05-29 15:39:50 +08:00
|
|
|
|
import { cloneDeep } from 'lodash-es'
|
2025-08-06 14:52:17 +08:00
|
|
|
|
import FileForm from './components/FileForm.vue'
|
|
|
|
|
|
2025-05-29 15:39:50 +08:00
|
|
|
|
defineOptions({ name: 'WpsPptxFrom' })
|
|
|
|
|
const pptxPointsList = ref<Tree[]>([]) // 树形结构
|
|
|
|
|
const pptxPointsInfoList = ref<Tree[]>([]) // 树形结构
|
|
|
|
|
|
2025-08-14 15:52:18 +08:00
|
|
|
|
const list = ref<any[]>([]) // 列表的数
|
2025-05-29 15:39:50 +08:00
|
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
|
const message = useMessage() // 消息弹窗
|
|
|
|
|
const loading = ref(false) // 列表的加载中
|
|
|
|
|
const dialogVisible = ref(false) // 弹窗的是否展示
|
|
|
|
|
const dialogTitle = ref('') // 弹窗的标题
|
|
|
|
|
const formLoading = ref(false) // 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用
|
|
|
|
|
const formType = ref('') // 表单的类型:create - 新增;update - 修改
|
|
|
|
|
const formData = ref({
|
2025-06-23 14:24:37 +08:00
|
|
|
|
pointNamesVo: '',
|
|
|
|
|
chapteridDictTextVo: '',
|
2025-05-29 15:39:50 +08:00
|
|
|
|
content: '',
|
|
|
|
|
specialtyName: '',
|
|
|
|
|
courseName: '',
|
|
|
|
|
quBankName: '',
|
|
|
|
|
required: '',
|
|
|
|
|
chapteridDictText: '',
|
|
|
|
|
analysis: '',
|
2025-06-12 11:23:43 +08:00
|
|
|
|
quLevel: 0,
|
2025-05-29 15:39:50 +08:00
|
|
|
|
pointNames: '',
|
|
|
|
|
subjectName: '',
|
|
|
|
|
status: ' ',
|
|
|
|
|
resourceValue: '',
|
|
|
|
|
answerList: [
|
|
|
|
|
{
|
|
|
|
|
image: '',
|
|
|
|
|
content: '',
|
|
|
|
|
contentIn: '',
|
|
|
|
|
scoreRate: ''
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
fileUploads: [
|
|
|
|
|
{
|
|
|
|
|
quId: '',
|
|
|
|
|
url: '',
|
|
|
|
|
fileType: '0',
|
|
|
|
|
fileName: ''
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
quId: '',
|
|
|
|
|
url: '',
|
|
|
|
|
fileType: '1',
|
|
|
|
|
fileName: ''
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
quId: '',
|
|
|
|
|
url: '',
|
|
|
|
|
fileType: '2',
|
|
|
|
|
fileName: ''
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
})
|
2025-06-23 14:24:37 +08:00
|
|
|
|
|
2025-08-14 15:52:18 +08:00
|
|
|
|
// 定义 pptxPoints 类型
|
|
|
|
|
interface PptxPoints {
|
|
|
|
|
firstName: string;
|
2025-08-16 16:36:15 +08:00
|
|
|
|
slideIndex: string;
|
2025-08-14 15:52:18 +08:00
|
|
|
|
function: string;
|
|
|
|
|
examName: string;
|
|
|
|
|
examCode: string;
|
|
|
|
|
method?: string;
|
|
|
|
|
}
|
|
|
|
|
let pptxPointsInfosList: PptxPoints[] = []
|
2025-08-17 20:24:55 +08:00
|
|
|
|
const removePoint = (row) => {
|
2025-08-14 16:45:54 +08:00
|
|
|
|
// list.value.splice(index, 1)
|
|
|
|
|
for (let i = 0; i < list.value.length; i++) {
|
|
|
|
|
if (row.content == list.value[i].content) {
|
|
|
|
|
list.value.splice(i, 1)
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-07-07 21:30:32 +08:00
|
|
|
|
}
|
2025-08-14 15:52:18 +08:00
|
|
|
|
function fileTypeFormatter(_row: any, _column: any, cellValue: any) {
|
2025-05-29 15:39:50 +08:00
|
|
|
|
if (cellValue === '0') return '素材文件(上传ZIP)'
|
|
|
|
|
if (cellValue === '1') return '考试文件'
|
|
|
|
|
if (cellValue === '2') return '结果文件'
|
|
|
|
|
return '未知类型'
|
|
|
|
|
}
|
2025-08-14 15:52:18 +08:00
|
|
|
|
const documentList = ref<any[]>([
|
2025-05-29 15:39:50 +08:00
|
|
|
|
{
|
|
|
|
|
quId: '',
|
|
|
|
|
url: '',
|
|
|
|
|
fileType: '0',
|
|
|
|
|
fileName: ''
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
quId: '',
|
|
|
|
|
url: '',
|
|
|
|
|
fileType: '1',
|
2025-08-17 20:24:55 +08:00
|
|
|
|
fileName: '文档'
|
2025-05-29 15:39:50 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
quId: '',
|
|
|
|
|
url: '',
|
|
|
|
|
fileType: '2',
|
|
|
|
|
fileName: ''
|
|
|
|
|
}
|
|
|
|
|
])
|
|
|
|
|
const dialogFormVisiblePptxInfo = ref(false)
|
|
|
|
|
const dialogFormVisiblePptxInfos = ref(false)
|
|
|
|
|
const titles = ref('')
|
2025-08-14 15:52:18 +08:00
|
|
|
|
// const filePath = ref('') // 未使用,注释
|
2025-05-29 15:39:50 +08:00
|
|
|
|
|
2025-08-14 15:52:18 +08:00
|
|
|
|
// Tree 类型扩展,或用 any 替代
|
|
|
|
|
const handleCheckChange = (data: any, _checked: boolean, _indeterminate: boolean) => {
|
2025-08-06 14:52:17 +08:00
|
|
|
|
console.log(data)
|
2025-08-14 15:52:18 +08:00
|
|
|
|
const pptxPoints: PptxPoints = {
|
2025-08-06 14:52:17 +08:00
|
|
|
|
firstName: '',
|
2025-08-16 16:36:15 +08:00
|
|
|
|
slideIndex: '',
|
2025-08-06 14:52:17 +08:00
|
|
|
|
function: '',
|
|
|
|
|
examName: '',
|
2025-08-14 15:52:18 +08:00
|
|
|
|
examCode: '',
|
|
|
|
|
method: ''
|
2025-06-04 14:47:07 +08:00
|
|
|
|
}
|
2025-08-13 11:06:20 +08:00
|
|
|
|
if (data.functions != null && data.functions != '') {
|
2025-08-06 14:52:17 +08:00
|
|
|
|
pptxPoints.firstName = chineseName.value
|
2025-08-16 16:36:15 +08:00
|
|
|
|
pptxPoints.slideIndex = textIndex.value
|
2025-08-06 14:52:17 +08:00
|
|
|
|
pptxPoints.function = data.functions
|
|
|
|
|
pptxPoints.examName = data.chineseName
|
2025-08-18 15:20:11 +08:00
|
|
|
|
pptxPoints.examCode = 'ExamCodeTODO'
|
2025-08-06 14:52:17 +08:00
|
|
|
|
pptxPoints.method = data.parameter
|
|
|
|
|
pptxPointsInfosList.push(cloneDeep(pptxPoints))
|
2025-05-29 15:39:50 +08:00
|
|
|
|
}
|
2025-08-06 14:52:17 +08:00
|
|
|
|
}
|
|
|
|
|
const file = ref()
|
|
|
|
|
// 获取slide文件,并使用文件流进行解析
|
|
|
|
|
const getSlideDataInfo = async () => {
|
|
|
|
|
const fileInput = document.getElementById('slideFile') as HTMLInputElement
|
|
|
|
|
if (fileInput != null) {
|
2025-08-14 15:52:18 +08:00
|
|
|
|
if (fileInput.files && fileInput.files[0]) {
|
|
|
|
|
file.value = fileInput.files[0]
|
|
|
|
|
} else {
|
|
|
|
|
return
|
|
|
|
|
}
|
2025-08-06 14:52:17 +08:00
|
|
|
|
const res = await PptxApi.getSlideDataInfo({ file: file.value })
|
2025-06-05 16:21:57 +08:00
|
|
|
|
pptxPointsList.value = []
|
2025-08-06 14:52:17 +08:00
|
|
|
|
pptxPointsList.value.push(...handleTree(res.data))
|
2025-06-05 16:21:57 +08:00
|
|
|
|
}
|
2025-05-29 15:39:50 +08:00
|
|
|
|
}
|
2025-08-06 14:52:17 +08:00
|
|
|
|
|
|
|
|
|
// 打开考点窗口
|
|
|
|
|
const addPptxForm = async () => {
|
|
|
|
|
dialogFormVisiblePptxInfo.value = true
|
2025-05-29 15:39:50 +08:00
|
|
|
|
}
|
2025-08-06 14:52:17 +08:00
|
|
|
|
|
2025-08-14 15:52:18 +08:00
|
|
|
|
// 已移除未使用的 queryParams
|
2025-05-29 15:39:50 +08:00
|
|
|
|
const chineseName = ref('')
|
2025-08-06 14:52:17 +08:00
|
|
|
|
const textIndex = ref()
|
2025-06-23 14:24:37 +08:00
|
|
|
|
|
2025-08-06 14:52:17 +08:00
|
|
|
|
// 打开
|
2025-05-29 15:39:50 +08:00
|
|
|
|
const handleNodelClick = async (row: any) => {
|
2025-07-07 21:30:32 +08:00
|
|
|
|
console.log(row)
|
2025-08-18 15:20:11 +08:00
|
|
|
|
if (!row.click) {
|
|
|
|
|
return
|
|
|
|
|
}
|
2025-08-06 14:52:17 +08:00
|
|
|
|
// 获取名称
|
|
|
|
|
chineseName.value = '【' + row.name + '】'
|
|
|
|
|
textIndex.value = row.index
|
|
|
|
|
const res = await PptxApi.getSlideByNameList(row.type)
|
2025-05-29 15:39:50 +08:00
|
|
|
|
pptxPointsInfoList.value = []
|
|
|
|
|
pptxPointsInfoList.value.push(...handleTree(res))
|
|
|
|
|
dialogFormVisiblePptxInfos.value = true
|
|
|
|
|
}
|
2025-08-06 14:52:17 +08:00
|
|
|
|
const handleDelete = (row) => {
|
|
|
|
|
console.log(row)
|
|
|
|
|
for (let i = 0; i < list.value.length; i++) {
|
2025-08-14 15:52:18 +08:00
|
|
|
|
if ((row as any).content == (list.value[i] as any).content) {
|
2025-08-06 14:52:17 +08:00
|
|
|
|
list.value.splice(i, 1)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-05-29 15:39:50 +08:00
|
|
|
|
const submitPptxPoints = async () => {
|
2025-08-06 14:52:17 +08:00
|
|
|
|
console.log(pptxPointsInfosList)
|
|
|
|
|
const res = await PptxApi.getSlideMaster({
|
|
|
|
|
data: JSON.stringify(pptxPointsInfosList),
|
|
|
|
|
file: file.value
|
|
|
|
|
})
|
2025-05-29 15:39:50 +08:00
|
|
|
|
pptxPointsInfosList = []
|
2025-07-07 21:30:32 +08:00
|
|
|
|
console.log(res)
|
2025-08-06 14:52:17 +08:00
|
|
|
|
for (let i = 0; i < res.data.length; i++) {
|
|
|
|
|
var indexFlag = false
|
|
|
|
|
for (let x = 0; x < list.value.length; x++) {
|
2025-08-14 16:45:54 +08:00
|
|
|
|
list.value[x].scoreRate='1'
|
2025-08-06 14:52:17 +08:00
|
|
|
|
if (res.data[i].content == list.value[x].content) {
|
|
|
|
|
// 如果存在相同的数据话 不进入
|
|
|
|
|
indexFlag = true
|
2025-06-04 14:47:07 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2025-08-06 14:52:17 +08:00
|
|
|
|
if (!indexFlag) {
|
2025-08-14 15:52:18 +08:00
|
|
|
|
(res.data[i] as any).sort = list.value.length + 1
|
2025-08-06 14:52:17 +08:00
|
|
|
|
list.value.push(res.data[i])
|
|
|
|
|
}
|
2025-05-29 15:39:50 +08:00
|
|
|
|
}
|
2025-08-06 14:52:17 +08:00
|
|
|
|
// pptxPoints.value = {
|
|
|
|
|
// name: '',
|
|
|
|
|
// englishName: '',
|
|
|
|
|
// filePath: '',
|
|
|
|
|
// type: '',
|
|
|
|
|
// belongTo: '',
|
|
|
|
|
// isboo: '',
|
|
|
|
|
// function: '',
|
|
|
|
|
// unit: '',
|
|
|
|
|
// isExam: ''
|
|
|
|
|
// }
|
|
|
|
|
// pptxPointsInfosList = []
|
|
|
|
|
// for (let i = 0; i < res.length; i++) {
|
|
|
|
|
// var indexFlag = false
|
|
|
|
|
// for (let x = 0; x < list.value.length; x++) {
|
|
|
|
|
// if (res[i].content == list.value[x].content) {
|
|
|
|
|
// // 如果存在相同的数据话 不进入
|
|
|
|
|
// indexFlag = true
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// if (!indexFlag) {
|
|
|
|
|
// res[i].sort = list.value.length + 1
|
|
|
|
|
// list.value.push(res[i])
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// // dialogFormVisiblePptxInfo.value = false
|
2025-05-29 15:39:50 +08:00
|
|
|
|
dialogFormVisiblePptxInfos.value = false
|
2025-07-07 21:30:32 +08:00
|
|
|
|
// pptxPointsList.value = []
|
2025-05-29 15:39:50 +08:00
|
|
|
|
}
|
|
|
|
|
const formRules = reactive<FormRules>({
|
|
|
|
|
status: [{ required: true, message: '启用状态必填', trigger: 'blur' }]
|
|
|
|
|
})
|
|
|
|
|
const formRef = ref() // 表单 Ref
|
|
|
|
|
// 左侧试题描述
|
|
|
|
|
const leftActiveName = ref('desc')
|
|
|
|
|
// 右侧tab
|
|
|
|
|
const rightActiveName = ref('annex')
|
2025-08-14 15:52:18 +08:00
|
|
|
|
const rightHandleClick = (tab) => {
|
2025-05-29 15:39:50 +08:00
|
|
|
|
rightActiveName.value = tab.paneName.value
|
|
|
|
|
}
|
2025-08-06 14:52:17 +08:00
|
|
|
|
|
2025-05-29 15:39:50 +08:00
|
|
|
|
const selections = ref([])
|
|
|
|
|
const handleSelectionChange = (rows) => {
|
|
|
|
|
selections.value = rows
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** 添加/修改操作 */
|
|
|
|
|
const FileRef = ref()
|
|
|
|
|
const openForm = (type: string) => {
|
|
|
|
|
FileRef.value.open(type)
|
|
|
|
|
}
|
2025-08-06 14:52:17 +08:00
|
|
|
|
const downloadFile = async (url: string) => {
|
|
|
|
|
if (!url) {
|
|
|
|
|
ElMessage.warning('暂无可下载的文件地址')
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
const response = await fetch(url)
|
|
|
|
|
if (!response.ok) {
|
|
|
|
|
throw new Error('下载失败')
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const blob = await response.blob()
|
|
|
|
|
const blobUrl = window.URL.createObjectURL(blob)
|
|
|
|
|
|
|
|
|
|
// 提取文件名
|
|
|
|
|
const filename = url.substring(url.lastIndexOf('/') + 1).split('?')[0]
|
|
|
|
|
|
|
|
|
|
// 创建 a 标签并下载
|
|
|
|
|
const a = document.createElement('a')
|
|
|
|
|
a.href = blobUrl
|
|
|
|
|
a.download = filename
|
|
|
|
|
a.style.display = 'none'
|
|
|
|
|
document.body.appendChild(a)
|
|
|
|
|
a.click()
|
|
|
|
|
a.remove()
|
2025-05-29 15:39:50 +08:00
|
|
|
|
|
2025-08-06 14:52:17 +08:00
|
|
|
|
window.URL.revokeObjectURL(blobUrl)
|
|
|
|
|
} catch (err: any) {
|
|
|
|
|
ElMessage.error(`下载失败:${err.message}`)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
const deleteUrl = (index: number) => {
|
|
|
|
|
formData.value.fileUploads[index].url = ''
|
|
|
|
|
formData.value.fileUploads[index].fileName = ''
|
|
|
|
|
}
|
2025-05-29 15:39:50 +08:00
|
|
|
|
// 媒体文件
|
2025-08-14 15:52:18 +08:00
|
|
|
|
// 已移除未使用的 mediumList、handleMediumSelectionChange、handleDocumentSelectionChange 相关声明
|
2025-05-29 15:39:50 +08:00
|
|
|
|
const handleUploadSuccess = ({ url, fileType }) => {
|
|
|
|
|
const index = documentList.value.findIndex((item) => item.fileType === fileType)
|
|
|
|
|
if (index !== -1) {
|
|
|
|
|
documentList.value[index].url = url
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/** 打开弹窗 */
|
|
|
|
|
const open = async (queryParams: any, type: string, id?: number) => {
|
|
|
|
|
dialogVisible.value = true
|
|
|
|
|
dialogTitle.value = t('action.' + type)
|
|
|
|
|
formType.value = type
|
|
|
|
|
|
|
|
|
|
// 修改时,设置数据
|
|
|
|
|
if (id) {
|
|
|
|
|
formLoading.value = true
|
|
|
|
|
try {
|
|
|
|
|
const res = await QuestionApi.getQuestion(id)
|
|
|
|
|
formData.value = res
|
2025-08-06 14:52:17 +08:00
|
|
|
|
console.log(formData.value)
|
2025-08-14 15:52:18 +08:00
|
|
|
|
list.value = formData.value.answerList as any[]
|
|
|
|
|
documentList.value = res.fileUploads as any[]
|
2025-05-29 15:39:50 +08:00
|
|
|
|
} finally {
|
|
|
|
|
formLoading.value = false
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
resetForm()
|
|
|
|
|
formData.value.specialtyName = queryParams.specialtyName
|
|
|
|
|
formData.value.courseName = queryParams.courseName
|
|
|
|
|
formData.value.subjectName = queryParams.subjectName
|
2025-08-06 14:52:17 +08:00
|
|
|
|
formData.value.pointNames = queryParams.pointNamesVo
|
|
|
|
|
formData.value.pointNamesVo = queryParams.pointNames
|
|
|
|
|
formData.value.chapteridDictText = queryParams.chapteridDictTextVo
|
|
|
|
|
formData.value.chapteridDictTextVo = queryParams.chapteridDictText
|
2025-05-29 15:39:50 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
defineExpose({ open }) // 提供 open 方法,用于打开弹窗
|
2025-08-06 14:52:17 +08:00
|
|
|
|
// 转换函数:将大写字母 A-Z 映射为 0-25
|
2025-08-14 15:52:18 +08:00
|
|
|
|
// radio 未被模板或逻辑使用,已移除
|
|
|
|
|
// mappedNumber 未被模板或逻辑使用,已移除
|
2025-05-29 15:39:50 +08:00
|
|
|
|
/** 提交表单 */
|
|
|
|
|
const emit = defineEmits(['success']) // 定义 success 事件,用于操作成功后的回调
|
|
|
|
|
const submitForm = async () => {
|
2025-08-14 15:52:18 +08:00
|
|
|
|
formData.value.answerList = list.value as any[]
|
|
|
|
|
formData.value.fileUploads = documentList.value as any[]
|
2025-08-06 14:52:17 +08:00
|
|
|
|
const values = Object.values(formData)
|
|
|
|
|
console.log(values)
|
2025-05-29 15:39:50 +08:00
|
|
|
|
// 校验表单
|
|
|
|
|
if (!formRef) return
|
|
|
|
|
const valid = await formRef.value.validate()
|
|
|
|
|
if (!valid) return
|
|
|
|
|
// 提交请求
|
|
|
|
|
formLoading.value = true
|
|
|
|
|
try {
|
|
|
|
|
const data = formData.value as unknown
|
|
|
|
|
if (formType.value === 'create') {
|
|
|
|
|
await QuestionApi.addQuestion(data)
|
|
|
|
|
message.success(t('common.createSuccess'))
|
|
|
|
|
} else {
|
|
|
|
|
await QuestionApi.editQuestion(data)
|
|
|
|
|
message.success(t('common.updateSuccess'))
|
|
|
|
|
}
|
|
|
|
|
dialogVisible.value = false
|
|
|
|
|
// 发送操作成功的事件
|
|
|
|
|
emit('success')
|
|
|
|
|
} finally {
|
|
|
|
|
formLoading.value = false
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-06-04 14:47:07 +08:00
|
|
|
|
|
2025-05-29 15:39:50 +08:00
|
|
|
|
/** 重置表单 */
|
|
|
|
|
const resetForm = () => {
|
|
|
|
|
formData.value = {
|
2025-08-13 11:06:20 +08:00
|
|
|
|
pointNamesVo: '',
|
|
|
|
|
chapteridDictTextVo: '',
|
2025-05-29 15:39:50 +08:00
|
|
|
|
content: '',
|
|
|
|
|
specialtyName: '',
|
|
|
|
|
courseName: '',
|
|
|
|
|
quBankName: '',
|
|
|
|
|
required: '',
|
|
|
|
|
chapteridDictText: '',
|
|
|
|
|
analysis: '',
|
2025-06-12 11:23:43 +08:00
|
|
|
|
quLevel: 0,
|
2025-05-29 15:39:50 +08:00
|
|
|
|
pointNames: '',
|
|
|
|
|
subjectName: '',
|
2025-08-13 11:06:20 +08:00
|
|
|
|
status: ' ',
|
2025-05-29 15:39:50 +08:00
|
|
|
|
resourceValue: '',
|
|
|
|
|
answerList: [
|
|
|
|
|
{
|
|
|
|
|
image: '',
|
|
|
|
|
content: '',
|
|
|
|
|
contentIn: '',
|
|
|
|
|
scoreRate: ''
|
|
|
|
|
}
|
2025-08-14 15:52:18 +08:00
|
|
|
|
] as any[],
|
2025-05-29 15:39:50 +08:00
|
|
|
|
fileUploads: [
|
|
|
|
|
{
|
|
|
|
|
quId: '',
|
|
|
|
|
url: '',
|
|
|
|
|
fileType: '0',
|
|
|
|
|
fileName: ''
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
quId: '',
|
|
|
|
|
url: '',
|
|
|
|
|
fileType: '1',
|
|
|
|
|
fileName: ''
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
quId: '',
|
|
|
|
|
url: '',
|
|
|
|
|
fileType: '2',
|
|
|
|
|
fileName: ''
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
documentList.value = [
|
|
|
|
|
{
|
|
|
|
|
quId: '',
|
|
|
|
|
url: '',
|
|
|
|
|
fileType: '0',
|
|
|
|
|
fileName: ''
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
quId: '',
|
|
|
|
|
url: '',
|
|
|
|
|
fileType: '1',
|
2025-08-17 20:24:55 +08:00
|
|
|
|
fileName: '文档'
|
2025-05-29 15:39:50 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
quId: '',
|
|
|
|
|
url: '',
|
|
|
|
|
fileType: '2',
|
|
|
|
|
fileName: ''
|
|
|
|
|
}
|
|
|
|
|
]
|
2025-06-04 14:47:07 +08:00
|
|
|
|
list.value = []
|
2025-05-29 15:39:50 +08:00
|
|
|
|
formRef.value?.resetFields()
|
|
|
|
|
}
|
2025-06-12 11:23:43 +08:00
|
|
|
|
|
|
|
|
|
const dialogVisiblePoints = ref(false)
|
|
|
|
|
|
|
|
|
|
// 添加层级信息
|
|
|
|
|
const handleTreeWithLevel = (list, level = 1) => {
|
2025-06-23 14:24:37 +08:00
|
|
|
|
return list.map((item) => {
|
2025-06-12 11:23:43 +08:00
|
|
|
|
const node = { ...item, level }
|
|
|
|
|
if (item.children && item.children.length > 0) {
|
|
|
|
|
node.children = handleTreeWithLevel(item.children, level + 1)
|
|
|
|
|
}
|
|
|
|
|
return node
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 只允许点击第三级节点
|
|
|
|
|
const treeRef = ref() // 引用 el-tree
|
2025-08-14 15:52:18 +08:00
|
|
|
|
const handleNodeClick = (data) => {
|
2025-06-12 11:23:43 +08:00
|
|
|
|
if (data.level === 3) {
|
|
|
|
|
formData.value.pointNames = data.id
|
|
|
|
|
formData.value.pointNamesVo = data.name
|
|
|
|
|
|
|
|
|
|
// 获取父节点(章节名称)
|
|
|
|
|
const currentNode = treeRef.value.getNode(data)
|
|
|
|
|
const parentNode = currentNode.parent
|
|
|
|
|
if (parentNode && parentNode.data) {
|
|
|
|
|
formData.value.chapteridDictTextVo = parentNode.data.name
|
|
|
|
|
formData.value.chapteridDictText = parentNode.data.id
|
|
|
|
|
} else {
|
|
|
|
|
formData.value.chapteridDictText = ''
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dialogVisiblePoints.value = false
|
|
|
|
|
} else {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const deptList = ref<Tree[]>([]) // 树形结构
|
|
|
|
|
/** 获得部门树 */
|
|
|
|
|
const getTree = async () => {
|
|
|
|
|
const res = await SpecialtyApi.listPoints()
|
2025-06-23 14:24:37 +08:00
|
|
|
|
const tree = handleTree(res)
|
|
|
|
|
deptList.value = []
|
|
|
|
|
deptList.value = handleTreeWithLevel(tree)
|
2025-06-12 11:23:43 +08:00
|
|
|
|
}
|
|
|
|
|
const openPoints = async () => {
|
2025-06-23 14:24:37 +08:00
|
|
|
|
await getTree()
|
|
|
|
|
dialogVisiblePoints.value = true
|
2025-06-12 11:23:43 +08:00
|
|
|
|
}
|
2025-05-29 15:39:50 +08:00
|
|
|
|
</script>
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.edit-dialog {
|
|
|
|
|
:deep(.el-dialog) {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
.el-dialog__header {
|
|
|
|
|
border-bottom: 1px solid #ededed;
|
|
|
|
|
}
|
|
|
|
|
.el-dialog__footer {
|
|
|
|
|
border-top: 1px solid #ededed;
|
|
|
|
|
}
|
|
|
|
|
.el-dialog__body {
|
|
|
|
|
flex: 1;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
.main {
|
|
|
|
|
.el-form {
|
|
|
|
|
padding: 10px;
|
|
|
|
|
.el-row {
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
}
|
|
|
|
|
.el-form-item {
|
|
|
|
|
width: 100%;
|
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.edit-bottom {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
padding-bottom: 10px;
|
|
|
|
|
.bottom-common {
|
|
|
|
|
width: calc(50% - 10px);
|
|
|
|
|
.el-tabs {
|
|
|
|
|
height: 100%;
|
|
|
|
|
.el-tabs__content {
|
|
|
|
|
flex: 1;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
.block {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 200px;
|
|
|
|
|
overflow: auto;
|
|
|
|
|
}
|
|
|
|
|
.answer {
|
|
|
|
|
.tip {
|
|
|
|
|
color: #8a6d3b;
|
|
|
|
|
background-color: #fcf8e3;
|
|
|
|
|
border-color: #faebcc;
|
|
|
|
|
padding: 10px 20px;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
> p {
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.el-radio-group {
|
|
|
|
|
width: 100%;
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
font-size: 0;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
.options {
|
|
|
|
|
width: 100%;
|
|
|
|
|
margin-top: 15px;
|
|
|
|
|
.content {
|
|
|
|
|
display: flex;
|
|
|
|
|
.text {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 70px;
|
|
|
|
|
border: 1px solid #ededed;
|
|
|
|
|
.el-textarea__inner {
|
|
|
|
|
resize: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.more-btn {
|
|
|
|
|
margin-top: 8px;
|
|
|
|
|
background-color: #ffffff;
|
|
|
|
|
border-color: #007bff;
|
|
|
|
|
color: #007bff;
|
|
|
|
|
width: auto;
|
|
|
|
|
height: auto;
|
|
|
|
|
padding: 10px 10px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.custom-tabs-label {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
.setting_icon {
|
|
|
|
|
width: 16px;
|
|
|
|
|
height: 16px;
|
|
|
|
|
background: url('@/assets/icon/setting_blue.png') no-repeat center;
|
|
|
|
|
background-size: 100%;
|
|
|
|
|
margin-left: 3px;
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.is-active {
|
|
|
|
|
.custom-tabs-label {
|
|
|
|
|
.setting_icon {
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
:deep(.ele-pro-table) {
|
|
|
|
|
flex: 1;
|
|
|
|
|
margin-top: 10px;
|
|
|
|
|
.el-table--fit {
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:deep(.tox-tinymce) {
|
|
|
|
|
.tox-statusbar {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:deep(.el-table) {
|
|
|
|
|
.el-table__header-wrapper {
|
|
|
|
|
.el-table__header {
|
|
|
|
|
thead {
|
|
|
|
|
tr {
|
|
|
|
|
th {
|
|
|
|
|
background: #ebebeb;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-08-18 15:20:11 +08:00
|
|
|
|
/* 固定 el-dialog 高度,内容超出可滚动 */
|
2025-08-18 17:51:03 +08:00
|
|
|
|
.fixed-dialog-height :deep(.el-dialog) {
|
2025-08-18 15:20:11 +08:00
|
|
|
|
height: 500px;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
2025-08-18 17:51:03 +08:00
|
|
|
|
:deep(.fixed-dialog-height .el-dialog__body) {
|
2025-08-18 15:20:11 +08:00
|
|
|
|
flex: 1;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
padding: 0 20px 20px 20px;
|
|
|
|
|
}
|
|
|
|
|
.dialog-scroll-content {
|
|
|
|
|
height: 400px;
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
}
|
2025-07-07 21:30:32 +08:00
|
|
|
|
</style>
|