2025-09-26 17:22:28 +08:00
|
|
|
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-2a803a5c"], { "01e1": function (e, t, l) { "use strict"; l("d9a8") }, "2e9d": function (e, t, l) { "use strict"; var c = l("7a23"); const a = { class: "title" }, o = { key: 0, class: "font" }, r = { key: 1, class: "flex", style: { "align-items": "center" } }, n = { class: "cnetr" }, b = { class: "right" }; var i = { __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: t }) { function l(e, l) { t("update:active", l), t("change", e) } return (t, i) => { const d = Object(c["resolveComponent"])("el-button"); return Object(c["openBlock"])(), Object(c["createElementBlock"])("div", { class: "pageTitle", style: Object(c["normalizeStyle"])(`margin-bottom: ${e.marginBottom}px;background-color: ${e.backgroundColor}`) }, [Object(c["createElementVNode"])("div", a, ["string" === typeof e.title ? (Object(c["openBlock"])(), Object(c["createElementBlock"])("div", o, Object(c["toDisplayString"])(e.title), 1)) : (Object(c["openBlock"])(), Object(c["createElementBlock"])("ul", r, [(Object(c["openBlock"])(!0), Object(c["createElementBlock"])(c["Fragment"], null, Object(c["renderList"])(e.title, (t, a) => (Object(c["openBlock"])(), Object(c["createBlock"])(d, { onClick: e => l(t, a), type: e.active == a ? "primary" : "", key: a }, { default: Object(c["withCtx"])(() => [Object(c["createTextVNode"])(Object(c["toDisplayString"])(t), 1)]), _: 2 }, 1032, ["onClick", "type"]))), 128))]))]), Object(c["createElementVNode"])("div", n, [Object(c["renderSlot"])(t.$slots, "center")]), Object(c["createElementVNode"])("div", b, [Object(c["renderSlot"])(t.$slots, "default")])], 4) } } }, d = (l("01e1"), l("d959")), u = l.n(d); const s = u()(i, [["__scopeId", "data-v-817ee360"]]); t["a"] = s }, 4272: function (e, t, l) { "use strict"; l("d815") }, "4b98": function (e, t, l) { "use strict"; l.r(t); var c = l("7a23"), a = l("2e9d"), o = l("ad28"), r = l("1090"), n = l("2d16"), b = l("c5cb"); const i = { key: 0, class: "dialog" }, d = { class: "head_box" }, u = { class: "title" }, s = Object(c["createTextVNode"])("保存"), p = Object(c["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: o } = Object(c["getCurrentInstance"])(), r = Object(c["ref"])(!1), n = Object(c["ref"])(""), O = Object(c["ref"])({}), m = Object(c["ref"])(), f = Object(c["ref"])(!1), g = Object(c["ref"])(!1), C = Object(c["reactive"])({ tm: [{ required: !0, message: "请输入题目", trigger: "blur" }], type: [{ required: !0, message: "请选择题型", trigger: "blur" }] }), v = (e, t) => { r.value = !0, n.value = "add" == e ? "新增" : "edit" == e ? "编辑" : "详情", t && Object(b["b"])({}, "/mosty-base/baxx/tkgl/getInfo/" + t.id).then(e => { e.correctAnswer = "02" == e.type ? e.correctAnswer.split(",") : e.correctAnswer, g.value = "02" == e.type, O.value = e }) }, h = e => { switch (g.value = "02" == e, e) { case "01": case "02": O.value.isTrue = ""; break; case "03": O.value.correctAnswer = []; break } }, k = () => { m.value.validate(e => { if (!e) return; f.value = !0; let t = "新增" == n.value ? "/mosty-base/baxx/tkgl/add" : "/mosty-base/baxx/tkgl/edit", c = { ...O.value }; c.correctAnswer = Array.isArray(c.correctAnswer) ? c.correctAnswer.join(",") : c.correctAnswer, Object(b["b"])(c, t).then(() => { f.value = !1, o.$message.success("保存成功"), l("refresh"), V() }).catch(() => { f.value = !1 }) }) }, V = () => { r.value = !1, O.value = {}, g.value = !1, m.value.reset() }; return t({ init: v }), (e, t) => { const l = Object(c["resolveComponent"])("el-button"), o = Object(c["resolveComponent"])("el-option"), b = Object(c["resolveComponent"])("el-select"), v = Object(c["resolveComponent"])("el-form-item"), w = Objec
|