|
|
|
@ -157,7 +157,7 @@ |
|
|
|
style="color: #dab708" |
|
|
|
@click="handleSubmitAudit(scope.row.id)" |
|
|
|
v-hasPermi="['vet:training:submit']" |
|
|
|
v-if="scope.row.status === '0' && (scope.row.auditStatus === '3' || scope.row.auditStatus === '0')" |
|
|
|
v-if="scope.row.status === '0' && scope.row.auditStatus === '0'" |
|
|
|
class="info-btn submit-btn" |
|
|
|
>提交审核</el-button> |
|
|
|
|
|
|
|
@ -219,6 +219,19 @@ |
|
|
|
class="info-btn cancel-btn" |
|
|
|
>取消审核</el-button> |
|
|
|
|
|
|
|
<el-button |
|
|
|
size="mini" |
|
|
|
type="text" |
|
|
|
icon="el-icon-s-promotion" |
|
|
|
style="color: #c108af" |
|
|
|
@click="handleResubmitAudit(scope.row)" |
|
|
|
class="info-btn resubmit-btn" |
|
|
|
v-hasPermi="['vet:training:submit']" |
|
|
|
v-if="scope.row.status === '0' && scope.row.auditStatus === '3'" |
|
|
|
> |
|
|
|
重新提交 |
|
|
|
</el-button> |
|
|
|
|
|
|
|
<!-- 删除按钮 --> |
|
|
|
<el-button |
|
|
|
size="mini" |
|
|
|
@ -379,7 +392,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { listTraining, getTraining, delTraining, addTraining, updateTraining, uploadVideo } from "@/api/vet/training" |
|
|
|
import { listTraining, getTraining, delTraining, addTraining, updateTraining, uploadVideo, resubmitAudit} from "@/api/vet/training" |
|
|
|
import { |
|
|
|
submitForAudit, |
|
|
|
cancelAudit, |
|
|
|
@ -1007,6 +1020,34 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
// handleResubmitAudit重新提交审核 |
|
|
|
handleResubmitAudit(row) { |
|
|
|
const id = row.id || this.ids[0]; |
|
|
|
if (!id) { |
|
|
|
this.$modal.msgWarning('请选择需要重新提交审核的视频'); |
|
|
|
return; |
|
|
|
} |
|
|
|
this.$confirm('是否确认重新提交审核?', '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(async () => { |
|
|
|
try { |
|
|
|
const response = await resubmitAudit(id); |
|
|
|
if (response.code === 200) { |
|
|
|
this.$modal.msgSuccess("重新提交审核成功"); |
|
|
|
this.getList(); |
|
|
|
} else { |
|
|
|
this.$modal.msgError(response.msg || "重新提交审核失败"); |
|
|
|
} |
|
|
|
} catch (error) { |
|
|
|
console.error('重新提交审核失败:', error); |
|
|
|
this.$modal.msgError('重新提交审核失败:' + (error.message || '网络异常')); |
|
|
|
} |
|
|
|
}).catch(() => { |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
/** ============ 其他方法 ============ */ |
|
|
|
/** 搜索按钮操作 */ |
|
|
|
handleQuery() { |
|
|
|
@ -1196,6 +1237,11 @@ export default { |
|
|
|
transform: translateY(-1px); |
|
|
|
} |
|
|
|
|
|
|
|
.resubmit-btn:hover { |
|
|
|
background-color: rgb(248, 232, 250); |
|
|
|
transform: translateY(-1px); |
|
|
|
} |
|
|
|
|
|
|
|
// 新增/修改的弹窗 |
|
|
|
::v-deep .el-dialog { |
|
|
|
border-radius: 12px; |
|
|
|
|