'处理字典选择、展示处理'
This commit is contained in:
@ -12,7 +12,9 @@
|
||||
<el-descriptions-item label="姓名">{{ formData.xm }}</el-descriptions-item>
|
||||
<el-descriptions-item label="身份证号">{{ formData.sfzh }}</el-descriptions-item>
|
||||
<el-descriptions-item label="联系电话">{{ formData.lxdh }}</el-descriptions-item>
|
||||
<el-descriptions-item label="所属保安公司">{{ formData.ssbags }}</el-descriptions-item>
|
||||
<el-descriptions-item label="所属保安公司">
|
||||
<DictTag :value="formData.ssbags" :options="D_BAXX_DWLX" />
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="线上培训时长">{{ formData.pxsc }}</el-descriptions-item>
|
||||
<el-descriptions-item label="提交日期">{{ formData.tjrq }}</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
@ -25,6 +27,8 @@ import { ref, computed, getCurrentInstance } from 'vue'
|
||||
import { qcckPost } from "@/api/qcckApi.js";
|
||||
|
||||
const { proxy } = getCurrentInstance()
|
||||
const { D_BAXX_DWLX } = proxy.$dict("D_BAXX_DWLX")
|
||||
|
||||
const title = ref('保安考试申请')
|
||||
const loading = ref(false)
|
||||
const disabled = ref(false)
|
||||
@ -35,10 +39,6 @@ const props = defineProps({
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
dic: {
|
||||
type: Object,
|
||||
default: () => ({})
|
||||
}
|
||||
})
|
||||
|
||||
const emits = defineEmits(['update:modelValue'])
|
||||
|
||||
@ -11,8 +11,8 @@
|
||||
<div class="tabBox">
|
||||
<MyTable :tableData="pageData.tableData" :tableColumn="pageData.tableColumn" :tableHeight="pageData.tableHeight"
|
||||
:key="pageData.keyCount" :tableConfiger="pageData.tableConfiger" :controlsWidth="pageData.controlsWidth">
|
||||
<template #bxxLx="{ row }">
|
||||
<DictTag :value="row.bxxLx" :tag="false" :options="D_BZ_BXDLX" />
|
||||
<template #ssbags="{ row }">
|
||||
<DictTag :value="row.ssbags" :options="D_BAXX_DWLX" />
|
||||
</template>
|
||||
|
||||
<template #pxsc="{ row }">
|
||||
@ -49,7 +49,6 @@ const trainerRef = ref(null);
|
||||
const queryFrom = ref({});
|
||||
const isVisible = ref(false);
|
||||
const searchBox = ref(null);
|
||||
const D_BZ_BXDLX = ref([]);
|
||||
const searchConfiger = ref([
|
||||
{
|
||||
label: "姓名",
|
||||
|
||||
@ -25,6 +25,8 @@ import { qcckPost } from "@/api/qcckApi.js";
|
||||
import FormMessage from '@/components/aboutTable/FormMessage.vue'
|
||||
|
||||
const { proxy } = getCurrentInstance()
|
||||
const { D_BAXX_GWLX, D_BAXX_DWLX } = proxy.$dict("D_BAXX_GWLX", "D_BAXX_DWLX")
|
||||
|
||||
const title = ref('新增培训人员')
|
||||
const loading = ref(false)
|
||||
const disabled = ref(false)
|
||||
@ -61,10 +63,10 @@ const formList = reactive([
|
||||
[
|
||||
{ label: "居住地址", prop: "jzdz", type: "input" },
|
||||
{ label: "申请时间", prop: "sqsj", type: "date" },
|
||||
{ label: "岗位", prop: "gw", type: "select" },
|
||||
{ label: "岗位", prop: "gw", type: "select", options: D_BAXX_GWLX },
|
||||
],
|
||||
[
|
||||
{ label: "所属保安公司", prop: "ssbags", type: "select" },
|
||||
{ label: "所属保安公司", prop: "ssbags", type: "select", options: D_BAXX_DWLX },
|
||||
],
|
||||
[
|
||||
{ label: "身份证正面", prop: "ryzpzm", type: "upload", limit: 1 },
|
||||
|
||||
@ -12,8 +12,11 @@
|
||||
<div class="tabBox">
|
||||
<MyTable :tableData="pageData.tableData" :tableColumn="pageData.tableColumn" :tableHeight="pageData.tableHeight"
|
||||
:key="pageData.keyCount" :tableConfiger="pageData.tableConfiger" :controlsWidth="pageData.controlsWidth">
|
||||
<template #bxxLx="{ row }">
|
||||
<DictTag :value="row.bxxLx" :tag="false" :options="D_BZ_BXDLX" />
|
||||
<template #gw="{ row }">
|
||||
<DictTag :value="row.gw" :options="D_BAXX_GWLX" />
|
||||
</template>
|
||||
<template #ssbags="{ row }">
|
||||
<DictTag :value="row.ssbags" :options="D_BAXX_DWLX" />
|
||||
</template>
|
||||
<!-- 操作 -->
|
||||
<template #controls="{ row }">
|
||||
@ -42,11 +45,12 @@ import PageTitle from "@/components/aboutTable/PageTitle.vue";
|
||||
import AddTrainerDialog from "./components/addTrainerDialog.vue";
|
||||
|
||||
const { proxy } = getCurrentInstance()
|
||||
const { D_BAXX_GWLX, D_BAXX_DWLX } = proxy.$dict("D_BAXX_GWLX", "D_BAXX_DWLX")
|
||||
|
||||
const trainerRef = ref(null);
|
||||
const queryFrom = ref({});
|
||||
const isVisible = ref(false);
|
||||
const searchBox = ref(null);
|
||||
const D_BZ_BXDLX = ref([]);
|
||||
const searchConfiger = ref([
|
||||
{
|
||||
label: "人员姓名",
|
||||
@ -86,8 +90,8 @@ const pageData = reactive({
|
||||
{ label: "姓名", prop: "xm" },
|
||||
{ label: "证件号码", prop: "sfzh" },
|
||||
{ label: "联系方式", prop: "lxdh" },
|
||||
{ label: "岗位", prop: "gw" },
|
||||
{ label: "所属保安公司", prop: "ssbags" },
|
||||
{ label: "岗位", prop: "gw", showSolt: true },
|
||||
{ label: "所属保安公司", prop: "ssbags", showSolt: true },
|
||||
]
|
||||
});
|
||||
|
||||
|
||||
@ -12,8 +12,8 @@
|
||||
<div class="tabBox">
|
||||
<MyTable :tableData="pageData.tableData" :tableColumn="pageData.tableColumn" :tableHeight="pageData.tableHeight"
|
||||
:key="pageData.keyCount" :tableConfiger="pageData.tableConfiger" :controlsWidth="pageData.controlsWidth">
|
||||
<template #bxxLx="{ row }">
|
||||
<DictTag :value="row.bxxLx" :tag="false" :options="D_BZ_BXDLX" />
|
||||
<template #pxgs="{ row }">
|
||||
<DictTag :value="row.pxgs" :options="D_BAXX_DWLX" />
|
||||
</template>
|
||||
<!-- 操作 -->
|
||||
<template #controls="{ row }">
|
||||
@ -35,7 +35,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { onMounted, reactive, ref } from "vue";
|
||||
import { onMounted, reactive, ref, getCurrentInstance } from "vue";
|
||||
import MyTable from '@/components/aboutTable/MyTable.vue';
|
||||
import Pages from '@/components/aboutTable/Pages.vue';
|
||||
import Search from '@/components/aboutTable/Search.vue';
|
||||
@ -44,7 +44,10 @@ import PageTitle from "@/components/aboutTable/PageTitle.vue";
|
||||
import ViewProjectDetailsDialog from "./components/viewProjectDetailsDialog.vue";
|
||||
import AddPxxm from './components/addPxxm.vue'
|
||||
import PrejectDetailsDialog from "./components/prejectDetailsDialog.vue";
|
||||
import { get } from "lodash";
|
||||
|
||||
const { proxy } = getCurrentInstance()
|
||||
const { D_BAXX_DWLX } = proxy.$dict("D_BAXX_DWLX");
|
||||
|
||||
const addPxxmRef = ref()
|
||||
const prejectDetailsRef = ref(null);
|
||||
const viewProjectDetailsRef = ref(null)
|
||||
@ -52,7 +55,6 @@ const queryFrom = ref({});
|
||||
const isVisible = ref(false);
|
||||
const dialogVisible = ref(false)
|
||||
const searchBox = ref(null);
|
||||
const D_BZ_BXDLX = ref([]);
|
||||
const searchConfiger = ref([
|
||||
{
|
||||
label: "培训项目名称",
|
||||
@ -86,7 +88,7 @@ const pageData = reactive({
|
||||
{ label: "培训项目名称", prop: "xmmc" },
|
||||
{ label: "培训开始时间", prop: "kssj" },
|
||||
{ label: "培训结束时间", prop: "jssj" },
|
||||
{ label: "培训公司", prop: "pxgs" },
|
||||
{ label: "培训公司", prop: "pxgs", showSolt: true },
|
||||
{ label: "培训地址", prop: "pxdz" },
|
||||
]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user