321 lines
24 KiB
JavaScript
321 lines
24 KiB
JavaScript
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-1b623cfd"], { "0107": function(t, e, a) {
|
||
"use strict";
|
||
a.d(e, "f", (function() {
|
||
return o;
|
||
})), a.d(e, "d", (function() {
|
||
return i;
|
||
})), a.d(e, "e", (function() {
|
||
return r;
|
||
})), a.d(e, "g", (function() {
|
||
return c;
|
||
})), a.d(e, "h", (function() {
|
||
return l;
|
||
})), a.d(e, "b", (function() {
|
||
return s;
|
||
})), a.d(e, "i", (function() {
|
||
return d;
|
||
})), a.d(e, "j", (function() {
|
||
return u;
|
||
})), a.d(e, "a", (function() {
|
||
return p;
|
||
})), a.d(e, "c", (function() {
|
||
return m;
|
||
})), a.d(e, "l", (function() {
|
||
return h;
|
||
})), a.d(e, "k", (function() {
|
||
return f;
|
||
}));
|
||
var n = a("b775");
|
||
function o(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/ProjectBlueprint/pageList", method: "post", data: t2 });
|
||
}
|
||
function i(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/ProjectBlueprint/download", method: "post", data: t2 });
|
||
}
|
||
function r(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/ProjectBlueprintNode/getNodeTree", method: "post", data: t2 });
|
||
}
|
||
function c(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/ProjectBlueprintNode/updateBatch", method: "post", data: t2 });
|
||
}
|
||
function l(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/TaskInspectionsStandard/pageList", method: "post", data: t2 });
|
||
}
|
||
function s(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/ProjectConfig/pageList", method: "post", data: t2 });
|
||
}
|
||
function d(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/ProjectConfig/updateProbability", method: "post", data: t2 });
|
||
}
|
||
function u(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/TaskInspectionsStandard/updateQualifiedStatus", method: "post", data: t2 });
|
||
}
|
||
function p(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/AiAcceptanceReport/pageList", method: "post", data: t2 });
|
||
}
|
||
function m(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/AiAcceptanceReport/statistics", method: "post", data: t2 });
|
||
}
|
||
function h(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/VideoImageCallback/pageList", method: "post", data: t2 });
|
||
}
|
||
function f(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/VideoImageCallback/feedback", method: "post", data: t2 });
|
||
}
|
||
}, 1618: function(t, e, a) {
|
||
"use strict";
|
||
a("3661");
|
||
}, "22d8": function(t, e, a) {
|
||
}, 3661: function(t, e, a) {
|
||
}, "67d5": function(t, e, a) {
|
||
"use strict";
|
||
a.d(e, "i", (function() {
|
||
return o;
|
||
})), a.d(e, "j", (function() {
|
||
return i;
|
||
})), a.d(e, "f", (function() {
|
||
return r;
|
||
})), a.d(e, "b", (function() {
|
||
return c;
|
||
})), a.d(e, "c", (function() {
|
||
return l;
|
||
})), a.d(e, "k", (function() {
|
||
return s;
|
||
})), a.d(e, "e", (function() {
|
||
return d;
|
||
})), a.d(e, "d", (function() {
|
||
return u;
|
||
})), a.d(e, "h", (function() {
|
||
return p;
|
||
})), a.d(e, "a", (function() {
|
||
return m;
|
||
})), a.d(e, "g", (function() {
|
||
return h;
|
||
}));
|
||
var n = a("b775");
|
||
function o(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/Role/pageList", method: "post", data: t2 });
|
||
}
|
||
function i(t2) {
|
||
return Object(n["a"])({ url: "/company/organizationalStructure/selectOsList", method: "post", data: t2 });
|
||
}
|
||
function r(t2) {
|
||
return Object(n["a"])({ url: "/company/organizationalStructure/findOsTree", method: "post", data: t2 });
|
||
}
|
||
function c(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/Role/create", method: "post", data: t2 });
|
||
}
|
||
function l(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/Role/delete", method: "post", data: t2 });
|
||
}
|
||
function s(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/Role/update", method: "post", data: t2 });
|
||
}
|
||
function d(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/RoleMenuRel/findByRoleIdAndClienId", method: "post", data: t2 });
|
||
}
|
||
function u(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/OrganizationRoleRel/findByRoleId", method: "post", data: t2 });
|
||
}
|
||
function p(t2) {
|
||
return Object(n["a"])({ url: "/company/member/pageListForRole", method: "post", data: t2 });
|
||
}
|
||
function m(t2) {
|
||
return Object(n["a"])({ url: "/company/MemberRoleRel/batchDelete", method: "post", data: t2 });
|
||
}
|
||
function h(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/account/findProjectByRole", method: "post", data: t2 });
|
||
}
|
||
}, a995: function(t, e, a) {
|
||
"use strict";
|
||
a("22d8");
|
||
}, c87a: function(t, e, a) {
|
||
"use strict";
|
||
a.r(e);
|
||
var n = function() {
|
||
var t2 = this, e2 = t2.$createElement, a2 = t2._self._c || e2;
|
||
return a2("div", { staticClass: "workPointsManage" }, [t2.list ? a2("div", { staticClass: "workPointsRuleList" }, [a2("el-card", { staticClass: "box-card secarch-box" }, [a2("el-row", [a2("el-col", { staticClass: "elCol", attrs: { span: 4 } }, [a2("el-select", { attrs: { clearable: "", filterable: "", placeholder: "请选择项目" }, model: { value: t2.query.projectUuid, callback: function(e3) {
|
||
t2.$set(t2.query, "projectUuid", e3);
|
||
}, expression: "query.projectUuid" } }, t2._l(t2.projectList, (function(t3) {
|
||
return a2("el-option", { key: t3.uuid, attrs: { label: t3.name, value: t3.uuid } });
|
||
})), 1)], 1), t2._v(" "), a2("el-col", { staticClass: "elCol", attrs: { span: 3 } }, [a2("el-input", { attrs: { placeholder: "图谱名称" }, model: { value: t2.query.name, callback: function(e3) {
|
||
t2.$set(t2.query, "name", e3);
|
||
}, expression: "query.name" } })], 1), t2._v(" "), a2("el-col", { staticClass: "elCol", attrs: { span: 4 } }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(e3) {
|
||
return t2.resetForm();
|
||
} } }, [t2._v("重置")]), t2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: t2.onSearch } }, [t2._v("查询")])], 1)], 1)], 1), t2._v(" "), a2("el-card", { staticClass: "box-card", staticStyle: { "margin-top": "15px" } }, [a2("div", { staticClass: "planLst" }, [a2("span", { staticClass: "planTitle" }, [t2._v("知识图谱列表")]), t2._v(" "), a2("span", { staticClass: "add" }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary", size: "small", loading: t2.syncLoad, icon: "el-icon-refresh" }, on: { click: t2.syncClick } }, [t2._v("云下载")])], 1)]), t2._v(" "), a2("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: t2.tableLoading, expression: "tableLoading" }], staticStyle: { width: "100%", "margin-top": "15px" }, attrs: { border: "", data: t2.tableData, "header-cell-style": t2.headClass } }, [a2("el-table-column", { attrs: { label: "#", align: "center", width: "80", fixed: "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
||
return [a2("span", [t2._v(t2._s(e3.$index + (t2.query.pageNumber - 1) * t2.query.pageSize + 1))])];
|
||
} }], null, false, 714878904) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "项目名称", prop: "projectName" } }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "知识图谱名称", prop: "name" } }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "知识图谱描述", prop: "description" } }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "更新人", prop: "updaterName" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
||
return [t2._v(t2._s(e3.row.updaterName || "-"))];
|
||
} }], null, false, 2838189108) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "更新时间", prop: "updateTime" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
||
return [t2._v(t2._s(e3.row.updateTime || "-"))];
|
||
} }], null, false, 1410144084) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "下载人", prop: "updaterName" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
||
return [t2._v(t2._s(e3.row.creatorName || "-"))];
|
||
} }], null, false, 821566059) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "下载时间", prop: "updateTime" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
||
return [t2._v(t2._s(e3.row.createTime || "-"))];
|
||
} }], null, false, 1887864129) }), t2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "操作" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
||
return [a2("el-button", { attrs: { type: "text" }, on: { click: function(a3) {
|
||
return t2.editBlueprint(e3.row);
|
||
} } }, [t2._v("编辑图谱")])];
|
||
} }], null, false, 4050654314) })], 1), t2._v(" "), a2("div", { staticClass: "paginations" }, [a2("el-pagination", { attrs: { background: "", "current-page": t2.query.pageNumber, "page-sizes": [10, 20, 30, 50], "page-size": t2.query.pageSize, layout: "total, sizes, prev, pager, next, jumper", total: t2.pageTotal }, on: { "update:currentPage": function(e3) {
|
||
return t2.$set(t2.query, "pageNumber", e3);
|
||
}, "update:current-page": function(e3) {
|
||
return t2.$set(t2.query, "pageNumber", e3);
|
||
}, "size-change": t2.handleSizeChange, "current-change": t2.handleCurrentChange } })], 1)], 1)], 1) : t2._e(), t2._v(" "), t2.detailsShow ? a2("div", [a2("knowledgeDetails", { ref: "knowledgeDetails", attrs: { detailsTitle: "编辑知识图谱", dataId: t2.dataId }, on: { goBack: t2.goBack } })], 1) : t2._e()]);
|
||
}, o = [], i = (a("a450"), a("0107")), r = a("67d5"), c = function() {
|
||
var t2 = this, e2 = t2.$createElement, a2 = t2._self._c || e2;
|
||
return a2("div", [a2("el-card", { staticClass: "box-card" }, [a2("el-page-header", { attrs: { content: t2.detailsTitle }, on: { back: t2.goBack } })], 1), t2._v(" "), a2("el-card", { staticStyle: { "margin-top": "20px", width: "98%", height: "100%" } }, [a2("div", { staticClass: "clearfix", attrs: { slot: "header" }, slot: "header" }, [a2("div", { staticClass: "boxTitle" }, [a2("div", [a2("span", [t2._v("图谱画板 ")]), t2._v(" "), t2.nodeInfo ? a2("span", { staticStyle: { "margin-left": "25px", color: "blue", "font-weight": "700" } }, [t2._v("当前选择节点" + t2._s(t2.nodeInfo.nodeData.name))]) : t2._e()]), t2._v(" "), a2("div", [a2("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: "批量修改为当前选中节点下相邻的兄弟节点", placement: "top-start" } }, [a2("i", { staticClass: "el-icon-question" })]), t2._v(" "), a2("el-button", { attrs: { type: "primary" }, on: { click: t2.batchEditWeight } }, [t2._v("批量修改权重/分值")])], 1)])]), t2._v(" "), a2("div", { staticClass: "mindMapContainerBox", attrs: { id: "mindMapContainer" } }, [a2("div", { staticClass: "showMouseTooltip" }, [a2("span", [t2._v("节点路径:" + t2._s(t2.pathStr))])])])]), t2._v(" "), a2("el-dialog", { attrs: { width: "30%", title: t2.dialogTitle, visible: t2.addShow }, on: { close: function(e3) {
|
||
return t2.cancelNode("addForm");
|
||
} } }, [a2("el-form", { ref: "addForm", attrs: { rules: t2.rules, model: t2.addForm, "label-width": "100px" } }, [a2("el-form-item", { attrs: { label: "节点名称", prop: "name" } }, [a2("el-input", { model: { value: t2.addForm.name, callback: function(e3) {
|
||
t2.$set(t2.addForm, "name", e3);
|
||
}, expression: "addForm.name" } })], 1), t2._v(" "), a2("el-form-item", { attrs: { label: "节点描述" } }, [a2("el-input", { attrs: { type: "textarea", maxlength: "400", rows: 4, "show-word-limit": "" }, model: { value: t2.addForm.description, callback: function(e3) {
|
||
t2.$set(t2.addForm, "description", e3);
|
||
}, expression: "addForm.description" } })], 1), t2._v(" "), a2("el-form-item", { attrs: { label: "权重", prop: "weight" } }, [a2("el-input-number", { attrs: { precision: 2, step: 0.01, max: 1, min: 0, disabled: t2.weightDisabled }, model: { value: t2.addForm.weight, callback: function(e3) {
|
||
t2.$set(t2.addForm, "weight", e3);
|
||
}, expression: "addForm.weight" } })], 1), t2._v(" "), a2("el-form-item", { attrs: { label: "模拟分值" } }, [a2("el-input-number", { attrs: { precision: 2, disabled: t2.isDisabled }, model: { value: t2.addForm.virtualScore, callback: function(e3) {
|
||
t2.$set(t2.addForm, "virtualScore", e3);
|
||
}, expression: "addForm.virtualScore" } })], 1), t2._v(" "), a2("el-form-item", { attrs: { label: "倍数", prop: "multiplyingPower" } }, [a2("el-input-number", { attrs: { precision: 2, step: 0.01, min: 0 }, model: { value: t2.addForm.multiplyingPower, callback: function(e3) {
|
||
t2.$set(t2.addForm, "multiplyingPower", e3);
|
||
}, expression: "addForm.multiplyingPower" } })], 1)], 1), t2._v(" "), a2("span", { staticClass: "dialog-footer", attrs: { slot: "footer" }, slot: "footer" }, [a2("el-button", { on: { click: function(e3) {
|
||
return t2.cancelNode("addForm");
|
||
} } }, [t2._v("取 消")]), t2._v(" "), a2("el-button", { attrs: { type: "primary" }, on: { click: function(e3) {
|
||
return t2.submitNode("addForm");
|
||
} } }, [t2._v("确 定")])], 1)], 1), t2._v(" "), a2("el-dialog", { attrs: { width: "60%", title: "批量修改权重/分值", visible: t2.batchWeightDialogShow }, on: { close: t2.cancelBatchWeight } }, [a2("el-form", { attrs: { "label-width": "150px" } }, t2._l(t2.batchWeightList, (function(e3, n2) {
|
||
return a2("el-form-item", { key: n2, attrs: { label: e3.name } }, [a2("span", [t2._v(" 权重: ")]), t2._v(" "), a2("el-input-number", { attrs: { precision: 2, step: 0.01, max: 1, min: 0 }, model: { value: e3.weight, callback: function(a3) {
|
||
t2.$set(e3, "weight", a3);
|
||
}, expression: "item.weight" } }), t2._v(" "), a2("span", [t2._v(" 分值: ")]), t2._v(" "), a2("el-input-number", { attrs: { precision: 2, disabled: t2.getScoreDisable(e3) }, model: { value: e3.score, callback: function(a3) {
|
||
t2.$set(e3, "score", a3);
|
||
}, expression: "item.score" } })], 1);
|
||
})), 1), t2._v(" "), a2("span", { staticClass: "dialog-footer", attrs: { slot: "footer" }, slot: "footer" }, [a2("el-button", { on: { click: t2.cancelBatchWeight } }, [t2._v("取 消")]), t2._v(" "), a2("el-button", { attrs: { type: "primary" }, on: { click: t2.submitBatchWeight } }, [t2._v("确 定")])], 1)], 1), t2._v(" "), a2("el-dialog", { attrs: { width: "60%", title: "批量修改所有叶子节点权重/分值/倍数", visible: t2.batchScoreDialogShow }, on: { close: t2.cancelBatchScore } }, [a2("el-form", { attrs: { "label-width": "150px" } }, t2._l(t2.batchScoreList, (function(e3, n2) {
|
||
return a2("el-form-item", { key: n2, attrs: { label: "节点:" + e3.name } }, [a2("span", [t2._v(" 模拟分值: ")]), t2._v(" "), a2("el-input-number", { attrs: { precision: 2 }, model: { value: e3.virtualScore, callback: function(a3) {
|
||
t2.$set(e3, "virtualScore", a3);
|
||
}, expression: "item.virtualScore" } }), t2._v(" "), a2("span", [t2._v(" 权重: ")]), t2._v(" "), a2("el-input-number", { attrs: { precision: 2, step: 0.01, max: 1, min: 0 }, model: { value: e3.weight, callback: function(a3) {
|
||
t2.$set(e3, "weight", a3);
|
||
}, expression: "item.weight" } }), t2._v(" "), a2("span", [t2._v("倍数:")]), t2._v(" "), a2("el-input-number", { attrs: { precision: 2, step: 0.01, min: 0 }, model: { value: e3.multiplyingPower, callback: function(a3) {
|
||
t2.$set(e3, "multiplyingPower", a3);
|
||
}, expression: "item.multiplyingPower" } }), t2._v(" "), a2("span", [t2._v(" 备注:" + t2._s(e3.description || "-"))])], 1);
|
||
})), 1), t2._v(" "), a2("span", { staticClass: "dialog-footer", attrs: { slot: "footer" }, slot: "footer" }, [a2("el-button", { on: { click: t2.cancelBatchScore } }, [t2._v("取 消")]), t2._v(" "), a2("el-button", { attrs: { type: "primary" }, on: { click: t2.submitBatchScore } }, [t2._v("确 定")])], 1)], 1)], 1);
|
||
}, l = [], s = (a("1bc7"), a("1af2")), d = { props: { detailsTitle: { default: "新增知识图谱" }, dataId: { default: null } }, data: function() {
|
||
return { type: "", currentNode: null, left: 0, top: 0, mindMap: null, isDisabled: false, weightDisabled: false, dialogTitle: "新增子节点", addShow: false, addForm: { pid: "", description: "", name: "", updaterName: "", weight: 0, virtualScore: 0, multiplyingPower: 1 }, rules: { name: { required: true, message: "请输入节点名称", trigger: "blur" }, weight: { required: true, message: "请输入权重", trigger: "blur" } }, pathStr: "", MapInfo: "", nodeInfo: null, batchWeightList: [], batchWeightDialogShow: false, batchScoreDialogShow: false, batchScoreList: [] };
|
||
}, mounted: function() {
|
||
}, methods: { getScoreDisable: function(t2) {
|
||
return t2.children.length > 0 || null !== t2.dataSourceCode && "" !== t2.dataSourceCode;
|
||
}, cancelBatchScore: function() {
|
||
this.batchScoreList = [], this.batchScoreDialogShow = false;
|
||
}, submitBatchScore: function() {
|
||
var t2 = this, e2 = JSON.parse(window.localStorage.getItem("memberInfor")), a2 = { children: this.batchScoreList, updaterName: e2.name, blueprintId: this.dataId };
|
||
BlueprintNodeUpdateLeafNodes(a2).then((function(e3) {
|
||
0 == e3.code && (t2.$message.success("操作成功"), t2.cancelBatchScore(), t2.getTree());
|
||
}));
|
||
}, submitBatchWeight: function() {
|
||
var t2 = this, e2 = this.batchWeightList.reduce((function(t3, e3) {
|
||
return t3 + Math.round(100 * e3.weight);
|
||
}), 0) / 100;
|
||
if (1 != e2) return this.$message.error("权重总和必须为1!");
|
||
var a2 = JSON.parse(window.localStorage.getItem("memberInfor")), n2 = { children: this.batchWeightList, updaterName: a2.name, updaterId: a2.id };
|
||
Object(i["g"])(n2).then((function(e3) {
|
||
0 == e3.code && (t2.$message.success("操作成功"), t2.cancelBatchWeight(), t2.getTree());
|
||
}));
|
||
}, cancelBatchWeight: function() {
|
||
this.batchWeightList = [], this.batchWeightDialogShow = false;
|
||
}, batchEditWeight: function() {
|
||
if (null == this.nodeInfo) return this.$message.error("请选择要批量修改的节点!");
|
||
var t2 = function(e3, a2) {
|
||
for (var n2 = 0; n2 < e3.length; n2++) {
|
||
var o2 = e3[n2];
|
||
if (o2.originalNodeId === a2) return o2;
|
||
if (o2.children && o2.children.length > 0) {
|
||
var i2 = t2(o2.children, a2);
|
||
if (i2) return i2;
|
||
}
|
||
}
|
||
return null;
|
||
};
|
||
console.log(this.nodeInfo, "this.nodeInfo"), console.log(this.MapInfo, "this.MapInfo");
|
||
var e2 = t2([this.MapInfo], this.nodeInfo.nodeData.pid);
|
||
e2 ? (this.batchWeightList = e2.children, this.batchWeightDialogShow = true, console.log(this.batchWeightList, "this.batchWeightList")) : this.$message.error("未找到当前节点下的父节点信息!");
|
||
}, cancelNode: function(t2) {
|
||
this.addForm.description = "", this.addForm.name = "", this.addForm.weight = 0, this.addForm.id = "", this.addForm.virtualScore = 0, this.addForm.multiplyingPower = 1, this.addShow = false, this.isDisabled = false, this.weightDisabled = false;
|
||
}, getTree: function() {
|
||
var t2 = this;
|
||
Object(i["e"])({ id: this.dataId }).then((function(e2) {
|
||
0 == e2.code && t2.initData(e2.data, 1);
|
||
}));
|
||
}, submitNode: function(t2) {
|
||
var e2 = this, a2 = JSON.parse(localStorage.getItem("loginInfo"));
|
||
"新增子节点" == this.dialogTitle ? (this.addForm.updaterName = a2.name, this.addForm.pid = this.nodeInfo.nodeData.id, this.$refs[t2].validate((function(t3) {
|
||
t3 && BlueprintNodeCreate(e2.addForm).then((function(t4) {
|
||
0 == t4.code && (e2.$message.success("新增节点成功成功"), e2.cancelNode("addForm"), e2.getTree());
|
||
}));
|
||
}))) : (this.addForm.updaterName = a2.name, BlueprintNodeUpdate(this.addForm).then((function(t3) {
|
||
0 == t3.code && (e2.$message.success("修改节点成功"), e2.cancelNode("addForm"), e2.getTree());
|
||
})));
|
||
}, initData: function(t2, e2) {
|
||
var a2 = this;
|
||
if (t2.children.length > 0) {
|
||
var n2 = function(t3) {
|
||
var e3 = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "", a3 = e3 ? "".concat(e3, "-").concat(t3.name) : t3.name, o3 = "节点名称:".concat(t3.name, "\n权重:").concat(t3.weight || 0, "\n 分值:").concat(t3.score || 0, "\n倍率:").concat(t3.multiplyingPower || 1);
|
||
t3.data = t3.data || {}, t3.data.text = o3, t3.data.note = t3.description || "", t3.pathStr = a3, t3.children && t3.children.length > 0 && t3.children.forEach((function(t4) {
|
||
n2(t4, a3);
|
||
}));
|
||
};
|
||
n2(t2);
|
||
}
|
||
2 == e2 && this.mindMap.destroy();
|
||
var o2 = t2.name, i2 = "节点名称:".concat(t2.name, "\n权重:").concat(t2.weight || 0, " \n分值:").concat(t2.score || 0, "\n倍率:").concat(t2.multiplyingPower || 1);
|
||
t2.data = { text: i2, note: t2.description || "", pathStr: o2 }, console.log(t2.data, "Info"), this.mindMap = new s["a"]({ el: document.getElementById("mindMapContainer"), layout: "mindMap", isShowCreateChildBtnIcon: false, data: t2 }), this.MapInfo = JSON.parse(JSON.stringify(t2)), this.mindMap.on("node_mouseenter", (function(t3, e3) {
|
||
a2.pathStr = t3.nodeData.pathStr;
|
||
})), this.mindMap.on("node_contextmenu", (function(t3, e3) {
|
||
a2.left = t3.clientX - 50, a2.top = t3.clientY - 50, a2.currentNode = e3, console.log(a2.left, "left"), console.log(a2.top, "left");
|
||
})), this.mindMap.on("node_click", (function(t3) {
|
||
a2.nodeInfo = t3, console.log(a2.nodeInfo, "nodeInfo");
|
||
}));
|
||
}, goBack: function() {
|
||
this.$emit("goBack");
|
||
} } }, u = d, p = (a("1618"), a("829d")), m = Object(p["a"])(u, c, l, false, null, null, null), h = m.exports, f = { components: { knowledgeDetails: h }, data: function() {
|
||
return { query: { pageNumber: 1, pageSize: 10, companyId: "", projectUuid: "", name: "" }, projectList: [], companyId: "", pageTotal: 0, tableData: [], syncLoad: false, tableLoading: false, list: true, detailsShow: false, dataId: null };
|
||
}, mounted: function() {
|
||
this.companyId = JSON.parse(localStorage.getItem("companyInfo")).osId, this.getProjectInfo(), this.getlistData();
|
||
}, methods: { goBack: function() {
|
||
this.list = true, this.detailsShow = false, this.getlistData();
|
||
}, editBlueprint: function(t2) {
|
||
var e2 = this;
|
||
Object(i["e"])({ id: t2.id }).then((function(a2) {
|
||
0 == a2.code && a2.data && (e2.list = false, e2.detailsShow = true, e2.dataId = t2.id, e2.$nextTick((function() {
|
||
console.log(e2.$refs.knowledgeDetails, "knowledgeDetails+++++"), e2.$refs.knowledgeDetails.initData(a2.data, 1);
|
||
})));
|
||
}));
|
||
}, getProjectInfo: function() {
|
||
var t2 = this;
|
||
Object(r["j"])({ id: this.companyId, attribute: 1 }).then((function(e2) {
|
||
0 === e2.code && e2.data ? t2.projectList = e2.data : t2.projectList = [];
|
||
}));
|
||
}, getlistData: function() {
|
||
var t2 = this;
|
||
this.query.companyId = this.companyId, this.tableLoading = true, Object(i["f"])(this.query).then((function(e2) {
|
||
t2.tableLoading = false, 0 === e2.code && e2.data ? (t2.tableData = e2.data.records, t2.pageTotal = e2.data.rowsCount) : t2.tableData = [];
|
||
})).catch((function() {
|
||
t2.tableLoading = false;
|
||
}));
|
||
}, handleSizeChange: function(t2) {
|
||
this.query.pageSize = t2, this.getlistData();
|
||
}, handleCurrentChange: function(t2) {
|
||
this.query.pageNumber = t2, this.getlistData();
|
||
}, onSearch: function() {
|
||
this.query.pageNumber = 1, this.getlistData();
|
||
}, resetForm: function() {
|
||
this.query = { pageNumber: 1, pageSize: 10, userId: "", addStartTime: "", addEndTime: "", tagIds: [] }, this.bindTime = "", this.getlistData();
|
||
}, syncClick: function() {
|
||
var t2 = this;
|
||
this.syncLoad = true;
|
||
var e2 = JSON.parse(window.localStorage.getItem("memberInfor"));
|
||
Object(i["d"])({ companyId: this.companyId, creatorName: e2.name }).then((function(e3) {
|
||
0 == e3.code && (t2.$message({ type: "success", message: "同步请求成功,请1分钟后刷新页面查看最新数据!" }), t2.getlistData(), t2.syncLoad = false);
|
||
})).catch((function() {
|
||
t2.syncLoad = false;
|
||
}));
|
||
}, headClass: function() {
|
||
return "text-align:center;background:#FAFAFA;";
|
||
} } }, g = f, b = (a("a995"), Object(p["a"])(g, n, o, false, null, "6d553fa4", null));
|
||
e["default"] = b.exports;
|
||
} }]);
|