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

@ -75,3 +75,11 @@ export const baxxNjryNjshPage = (data) => {
data data
}); });
}; };
// /baxx/njry / njsh Edit
export const baxxNjryNjryNjsh = (data) => {
return request({
url: api + "/baxx/njry/njsh",
method: "POST",
data
});
};

View File

@ -53,6 +53,7 @@
<el-date-picker v-else-if="item.type === 'date'" v-model="searchObj[item.prop]" type="date" <el-date-picker v-else-if="item.type === 'date'" v-model="searchObj[item.prop]" type="date"
:placeholder="item.placeholder" :shortcuts="item.shortcuts" value-format="YYYY-MM-DD"> :placeholder="item.placeholder" :shortcuts="item.shortcuts" value-format="YYYY-MM-DD">
</el-date-picker> </el-date-picker>
<el-time-picker v-else-if="item.type == 'time'" v-model="listQuery[item.prop]" placeholder="请选择时间" />
<!-- 插槽 slot --> <!-- 插槽 slot -->
<template v-else-if="item.type === 'slot'"> <template v-else-if="item.type === 'slot'">
<slot :name="item.prop"></slot> <slot :name="item.prop"></slot>

View File

@ -12,8 +12,8 @@
</FormMessage> </FormMessage>
</div> </div>
<div class="flex just-center mt10" v-if="title == '详情'"> <div class="flex just-center mt10" v-if="title == '详情'">
<el-button type="primary" @click="submit">通过</el-button> <el-button type="primary" @click="submit('01')">通过</el-button>
<el-button type="danger" @click="submit">不通过</el-button> <el-button type="danger" @click="submit('02')">不通过</el-button>
</div> </div>
</div> </div>
</template> </template>
@ -22,7 +22,7 @@
import { qcckPost , qcckGet} from "@/api/qcckApi.js"; import { qcckPost , qcckGet} from "@/api/qcckApi.js";
import FormMessage from "@/components/aboutTable/FormMessage.vue"; import FormMessage from "@/components/aboutTable/FormMessage.vue";
import { ref, reactive, defineEmits, getCurrentInstance } from '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 emit = defineEmits(["refresh"]);
const props = defineProps({ const props = defineProps({
dict: { 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 = () => { const close = () => {
dialogForm.value = false; dialogForm.value = false;

View File

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

View File

@ -18,7 +18,8 @@
{{ row.bazyj&&row.tjzm&&row.wfzzmjl?'已上传':'未上传' }} {{ row.bazyj&&row.tjzm&&row.wfzzmjl?'已上传':'未上传' }}
</template> </template>
<template #njzt="{row}"> <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>
<!-- 操作 --> <!-- 操作 -->
<template #controls="{ row }"> <template #controls="{ row }">