516 lines
41 KiB
JavaScript
516 lines
41 KiB
JavaScript
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-commons"], { "10a8": function(e, t, a) {
|
||
}, "1f23": function(e, t, a) {
|
||
}, "333d": function(e, t, a) {
|
||
"use strict";
|
||
var n = function() {
|
||
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
||
return a2("div", { staticClass: "pagination-container", class: { hidden: e2.hidden } }, [a2("el-pagination", e2._b({ attrs: { background: e2.background, "current-page": e2.currentPage, "page-size": e2.pageSize, layout: e2.layout, "page-sizes": e2.pageSizes, total: e2.total }, on: { "update:currentPage": function(t3) {
|
||
e2.currentPage = t3;
|
||
}, "update:current-page": function(t3) {
|
||
e2.currentPage = t3;
|
||
}, "update:pageSize": function(t3) {
|
||
e2.pageSize = t3;
|
||
}, "update:page-size": function(t3) {
|
||
e2.pageSize = t3;
|
||
}, "size-change": e2.handleSizeChange, "current-change": e2.handleCurrentChange } }, "el-pagination", e2.$attrs, false))], 1);
|
||
}, r = [], o = (a("e680"), { name: "Pagination", props: { total: { required: true, type: Number }, page: { type: Number, default: 1 }, limit: { type: Number, default: 10 }, pageSizes: { type: Array, default: function() {
|
||
return [10, 20, 30, 50];
|
||
} }, layout: { type: String, default: "total, sizes, prev, pager, next, jumper" }, background: { type: Boolean, default: true }, autoScroll: { type: Boolean, default: true }, hidden: { type: Boolean, default: false } }, computed: { currentPage: { get: function() {
|
||
return this.page;
|
||
}, set: function(e2) {
|
||
this.$emit("update:page", e2);
|
||
} }, pageSize: { get: function() {
|
||
return this.limit;
|
||
}, set: function(e2) {
|
||
this.$emit("update:limit", e2);
|
||
} } }, methods: { handleSizeChange: function(e2) {
|
||
this.$emit("handleSizeChange", { pageSize: this.pageSize, limit: e2 });
|
||
}, handleCurrentChange: function(e2) {
|
||
this.$emit("handleCurrentChange", { currentPage: e2, limit: this.currentPage });
|
||
} } }), i = o, l = (a("720d"), a("829d")), s = Object(l["a"])(i, n, r, false, null, "27f1f397", null);
|
||
t["a"] = s.exports;
|
||
}, 3701: function(e, t, a) {
|
||
"use strict";
|
||
a("10a8");
|
||
}, "3a3b": function(e, t, a) {
|
||
"use strict";
|
||
var n = function() {
|
||
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
||
return a2("div", { staticClass: "markdown-renderer", style: { color: e2.textColor }, domProps: { innerHTML: e2._s(e2.renderedHtml) } });
|
||
}, r = [], o = (a("d31c"), a("e8b2")), i = (a("aa18"), a("982e"), a("d0f2"), a("3269"), a("1bc7"), a("8dee"), a("11c2")), l = { name: "MarkdownRenderer", props: { mdContent: { type: String, required: true }, textColor: { type: String, default: "#333" }, tableTheme: { type: Object, default: function() {
|
||
return { headerBg: "#f5f5f5", headerText: "#333", borderColor: "#ccc", rowHover: "#f0f0f0", evenRow: "#f9f9f9", tableBorder: "#333", cellBg: "#ffffff", cellText: "#333" };
|
||
} } }, data: function() {
|
||
return { renderedHtml: "", mermaidCharts: [] };
|
||
}, watch: { mdContent: function(e2) {
|
||
this.renderMarkdown(e2);
|
||
}, textColor: function() {
|
||
this.updateTextColor();
|
||
} }, mounted: function() {
|
||
this.renderMarkdown(this.mdContent), this.updateTextColor(), this.loadMermaid();
|
||
}, methods: { loadMermaid: function() {
|
||
var e2 = this;
|
||
if (window.mermaid) this.initializeMermaid();
|
||
else if (document.querySelector('script[src*="mermaid"]')) this.waitForMermaid();
|
||
else {
|
||
console.log("Loading Mermaid from CDN...");
|
||
var t2 = document.createElement("script");
|
||
t2.src = "https://unpkg.com/mermaid@9.4.3/dist/mermaid.min.js", t2.onload = function() {
|
||
console.log("Mermaid loaded successfully"), e2.initializeMermaid(), e2.$nextTick((function() {
|
||
e2.renderMermaidDiagrams();
|
||
}));
|
||
}, t2.onerror = function() {
|
||
console.error("Failed to load Mermaid from unpkg, trying jsdelivr...");
|
||
var t3 = document.createElement("script");
|
||
t3.src = "https://cdn.jsdelivr.net/npm/mermaid@9.4.3/dist/mermaid.min.js", t3.onload = function() {
|
||
console.log("Mermaid loaded from backup CDN"), e2.initializeMermaid(), e2.$nextTick((function() {
|
||
e2.renderMermaidDiagrams();
|
||
}));
|
||
}, t3.onerror = function() {
|
||
console.error("Failed to load Mermaid from both CDNs");
|
||
}, document.head.appendChild(t3);
|
||
}, document.head.appendChild(t2);
|
||
}
|
||
}, waitForMermaid: function() {
|
||
var e2 = this, t2 = function() {
|
||
window.mermaid ? (e2.initializeMermaid(), e2.$nextTick((function() {
|
||
e2.renderMermaidDiagrams();
|
||
}))) : setTimeout(t2, 100);
|
||
};
|
||
t2();
|
||
}, initializeMermaid: function() {
|
||
window.mermaid ? (console.log("Initializing Mermaid..."), window.mermaid.initialize({ startOnLoad: false, theme: "default", securityLevel: "loose" }), console.log("Mermaid initialized successfully")) : console.error("Mermaid not available on window object");
|
||
}, renderMarkdown: function(e2) {
|
||
var t2 = this, a2 = e2;
|
||
"string" === typeof a2 && (a2 = a2.replace(/\\r\\n/g, "\n").replace(/\\n/g, "\n")), this.mermaidCharts = [];
|
||
var n2 = [];
|
||
a2 = this.extractMermaidChartsWithPlaceholders(a2, n2), a2 = this.preprocessImageLinks(a2), i["marked"].use({ pedantic: false, gfm: true, tables: true, breaks: false, smartLists: true, smartypants: false }), this.renderedHtml = Object(i["marked"])(a2), console.log("[Mermaid替换] 开始替换 ".concat(n2.length, " 个占位符")), console.log("[Mermaid替换] 渲染后的 HTML 预览: ".concat(this.renderedHtml.substring(0, 500), "...")), n2.forEach((function(e3, a3) {
|
||
var n3 = e3.placeholder, r2 = e3.mermaidDiv;
|
||
console.log("[Mermaid替换] 处理第 ".concat(a3 + 1, " 个占位符: ").concat(n3));
|
||
var o2 = t2.escapeRegExp(n3), i2 = t2.renderedHtml.length, l2 = false, s2 = new RegExp("<p>\\s*".concat(o2, "\\s*</p>"), "g"), c2 = t2.renderedHtml;
|
||
if (t2.renderedHtml = t2.renderedHtml.replace(s2, r2), t2.renderedHtml !== c2) l2 = true, console.log("[Mermaid替换] 第 ".concat(a3 + 1, " 个占位符:匹配为段落标签"));
|
||
else {
|
||
var d2 = new RegExp("<code>\\s*".concat(o2, "\\s*</code>"), "g"), u = t2.renderedHtml;
|
||
if (t2.renderedHtml = t2.renderedHtml.replace(d2, r2), t2.renderedHtml !== u) l2 = true, console.log("[Mermaid替换] 第 ".concat(a3 + 1, " 个占位符:匹配为代码标签"));
|
||
else {
|
||
var p = new RegExp("<pre>\\s*".concat(o2, "\\s*</pre>"), "g"), m = t2.renderedHtml;
|
||
if (t2.renderedHtml = t2.renderedHtml.replace(p, r2), t2.renderedHtml !== m) l2 = true, console.log("[Mermaid替换] 第 ".concat(a3 + 1, " 个占位符:匹配为预格式化标签"));
|
||
else {
|
||
var f = new RegExp(o2, "g"), h = t2.renderedHtml;
|
||
t2.renderedHtml = t2.renderedHtml.replace(f, r2), t2.renderedHtml !== h && (l2 = true, console.log("[Mermaid替换] 第 ".concat(a3 + 1, " 个占位符:直接文本匹配")));
|
||
}
|
||
}
|
||
}
|
||
var g = t2.renderedHtml.length;
|
||
if (l2) console.log("[Mermaid替换] 第 ".concat(a3 + 1, " 个占位符替换成功,HTML长度变化: ").concat(i2, " -> ").concat(g));
|
||
else {
|
||
console.warn("[Mermaid替换] 第 ".concat(a3 + 1, " 个占位符未能找到匹配,占位符: ").concat(n3));
|
||
var v = n3.replace(/_/g, "\\_"), b = t2.escapeRegExp(v);
|
||
new RegExp(b, "g").test(t2.renderedHtml) && (t2.renderedHtml = t2.renderedHtml.replace(new RegExp(b, "g"), r2), console.log("[Mermaid替换] 第 ".concat(a3 + 1, " 个占位符:使用转义模式匹配成功")));
|
||
}
|
||
})), console.log("[Mermaid替换] 占位符替换完成,最终HTML中有 ".concat((this.renderedHtml.match(/class="mermaid"/g) || []).length, " 个 mermaid div")), (this.renderedHtml.includes("<") || this.renderedHtml.includes(">")) && (this.renderedHtml = this.renderedHtml.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&")), this.renderedHtml = this.renderedHtml.replace(/alt="图表" style="[^"]*" \/>/g, "").replace(/alt="图表" style="[^"]*"/g, "").replace(/style="max-width: 100%; height: auto; border-radius: 4px; box-shadow: 0 2px 8px rgba\(0,0,0,0\.1\);"/g, "").replace(/alt="图表"/g, ""), this.renderedHtml = this.renderedHtml.replace(/(\d+%)(红)/g, '<span style="color: red;">$1</span>').replace(/(\d+%)(绿)/g, '<span style="color: green;">$1</span>').replace(/(\d+%)(黄)/g, '<span style="color: orange;">$1</span>').replace(/(\d+%)(蓝)/g, '<span style="color: blue;">$1</span>'), this.$nextTick((function() {
|
||
t2.updateTextColor(), t2.processImagesInDOM(), t2.applyTableTheme(), setTimeout((function() {
|
||
t2.renderMermaidDiagrams();
|
||
}), 100);
|
||
}));
|
||
}, extractMermaidChartsWithPlaceholders: function(e2, t2) {
|
||
var a2 = this, n2 = (e2.match(/```mermaid/g) || []).length;
|
||
console.log("[Mermaid提取] 原始内容中发现 ".concat(n2, " 个 mermaid 代码块开始标记"));
|
||
var r2, o2 = 0, i2 = 0, l2 = /```mermaid\s*[\r\n]+([\s\S]*?)```[\r\n]*/g, s2 = [];
|
||
while (null !== (r2 = l2.exec(e2))) s2.push({ fullMatch: r2[0], code: r2[1], index: r2.index });
|
||
if (console.log("[Mermaid提取] 正则表达式找到 ".concat(s2.length, " 个匹配项")), s2.length < n2) {
|
||
console.warn("[Mermaid提取] 匹配数量不匹配!尝试使用更宽松的正则表达式...");
|
||
var c2, d2 = /```mermaid([\s\S]*?)```/g, u = [];
|
||
while (null !== (c2 = d2.exec(e2))) u.push({ fullMatch: c2[0], code: c2[1], index: c2.index });
|
||
console.log("[Mermaid提取] 宽松模式找到 ".concat(u.length, " 个匹配项")), i2 = 0, o2 = 0;
|
||
var p = e2.replace(d2, (function(e3, n3) {
|
||
i2++;
|
||
var r3 = a2.processMermaidMatch(e3, n3, t2, o2, i2 - 1);
|
||
return r3;
|
||
}));
|
||
return console.log("[Mermaid提取] 总共处理了 ".concat(i2, " 个 mermaid 代码块")), p;
|
||
}
|
||
var m = e2.replace(/```mermaid\s*[\r\n]+([\s\S]*?)```[\r\n]*/g, (function(e3, n3) {
|
||
i2++, console.log("[Mermaid提取] 找到第 ".concat(i2, " 个 mermaid 代码块,长度: ").concat(e3.length));
|
||
var r3 = a2.processMermaidMatch(e3, n3, t2, o2, i2 - 1);
|
||
return r3;
|
||
}));
|
||
return console.log("[Mermaid提取] 总共处理了 ".concat(i2, " 个 mermaid 代码块")), m;
|
||
}, processMermaidMatch: function(e2, t2, a2, n2, r2) {
|
||
console.log("[Mermaid提取] 处理第 ".concat(r2 + 1, " 个 mermaid 代码块,长度: ").concat(e2.length, ", placeholderIndex: ").concat(n2));
|
||
var o2 = t2.trim();
|
||
if (o2 = o2.replace(/\\"/g, '"'), o2 = o2.replace(/\\r\\n/g, "\n").replace(/\\n/g, "\n"), o2 = o2.trim(), !o2) return console.warn("[Mermaid提取] 第 ".concat(r2 + 1, " 个代码块为空,跳过")), e2;
|
||
console.log("[Mermaid提取] 清理后的代码: ".concat(o2.substring(0, 50), "..."));
|
||
var i2 = "mermaid-".concat(Date.now(), "-").concat(Math.floor(1e4 * Math.random()), "-").concat(n2);
|
||
this.mermaidCharts.push({ id: i2, code: o2, rendered: false, svg: "" });
|
||
var l2 = '<div class="mermaid" id="'.concat(i2, '" data-mermaid-code="').concat(encodeURIComponent(o2), '"></div>');
|
||
return l2;
|
||
}, escapeRegExp: function(e2) {
|
||
return e2.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
||
}, preprocessMermaidCode: function(e2) {
|
||
return e2.replace(/```mermaid\s*\n([\s\S]*?)\n```/g, (function(e3, t2) {
|
||
var a2 = t2.trim(), n2 = "mermaid-".concat(Date.now(), "-").concat(Math.floor(1e4 * Math.random()));
|
||
return '<div class="mermaid" id="'.concat(n2, '" data-mermaid-code="').concat(encodeURIComponent(a2), '" style="text-align: center; margin: 1em 0; display: block;">\n <div style="color: #666; font-style: italic;">正在渲染图表...</div>\n </div>');
|
||
}));
|
||
}, preprocessImageLinks: function(e2) {
|
||
var t2 = e2.replace(/<details>[\s\S]*?```json\s*\n(https:\/\/quickchart\.io\/chart\?c=[A-Za-z0-9%]+)\s*\n```[\s\S]*?<\/details>/g, (function(e3, t3) {
|
||
var a2 = e3.match(/<summary>([\s\S]*?)<\/summary>/), n2 = a2 ? a2[1] : "Called MCP Tool: generate_chart";
|
||
return "<details>\n <summary>".concat(n2, '</summary>\n <div style="text-align: center; margin: 1em 0; padding: 1em; background: #f5f5f5; border-radius: 8px;">\n <img src="').concat(t3, '" alt="图表" style="max-width: 100%; height: auto; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.1);" />\n <p style="margin-top: 0.5em; color: #666; font-size: 0.9em;">图表</p>\n </div>\n </details>');
|
||
}));
|
||
return t2 = t2.replace(/```json\s*\n(https:\/\/quickchart\.io\/chart\?c=[A-Za-z0-9%]+)\s*\n```/g, (function(e3, t3) {
|
||
return '<div style="text-align: center; margin: 1em 0; padding: 1em; background: #f5f5f5; border-radius: 8px;">\n <img src="'.concat(t3, '" alt="图表" style="max-width: 100%; height: auto; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.1);" />\n <p style="margin-top: 0.5em; color: #666; font-size: 0.9em;">图表</p>\n </div>');
|
||
})), t2 = t2.replace(/https:\/\/quickchart\.io\/chart\?c=([A-Za-z0-9%]+)/g, (function(e3, t3) {
|
||
return '<div style="text-align: center; margin: 1em 0; padding: 1em; background: #f5f5f5; border-radius: 8px;">\n <img src="'.concat(e3, '" alt="图表" style="max-width: 100%; height: auto; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.1);" />\n <p style="margin-top: 0.5em; color: #666; font-size: 0.9em;">图表</p>\n </div>');
|
||
})), console.log("处理后的内容:", t2), t2;
|
||
}, processImagesInDOM: function() {
|
||
if (this.$el) {
|
||
var e2, t2 = document.createTreeWalker(this.$el, NodeFilter.SHOW_TEXT, null, false), a2 = [];
|
||
while (e2 = t2.nextNode()) if (e2.textContent.includes("quickchart.io/chart?c=")) {
|
||
var n2 = e2.parentNode, r2 = false;
|
||
while (n2 && n2 !== this.$el) {
|
||
if ("DETAILS" === n2.tagName) {
|
||
r2 = true;
|
||
break;
|
||
}
|
||
n2 = n2.parentNode;
|
||
}
|
||
r2 || a2.push(e2);
|
||
}
|
||
a2.forEach((function(e3) {
|
||
var t3 = e3.parentNode, a3 = e3.textContent, n3 = /https:\/\/quickchart\.io\/chart\?c=([A-Za-z0-9%]+)/g, r3 = Object(o["a"])(a3.matchAll(n3));
|
||
if (r3.length > 0) {
|
||
var i2 = a3;
|
||
r3.forEach((function(e4) {
|
||
var t4 = e4[0], a4 = '<div style="text-align: center; margin: 1em 0; padding: 1em; background: #f5f5f5; border-radius: 8px;">\n <img src="'.concat(t4, '" alt="图表" style="max-width: 100%; height: auto; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.1);" />\n <p style="margin-top: 0.5em; color: #666; font-size: 0.9em;">图表</p>\n </div>');
|
||
i2 = i2.replace(t4, a4);
|
||
}));
|
||
var l2 = document.createElement("div");
|
||
l2.innerHTML = i2;
|
||
while (l2.firstChild) t3.insertBefore(l2.firstChild, e3);
|
||
t3.removeChild(e3);
|
||
}
|
||
}));
|
||
}
|
||
}, applyTableTheme: function() {
|
||
var e2 = this;
|
||
if (this.$el) {
|
||
var t2 = this.$el.querySelectorAll("table");
|
||
t2.forEach((function(t3) {
|
||
t3.style.cssText = "\n width: 100% !important;\n border-collapse: collapse !important;\n margin: 1em 0 !important;\n background-color: ".concat(e2.tableTheme.cellBg, " !important;\n border: 1px solid ").concat(e2.tableTheme.tableBorder, " !important;\n border-radius: ").concat(e2.tableTheme.borderRadius || "4px", " !important;\n overflow: hidden !important;\n box-shadow: ").concat(e2.tableTheme.boxShadow || "none", " !important;\n ");
|
||
var a2 = t3.querySelectorAll("th");
|
||
a2.forEach((function(t4) {
|
||
t4.style.cssText = "\n background-color: ".concat(e2.tableTheme.headerBg, " !important;\n color: ").concat(e2.tableTheme.headerText, " !important;\n border: 1px solid ").concat(e2.tableTheme.borderColor, " !important;\n padding: ").concat(e2.tableTheme.headerPadding || "8px 12px", " !important;\n font-size: ").concat(e2.tableTheme.headerFontSize || "13px", " !important;\n font-weight: 600 !important;\n text-align: left !important;\n border-bottom: 1px solid ").concat(e2.tableTheme.borderColor, " !important;\n ");
|
||
}));
|
||
var n2 = t3.querySelectorAll("td");
|
||
n2.forEach((function(t4) {
|
||
t4.style.cssText = "\n background-color: ".concat(e2.tableTheme.cellBg, " !important;\n color: ").concat(e2.tableTheme.cellText, " !important;\n border: 1px solid ").concat(e2.tableTheme.borderColor, " !important;\n padding: ").concat(e2.tableTheme.cellPadding || "6px 12px", " !important;\n font-size: ").concat(e2.tableTheme.cellFontSize || "12px", " !important;\n text-align: left !important;\n border-bottom: 1px solid ").concat(e2.tableTheme.borderColor, " !important;\n ");
|
||
}));
|
||
var r2 = t3.querySelectorAll("tr");
|
||
r2.forEach((function(t4, a3) {
|
||
if (a3 % 2 === 1) {
|
||
t4.style.backgroundColor = e2.tableTheme.evenRow;
|
||
var n3 = t4.querySelectorAll("td");
|
||
n3.forEach((function(t5) {
|
||
t5.style.backgroundColor = e2.tableTheme.evenRow;
|
||
}));
|
||
} else {
|
||
var r3 = t4.querySelectorAll("td");
|
||
r3.forEach((function(t5) {
|
||
t5.style.backgroundColor = e2.tableTheme.cellBg;
|
||
}));
|
||
}
|
||
t4.addEventListener("mouseenter", (function() {
|
||
t4.style.backgroundColor = e2.tableTheme.rowHover;
|
||
var a4 = t4.querySelectorAll("td");
|
||
a4.forEach((function(t5) {
|
||
t5.style.backgroundColor = e2.tableTheme.rowHover;
|
||
}));
|
||
})), t4.addEventListener("mouseleave", (function() {
|
||
var n4 = a3 % 2 === 1;
|
||
t4.style.backgroundColor = n4 ? e2.tableTheme.evenRow : e2.tableTheme.cellBg;
|
||
var r4 = t4.querySelectorAll("td");
|
||
r4.forEach((function(t5) {
|
||
t5.style.backgroundColor = n4 ? e2.tableTheme.evenRow : e2.tableTheme.cellBg;
|
||
}));
|
||
}));
|
||
}));
|
||
}));
|
||
}
|
||
}, renderMermaidDiagrams: function() {
|
||
if (console.log("Starting Mermaid diagram rendering..."), window.mermaid) {
|
||
console.log("Using Mermaid built-in rendering...");
|
||
var e2 = this.$el.querySelectorAll(".mermaid");
|
||
console.log("Found mermaid elements:", e2.length), e2.length > 0 && (e2.forEach((function(e3) {
|
||
var t2 = e3.getAttribute("data-mermaid-code");
|
||
if (t2) {
|
||
var a2 = decodeURIComponent(t2);
|
||
e3.textContent = a2;
|
||
}
|
||
})), window.mermaid.init(void 0, e2));
|
||
} else console.log("Mermaid not available");
|
||
}, replacePlaceholder: function(e2) {
|
||
var t2 = this.$el.querySelector('[data-chart-id="'.concat(e2.id, '"]'));
|
||
if (t2) {
|
||
console.log("Found placeholder, replacing with SVG"), t2.innerHTML = e2.svg, t2.style.height = "auto", t2.style.lineHeight = "normal", t2.style.minHeight = "300px", t2.style.display = "block";
|
||
var a2 = t2.querySelector("svg");
|
||
a2 && (a2.style.width = "100%", a2.style.height = "auto", a2.style.display = "block", a2.style.maxWidth = "100%");
|
||
} else console.log("Placeholder not found for chart:", e2.id);
|
||
}, renderMermaidChart: function(e2) {
|
||
var t2 = this;
|
||
if (console.log("renderMermaidChart called, window.mermaid:", !!window.mermaid), console.log("Chart data:", e2), !window.mermaid) return e2.svg = '<div style="color: orange; padding: 10px; border: 1px solid orange; border-radius: 4px; text-align: left;">Mermaid库正在加载中...</div>', void setTimeout((function() {
|
||
t2.renderMermaidChart(e2);
|
||
}), 1e3);
|
||
var a2 = e2.code.trim();
|
||
if (a2.startsWith("mermaid") && (a2 = a2.replace(/^mermaid\s*/, "")), a2.includes("pie")) {
|
||
var n2 = a2.match(/pie\s+(.*)/);
|
||
if (n2) {
|
||
var r2 = n2[1], o2 = r2.match(/title\s+([^"]+)/), i2 = "pie\n";
|
||
o2 && (i2 += " title " + o2[1].trim() + "\n");
|
||
var l2 = r2.match(/"([^"]+)"\s*:\s*(\d+)/g);
|
||
l2 && l2.forEach((function(e3) {
|
||
var t3 = e3.match(/"([^"]+)"\s*:\s*(\d+)/);
|
||
t3 && (i2 += ' "' + t3[1] + '" : ' + t3[2] + "\n");
|
||
})), a2 = i2.trim();
|
||
}
|
||
}
|
||
console.log("Cleaned Mermaid code:", a2);
|
||
try {
|
||
console.log("Attempting to render Mermaid chart...");
|
||
var s2 = window.mermaid.render(e2.id, a2);
|
||
console.log("Mermaid render result:", s2), s2 && "string" === typeof s2 && s2.includes("<svg") ? (console.log("Mermaid chart rendered successfully"), console.log("SVG content length:", s2.length), console.log("SVG preview:", s2.substring(0, 200) + "..."), e2.svg = s2, e2.rendered = true) : s2 && s2.svg ? (console.log("Mermaid chart rendered successfully (object format)"), console.log("SVG content length:", s2.svg.length), console.log("SVG preview:", s2.svg.substring(0, 200) + "..."), e2.svg = s2.svg, e2.rendered = true) : (console.error("Mermaid render returned no valid SVG"), e2.svg = '<div style="color: red; padding: 10px; border: 1px solid red; border-radius: 4px; text-align: left;">Mermaid渲染返回空结果</div>', e2.rendered = true);
|
||
} catch (c2) {
|
||
console.error("Mermaid渲染失败:", c2), e2.svg = '<div style="color: red; padding: 10px; border: 1px solid red; border-radius: 4px; text-align: left;">Mermaid图表渲染失败: '.concat(c2.message, "</div>"), e2.rendered = true;
|
||
}
|
||
}, updateTextColor: function() {
|
||
var e2 = this;
|
||
if (this.$el) {
|
||
var t2 = this.$el.querySelectorAll("h1, h2, h3, h4, h5, h6, p, ul, ol, li, th, td");
|
||
t2.forEach((function(t3) {
|
||
t3.hasAttribute("style") && t3.getAttribute("style").includes("color") || (t3.style.color = e2.textColor);
|
||
}));
|
||
}
|
||
} } }, s = l, c = (a("c5bb"), a("829d")), d = Object(c["a"])(s, n, r, false, null, null, null);
|
||
t["a"] = d.exports;
|
||
}, "3ebe": function(e, t, a) {
|
||
}, 4059: function(e, t, a) {
|
||
"use strict";
|
||
var n = function() {
|
||
var e2 = this, t2 = e2.$createElement, n2 = e2._self._c || t2;
|
||
return n2("div", { staticClass: "scanModel" }, [n2("el-dialog", { attrs: { title: "扫码支付", visible: e2.show, "close-on-click-modal": false, "close-on-press-escape": false, width: "35%", "before-close": e2.handleClose }, on: { "update:visible": function(t3) {
|
||
e2.show = t3;
|
||
}, opened: e2.qrCodeCreate } }, [n2("div", { staticClass: "scanBody" }, [n2("div", { staticClass: "payBg_default" }), e2._v(" "), n2("div", { staticClass: "scanInfo" }, [n2("div", { staticClass: "orderNo" }, [e2._v("订单号:" + e2._s(e2.info.orderNo))])]), e2._v(" "), n2("div", { staticClass: "scanContent" }, [e2.pay_status ? n2("div", [n2("div", { staticClass: "moneyTitle" }, [e2._v("付款金额:"), n2("span", { staticClass: "weixin_default" }, [e2._v("¥" + e2._s(e2.toMoney(e2.info.totalAmount)))]), e2._v(" 元")]), e2._v(" "), n2("div", { staticClass: "cardContent" }, [n2("img", { attrs: { src: a("f4f1"), alt: "" } }), e2._v(" "), n2("div", { staticClass: "payQRCode" }, [e2.show ? n2("div", { ref: "qrCode", attrs: { id: "qrCode" } }) : e2._e()]), e2._v(" "), n2("div", { staticClass: "payTip" }, [e2._v("有效期30分钟,请及时付款")])]), e2._v(" "), n2("div", { staticClass: "orderTip" }, [e2._v("请使用微信、支付宝扫一扫完成支付")])]) : e2._e(), e2._v(" "), e2.pay_status ? e2._e() : n2("div", { staticStyle: { margin: "60px 0" } }, [e2.pay_success ? n2("el-result", { attrs: { icon: "success", title: "支付成功", subTitle: "到账后系统会自动处理缴费账单,请耐心等待!" } }, [n2("template", { slot: "extra" }, [n2("el-button", { staticClass: "btn_weixin", attrs: { type: "success", size: "medium" }, on: { click: e2.back } }, [e2._v("返回")])], 1)], 2) : e2._e(), e2._v(" "), e2.pay_error ? n2("el-result", { attrs: { icon: "error", title: "支付失败", subTitle: "请点击下方按钮再次支付或重新下单,谢谢!" } }, [n2("template", { slot: "extra" }, [n2("el-button", { staticClass: "btn_weixin", attrs: { type: "success", size: "medium" }, on: { click: e2.toPay } }, [e2._v("继续支付")])], 1)], 2) : e2._e()], 1)])]), e2._v(" "), e2.pay_status ? n2("div", { staticClass: "payBtn" }, [n2("el-button", { staticClass: "btn_default", attrs: { type: "success", loading: e2.btnLoading }, on: { click: e2.searchPay } }, [e2._v("完成支付")]), e2._v(" "), n2("el-button", { on: { click: e2.closeItem } }, [e2._v("暂不支付")])], 1) : e2._e()])], 1);
|
||
}, r = [], o = a("f8b7"), i = a("dedc"), l = { props: ["show", "info"], data: function() {
|
||
return { btnLoading: false, pay_success: false, pay_error: false, pay_status: true, count: 0 };
|
||
}, methods: { qrCodeCreate: function() {
|
||
var e2 = this;
|
||
this.pay_success = false, this.pay_error = false, this.pay_status = true, this.count = 0, console.log(this.info), this.$nextTick((function() {
|
||
var t2 = Object(i["a"])({ size: 165, data: "".concat("https://hc-offiaccount.sqygj.cn", "/cashier?type=3&no=").concat(e2.info.orderNo) });
|
||
document.getElementById("qrCode").appendChild(t2);
|
||
}));
|
||
}, toMoney: function(e2) {
|
||
return e2 ? e2.toFixed(2) : "";
|
||
}, handleClose: function() {
|
||
this.back();
|
||
}, closeItem: function() {
|
||
var e2 = this;
|
||
this.$confirm("当前订单已生成,后续需缴费请前往销单页面进行支付!", "温馨提示", { confirmButtonText: "确定", showCancelButton: false, type: "warning" }).then((function() {
|
||
e2.back();
|
||
})).catch((function() {
|
||
}));
|
||
}, back: function() {
|
||
this.$emit("back");
|
||
}, toPay: function() {
|
||
this.$emit("back");
|
||
}, searchPay: function() {
|
||
this.btnLoading = true, this.payCallback();
|
||
}, payCallback: function() {
|
||
var e2 = this, t2 = this;
|
||
Object(o["h"])({ orderNo: this.info.orderNo }).then((function(a2) {
|
||
2 == a2.data.status ? (e2.btnLoading = false, e2.pay_status = false, e2.pay_success = true, e2.pay_error = false, e2.count = 0) : 1 == a2.data.status && (e2.count < 5 ? setTimeout((function() {
|
||
t2.payCallback(), t2.count++;
|
||
}), 1e3) : (e2.pay_status = false, e2.pay_success = false, e2.pay_error = true, e2.btnLoading = false));
|
||
}));
|
||
} } }, s = l, c = (a("d8ae"), a("829d")), d = Object(c["a"])(s, n, r, false, null, null, null);
|
||
t["a"] = d.exports;
|
||
}, "720d": function(e, t, a) {
|
||
"use strict";
|
||
a("7c0b");
|
||
}, "7c0b": function(e, t, a) {
|
||
}, 8988: function(e, t, a) {
|
||
"use strict";
|
||
var n = function() {
|
||
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
||
return a2("div", { staticClass: "uploadWrap" }, [e2._t("default", [e2.showFileList ? e2._e() : a2("ul", { staticClass: "uploadContent" }, e2._l(e2.uploadResult, (function(t3) {
|
||
return a2("li", { key: t3.filePath }, [a2("el-image", { staticStyle: { width: "100px", height: "100px" }, attrs: { src: t3.filePath, "preview-src-list": [t3.filePath] } }), e2._v(" "), "video" === t3.fileType ? a2("video", { attrs: { src: t3.filePath, controls: "controls" } }, [e2._v("\n 您的浏览器不支持视频播放\n ")]) : e2._e(), e2._v(" "), "file" === t3.fileType ? a2("span", [e2._v(e2._s(t3.fileName))]) : e2._e(), e2._v(" "), e2.isShowClose ? a2("span", { staticClass: "closeIcon", on: { click: function(a3) {
|
||
return e2.handleRemove(t3);
|
||
} } }, [a2("i", { staticClass: "el-icon-close" })]) : e2._e()], 1);
|
||
})), 0)]), e2._v(" "), a2("el-upload", { directives: [{ name: "loading", rawName: "v-loading", value: e2.isLoad, expression: "isLoad" }], ref: "upload", staticClass: "upload", class: { hide: e2.uploadResult.length >= e2.limit }, attrs: { action: "", "http-request": e2.uploadRequest, "before-upload": e2.beforeUpload, "on-success": e2.handleSuccess, "auto-upload": e2.autoUpload, "file-list": e2.computedFileList, "show-file-list": e2.showFileList, "on-remove": e2.handleRemove, limit: e2.limit, "list-type": e2.listType, "on-preview": e2.handlePreview, accept: e2.accept, disabled: !!e2.disabled || !(e2.limit > 0) } }, [e2.uploadResult.length < e2.limit ? e2._t("uploadButton", [a2("i", { staticClass: "el-icon-plus upload-plus", attrs: { slot: "default" }, slot: "default" })]) : e2._e()], 2), e2._v(" "), a2("el-dialog", { attrs: { visible: e2.dialogVisible, "show-close": true, "close-on-press-escape": false, "close-on-click-modal": false, "destroy-on-close": "", width: "50%" }, on: { "update:visible": function(t3) {
|
||
e2.dialogVisible = t3;
|
||
} } }, [e2.allowFileType.includes("image") && e2.dialogImageUrl && e2.dialogImageUrl.length > 0 ? a2("div", e2._l(e2.dialogImageUrl, (function(t3, n2) {
|
||
return a2("el-image", { key: n2, staticClass: "fileIframe", attrs: { width: "100%", src: t3, alt: "", "preview-src-list": e2.dialogImageUrl } });
|
||
})), 1) : "file" === e2.allowFileType[0] || "video" === e2.allowFileType[0] ? a2("iframe", { staticClass: "fileIframe", attrs: { src: e2.dialogImageUrl, frameborder: "0" } }) : e2._e(), e2._v(" "), a2("span", { staticClass: "dialog-footer", attrs: { slot: "footer" }, slot: "footer" }, [a2("el-button", { attrs: { type: "primary" }, on: { click: e2.closeFileDialog } }, [e2._v("关闭")])], 1)])], 2);
|
||
}, r = [], o = (a("ac67"), a("1bc7"), a("32ea"), a("a7e5"), a("b5aa"), a("3ef1")), i = (a("aa18"), a("982e"), a("a450"), a("5821")), l = (a("e680"), a("127f")), s = a("90e7");
|
||
function c(e2, t2) {
|
||
var a2 = Object.keys(e2);
|
||
if (Object.getOwnPropertySymbols) {
|
||
var n2 = Object.getOwnPropertySymbols(e2);
|
||
t2 && (n2 = n2.filter((function(t3) {
|
||
return Object.getOwnPropertyDescriptor(e2, t3).enumerable;
|
||
}))), a2.push.apply(a2, n2);
|
||
}
|
||
return a2;
|
||
}
|
||
function d(e2) {
|
||
for (var t2 = 1; t2 < arguments.length; t2++) {
|
||
var a2 = null != arguments[t2] ? arguments[t2] : {};
|
||
t2 % 2 ? c(Object(a2), true).forEach((function(t3) {
|
||
Object(i["a"])(e2, t3, a2[t3]);
|
||
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(a2)) : c(Object(a2)).forEach((function(t3) {
|
||
Object.defineProperty(e2, t3, Object.getOwnPropertyDescriptor(a2, t3));
|
||
}));
|
||
}
|
||
return e2;
|
||
}
|
||
var u = { props: { autoUpload: { default: true, type: Boolean }, showFileList: { default: false, type: Boolean }, fileList: { default: function() {
|
||
return [];
|
||
}, type: Array }, listType: { default: "picture-card", type: String }, allowFileType: { default: function() {
|
||
return ["file", "image", "video"];
|
||
}, type: Array }, accept: { type: String, default: "image/jpeg,image/png,image/JPG,image/jpg,image/PNG" }, limit: { type: Number, default: 99 }, isShowClose: { type: Boolean, default: true }, imgStore: { type: String, default: "" }, isChangeFileName: { type: Boolean, default: true }, disabled: { type: Boolean, default: false } }, data: function() {
|
||
var e2 = [];
|
||
return { isLoad: false, isUploading: false, uploadList: [], uploadMap: {}, uploadResult: e2, dialogVisible: false, dialogImageUrl: "" };
|
||
}, computed: { computedFileList: function() {
|
||
return this.fileList.map((function(e2) {
|
||
return d(d({}, e2), {}, { fileId: l["a"] });
|
||
}));
|
||
} }, watch: { computedFileList: { deep: true, handler: function(e2, t2) {
|
||
e2 && e2.length && (this.uploadResult = e2.map((function(e3) {
|
||
return d(d({}, e3), {}, { filePath: e3.url });
|
||
})));
|
||
} } }, mounted: function() {
|
||
var e2 = this;
|
||
void 0 != this.fileList && this.fileList.length > 0 && this.fileList.map((function(t2) {
|
||
e2.uploadResult.push({ filePath: t2.url, fileId: Object(l["a"])() });
|
||
}));
|
||
}, methods: { isImage: function(e2) {
|
||
var t2 = ["image/jpeg", "image/png", "image/gif"];
|
||
return -1 != t2.indexOf(e2.type);
|
||
}, isVideo: function(e2) {
|
||
return -1 != ["video/mp4", "video/ogg", "video/flv", "video/avi", "video/wmv", "video/rmvb"].indexOf(e2.type);
|
||
}, isFile: function(e2) {
|
||
var t2 = ["application/msword", "application/vnd.openxmlformats-officedocument.wordprocessingml.document", "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/pdf"], a2 = [".doc", ".docx", ".pdf", ".xls", ".xlsx"], n2 = e2.name.slice(e2.name.lastIndexOf("."));
|
||
return e2.type ? -1 != t2.indexOf(e2.type) : -1 != a2.indexOf(n2);
|
||
}, handlePreview: function(e2) {
|
||
console.log("file", e2);
|
||
var t2 = [];
|
||
this.allowFileType.includes("image") && this.uploadResult.length > 0 ? (this.uploadResult.map((function(e3) {
|
||
t2.push(e3.filePath);
|
||
})), this.dialogImageUrl = t2, this.dialogVisible = true) : this.$message.error("非图片类型暂不支持预览!");
|
||
}, closeFileDialog: function() {
|
||
this.dialogVisible = false;
|
||
}, beforeUpload: function(e2) {
|
||
var t2 = e2.size / 1024 / 1024 < 10, a2 = this.allowFileType;
|
||
if (!(-1 !== a2.indexOf("image") && this.isImage(e2) || (-1 !== a2.indexOf("file") && this.isFile(e2) || -1 !== a2.indexOf("video") && this.isVideo(e2)) && t2)) return this.$message.error("请上传正确的文件类型且上传的文件大小不能超过10MB哦!"), false;
|
||
this.isLoad = true;
|
||
}, uploadInfo: function() {
|
||
if (6 == this.uploadResult.length) {
|
||
var e2 = "", t2 = this.allowFileType;
|
||
if (-1 !== t2.indexOf("image")) return e2 = "图片最多上传6张", void this.message(e2);
|
||
if (-1 !== t2.indexOf("video")) e2 = "视频最多上传6个", this.message(e2);
|
||
else if (-1 !== t2.indexOf("file")) return e2 = "文件最多上传6份", void this.message(e2);
|
||
}
|
||
}, add0: function(e2) {
|
||
return e2 < 10 ? "0" + e2 : e2;
|
||
}, getYearMonthDay: function() {
|
||
var e2 = /* @__PURE__ */ new Date(), t2 = e2.getFullYear(), a2 = e2.getMonth() + 1, n2 = e2.getDate();
|
||
return "" + t2 + this.add0(a2) + this.add0(n2);
|
||
}, message: function(e2) {
|
||
this.$message({ message: e2, type: "error" });
|
||
}, uploadRequest: function(e2) {
|
||
var t2 = this;
|
||
t2.isLoad = true;
|
||
var a2 = e2.file;
|
||
console.log("file", a2);
|
||
var n2 = a2.name.lastIndexOf("."), r2 = a2.name.length, i2 = a2.name.substring(n2 + 1, r2), c2 = "";
|
||
c2 = this.isChangeFileName ? Object(l["a"])() + "." + i2 : a2.name;
|
||
var d2 = this.isImage(a2) ? "image" : this.isVideo(a2) ? "video" : this.isFile(a2) ? "file" : a2.type, u2 = new FormData();
|
||
u2.append("file", a2);
|
||
var p2 = (function() {
|
||
var n3 = Object(o["a"])(regeneratorRuntime.mark((function n4() {
|
||
var r3, o2, i3, p3, m2, f2;
|
||
return regeneratorRuntime.wrap((function(n5) {
|
||
while (1) switch (n5.prev = n5.next) {
|
||
case 0:
|
||
return n5.prev = 0, n5.next = 1, Object(s["o"])(u2);
|
||
case 1:
|
||
if (r3 = n5.sent, !r3 || !r3.data || 0 !== r3.data.code) {
|
||
n5.next = 2;
|
||
break;
|
||
}
|
||
o2 = r3.data.data.fullUrl, i3 = { fileType: d2, fileName: c2, filePath: o2, fileOrName: a2.name, uid: a2.uid, fileId: Object(l["a"])() }, t2.uploadResult.push(i3), t2.uploadList.splice(t2.uploadList.indexOf(c2), 1), delete t2.uploadMap[c2], 0 === t2.uploadList.length ? (t2.isLoad = false, t2.$message.success("上传成功!"), e2.onSuccess()) : (p3 = t2.uploadList[0], t2.uploadMap[p3] && t2.uploadMap[p3]()), n5.next = 3;
|
||
break;
|
||
case 2:
|
||
throw new Error(r3.message || "上传失败");
|
||
case 3:
|
||
n5.next = 5;
|
||
break;
|
||
case 4:
|
||
n5.prev = 4, f2 = n5["catch"](0), t2.$message.error("上传失败: ".concat(f2.message || "未知错误")), t2.uploadList.splice(t2.uploadList.indexOf(c2), 1), delete t2.uploadMap[c2], 0 === t2.uploadList.length ? t2.isLoad = false : (m2 = t2.uploadList[0], t2.uploadMap[m2] && t2.uploadMap[m2]());
|
||
case 5:
|
||
case "end":
|
||
return n5.stop();
|
||
}
|
||
}), n4, null, [[0, 4]]);
|
||
})));
|
||
return function() {
|
||
return n3.apply(this, arguments);
|
||
};
|
||
})();
|
||
0 === this.uploadList.length && p2(), this.uploadList.push(c2), this.uploadMap[c2] = p2;
|
||
}, upload: function() {
|
||
this.$refs.upload.submit();
|
||
}, handleSuccess: function() {
|
||
this.uploadResult.length > 6 || (this.uploadInfo(), this.$emit("getUploadData", this.uploadResult));
|
||
}, handleRemove: function(e2, t2) {
|
||
var a2 = this.uploadResult.findIndex((function(t3) {
|
||
return e2.uid == t3.uid || e2.url === t3.filePath;
|
||
}));
|
||
this.uploadResult.splice(a2, 1), this.$emit("getUploadData", this.uploadResult);
|
||
} } }, p = u, m = (a("3701"), a("c838"), a("829d")), f = Object(m["a"])(p, n, r, false, null, "8ef0850a", null);
|
||
t["a"] = f.exports;
|
||
}, c5bb: function(e, t, a) {
|
||
"use strict";
|
||
a("ccc8");
|
||
}, c838: function(e, t, a) {
|
||
"use strict";
|
||
a("3ebe");
|
||
}, ccc8: function(e, t, a) {
|
||
}, d322: function(e, t, a) {
|
||
}, d68f: function(e, t, a) {
|
||
"use strict";
|
||
var n = function() {
|
||
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
||
return a2("div", { staticClass: "qualityStimate" }, [a2("div", { staticClass: "workOrderTitle" }, [e2._v("质量评估\n "), a2("el-tooltip", { attrs: { placement: "top" } }, [2 === e2.dataInfo.planType ? a2("div", { attrs: { slot: "content" }, slot: "content" }, [e2._v("\n 评估规则:\n "), a2("br"), e2._v("正常:4-5星 且 无超时\n "), a2("br"), e2._v("警告:3星 或 受理超时\n "), a2("br"), e2._v("黄牌:2星 或 处理超时\n "), a2("br"), e2._v(" 红牌:1星 或 (受理超时+处理超时)\n ")]) : e2._e(), e2._v(" "), 1 === e2.dataInfo.planType ? a2("div", { attrs: { slot: "content" }, slot: "content" }, [e2._v("\n 评估规则:\n "), a2("br"), e2._v("警告:3星 或 受理超时\n "), a2("br"), e2._v("黄牌:2星 或 处理超时\n "), a2("br"), e2._v("红牌:1星 或 (受理超时+处理超时)\n "), a2("br"), e2._v("超时转单: 工单存在超时后进行转单,红黄牌结算计入转单人名下\n "), a2("br"), e2._v("未超时转单:如转单对象接受,工单红黄牌与转单人无关\n ")]) : e2._e(), e2._v(" "), a2("span", { staticClass: "el-icon-info" })])], 1), e2._v(" "), a2("div", { staticClass: "tab-title" }), e2._v(" "), a2("div", { staticClass: "orderInfos data" }, [a2("el-row", { staticStyle: { margin: "25px 0px" } }, [a2("el-col", { staticClass: "fontLin", attrs: { span: 4 } }, [e2._v(e2._s(e2.dataInfo.memberName))]), e2._v(" "), a2("el-col", { staticClass: "lfteStes", attrs: { span: 4 } }, [3 !== e2.dataInfo.accept ? a2("span", { staticClass: "circular2" }, [e2._v("受理")]) : e2._e(), e2._v(" "), 3 == e2.dataInfo.accept ? a2("span", { staticClass: "circular6" }, [e2._v("受理")]) : e2._e(), e2._v(" "), a2("br"), 3 !== e2.dataInfo.accept ? a2("span", { staticClass: "alignment" }, [e2._v("未超时")]) : e2._e(), e2._v(" "), a2("br"), 3 == e2.dataInfo.accept ? a2("span", { staticClass: "alignment2" }, [e2._v("超时")]) : e2._e()]), e2._v(" "), a2("el-col", { staticClass: "sytsFont el-icon-plus", attrs: { span: 4 } }), e2._v(" "), a2("el-col", { attrs: { span: 4 } }, [3 !== e2.dataInfo.handle ? a2("span", { staticClass: "circular2" }, [e2._v("处理")]) : e2._e(), e2._v(" "), 3 == e2.dataInfo.handle ? a2("span", { staticClass: "circular6" }, [e2._v("处理")]) : e2._e(), e2._v(" "), a2("br"), 3 !== e2.dataInfo.handle ? a2("span", { staticClass: "alignment" }, [e2._v("未超时")]) : e2._e(), e2._v(" "), a2("br"), 3 == e2.dataInfo.handle ? a2("span", { staticClass: "alignment2" }, [e2._v("超时")]) : e2._e()]), e2._v(" "), a2("el-col", { staticClass: "sytsFont el-icon-plus", attrs: { span: 4 } }), e2._v(" "), a2("el-col", { attrs: { span: 4 } }, [a2("span", { staticClass: "circular2" }, [e2._v("评价")]), e2._v(" "), a2("br"), a2("span", { staticClass: "alignment", staticStyle: { "padding-left": "3px" } }, [e2._v(e2._s(e2.dataInfo.evaluationStar) + "星")])]), e2._v(" "), a2("el-col", { staticClass: "sytsFont", attrs: { span: 4 } }, [e2._v("=")]), e2._v(" "), a2("el-col", { attrs: { span: 4 } }, [e2.dataInfo.warnType ? e2._e() : a2("span", { staticClass: "greenCircle" }, [e2._v("绿牌")]), e2._v(" "), 1 == e2.dataInfo.warnType ? a2("span", { staticClass: "yellowCir" }, [e2._v("警告")]) : e2._e(), e2._v(" "), 2 == e2.dataInfo.warnType ? a2("span", { staticClass: "yellowCir" }, [e2._v("黄牌")]) : e2._e(), e2._v(" "), 3 == e2.dataInfo.warnType ? a2("span", { staticClass: "redCircle" }, [e2._v("红牌")]) : e2._e()])], 1)], 1)]);
|
||
}, r = [], o = { props: { dataInfo: { type: Object, default: function() {
|
||
return {};
|
||
} } }, data: function() {
|
||
return {};
|
||
}, methods: {} }, i = o, l = (a("f10c"), a("829d")), s = Object(l["a"])(i, n, r, false, null, "7a9cbc75", null);
|
||
t["a"] = s.exports;
|
||
}, d8ae: function(e, t, a) {
|
||
"use strict";
|
||
a("1f23");
|
||
}, e058: function(e, t, a) {
|
||
"use strict";
|
||
a("a450");
|
||
var n = function() {
|
||
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
||
return a2("div", { staticClass: "flowm-card", class: e2.shadow ? "is-" + e2.shadow + "-shadow" : "is-always-shadow" }, [e2.$slots.header || e2.header ? a2("div", { staticClass: "flowm-card__header" }, [e2._t("header", [e2._v(e2._s(e2.header))])], 2) : e2._e(), e2._v(" "), a2("div", { staticClass: "flowm-card__body", style: e2.bodyStyle }, [e2._t("default")], 2), e2._v(" "), e2.$slots.footer || e2.footer ? a2("div", { staticClass: "flowm-card__footer", style: e2.footerStyle }, [e2._t("footer", [e2._v(e2._s(e2.footer))])], 2) : e2._e()]);
|
||
}, r = [], o = { name: "ElCard", props: { header: {}, bodyStyle: {}, footerStyle: {}, footer: {}, shadow: { type: String } } }, i = o, l = a("829d"), s = Object(l["a"])(i, n, r, false, null, null, null), c = s.exports;
|
||
c.install = function(e2) {
|
||
e2.component(c.name, c);
|
||
};
|
||
t["a"] = c;
|
||
}, f10c: function(e, t, a) {
|
||
"use strict";
|
||
a("d322");
|
||
} }]);
|