修改审核说明bug

This commit is contained in:
axlrose2333 2023-04-11 18:17:31 +08:00
parent f55f4fd73f
commit 976d1af19a

View File

@ -201,8 +201,9 @@ async function enterVerifyDialog() { // 审核提交
const status = transferStateFromVerify(verifyForm.value.is_pass) const status = transferStateFromVerify(verifyForm.value.is_pass)
console.log(verifyForm.value) console.log(verifyForm.value)
const res = await api.verifyCourse({ const res = await api.verifyCourse({
course_id:verifyCourse.value .course_id, course_id:verifyCourse.value.course_id,
status status,
desc:verifyForm.value.desc
}) })
if(res.code === 0) { if(res.code === 0) {
ElMessage({ ElMessage({
@ -348,10 +349,10 @@ async function enterVerifyDialog() { // 审核提交
<!-- 审核窗口--> <!-- 审核窗口-->
<el-dialog v-model="verifyVisible" :before-close="closeVerifyVisibleDialog" title="审核课程"> <el-dialog v-model="verifyVisible" :before-close="closeVerifyVisibleDialog" title="审核课程">
<el-form :model="verifyForm" label-width="80px"> <el-form :model="verifyForm" label-width="80px">
<el-form-item label="是否通过" prop="is_free"> <el-form-item label="是否通过" prop="is_pass">
<el-switch v-model="verifyForm.is_pass" active-text="通过" inactive-text="拒绝" :active-value="1" :inactive-value="-1" /> <el-switch v-model="verifyForm.is_pass" active-text="通过" inactive-text="拒绝" :active-value="1" :inactive-value="-1" />
</el-form-item> </el-form-item>
<el-form-item label="审核说明" prop="is_free"> <el-form-item label="审核说明" prop="desc">
<!-- <el-switch v-model="verifyForm.is_pass" active-text="通过" inactive-text="拒绝" :active-value="1" :inactive-value="-1" />--> <!-- <el-switch v-model="verifyForm.is_pass" active-text="通过" inactive-text="拒绝" :active-value="1" :inactive-value="-1" />-->
<el-input type="textarea" :autosize="{ minRows: 2, maxRows: 4 }" v-model="verifyForm.desc" autocomplete="off" /> <el-input type="textarea" :autosize="{ minRows: 2, maxRows: 4 }" v-model="verifyForm.desc" autocomplete="off" />
</el-form-item> </el-form-item>