【删除】 删除无用代码
This commit is contained in:
@@ -408,7 +408,7 @@ let xlsxPointsInfosList: (typeof xlsxPoints)[] = []
|
||||
const removePoint = (index: number) => {
|
||||
list.value.splice(index, 1)
|
||||
}
|
||||
function fileTypeFormatter(row, column, cellValue) {
|
||||
function fileTypeFormatter(cellValue) {
|
||||
if (cellValue === '0') return '素材文件(上传ZIP)'
|
||||
if (cellValue === '1') return '考试文件'
|
||||
if (cellValue === '2') return '结果文件'
|
||||
@@ -448,7 +448,7 @@ const handleCheckChange = (data: Tree, checked: boolean, indeterminate: boolean)
|
||||
examName: '',
|
||||
examCode: ''
|
||||
}
|
||||
if (data.functions != null && data.functions != "") {
|
||||
if (data.functions != null && data.functions != '') {
|
||||
xlsxPoints.firstName = chineseName.value
|
||||
xlsxPoints.index = textIndex.value
|
||||
xlsxPoints.function = data.functions
|
||||
@@ -474,16 +474,11 @@ const getXlsxDataInfo = async () => {
|
||||
const addXlsxForm = async () => {
|
||||
dialogFormVisibleXlsxInfo.value = true
|
||||
}
|
||||
|
||||
const queryParams = reactive({
|
||||
nodeFunction: undefined
|
||||
})
|
||||
const chineseName = ref('')
|
||||
const textIndex = ref()
|
||||
|
||||
// 打开
|
||||
const handleNodelClick = async (row: any) => {
|
||||
console.log(row)
|
||||
// 获取名称
|
||||
chineseName.value = '【' + row.name + '】'
|
||||
textIndex.value = row.index
|
||||
@@ -582,8 +577,6 @@ const deleteUrl = (index: number) => {
|
||||
formData.value.fileUploads[index].fileName = ''
|
||||
}
|
||||
// 媒体文件
|
||||
const multipleMediumSelection = ref([] as any)
|
||||
const multipleDocumentSelection = ref([] as any)
|
||||
const handleUploadSuccess = ({ url, fileType }) => {
|
||||
const index = documentList.value.findIndex((item) => item.fileType === fileType)
|
||||
if (index !== -1) {
|
||||
@@ -653,6 +646,8 @@ const submitForm = async () => {
|
||||
/** 重置表单 */
|
||||
const resetForm = () => {
|
||||
formData.value = {
|
||||
pointNamesVo: '',
|
||||
chapteridDictTextVo: '',
|
||||
content: '',
|
||||
specialtyName: '',
|
||||
courseName: '',
|
||||
@@ -663,7 +658,7 @@ const resetForm = () => {
|
||||
quLevel: 0,
|
||||
pointNames: '',
|
||||
subjectName: '',
|
||||
status: '0',
|
||||
status: ' ',
|
||||
resourceValue: '',
|
||||
answerList: [
|
||||
{
|
||||
|
Reference in New Issue
Block a user