【新增】试卷参数是否删除文件,docx4j验证word
This commit is contained in:
@@ -8,33 +8,7 @@
|
||||
:inline="true"
|
||||
label-width="110px"
|
||||
>
|
||||
<el-form-item label="Word节点名称" prop="name">
|
||||
<el-input
|
||||
v-model="queryParams.name"
|
||||
placeholder="请输入Word节点名称"
|
||||
clearable
|
||||
@keyup.enter="handleQuery"
|
||||
class="!w-240px"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="Word节点状态" prop="status">
|
||||
<el-select
|
||||
v-model="queryParams.status"
|
||||
placeholder="请选择Word节点状态"
|
||||
clearable
|
||||
class="!w-240px"
|
||||
>
|
||||
<el-option
|
||||
v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button>
|
||||
<el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
@@ -58,39 +32,29 @@
|
||||
:default-expand-all="isExpandAll"
|
||||
v-if="refreshTable"
|
||||
>
|
||||
<el-table-column prop="name" label="Word节点名称" />
|
||||
<el-table-column prop="nodeFunction" label="节点方法" />
|
||||
<el-table-column prop="toChinese" label="转中文" />
|
||||
<el-table-column prop="belongTo" label="归属" width="100">
|
||||
<template #default="scope">
|
||||
<dict-tag :type="DICT_TYPE.WORD_BELONG_TO" :value="scope.row.belongTo" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="type" label="类型" width="100">
|
||||
<el-table-column prop="name" label="名称" />
|
||||
<el-table-column prop="title" label="标签名称" />
|
||||
<el-table-column prop="valueList" label="值参数(多值判断#分隔)" />
|
||||
<!-- <el-table-column prop="isText" label="查询数据类型">
|
||||
<template #default="scope">
|
||||
<dict-tag :type="DICT_TYPE.WPS_WORD" :value="scope.row.type" />
|
||||
<dict-tag :type="DICT_TYPE.Word_ISTEXT" :value="scope.row.isText" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="isboo" label="值类型" width="100">
|
||||
<el-table-column prop="isTrue" label="返回数据类型">
|
||||
<template #default="scope">
|
||||
<dict-tag :type="DICT_TYPE.WORD_ISBOO" :value="scope.row.isboo" />
|
||||
<dict-tag :type="DICT_TYPE.Word_ISTRUE" :value="scope.row.isTrue" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="titleType" label="级别" width="100">
|
||||
<el-table-column prop="dataType" label="值转换类型">
|
||||
<template #default="scope">
|
||||
<dict-tag :type="DICT_TYPE.PPTX_TITLE_TYPE" :value="scope.row.titleType" />
|
||||
<dict-tag :type="DICT_TYPE.Word_DATATYPE" :value="scope.row.dataType" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="unit" label="数据类型" width="100">
|
||||
<el-table-column prop="isParameter" label="参数归属">
|
||||
<template #default="scope">
|
||||
<dict-tag :type="DICT_TYPE.WPS_UNIT" :value="scope.row.unit" />
|
||||
<dict-tag :type="DICT_TYPE.Word_ISPARAMETER" :value="scope.row.isParameter" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="status" label="状态" width="100">
|
||||
<template #default="scope">
|
||||
<dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column> -->
|
||||
<el-table-column label="操作" align="center" width="150">
|
||||
<template #default="scope">
|
||||
<el-button
|
||||
@@ -115,6 +79,7 @@
|
||||
<!-- 表单弹窗:添加/修改 -->
|
||||
<WordForm ref="formRef" @success="getList" />
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
|
||||
import { dateFormatter } from '@/utils/formatTime'
|
||||
@@ -144,7 +109,7 @@ const refreshTable = ref(true) // 重新渲染表格状态
|
||||
const getList = async () => {
|
||||
loading.value = true
|
||||
try {
|
||||
const data = await WordApi.getWordPage(queryParams)
|
||||
const data = await WordApi.getDocxPage(queryParams)
|
||||
list.value = handleTree(data)
|
||||
} finally {
|
||||
loading.value = false
|
||||
@@ -184,7 +149,7 @@ const handleDelete = async (id: number) => {
|
||||
// 删除的二次确认
|
||||
await message.delConfirm()
|
||||
// 发起删除
|
||||
await WordApi.deleteWord(id)
|
||||
await WordApi.deleteDocx(id)
|
||||
message.success(t('common.delSuccess'))
|
||||
// 刷新列表
|
||||
await getList()
|
||||
|
Reference in New Issue
Block a user