测试问题修复
This commit is contained in:
parent
b756033336
commit
3997ab3eaa
|
@ -68,9 +68,10 @@ export const updateSysScaleQuestion = (data: SysScaleQuestionForm) => {
|
||||||
* 删除量问题内容
|
* 删除量问题内容
|
||||||
* @param questionId
|
* @param questionId
|
||||||
*/
|
*/
|
||||||
export const delSysScaleQuestion = (questionId: string | number | Array<string | number>) => {
|
export const delSysScaleQuestion = (data: any) => {
|
||||||
return request({
|
return request({
|
||||||
url: '/scale/question/' + questionId,
|
url: '/scale/question',
|
||||||
method: 'delete'
|
method: 'delete',
|
||||||
|
data
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
@ -72,7 +72,7 @@
|
||||||
<el-table-column prop="deptName" label="班级" />
|
<el-table-column prop="deptName" label="班级" />
|
||||||
<el-table-column prop="status" label="状态">
|
<el-table-column prop="status" label="状态">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-tag :type="scope.row.status == 0 ? 'danger' : 'success'">{{ scope.row.status == 0 ? '未测' :
|
<el-tag :type="scope.row.status <= 0 ? 'danger' : 'success'">{{ scope.row.status <= 0 ? '未测' :
|
||||||
'已测' }}</el-tag>
|
'已测' }}</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
|
@ -37,10 +37,10 @@
|
||||||
<el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate()"
|
<el-button type="success" plain icon="Edit" :disabled="single" @click="handleUpdate()"
|
||||||
v-hasPermi="['scale:question:edit']">修改</el-button>
|
v-hasPermi="['scale:question:edit']">修改</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<!-- <el-col :span="1.5">
|
||||||
<el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete()"
|
<el-button type="danger" plain icon="Delete" :disabled="multiple" @click="handleDelete()"
|
||||||
v-hasPermi="['scale:question:remove']">删除</el-button>
|
v-hasPermi="['scale:question:remove']">删除</el-button>
|
||||||
</el-col>
|
</el-col> -->
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
<el-button type="warning" plain icon="Download" @click="handleExport"
|
<el-button type="warning" plain icon="Download" @click="handleExport"
|
||||||
v-hasPermi="['scale:question:export']">导出</el-button>
|
v-hasPermi="['scale:question:export']">导出</el-button>
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<el-table v-loading="loading" :data="SysScaleQuestionList" @selection-change="handleSelectionChange">
|
<el-table v-loading="loading" :data="SysScaleQuestionList" @selection-change="handleSelectionChange">
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<!-- <el-table-column type="selection" width="55" align="center" /> -->
|
||||||
<!-- <el-table-column label="测评量表标题" align="center" prop="scaleTitle" /> -->
|
<!-- <el-table-column label="测评量表标题" align="center" prop="scaleTitle" /> -->
|
||||||
<el-table-column label="问题序号" align="center" prop="questionOrder" />
|
<el-table-column label="问题序号" align="center" prop="questionOrder" />
|
||||||
<el-table-column label="问题内容" align="center" prop="questionContent" />
|
<el-table-column label="问题内容" align="center" prop="questionContent" />
|
||||||
|
@ -330,9 +330,8 @@ const submitForm = () => {
|
||||||
|
|
||||||
/** 删除按钮操作 */
|
/** 删除按钮操作 */
|
||||||
const handleDelete = async (row?: SysScaleQuestionVO) => {
|
const handleDelete = async (row?: SysScaleQuestionVO) => {
|
||||||
const _questionIds = row?.questionId || ids.value;
|
await proxy?.$modal.confirm('是否确认删除量问题内容编号为"' + row?.questionContent + '"的数据项?').finally(() => loading.value = false);
|
||||||
await proxy?.$modal.confirm('是否确认删除量问题内容编号为"' + _questionIds + '"的数据项?').finally(() => loading.value = false);
|
await delSysScaleQuestion({ questionId: row?.questionId, scaleId });
|
||||||
await delSysScaleQuestion(_questionIds);
|
|
||||||
proxy?.$modal.msgSuccess("删除成功");
|
proxy?.$modal.msgSuccess("删除成功");
|
||||||
await getList();
|
await getList();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue