This commit is contained in:
2025-09-24 19:26:59 +08:00
parent c6a0f0b9aa
commit 449b3c9916
5 changed files with 62 additions and 60 deletions

View File

@ -19,12 +19,14 @@
<MyTable :tableData="pageData.tableData" :tableColumn="pageData.tableColumn" :tableHeight="pageData.tableHeight"
:key="pageData.keyCount" :tableConfiger="pageData.tableConfiger" :controlsWidth="pageData.controlsWidth"
@chooseData="chooseData">
<template #pxlx="{ row }">
<dictTag :value="row.pxlx" :tag="false" :options="D_PXDG_PXLX" />
</template>
<!-- 操作 -->
<template #controls="{ row }">
<el-link type="primary" link @click="addEdit('edit', row.id)">编辑</el-link>
<el-link type="primary" link @click="addEdit('detail', row.id)">详情</el-link>
<el-link type="danger" link @click="handleDelete(row.id)">删除</el-link>
<el-link type="danger" link @click="handleDelete([row.id])">删除</el-link>
</template>
</MyTable>
<Pages @changeNo="changeNo" @changeSize="changeSize" :tableHeight="pageData.tableHeight" :pageConfiger="{
@ -33,7 +35,7 @@
}"></Pages>
</div>
<!-- 详情 -->
<DetailForm ref="detailDiloag" @refresh="getList" />
<DetailForm ref="detailDiloag" v-if="show" :dic="{D_PXDG_PXLX}" @refresh="getList" />
</div>
</template>
@ -48,10 +50,9 @@ import { reactive, ref, onMounted, getCurrentInstance, nextTick } from "vue";
const { proxy } = getCurrentInstance();
const { D_PXDG_PXLX } = proxy.$dict("D_PXDG_PXLX")
const show = ref(false)
const detailDiloag = ref();
const searchBox = ref(); //搜索框
const baseUrl = 'data:image/jpeg;base64,'
const searchConfiger = ref([
{
label: "教学项目",
@ -77,7 +78,7 @@ const pageData = reactive({
},
controlsWidth: 180,
tableColumn: [
{ label: "培训类型", prop: "pxlx", options: D_PXDG_PXLX },
{ label: "培训类型", prop: "pxlx",showSolt: true},
{ label: "教学项目", prop: "jxxm" },
]
});
@ -118,17 +119,18 @@ const getList = () => {
// 删除
const handleDelete = (id) => {
// proxy.$modal.confirm("是否确认删除该值守点?").then(() => {
// qcckPost({ id }, "/mosty-jbld/jbldzsd/delete").then(() => {
// proxy.$modal.msgSuccess("删除成功");
// getList();
// });
// });
const handleDelete = (ids) => {
proxy.$modal.confirm("是否确认删除").then(() => {
qcckPost(ids, "/mosty-base/baxx/jxda/remove").then(() => {
proxy.$modal.msgSuccess("删除成功");
getList();
});
});
};
// 详情
const addEdit = (type, id) => {
show.value = true;
nextTick(() => {
detailDiloag.value.init(type, id);
})