This commit is contained in:
lcw
2025-09-25 10:37:22 +08:00
parent 83b69c4032
commit 5aebf4e12f
5 changed files with 30 additions and 11 deletions

View File

@ -12,8 +12,8 @@
</FormMessage>
</div>
<div class="flex just-center mt10" v-if="title == '详情'">
<el-button type="primary" @click="submit">通过</el-button>
<el-button type="danger" @click="submit">不通过</el-button>
<el-button type="primary" @click="submit('01')">通过</el-button>
<el-button type="danger" @click="submit('02')">不通过</el-button>
</div>
</div>
</template>
@ -22,7 +22,7 @@
import { qcckPost , qcckGet} from "@/api/qcckApi.js";
import FormMessage from "@/components/aboutTable/FormMessage.vue";
import { ref, reactive, defineEmits, getCurrentInstance } from 'vue';
import {baxxNjryEdit} from "@/api/pxzx.js";
import {baxxNjryEdit,baxxNjryNjryNjsh} from "@/api/pxzx.js";
const emit = defineEmits(["refresh"]);
const props = defineProps({
dict: {
@ -90,7 +90,16 @@ const save = () => {
// })
});
}
const submit = (val) => {
baxxNjryNjryNjsh({
id: listQuery.value.id,
njzt: val,
}).then(res => {
proxy.$message.success('操作成功');
emit("refresh");
close();
})
}
const close = () => {
dialogForm.value = false;

View File

@ -36,7 +36,7 @@ const FormRef = ref();
const listQuery = ref({});
const formList = reactive([
[
{ label: "培训日期", prop: "pxrq", type: "input" },
{ label: "培训日期", prop: "pxrq", type: "date" },
{ label: "培训时间", prop: "pxsj", type: "input" },
{ label: "课程名称", prop: "kcmc", type: "input" },
],
@ -47,8 +47,8 @@ const formList = reactive([
],
{ label: "分割线", prop: "diver", type: "slot" },
[
{ label: "培训日期", prop: "pxrq", type: "input" },
{ label: "培训时间", prop: "pxsj", type: "input" },
{ label: "培训日期", prop: "pxrq", type: "date" },
{ label: "培训时间", prop: "pxsj", type: "time" },
{ label: "课程名称", prop: "kcmc", type: "input" },
],
[
@ -58,8 +58,8 @@ const formList = reactive([
],
{ label: "分割线", prop: "diver", type: "slot" },
[
{ label: "培训日期", prop: "pxrq", type: "input" },
{ label: "培训时间", prop: "pxsj", type: "input" },
{ label: "培训日期", prop: "pxrq", type: "date" },
{ label: "培训时间", prop: "pxsj", type: "time" },
{ label: "课程名称", prop: "kcmc", type: "input" },
],
[
@ -67,7 +67,7 @@ const formList = reactive([
{ label: "授课教员", prop: "skfcy", type: "select" },
{ label: "培训内容", prop: "pxnr", type: "input" },
],
])
const pageData = reactive({

View File

@ -18,7 +18,8 @@
{{ row.bazyj&&row.tjzm&&row.wfzzmjl?'已上传':'未上传' }}
</template>
<template #njzt="{row}">
<DictTag :options="D_BZ_SF" v-model:value="row.njzt" tag></DictTag>
{{ row.njzt == '01'?'通过':row.njzt == '02'?'不通过':'' }}
<!-- <DictTag :options="D_BZ_SF" v-model:value="row.njzt" tag></DictTag> -->
</template>
<!-- 操作 -->
<template #controls="{ row }">