2 lines
26 KiB
JavaScript
2 lines
26 KiB
JavaScript
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-fb6ca218"], { "01e1": function (e, l, t) { "use strict"; t("d9a8") }, "0e0e": function (e, l, t) { "use strict"; t("26fd") }, "1d22": function (e, l, t) { "use strict"; var a = t("7a23"), o = t("7902"), c = { __name: "FormMessage", props: { formList: { default: [[]], type: Array }, rules: { default: {}, type: Object }, labelWidth: { default: "100px", type: String }, disabled: { type: Boolean, default: !1 }, modelValue: { type: Object, default: {} } }, emits: ["update:modelValue", "change"], setup(e, { expose: l, emit: t }) { const c = e, r = Object(a["ref"])(), d = Object(a["ref"])({}), n = e => { r.value.validate(l => { if (!l) return !1; e(d.value) }) }, p = () => { d.value = {}, r.value.resetFields() }, u = e => { t("change", d.value) }; return Object(a["watch"])(() => c.modelValue, e => { d.value = e, console.log(e, "===newVal") }, { immediate: !0, deep: !0 }), Object(a["watch"])(() => d.value, e => { t("update:modelValue", e), console.log(e, "===newVal111") }, { immediate: !0, deep: !0 }), l({ submit: n, reset: p }), (l, t) => { const n = Object(a["resolveComponent"])("el-input-number"), p = Object(a["resolveComponent"])("el-radio"), i = Object(a["resolveComponent"])("el-radio-group"), b = Object(a["resolveComponent"])("el-switch"), s = Object(a["resolveComponent"])("el-date-picker"), m = Object(a["resolveComponent"])("el-time-picker"), j = Object(a["resolveComponent"])("el-form-item"), O = Object(a["resolveComponent"])("el-form"); return Object(a["openBlock"])(), Object(a["createBlock"])(O, { ref_key: "elform", ref: r, model: d.value, disabled: e.disabled, "label-width": c.labelWidth, rules: c.rules, inline: !0, "label-position": "right" }, { default: Object(a["withCtx"])(() => [(Object(a["openBlock"])(!0), Object(a["createElementBlock"])(a["Fragment"], null, Object(a["renderList"])(c.formList, (e, t) => (Object(a["openBlock"])(), Object(a["createElementBlock"])("div", { class: "form-row", key: t, style: Object(a["normalizeStyle"])({ width: "[object Object]" === Object.prototype.toString.call(e) ? e.width : "" }) }, [Array.isArray(e) ? (Object(a["openBlock"])(!0), Object(a["createElementBlock"])(a["Fragment"], { key: 0 }, Object(a["renderList"])(e, (t, c) => (Object(a["openBlock"])(), Object(a["createBlock"])(j, { key: c, prop: t.prop, label: t.label, "label-width": t.labelWidth, style: Object(a["normalizeStyle"])({ width: e.width }) }, { default: Object(a["withCtx"])(() => ["input" == t.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(o["d"], { key: 0, type: t.lx, rows: t.rows || 4, width: "100%", clearable: "", modelValue: d.value[t.prop], "onUpdate:modelValue": e => d.value[t.prop] = e, placeholder: "请输入" + t.label, disabled: t.disabled }, null, 8, ["type", "rows", "modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : "number" == t.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(n, { key: 1, onChange: u, modelValue: d.value[t.prop], "onUpdate:modelValue": e => d.value[t.prop] = e, style: { width: "100%" }, min: t.min || 0, max: t.max || 1e3 }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max"])) : "select" == t.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(o["f"], { key: 2, onChange: u, filterable: "", multiple: t.multiple, modelValue: d.value[t.prop], "onUpdate:modelValue": e => d.value[t.prop] = e, dictEnum: t.options, width: "100%", clearable: "", placeholder: "请选择" + t.label }, null, 8, ["multiple", "modelValue", "onUpdate:modelValue", "dictEnum", "placeholder"])) : "Sex" == t.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(o["g"], { key: 3, sex: d.value[t.prop], "onUpdate:sex": e => d.value[t.prop] = e, width: "100%", clearable: "", placeholder: "请选择" + t.label }, null, 8, ["sex", "onUpdate:sex", "placeholder"])) : "other" == t.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(o["e"], { key: 4, dictEnum: t.lx, width: "100%", modelValue: d.value[t.prop], "onUpdate:modelValue": e => d.value[t.prop] = e, clearable: "", filterable: "" }, null, 8, ["dictEnum", "modelValue", "onUpdate:modelValue"])) : "department" === t.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(o["c"], { key: 5, style: { width: "100%" }, clearable: "", placeholder: d.value.ssbm ? d.value.ssbm : "请选择" + t.label, modelValue: d.value[t.prop], "onUpdate:modelValue": e => d.value[t.prop] = e }, null, 8, ["placeholder", "modelValue", "onUpdate:modelValue"])) : "date" == t.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(o["b"], { key: 6, type: t.lx ? t.lx : "date", width: "100%", clearable: "", modelValue: d.value[t.prop], "onUpdate:modelValue": e => d.value[t.prop] = e }, null, 8, ["type", "modelValue", "onUpdate:modelValue"])) : "upload" == t.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(o["h"], { isAll: t.isAll, key: t.prop, showBtn: t.showBtn, isImg: t.isImg, limit: t.limit, width: "100%", modelValue: d.value[t.prop], "onUpdate:modelValue": e => d.value[t.prop] = e }, null, 8, ["isAll", "showBtn", "isImg", "limit", "modelValue", "onUpdate:modelValue"])) : "checkbox" == t.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(o["CheckBox"], { key: 8, width: "100%", clearable: "", modelValue: d.value[t.prop], "onUpdate:modelValue": e => d.value[t.prop] = e, checkList: t.options, placeholder: "请选择" + t.label }, null, 8, ["modelValue", "onUpdate:modelValue", "checkList", "placeholder"])) : "radio" == t.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(i, { key: 9, modelValue: d.value[t.prop], "onUpdate:modelValue": e => d.value[t.prop] = e }, { default: Object(a["withCtx"])(() => [(Object(a["openBlock"])(!0), Object(a["createElementBlock"])(a["Fragment"], null, Object(a["renderList"])(t.options, e => (Object(a["openBlock"])(), Object(a["createBlock"])(p, { key: e.value, label: e.value }, { default: Object(a["withCtx"])(() => [Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.label), 1)]), _: 2 }, 1032, ["label"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : "switch" == t.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(b, { key: 10, modelValue: d.value[t.prop], "onUpdate:modelValue": e => d.value[t.prop] = e, class: "ml-2", style: { "--el-switch-on-color": "#13ce66", "--el-switch-off-color": "#ff4949" } }, null, 8, ["modelValue", "onUpdate:modelValue"])) : "daterange" === t.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(s, { key: 11, modelValue: l.searchObj[t.prop], "onUpdate:modelValue": e => l.searchObj[t.prop] = e, type: "daterange", "unlink-panels": "", "range-separator": t.rangeSeparator, "start-placeholder": t.startPlaceholder, "end-placeholder": t.endPlaceholder, shortcuts: t.shortcuts, "value-format": "YYYY-MM-DD" }, null, 8, ["modelValue", "onUpdate:modelValue", "range-separator", "start-placeholder", "end-placeholder", "shortcuts"])) : "datetime" == t.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(s, { key: 12, modelValue: l.searchObj[null === t || void 0 === t ? void 0 : t.prop], "onUpdate:modelValue": e => l.searchObj[null === t || void 0 === t ? void 0 : t.prop] = e, type: "datetime", "value-format": "YYYY-MM-DD HH:mm:ss", placeholder: "请选择时间" }, null, 8, ["modelValue", "onUpdate:modelValue"])) : "date" === t.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(s, { key: 13, modelValue: l.searchObj[t.prop], "onUpdate:modelValue": e => l.searchObj[t.prop] = e, type: "date", placeholder: t.placeholder, shortcuts: t.shortcuts, "value-format": "YYYY-MM-DD" }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "shortcuts"])) : "time" == t.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(m, { key: 14, modelValue: d.value[t.prop], "onUpdate:modelValue": e => d.value[t.prop] = e, placeholder: "请选择时间" }, null, 8, ["modelValue", "onUpdate:modelValue"])) : "slot" === t.type ? Object(a["renderSlot"])(l.$slots, t.prop, { key: 15 }) : Object(a["createCommentVNode"])("", !0)]), _: 2 }, 1032, ["prop", "label", "label-width", "style"]))), 128)) : (Object(a["openBlock"])(), Object(a["createElementBlock"])(a["Fragment"], { key: 1 }, ["slot" != e.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(j, { key: 0, prop: e.prop, label: e.label, style: Object(a["normalizeStyle"])({ width: e.width }) }, { default: Object(a["withCtx"])(() => ["input" == e.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(o["d"], { key: 0, type: e.lx, rows: e.rows || 4, width: "100%", clearable: "", modelValue: d.value[e.prop], "onUpdate:modelValue": l => d.value[e.prop] = l, placeholder: "请输入" + e.label }, null, 8, ["type", "rows", "modelValue", "onUpdate:modelValue", "placeholder"])) : "number" == e.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(n, { key: 1, onChange: u, modelValue: d.value[e.prop], "onUpdate:modelValue": l => d.value[e.prop] = l, style: { width: "100%" }, min: e.min || 0, max: e.max || 1e3 }, null, 8, ["modelValue", "onUpdate:modelValue", "min", "max"])) : "select" == e.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(o["f"], { key: 2, onChange: u, filterable: "", multiple: e.multiple, modelValue: d.value[e.prop], "onUpdate:modelValue": l => d.value[e.prop] = l, dictEnum: e.options, width: "100%", clearable: "", placeholder: "请选择" + e.label }, null, 8, ["multiple", "modelValue", "onUpdate:modelValue", "dictEnum", "placeholder"])) : "department" === e.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(o["c"], { key: 3, style: { width: "100%" }, clearable: "", modelValue: d.value[e.prop], "onUpdate:modelValue": l => d.value[e.prop] = l }, null, 8, ["modelValue", "onUpdate:modelValue"])) : "date" == e.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(o["b"], { key: 4, type: e.lx ? e.lx : "date", width: "100%", clearable: "", modelValue: d.value[e.prop], "onUpdate:modelValue": l => d.value[e.prop] = l }, null, 8, ["type", "modelValue", "onUpdate:modelValue"])) : "upload" == e.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(o["h"], { key: 5, isImg: e.isImg, limit: e.limit, width: "100%", modelValue: d.value[e.prop], "onUpdate:modelValue": l => d.value[e.prop] = l }, null, 8, ["isImg", "limit", "modelValue", "onUpdate:modelValue"])) : "checkbox" == e.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(o["CheckBox"], { key: 6, width: "100%", clearable: "", modelValue: d.value[e.prop], "onUpdate:modelValue": l => d.value[e.prop] = l, checkList: e.options, placeholder: "请选择" + e.label }, null, 8, ["modelValue", "onUpdate:modelValue", "checkList", "placeholder"])) : "radio" == e.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(i, { key: 7, modelValue: d.value[e.prop], "onUpdate:modelValue": l => d.value[e.prop] = l }, { default: Object(a["withCtx"])(() => [(Object(a["openBlock"])(!0), Object(a["createElementBlock"])(a["Fragment"], null, Object(a["renderList"])(e.options, e => (Object(a["openBlock"])(), Object(a["createBlock"])(p, { key: e.value, label: e.value }, { default: Object(a["withCtx"])(() => [Object(a["createTextVNode"])(Object(a["toDisplayString"])(e.label), 1)]), _: 2 }, 1032, ["label"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])) : "switch" == e.type ? (Object(a["openBlock"])(), Object(a["createBlock"])(b, { key: 8, modelValue: d.value[e.prop], "onUpdate:modelValue": l => d.value[e.prop] = l, class: "ml-2", style: { "--el-switch-on-color": "#13ce66", "--el-switch-off-color": "#ff4949" } }, null, 8, ["modelValue", "onUpdate:modelValue"])) : Object(a["createCommentVNode"])("", !0)]), _: 2 }, 1032, ["prop", "label", "style"])) : Object(a["createCommentVNode"])("", !0), "slot" === e.type ? Object(a["renderSlot"])(l.$slots, "default", { key: 1 }) : Object(a["createCommentVNode"])("", !0)], 64))], 4))), 128))]), _: 3 }, 8, ["model", "disabled", "label-width", "rules"]) } } }, r = (t("0e0e"), t("d959")), d = t.n(r); const n = d()(c, [["__scopeId", "data-v-74e6bb4a"]]); l["a"] = n }, "26fd": function (e, l, t) { }, "2e9d": function (e, l, t) { "use strict"; var a = t("7a23"); const o = { class: "title" }, c = { key: 0, class: "font" }, r = { key: 1, class: "flex", style: { "align-items": "center" } }, d = { class: "cnetr" }, n = { class: "right" }; var p = { __name: "PageTitle", props: { title: { type: String || Array, default: [] }, active: { type: Number, default: 0 }, marginBottom: { type: Number, default: 0 }, backgroundColor: { type: String, default: "rgb(255, 255, 255, 0)" } }, emits: ["change", "update:active"], setup(e, { emit: l }) { function t(e, t) { l("update:active", t), l("change", e) } return (l, p) => { const u = Object(a["resolveComponent"])("el-button"); return Object(a["openBlock"])(), Object(a["createElementBlock"])("div", { class: "pageTitle", style: Object(a["normalizeStyle"])(`margin-bottom: ${e.marginBottom}px;background-color: ${e.backgroundColor}`) }, [Object(a["createElementVNode"])("div", o, ["string" === typeof e.title ? (Object(a["openBlock"])(), Object(a["createElementBlock"])("div", c, Object(a["toDisplayString"])(e.title), 1)) : (Object(a["openBlock"])(), Object(a["createElementBlock"])("ul", r, [(Object(a["openBlock"])(!0), Object(a["createElementBlock"])(a["Fragment"], null, Object(a["renderList"])(e.title, (l, o) => (Object(a["openBlock"])(), Object(a["createBlock"])(u, { onClick: e => t(l, o), type: e.active == o ? "primary" : "", key: o }, { default: Object(a["withCtx"])(() => [Object(a["createTextVNode"])(Object(a["toDisplayString"])(l), 1)]), _: 2 }, 1032, ["onClick", "type"]))), 128))]))]), Object(a["createElementVNode"])("div", d, [Object(a["renderSlot"])(l.$slots, "center")]), Object(a["createElementVNode"])("div", n, [Object(a["renderSlot"])(l.$slots, "default")])], 4) } } }, u = (t("01e1"), t("d959")), i = t.n(u); const b = i()(p, [["__scopeId", "data-v-817ee360"]]); l["a"] = b }, a1a3: function (e, l, t) { "use strict"; t("fb58") }, d7b9: function (e, l, t) { "use strict"; t.r(l); var a = t("7a23"), o = t("ad28"), c = t("1090"), r = t("2d16"), d = t("c5cb"), n = t("2e9d"), p = (t("d9e2"), t("1d22")); const u = { key: 0, class: "dialog" }, i = { class: "head_box" }, b = { class: "title" }, s = Object(a["createTextVNode"])("保存"), m = Object(a["createTextVNode"])("关闭"), j = { class: "cntinfo" }; var O = { __name: "addTrainerDialog", props: { modelValue: { type: Boolean, default: !1 }, dic: { type: Object, default: () => ({}) } }, emits: ["update:modelValue", "refresh"], setup(e, { expose: l, emit: t }) { const o = e, { proxy: c } = Object(a["getCurrentInstance"])(), { D_BAXX_GWLX: r } = c.$dict("D_BAXX_GWLX"), n = Object(a["ref"])("新增培训人员"), O = Object(a["ref"])(!1), h = Object(a["ref"])(!1), g = Object(a["ref"])(null), y = Object(a["computed"])({ get() { return o.modelValue }, set(e) { t("update:modelValue", e) } }), v = Object(a["reactive"])([[{ label: "姓名", prop: "xm", type: "input" }, { label: "证件号码", prop: "zjhm", type: "input" }, { label: "联系电话", prop: "lxdh", type: "input" }], [{ label: "居住地址", prop: "jzdz", type: "input" }, { label: "申请时间", prop: "sqrq", type: "slot" }, { label: "岗位", prop: "gw", type: "select", options: r }], [{ label: "身份证正面", prop: "ryzpzm", type: "upload", limit: 1 }, { label: "身份证反面", prop: "ryzpfm", type: "upload", limit: 1 }], [{ label: "体检报告", prop: "tjbg", type: "upload", limit: 3 }], [{ label: "无犯罪记录证明", prop: "wfzzmjl", type: "upload", limit: 1 }]]), k = { ryzpzm: [{ required: !0, message: "请上传身份证正面", trigger: "change" }], ryzpfm: [{ required: !0, message: "请上传身份证反面", trigger: "change" }], tjbg: [{ required: !0, message: "请上传体检报告", trigger: "change" }], wfzzmjl: [{ required: !0, message: "请上传无犯罪记录证明", trigger: "change" }], xm: [{ required: !0, message: "请输入姓名", trigger: "change" }], zjhm: [{ required: !0, message: "请输入证件号码", trigger: "change" }, { validator: (e, l, t) => { if (l) { const e = /^(\d{15}|\d{17}[\dXx])$/; e.test(l) ? t() : t(new Error("请输入正确的身份证号码")) } else t() } }], lxdh: [{ required: !0, message: "请输入联系电话", trigger: "change" }, { validator: (e, l, t) => { if (l) { const e = /^1[34578]\d{9}$/; e.test(l) ? t() : t(new Error("请输入正确的手机号")) } else t() } }], jzdz: [{ required: !0, message: "请输入居住地址", trigger: "change" }], rzsj: [{ required: !0, message: "请选择入职时间", trigger: "change" }], pxgs: [{ required: !0, message: "请选择所属保安公司", trigger: "change" }], gw: [{ required: !0, message: "请输入岗位", trigger: "change" }] }, V = Object(a["ref"])({}), f = () => { var e; null === (e = g.value) || void 0 === e || e.reset(), y.value = !1 }, w = (e = {}, l = "add") => { h.value = !1, y.value = !0; const t = ["ryzpzm", "ryzpfm", "tjbg", "wfzzmjl"]; t.forEach(l => { e[l] = "string" === typeof e[l] ? e[l].split(",") : e[l] }), V.value = { ...e }, "add" === l ? n.value = "新增申请人员" : "upload" === l ? n.value = "上传资料" : (h.value = !0, n.value = "查看详情") }, B = () => { g.value.submit(() => { var e; O.value = !0; const l = null !== (e = V.value) && void 0 !== e && e.id ? "/mosty-base/baxx/basq/edit" : "/mosty-base/baxx/basq/add", a = { ...V.value }, o = ["ryzpzm", "ryzpfm", "tjbg", "wfzzmjl"]; o.forEach(e => { a[e] = a[e] ? a[e].join(",") : "" }), Object(d["b"])(a, l).then(() => { O.value = !1, c.$message.success("保存成功"), t("refresh"), f() }).catch(() => { O.value = !1 }) }) }; return l({ open: w }), (e, l) => { const t = Object(a["resolveComponent"])("el-button"), o = Object(a["resolveComponent"])("el-date-picker"); return Object(a["unref"])(y) ? (Object(a["openBlock"])(), Object(a["createElementBlock"])("div", u, [Object(a["createElementVNode"])("div", i, [Object(a["createElementVNode"])("span", b, Object(a["toDisplayString"])(n.value), 1), Object(a["createElementVNode"])("div", null, [h.value ? Object(a["createCommentVNode"])("", !0) : (Object(a["openBlock"])(), Object(a["createBlock"])(t, { key: 0, size: "small", onClick: B, type: "primary", loading: O.value }, { default: Object(a["withCtx"])(() => [s]), _: 1 }, 8, ["loading"])), Object(a["createVNode"])(t, { size: "small", onClick: f }, { default: Object(a["withCtx"])(() => [m]), _: 1 })])]), Object(a["createElementVNode"])("div", j, [Object(a["createVNode"])(p["a"], { ref_key: "FormRef", ref: g, disabled: h.value, modelValue: V.value, "onUpdate:modelValue": l[1] || (l[1] = e => V.value = e), rules: k, formList: v, labelWidth: 120 }, { sqrq: Object(a["withCtx"])(() => [Object(a["createVNode"])(o, { type: "datetime", modelValue: V.value.sqrq, "onUpdate:modelValue": l[0] || (l[0] = e => V.value.sqrq = e), placeholder: "请输入申请时间" }, null, 8, ["modelValue"])]), _: 1 }, 8, ["disabled", "modelValue", "formList"])])])) : Object(a["createCommentVNode"])("", !0) } } }, h = (t("a1a3"), t("d959")), g = t.n(h); const y = g()(O, [["__scopeId", "data-v-181b1a22"]]); var v = y; const k = Object(a["createTextVNode"])("确定"), V = Object(a["createTextVNode"])("取消"); var f = { __name: "selectTtaningDialog", props: { modelValue: { type: Boolean, default: !1 } }, emits: ["update:modelValue", "refresh"], setup(e, { expose: l, emit: t }) { const o = e, { proxy: c } = Object(a["getCurrentInstance"])(), { D_BAXX_DWLX: r } = c.$dict("D_BAXX_DWLX"), n = Object(a["computed"])({ get() { return o.modelValue }, set(e) { t("update:modelValue", e) } }), u = Object(a["ref"])("选择培训公司"), i = Object(a["ref"])(!1), b = Object(a["ref"])(!1), s = Object(a["ref"])(null), m = Object(a["ref"])({}), j = Object(a["reactive"])([[{ label: "培训公司", prop: "pxgs", type: "select", options: r }]]), O = { pxgs: [{ required: !0, message: "请选择培训公司", trigger: "change" }] }, h = (e = {}, l = "updata") => { n.value = !0, b.value = !1, m.value = { ...e } }, g = () => { var e; null === (e = s.value) || void 0 === e || e.reset(), n.value = !1 }, y = async () => { try { i.value = !0, await s.value.submit(async () => { await Object(d["b"])({ ...m.value }, "/mosty-base/baxx/basq/edit"), c.$message.success("培训公司保存成功"), t("refresh"), n.value = !1 }) } catch (e) { console.log(e), c.$message.error("培训公司保存失败") } finally { i.value = !1 } }; return l({ open: h }), (l, t) => { const o = Object(a["resolveComponent"])("el-button"), c = Object(a["resolveComponent"])("el-dialog"); return Object(a["openBlock"])(), Object(a["createBlock"])(c, { class: "dialogWerapper", width: "30%", modelValue: e.modelValue, "onUpdate:modelValue": t[1] || (t[1] = e => Object(a["isRef"])(modelValue) ? modelValue.value = e : null), title: u.value, onClose: g }, { footer: Object(a["withCtx"])(() => [b.value ? Object(a["createCommentVNode"])("", !0) : (Object(a["openBlock"])(), Object(a["createBlock"])(o, { key: 0, type: "primary", loading: i.value, onClick: y }, { default: Object(a["withCtx"])(() => [k]), _: 1 }, 8, ["loading"])), Object(a["createVNode"])(o, { onClick: g }, { default: Object(a["withCtx"])(() => [V]), _: 1 })]), default: Object(a["withCtx"])(() => [Object(a["createVNode"])(p["a"], { ref_key: "FormRef", ref: s, disabled: b.value, modelValue: m.value, "onUpdate:modelValue": t[0] || (t[0] = e => m.value = e), rules: O, formList: j }, null, 8, ["disabled", "modelValue", "formList"])]), _: 1 }, 8, ["modelValue", "title"]) } } }; const w = f; var B = w; const x = { class: "titleBox" }, C = Object(a["createTextVNode"])("新增"), _ = { class: "tabBox" }, U = Object(a["createTextVNode"])("上传资料"), N = Object(a["createTextVNode"])("删除"), z = Object(a["createTextVNode"])("详情"), E = Object(a["createTextVNode"])("提交培训公司"); var S = { __name: "index", setup(e) { const { proxy: l } = Object(a["getCurrentInstance"])(), { D_BAXX_GWLX: t } = l.$dict("D_BAXX_GWLX"), p = Object(a["ref"])(null), u = Object(a["ref"])(null), i = Object(a["ref"])({}), b = Object(a["ref"])(!1), s = Object(a["ref"])(!1), m = Object(a["ref"])(null), j = Object(a["ref"])([{ label: "人员姓名", prop: "xm", placeholder: "请输入人员姓名", showType: "input" }, { label: "证件号码", prop: "zjhm", placeholder: "请输入证件号码", showType: "input" }, { label: "联系电话", prop: "lxdh", placeholder: "请输入联系电话", showType: "input" }]), O = Object(a["reactive"])({ tableData: [], keyCount: 0, tableConfiger: { rowHieght: 61, showSelectType: "null", loading: !1 }, total: 0, pageConfiger: { pageSize: 20, pageCurrent: 1 }, controlsWidth: 180, tableColumn: [{ label: "姓名", prop: "xm" }, { label: "证件号码", prop: "zjhm" }, { label: "联系方式", prop: "lxdh" }, { label: "岗位", prop: "gw", showSolt: !0 }, { label: "申请时间", prop: "sqrq" }, { label: "是否上传资料", prop: "pxgs", showSolt: !0 }, { label: "是否线上培训", prop: "sfpx", showSolt: !0 }] }), h = () => { O.tableHeight = window.innerHeight - m.value.offsetHeight - 250, window.onresize = function () { h() } }, g = (e, l) => { "select" === e ? u.value.open(l, e) : p.value.open(l, e) }, y = e => { i.value = e, O.pageConfiger.pageCurrent = 1, k() }, k = async () => { try { O.tableConfiger.loading = !0; const e = await Object(d["b"])({ ...O.pageConfiger, ...i.value }, "/mosty-base/baxx/basq/page"); e && (O.tableData = e.records || [], O.total = e.total) } finally { O.tableConfiger.loading = !1 } }, V = async e => { await l.$modal.confirm("是否确认删除该培训人员?"); try { await Object(d["b"])({ idList: e }, "/mosty-base/baxx/basq/remove"), l.$modal.msgSuccess("删除成功"), await k() } catch (t) { l.$modal.msgError("删除失败") } }, f = e => { O.pageConfiger.pageNum = e, k() }, w = e => { O.pageConfiger.pageSize = e, k() }; return Object(a["onMounted"])(() => { h(), k() }), (e, l) => { const d = Object(a["resolveComponent"])("el-button"), i = Object(a["resolveComponent"])("DictTag"), h = Object(a["resolveComponent"])("el-link"); return Object(a["openBlock"])(), Object(a["createElementBlock"])("div", null, [Object(a["createElementVNode"])("div", x, [Object(a["createVNode"])(n["a"], { title: "申请人员" }), Object(a["createVNode"])(d, { type: "primary", onClick: l[0] || (l[0] = e => g("add")) }, { default: Object(a["withCtx"])(() => [C]), _: 1 })]), Object(a["createElementVNode"])("div", { ref_key: "searchBox", ref: m }, [Object(a["createVNode"])(r["a"], { searchArr: j.value, onSubmit: y }, null, 8, ["searchArr"])], 512), Object(a["createElementVNode"])("div", _, [(Object(a["openBlock"])(), Object(a["createBlock"])(o["a"], { tableData: O.tableData, tableColumn: O.tableColumn, tableHeight: O.tableHeight, key: O.keyCount, tableConfiger: O.tableConfiger, controlsWidth: O.controlsWidth }, { pxgs: Object(a["withCtx"])(({ row: e }) => [Object(a["createTextVNode"])(Object(a["toDisplayString"])(null !== e && void 0 !== e && e.ryzpzm && null !== e && void 0 !== e && e.ryzpfm && null !== e && void 0 !== e && e.tjbg && null !== e && void 0 !== e && e.wfzzmjl ? "是" : "否"), 1)]), sfpx: Object(a["withCtx"])(({ row: e }) => [Object(a["createTextVNode"])(Object(a["toDisplayString"])("01" === (null === e || void 0 === e ? void 0 : e.sfpx) ? "否" : "是"), 1)]), gw: Object(a["withCtx"])(({ row: e }) => [Object(a["createVNode"])(i, { value: e.gw, options: Object(a["unref"])(t) }, null, 8, ["value", "options"])]), controls: Object(a["withCtx"])(({ row: e }) => [Object(a["createVNode"])(h, { type: "success", onClick: l => g("upload", e) }, { default: Object(a["withCtx"])(() => [U]), _: 2 }, 1032, ["onClick"]), Object(a["createVNode"])(h, { type: "danger", onClick: l => V([e.id]) }, { default: Object(a["withCtx"])(() => [N]), _: 2 }, 1032, ["onClick"]), Object(a["createVNode"])(h, { type: "warning", onClick: l => g("view", e) }, { default: Object(a["withCtx"])(() => [z]), _: 2 }, 1032, ["onClick"]), Object(a["createVNode"])(h, { type: "primary", onClick: l => g("select", e) }, { default: Object(a["withCtx"])(() => [E]), _: 2 }, 1032, ["onClick"])]), _: 1 }, 8, ["tableData", "tableColumn", "tableHeight", "tableConfiger", "controlsWidth"])), Object(a["createVNode"])(c["a"], { onChangeNo: f, onChangeSize: w, tableHeight: O.tableHeight, pageConfiger: { ...O.pageConfiger, total: O.total } }, null, 8, ["tableHeight", "pageConfiger"])]), Object(a["createVNode"])(v, { modelValue: b.value, "onUpdate:modelValue": l[1] || (l[1] = e => b.value = e), ref_key: "trainerRef", ref: p, onRefresh: k }, null, 8, ["modelValue"]), Object(a["createVNode"])(B, { ref_key: "selectTtaningRef", ref: u, modelValue: s.value, "onUpdate:modelValue": l[2] || (l[2] = e => s.value = e), onRefresh: k }, null, 8, ["modelValue"])]) } } }; const D = S; l["default"] = D }, d9a8: function (e, l, t) { }, fb58: function (e, l, t) { } }]);
|