2025-09-26 17:22:28 +08:00
|
|
|
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-1bc9d765"], { "01e1": function (e, t, l) { "use strict"; l("d9a8") }, "0e0e": function (e, t, l) { "use strict"; l("26fd") }, "18ed": function (e, t, l) { }, "1b44": function (e, t, l) { "use strict"; l.r(t); var o = l("7a23"), a = l("2e9d"), c = l("ad28"), r = l("1090"), n = l("2d16"), d = l("c5cb"), p = l("1d22"); const u = { key: 0, class: "dialog" }, b = { class: "head_box" }, i = { class: "title" }, s = Object(o["createTextVNode"])("保存"), m = Object(o["createTextVNode"])("关闭"), j = { class: "cntinfo" }; var O = { __name: "detailForm", props: { dic: { type: Object, default: () => { } } }, emits: ["refresh"], setup(e, { expose: t, emit: l }) { const a = e, { proxy: c } = Object(o["getCurrentInstance"])(), r = Object(o["ref"])(!1), n = Object(o["ref"])(""), O = Object(o["ref"])(), k = Object(o["ref"])(!1), h = Object(o["ref"])({}), y = Object(o["ref"])(""), v = Object(o["reactive"])({ pxlx: [{ required: !0, message: "请输入视频标题", trigger: "blur" }] }), V = Object(o["reactive"])([[{ label: "培训类型", prop: "pxlx", type: "select", options: a.dic.D_PXDG_PXLX }, { label: "教学项目", prop: "jxxm", type: "input" }], [{ label: "教学内容", prop: "dgnr", type: "input" }, { label: "教学目标", prop: "jxmb", type: "input" }], [{ label: "学时安排", prop: "gksc", type: "input" }], [{ label: "上传附件", prop: "fj", type: "upload" }]]), f = (e, t) => { r.value = !0, y.value = e, n.value = "add" == e ? "新增" : "编辑", t && g(t) }; function g(e) { Object(d["b"])({}, "/mosty-base/baxx/jxda/getInfo/" + e).then(e => { e.fj = e.fj ? e.fj.split(",") : [], h.value = e || {} }) } const B = () => { O.value.submit(e => { k.value = !0; let t = "新增" == n.value ? "/mosty-base/baxx/jxda/add" : "/mosty-base/baxx/jxda/edit", o = { ...e }; o.fj = o.fj ? o.fj.join(",") : "", Object(d["b"])(o, t).then(() => { k.value = !1, c.$message.success("保存成功"), l("refresh"), x() }).catch(() => { k.value = !1 }) }) }, x = () => { r.value = !1, h.value = { fj: [] }, O.value.reset() }; return t({ init: f }), (e, t) => { const l = Object(o["resolveComponent"])("el-button"); return r.value ? (Object(o["openBlock"])(), Object(o["createElementBlock"])("div", u, [Object(o["createElementVNode"])("div", b, [Object(o["createElementVNode"])("span", i, "保安培训教学大纲" + Object(o["toDisplayString"])(n.value), 1), Object(o["createElementVNode"])("div", null, ["detail" != y.value ? (Object(o["openBlock"])(), Object(o["createBlock"])(l, { key: 0, size: "small", onClick: B, type: "primary", loading: k.value }, { default: Object(o["withCtx"])(() => [s]), _: 1 }, 8, ["loading"])) : Object(o["createCommentVNode"])("", !0), Object(o["createVNode"])(l, { size: "small", onClick: x }, { default: Object(o["withCtx"])(() => [m]), _: 1 })])]), Object(o["createElementVNode"])("div", j, [Object(o["createVNode"])(p["a"], { ref_key: "FormRef", ref: O, modelValue: h.value, "onUpdate:modelValue": t[0] || (t[0] = e => h.value = e), disabled: "detail" == y.value, rules: v, formList: V }, null, 8, ["modelValue", "disabled", "rules", "formList"])])])) : Object(o["createCommentVNode"])("", !0) } } }, k = (l("23ba"), l("d959")), h = l.n(k); const y = h()(O, [["__scopeId", "data-v-808d6a56"]]); var v = y; const V = { class: "titleBox" }, f = Object(o["createElementVNode"])("span", { style: { "vertical-align": "middle" } }, "新增", -1), g = { class: "tabBox" }, B = Object(o["createTextVNode"])("编辑"), x = Object(o["createTextVNode"])("详情"), C = Object(o["createTextVNode"])("删除"); var w = { __name: "index", setup(e) { const { proxy: t } = Object(o["getCurrentInstance"])(), { D_PXDG_PXLX: l } = t.$dict("D_PXDG_PXLX"), p = Object(o["ref"])(!1), u = Object(o["ref"])(), b = Object(o["ref"])(), i = Object(o["ref"])([{ label: "教学项目", prop: "jxxm", placeholder: "请输入教学项目", showType: "input" }]), s = Object(o["ref"])({}), m = Object(o["reactive"])({ tableData: [], keyCount: 0, tableConfiger: { rowHieght: 61, showSelectType: "null", loading:
|