352 lines
32 KiB
JavaScript
352 lines
32 KiB
JavaScript
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-0ba20b55"], { "07f5": function(e, t, a) {
|
|
}, "2dfe": function(e, t, a) {
|
|
}, "8b79": function(e, t, a) {
|
|
}, c81d: function(e, t, a) {
|
|
"use strict";
|
|
a("2dfe");
|
|
}, cf88: function(e, t, a) {
|
|
"use strict";
|
|
a("8b79");
|
|
}, d06c: function(e, t, a) {
|
|
"use strict";
|
|
a.r(t);
|
|
var i = function() {
|
|
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
|
return a2("div", { staticClass: "app-container bgHeight" }, [a2("el-tabs", { attrs: { value: e2.activeName, type: "border-card" }, on: { "tab-click": e2.handleClick } }, [a2("el-tab-pane", { attrs: { label: "算法配置", name: "algorithmCfg" } }, ["algorithmCfg" === e2.activeName ? a2("algorithmCfg") : e2._e()], 1), e2._v(" "), a2("el-tab-pane", { attrs: { label: "AI场景配置", name: "aisceneConfig" } }, ["aisceneConfig" === e2.activeName ? a2("aisceneConfig") : e2._e()], 1)], 1)], 1);
|
|
}, r = [], n = function() {
|
|
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
|
return a2("div", { staticClass: "headStys" }, [e2.infoList ? a2("div", {}, [a2("div", { staticClass: "formContent" }, [a2("el-form", { ref: "query", staticClass: "demo-form-inline", attrs: { inline: true, model: e2.query } }, [a2("el-form-item", { attrs: { prop: "name", label: "" } }, [a2("el-input", { attrs: { clearable: "", placeholder: "请输入模型名称", maxlength: "64" }, model: { value: e2.query.modelName, callback: function(t3) {
|
|
e2.$set(e2.query, "modelName", t3);
|
|
}, expression: "query.modelName" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { prop: "corporateCreditCode", label: "" } }, [a2("el-input", { attrs: { clearable: "", placeholder: "请输入算法名称", maxlength: "64" }, model: { value: e2.query.algorithmName, callback: function(t3) {
|
|
e2.$set(e2.query, "algorithmName", t3);
|
|
}, expression: "query.algorithmName" } })], 1), e2._v(" "), a2("el-form-item", [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) {
|
|
return e2.resetForm();
|
|
} } }, [e2._v("重置")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.onSearch } }, [e2._v("查询")])], 1)], 1)], 1), e2._v(" "), a2("div", { staticClass: "contentStys" }, [e2._m(0), e2._v(" "), a2("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: e2.listLoading, expression: "listLoading" }], staticStyle: { width: "96%", "margin-left": "2%" }, attrs: { border: "", data: e2.listTable, "header-cell-style": e2.headClass, "tooltip-effect": "dark" } }, [a2("el-table-column", { attrs: { label: "#", align: "center", width: "50", fixed: "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [a2("span", [e2._v(e2._s(t3.$index + (e2.query.pageNumber - 1) * e2.query.pageSize + 1) + "\n ")])];
|
|
} }], null, false, 2770601025) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "modelName", "min-width": "140", label: "模型名称", fixed: "", "show-overflow-tooltip": "" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "algorithmName", "min-width": "170", label: "算法名称", fixed: "", "show-overflow-tooltip": "" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "algorithmNo", "min-width": "150", label: "算法编号" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "name", "min-width": "50", label: "亮灯形式" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [e2._v(e2._s(1 === t3.row.cautionLight ? "绿灯" : 2 === t3.row.cautionLight ? "黄灯" : "红灯"))];
|
|
} }], null, false, 3760147080) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "riskTips", "min-width": "170", label: "风险提示" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "50", label: "灭灯机制" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [e2._v(e2._s(1 === t3.row.lampOffType ? "AI智能" : ""))];
|
|
} }], null, false, 1210940796) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "50", label: "参数" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [e2._v(e2._s(t3.row.paramCode ? "有" : "无"))];
|
|
} }], null, false, 1480780403) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", width: "150", label: "操作", fixed: "right" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [a2("el-button", { attrs: { type: "text" }, on: { click: function(a3) {
|
|
return e2.viewSupplier(t3.row);
|
|
} } }, [e2._v("查看")])];
|
|
} }], null, false, 1233152646) })], 1), e2._v(" "), a2("div", { staticClass: "pagination" }, [a2("el-pagination", { attrs: { "current-page": e2.query.pageNumber, "page-sizes": [10, 20, 30, 100], "page-size": e2.query.pageSize, layout: "total, sizes, prev, pager, next, jumper", total: e2.pageTotal }, on: { "update:currentPage": function(t3) {
|
|
return e2.$set(e2.query, "pageNumber", t3);
|
|
}, "update:current-page": function(t3) {
|
|
return e2.$set(e2.query, "pageNumber", t3);
|
|
}, "size-change": e2.handleSizeChange, "current-change": e2.handleCurrentChange } })], 1)], 1)]) : e2._e(), e2._v(" "), e2.viewInfo ? a2("div", { staticClass: "viewDetails" }, [a2("algorithmDetailes", { ref: "algorithmDetailes", on: { goBack: e2.goBack } })], 1) : e2._e()]);
|
|
}, l = [function() {
|
|
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
|
return a2("div", { staticClass: "planLst" }, [a2("span", [e2._v("算法配置列表")]), e2._v(" "), a2("span", { staticClass: "addPlan" })]);
|
|
}], o = a("333d"), s = a("b775");
|
|
function c(e2) {
|
|
return Object(s["a"])({ url: "/company/DynamicEquationProjectRel/pageList", method: "post", data: e2 });
|
|
}
|
|
function u(e2) {
|
|
return Object(s["a"])({ url: "/hakocompany/DynamicEquation/company/pageList", method: "post", data: e2 });
|
|
}
|
|
function p(e2) {
|
|
return Object(s["a"])({ url: "/company/DynamicEquationProjectRel/create", method: "post", data: e2 });
|
|
}
|
|
function d(e2) {
|
|
return Object(s["a"])({ url: "/company/DynamicEquationProjectRel/update", method: "post", data: e2 });
|
|
}
|
|
var m = function() {
|
|
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
|
return a2("div", { staticClass: "ruleGroupInfo" }, [a2("el-card", { staticClass: "box-card" }, [a2("el-page-header", { attrs: { content: e2.content }, on: { back: e2.goBack } }), e2._v(" "), a2("div", { staticClass: "rule typeface" }, [e2._v("模型信息")]), e2._v(" "), a2("div", { staticClass: "vote-form" }, [a2("el-form", { staticClass: "demo-form-inline", attrs: { inline: true } }, [a2("el-row", { attrs: { gutter: 24 } }, [a2("el-col", { attrs: { span: 8 } }, [a2("el-form-item", { attrs: { label: "模型名称" } }, [a2("el-input", { attrs: { value: e2.detailes.modelName, disabled: "", placeholder: "模型名称" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 8 } }, [a2("el-form-item", { attrs: { label: "算法编码" } }, [a2("el-input", { attrs: { value: e2.detailes.algorithmNo, disabled: "", placeholder: "算法编码" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 8 } }, [a2("el-form-item", { attrs: { label: "算法名称" } }, [a2("el-input", { attrs: { value: e2.detailes.algorithmName, disabled: "", placeholder: "算法名称" } })], 1)], 1)], 1)], 1)], 1), e2._v(" "), a2("div", { staticClass: "rule typeface" }, [e2._v("模型规则")]), e2._v(" "), a2("div", { staticClass: "vote-questions" }, [a2("el-form", { staticClass: "demo-form-inline", attrs: { inline: true } }, [a2("el-row", { attrs: { gutter: 24 } }, [a2("el-col", { attrs: { span: 8 } }, [a2("el-form-item", { attrs: { label: "亮灯形式" } }, [a2("el-input", { attrs: { value: 1 === e2.detailes.cautionLight ? "绿灯" : 2 === e2.detailes.cautionLight ? "黄灯" : "红灯", disabled: "", placeholder: "亮灯形式" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 8 } }, [a2("el-form-item", { attrs: { label: "风险提示" } }, [a2("el-input", { attrs: { value: e2.detailes.riskTips, disabled: "", placeholder: "风险提示" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 8 } }, [a2("el-form-item", { attrs: { label: "灭灯机制" } }, [a2("el-input", { attrs: { value: 1 === e2.detailes.lampOffType ? "AI智能" : "-", disabled: "", placeholder: "灭灯机制" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 8 } }, [a2("el-form-item", { attrs: { label: "亮灯规则" } }, [a2("el-input", { attrs: { value: e2.detailes.openRule, disabled: "", placeholder: "亮灯规则", type: "textarea", rows: 5 } })], 1)], 1)], 1)], 1)], 1), e2._v(" "), a2("div", { staticClass: "rule typeface" }, [e2._v("\n 适用项目\n "), e2.hasParamCode ? a2("el-button", { staticClass: "editButton", attrs: { type: "primary", size: "small" }, on: { click: e2.editProject } }, [e2._v(e2._s(e2.isEdit ? "取消编辑参数值" : "编辑参数值") + " ")]) : e2._e()], 1), e2._v(" "), a2("div", { staticClass: "vote-questions supplier-file-list" }, [a2("el-table", { staticStyle: { width: "100%" }, attrs: { data: e2.tableData, border: "" } }, [a2("el-table-column", { attrs: { label: "#", align: "center", fixed: "", "min-width": "50" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [a2("span", [e2._v(e2._s(t3.$index + (e2.query.pageNumber - 1) * e2.query.pageSize + 1))])];
|
|
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { label: "项目名称", fixed: "", align: "center", prop: "projectName", "min-width": "160", "show-overflow-tooltip": "" } }), e2._v(" "), a2("el-table-column", { attrs: { label: "参数代码", fixed: "", align: "center", "min-width": "100" } }, [[a2("div", {}, [e2._v(e2._s(e2.detailes.paramCode ? e2.detailes.paramCode : "-") + " ")])]], 2), e2._v(" "), a2("el-table-column", { attrs: { label: "参数名称", fixed: "", align: "center", "min-width": "120", "show-overflow-tooltip": "" } }, [[a2("div", {}, [e2._v(e2._s(e2.detailes.paramName ? e2.detailes.paramName : "-") + " ")])]], 2), e2._v(" "), a2("el-table-column", { attrs: { label: "参数类型", align: "center", "min-width": "120" } }, [[a2("div", {}, [e2._v(e2._s(e2.detailes.paramType ? 1 === e2.detailes.paramType ? "整数" : "百分比" : "-") + " ")])]], 2), e2._v(" "), a2("el-table-column", { attrs: { label: "参数值", align: "center", prop: "paramValue", "min-width": "120" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
var i2 = t3.row, r2 = t3.$index;
|
|
return [e2.editable[r2].isSet ? a2("div", [a2("el-input", { staticClass: "table-edit-datepicker", attrs: { size: "mini" }, on: { input: function(t4) {
|
|
return e2.priceInput(t4, r2, "paramValue");
|
|
} }, model: { value: i2.paramValue, callback: function(t4) {
|
|
e2.$set(i2, "paramValue", t4);
|
|
}, expression: "row.paramValue" } }, [a2("el-button", { staticClass: "appendBtn", attrs: { slot: "append", type: "text" }, on: { click: function(t4) {
|
|
return e2.handleUpdate(i2, r2);
|
|
} }, slot: "append" }, [e2._v("保存")])], 1)], 1) : a2("div", [e2._v("\n " + e2._s(i2.paramValue ? i2.paramValue : "-") + " "), e2.isEdit ? a2("i", { staticClass: "el-icon-edit tableItemEdit", on: { click: function(t4) {
|
|
return e2.handleEdit(i2, r2);
|
|
} } }) : e2._e()])];
|
|
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { label: "参数说明", align: "center", "min-width": "120", "show-overflow-tooltip": "" } }, [[a2("div", {}, [e2._v(e2._s(e2.detailes.paramExplain ? e2.detailes.paramExplain : "-") + " ")])]], 2), e2._v(" "), a2("el-table-column", { attrs: { label: "授权状态", align: "center", fixed: "right", "min-width": "80" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [a2("el-switch", { attrs: { "active-value": 1, "inactive-value": 2, "active-color": "#13ce66", "inactive-color": "#ff4949" }, on: { change: function(a3) {
|
|
return e2.switchChange(a3, t3.row);
|
|
} }, model: { value: t3.row.status, callback: function(a3) {
|
|
e2.$set(t3.row, "status", a3);
|
|
}, expression: "scope.row.status" } })];
|
|
} }]) })], 1), e2._v(" "), a2("div", { staticClass: "pagination" }, [a2("el-pagination", { attrs: { "current-page": e2.query.pageNumber, "page-sizes": [5, 10, 20, 30, 100], "page-size": e2.query.pageSize, layout: "total, sizes, prev, pager, next, jumper", total: e2.pageTotal }, on: { "update:currentPage": function(t3) {
|
|
return e2.$set(e2.query, "pageNumber", t3);
|
|
}, "update:current-page": function(t3) {
|
|
return e2.$set(e2.query, "pageNumber", t3);
|
|
}, "size-change": e2.handleSizeChange, "current-change": e2.handleCurrentChange } })], 1)], 1)], 1)], 1);
|
|
}, f = [];
|
|
a("9f60"), a("94f0"), a("0c84"), a("2843"), a("a450"), a("4057"), a("8dee");
|
|
function h(e2, t2) {
|
|
var a2 = "undefined" != typeof Symbol && e2[Symbol.iterator] || e2["@@iterator"];
|
|
if (!a2) {
|
|
if (Array.isArray(e2) || (a2 = g(e2)) || t2 && e2 && "number" == typeof e2.length) {
|
|
a2 && (e2 = a2);
|
|
var i2 = 0, r2 = function() {
|
|
};
|
|
return { s: r2, n: function() {
|
|
return i2 >= e2.length ? { done: true } : { done: false, value: e2[i2++] };
|
|
}, e: function(e3) {
|
|
throw e3;
|
|
}, f: r2 };
|
|
}
|
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
}
|
|
var n2, l2 = true, o2 = false;
|
|
return { s: function() {
|
|
a2 = a2.call(e2);
|
|
}, n: function() {
|
|
var e3 = a2.next();
|
|
return l2 = e3.done, e3;
|
|
}, e: function(e3) {
|
|
o2 = true, n2 = e3;
|
|
}, f: function() {
|
|
try {
|
|
l2 || null == a2.return || a2.return();
|
|
} finally {
|
|
if (o2) throw n2;
|
|
}
|
|
} };
|
|
}
|
|
function g(e2, t2) {
|
|
if (e2) {
|
|
if ("string" == typeof e2) return v(e2, t2);
|
|
var a2 = {}.toString.call(e2).slice(8, -1);
|
|
return "Object" === a2 && e2.constructor && (a2 = e2.constructor.name), "Map" === a2 || "Set" === a2 ? Array.from(e2) : "Arguments" === a2 || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a2) ? v(e2, t2) : void 0;
|
|
}
|
|
}
|
|
function v(e2, t2) {
|
|
(null == t2 || t2 > e2.length) && (t2 = e2.length);
|
|
for (var a2 = 0, i2 = Array(t2); a2 < t2; a2++) i2[a2] = e2[a2];
|
|
return i2;
|
|
}
|
|
var y = { name: "algorithmDetailes", data: function() {
|
|
return { content: "查看算法详情", detailes: {}, tableData: [], pageTotal: 0, isEdit: false, hasParamCode: false, editable: [], query: { dynamicEquationId: 0, companyId: 0, pageSize: 5, pageNumber: 1 } };
|
|
}, methods: { getInfoLst: function(e2) {
|
|
this.detailes = e2, this.query.companyId = JSON.parse(localStorage.getItem("companyInfo")).osId, this.query.dynamicEquationId = e2.id, this.hasParamCode = !!e2.paramCode, this.getlistData();
|
|
}, getlistData: function() {
|
|
var e2 = this;
|
|
c(this.query).then((function(t2) {
|
|
0 === t2.code && (e2.tableData = t2.data.records, e2.pageTotal = t2.data.rowsCount, e2.initEditTableTags());
|
|
}));
|
|
}, initEditTableTags: function() {
|
|
for (var e2 = [], t2 = 0; t2 < this.tableData.length; t2++) e2.push({ isSet: false, edit: false });
|
|
this.editable = e2;
|
|
}, handleEdit: function(e2, t2) {
|
|
var a2, i2 = this, r2 = h(this.editable);
|
|
try {
|
|
for (r2.s(); !(a2 = r2.n()).done; ) {
|
|
var n2 = a2.value;
|
|
if (n2.isSet) return this.$message({ type: "error", message: "请先保存当前编辑项" });
|
|
}
|
|
} catch (l2) {
|
|
r2.e(l2);
|
|
} finally {
|
|
r2.f();
|
|
}
|
|
this.$nextTick((function() {
|
|
i2.$set(i2.editable[t2], "edit", true), i2.$set(i2.editable[t2], "isSet", true);
|
|
})), this.$forceUpdate();
|
|
}, handleUpdate: function(e2, t2) {
|
|
var a2 = this;
|
|
if (e2.paramValue) {
|
|
var i2 = e2.id ? 1 : 0, r2 = JSON.parse(localStorage.getItem("companyInfo")).abbreviation, n2 = Object.assign(e2, { companyName: r2 });
|
|
this.changeProjectData(n2, i2), this.$nextTick((function() {
|
|
a2.$set(a2.editable[t2], "edit", false), a2.$set(a2.editable[t2], "isSet", false);
|
|
})), this.$forceUpdate();
|
|
} else this.$message({ type: "error", message: "请输入数值" });
|
|
}, editProject: function() {
|
|
this.isEdit = !this.isEdit, this.initEditTableTags(), this.getlistData();
|
|
}, priceInput: function(e2, t2, a2) {
|
|
e2 = e2.replace(/[^\d\.]/g, ""), e2 = e2.replace(/^\./g, ""), e2 = e2.replace(/^0\d[0-9]*/g, ""), e2 = e2.replace(/\.{2,}/g, "."), e2 = e2.replace(".", "$#$").replace(/\./g, "").replace("$#$", "."), e2 = e2.replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3"), this.$set(this.tableData[t2], a2, e2);
|
|
}, switchChange: function(e2, t2) {
|
|
var a2 = t2.id ? 1 : 0, i2 = JSON.parse(localStorage.getItem("companyInfo")).abbreviation, r2 = Object.assign(t2, { status: e2, companyName: i2 });
|
|
this.changeProjectData(r2, a2);
|
|
}, changeProjectData: function(e2, t2) {
|
|
var a2 = this;
|
|
0 === t2 ? p(e2).then((function(e3) {
|
|
0 === e3.code ? (a2.$message({ type: "success", message: "更新成功" }), a2.getlistData()) : a2.$message({ type: "error", message: "更新失败" });
|
|
})) : d(e2).then((function(e3) {
|
|
0 === e3.code ? (a2.$message({ type: "success", message: "更新成功" }), a2.getlistData()) : a2.$message({ type: "error", message: "更新失败" });
|
|
}));
|
|
}, handleSizeChange: function(e2) {
|
|
this.query.pageSize = e2, this.query.pageNumber = 1, this.getlistData();
|
|
}, handleCurrentChange: function(e2) {
|
|
this.query.pageNumber = e2, this.getlistData();
|
|
}, goBack: function() {
|
|
this.$emit("goBack");
|
|
} } }, b = y, _ = (a("c81d"), a("829d")), w = Object(_["a"])(b, m, f, false, null, "58d4e734", null), N = w.exports, T = { components: { Pagination: o["a"], algorithmDetailes: N }, data: function() {
|
|
return { pageTotal: 0, listLoading: false, listTable: [], query: { modelName: "", algorithmName: "", companyId: 0, pageSize: 10, pageNumber: 1 }, infoList: true, viewInfo: false };
|
|
}, created: function() {
|
|
this.headClass();
|
|
}, mounted: function() {
|
|
this.query.companyId = JSON.parse(localStorage.getItem("companyInfo")).osId, this.getlistData();
|
|
}, beforeRouteLeave: function(e2, t2, a2) {
|
|
this.viewInfo = false, this.infoList = true, a2();
|
|
}, methods: { getlistData: function() {
|
|
var e2 = this;
|
|
this.listLoading = true, u(this.query).then((function(t2) {
|
|
e2.listTable = t2.data.records, e2.pageTotal = t2.data.rowsCount, e2.listLoading = false;
|
|
})).catch((function() {
|
|
e2.listLoading = false;
|
|
}));
|
|
}, viewSupplier: function(e2) {
|
|
var t2 = this;
|
|
this.viewInfo = true, this.infoList = false, this.$nextTick((function() {
|
|
t2.$refs.algorithmDetailes.getInfoLst(e2);
|
|
}));
|
|
}, onSearch: function() {
|
|
this.query.pageNumber = 1, this.getlistData();
|
|
}, resetForm: function() {
|
|
this.query.modelName = "", this.query.algorithmName = "", this.query.pageNumber = 1, this.getlistData();
|
|
}, handleSizeChange: function(e2) {
|
|
this.query.pageSize = e2, this.query.pageNumber = 1, this.getlistData();
|
|
}, handleCurrentChange: function(e2) {
|
|
this.query.pageNumber = e2, this.getlistData();
|
|
}, headClass: function() {
|
|
return "text-align:center;background:#FAFAFA;";
|
|
}, goBack: function() {
|
|
this.viewInfo = false, this.infoList = true, this.getlistData();
|
|
} } }, C = T, k = (a("cf88"), Object(_["a"])(C, n, l, false, null, "a929af7a", null)), D = k.exports, x = function() {
|
|
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
|
return a2("div", {}, [a2("el-card", { staticClass: "box-card" }, [a2("div", { staticClass: "planLst", attrs: { slot: "header" }, slot: "header" }, [a2("span", { staticClass: "planTitle" }, [e2._v("业务类型配置")]), e2._v(" "), a2("div", [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: function(t3) {
|
|
return e2.addClick(null, 1);
|
|
} } }, [e2._v("添加类型")])], 1)]), e2._v(" "), a2("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: e2.listLoading, expression: "listLoading" }], staticStyle: { width: "96%", "margin-left": "35px", "padding-top": "20px" }, attrs: { data: e2.listTable, "row-key": "id", "tree-props": { children: "orderTypeChildren" }, "default-expand-all": "", "header-cell-style": e2.headClass, "tooltip-effect": "dark" } }, [a2("el-table-column", { attrs: { label: "#", align: "center", width: "50", type: "index" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [a2("span", [e2._v(e2._s(t3.$index + (e2.query.pageNumber - 1) * e2.query.pageSize + 1) + "\n ")])];
|
|
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "orderTypeName", "show-overflow-tooltip": "", label: "工单业务名称" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "orderTypeLevel", "show-overflow-tooltip": "", label: "工单业务级别" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "formType", "show-overflow-tooltip": "", label: "工单表单类型" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [11 === t3.row.formType ? a2("span", [e2._v("公区整改")]) : e2._e(), e2._v(" "), 12 === t3.row.formType ? a2("span", [e2._v("住户服务")]) : e2._e(), e2._v(" "), 13 === t3.row.formType ? a2("span", [e2._v("通用工单")]) : e2._e()];
|
|
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "show-overflow-tooltip": "", label: "AI引用" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [e2._v("\n\n " + e2._s(e2._f("getItemType")(t3.row.aiQuote, e2.AIAlearmType)) + "\n ")];
|
|
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "createDate", "show-overflow-tooltip": "", label: "更新时间" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "createByName", "show-overflow-tooltip": "", label: "添加人" } }), e2._v(" "), a2("el-table-column", { attrs: { label: "操作", align: "center", width: "160" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
|
return [1 == t3.row.orderTypeLevel ? a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text", size: "small", disabled: "3" === t3.row.rank }, nativeOn: { click: function(a3) {
|
|
return a3.preventDefault(), e2.addClickData(t3.row, 0);
|
|
} } }, [e2._v("新增")]) : e2._e(), e2._v(" "), a2("span", { staticClass: "verticalLine" }), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text", size: "small" }, nativeOn: { click: function(a3) {
|
|
return a3.preventDefault(), e2.editClick(t3.row, 2);
|
|
} } }, [e2._v("编辑")]), e2._v(" "), a2("span", { staticClass: "verticalLine" }), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text", size: "small" }, nativeOn: { click: function(a3) {
|
|
return a3.preventDefault(), e2.deleteClick(t3.row);
|
|
} } }, [e2._v("删除")])];
|
|
} }]) })], 1)], 1), e2._v(" "), a2("el-dialog", { staticClass: "dialogHead", attrs: { title: "添加类型", "show-close": true, "close-on-press-escape": false, "close-on-click-modal": false, visible: e2.typeDialog, width: "45%", height: "300px" }, on: { "update:visible": function(t3) {
|
|
e2.typeDialog = t3;
|
|
} } }, [a2("el-form", { ref: "categoryFrom", attrs: { model: e2.form, rules: e2.rules } }, [0 == e2.type ? a2("el-form-item", { attrs: { label: "上级工单业务名称", prop: "superiorTypeName", "label-width": "140px" } }, [a2("el-input", { attrs: { disabled: "" }, model: { value: e2.superiorTypeName, callback: function(t3) {
|
|
e2.superiorTypeName = t3;
|
|
}, expression: "superiorTypeName" } })], 1) : e2._e(), e2._v(" "), 1 == e2.type || 0 == e2.type || 2 == e2.type ? a2("el-form-item", { attrs: { label: "工单业务名称", prop: "orderTypeName", "label-width": "140px" } }, [a2("el-input", { model: { value: e2.form.orderTypeName, callback: function(t3) {
|
|
e2.$set(e2.form, "orderTypeName", t3);
|
|
}, expression: "form.orderTypeName" } })], 1) : e2._e(), e2._v(" "), 0 == e2.type || 2 == e2.type ? a2("el-form-item", { attrs: { label: "工单表单类型", prop: "formType", "label-width": "140px" } }, [a2("el-select", { attrs: { clearable: "", placeholder: "请选择" }, model: { value: e2.form.formType, callback: function(t3) {
|
|
e2.$set(e2.form, "formType", t3);
|
|
}, expression: "form.formType" } }, e2._l(e2.orderTypeList, (function(e3) {
|
|
return a2("el-option", { key: e3.value, attrs: { label: e3.label, value: e3.value } });
|
|
})), 1)], 1) : e2._e(), e2._v(" "), 0 == e2.type || 2 == e2.type ? a2("el-form-item", { attrs: { label: "AI引用", prop: "aiQuote", "label-width": "140px" } }, [a2("el-select", { attrs: { clearable: "", placeholder: "请选择" }, model: { value: e2.form.aiQuote, callback: function(t3) {
|
|
e2.$set(e2.form, "aiQuote", t3);
|
|
}, expression: "form.aiQuote" } }, e2._l(e2.AIAlearmType, (function(e3) {
|
|
return a2("el-option", { key: e3.value, attrs: { label: e3.label, value: e3.value } });
|
|
})), 1)], 1) : e2._e(), e2._v(" "), a2("el-form-item", { attrs: { label: "操作人", "label-width": "140px" } }, [a2("el-input", { attrs: { disabled: "" }, model: { value: e2.form.createByName, callback: function(t3) {
|
|
e2.$set(e2.form, "createByName", t3);
|
|
}, expression: "form.createByName" } })], 1), e2._v(" "), a2("el-form-item", { staticStyle: { "text-align": "center" } }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: function(t3) {
|
|
return e2.savaInfoClick("categoryFrom");
|
|
} } }, [e2._v("确 定")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) {
|
|
return e2.cancelFrom("categoryFrom");
|
|
} } }, [e2._v("取 消")])], 1)], 1)], 1)], 1);
|
|
}, S = [], I = (a("ac67"), a("1bc7"), a("32ea"), a("5821"));
|
|
a("e680");
|
|
function $(e2) {
|
|
return Object(s["a"])({ url: "/company/OrderTypeConfig/create", method: "post", data: e2 });
|
|
}
|
|
function O(e2) {
|
|
return Object(s["a"])({ url: "/company/OrderTypeConfig/selectOrderTypeAll", method: "post", data: e2 });
|
|
}
|
|
function q(e2) {
|
|
return Object(s["a"])({ url: "/company/OrderTypeConfig/delete", method: "post", data: e2 });
|
|
}
|
|
function j(e2) {
|
|
return Object(s["a"])({ url: "/company/OrderTypeConfig/update", method: "post", data: e2 });
|
|
}
|
|
var L = a("dce5");
|
|
function z(e2, t2) {
|
|
var a2 = Object.keys(e2);
|
|
if (Object.getOwnPropertySymbols) {
|
|
var i2 = Object.getOwnPropertySymbols(e2);
|
|
t2 && (i2 = i2.filter((function(t3) {
|
|
return Object.getOwnPropertyDescriptor(e2, t3).enumerable;
|
|
}))), a2.push.apply(a2, i2);
|
|
}
|
|
return a2;
|
|
}
|
|
function E(e2) {
|
|
for (var t2 = 1; t2 < arguments.length; t2++) {
|
|
var a2 = null != arguments[t2] ? arguments[t2] : {};
|
|
t2 % 2 ? z(Object(a2), true).forEach((function(t3) {
|
|
Object(I["a"])(e2, t3, a2[t3]);
|
|
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(a2)) : z(Object(a2)).forEach((function(t3) {
|
|
Object.defineProperty(e2, t3, Object.getOwnPropertyDescriptor(a2, t3));
|
|
}));
|
|
}
|
|
return e2;
|
|
}
|
|
var P = { name: "typeManage", components: { Pagination: o["a"] }, data: function() {
|
|
return { pageTotal: 0, typeDialog: false, listLoading: false, listTable: [], value: "", superiorTypeName: "", AIAlearmType: L["a"], orderTypeList: [{ value: 11, label: "公区整改" }, { value: 12, label: "住户服务" }, { value: 13, label: "通用工单" }, { value: 15, label: "工单审核" }], type: 1, form: { orderTypeName: "", formType: 11, aiQuote: 1, createByName: "" }, query: { pageNumber: 1, pageSize: 10 }, saveType: "", objData: {}, rules: { formType: [{ required: true, message: "工单表单类型不能为空", trigger: "change" }], orderTypeName: [{ required: true, message: "工单业务名称不能为空", trigger: "blur" }] } };
|
|
}, created: function() {
|
|
this.getData(), this.form.createByName = JSON.parse(localStorage.getItem("companyInfo")).contactPeople;
|
|
}, mounted: function() {
|
|
}, methods: { savaInfoClick: function(e2) {
|
|
var t2 = this, a2 = JSON.parse(localStorage.getItem("companyInfo")), i2 = 1;
|
|
this.objData && this.objData.id && "add" === this.saveType ? i2 = 2 : this.objData && this.objData.id && "edit" === this.saveType && (i2 = this.objData.orderTypeLevel);
|
|
var r2 = { companyId: a2.osId, companyUuid: a2.osUuid, companyName: a2.fullName, createByName: a2.contactPeople, createByUuid: a2.corpUuid, orderTypeLevel: i2 };
|
|
this.$refs[e2].validate((function(e3) {
|
|
if (!e3) return false;
|
|
"add" === t2.saveType ? t2.addInfoData(r2) : t2.updataInfoData(r2);
|
|
}));
|
|
}, updataInfoData: function(e2) {
|
|
var t2 = this;
|
|
e2.id = this.form.id, e2.pid = this.form.pid, 2 == this.type ? (e2.formType = this.form.formType, e2.aiQuote = Number(this.form.aiQuote)) : (delete e2.aiQuote, delete e2.formType), e2.orderTypeName = this.form.orderTypeName, j(e2).then((function(e3) {
|
|
0 == e3.code && (t2.$message({ message: "更新成功", type: "success" }), t2.$refs["categoryFrom"].resetFields(), t2.getData(), t2.typeDialog = false);
|
|
}));
|
|
}, addInfoData: function(e2) {
|
|
var t2 = this;
|
|
0 == this.type ? (e2.formType = this.form.formType, e2.pid = this.objData.id, e2.aiQuote = this.form.aiQuote) : (delete e2.formType, delete e2.pid, delete e2.aiQuote), e2.orderTypeName = this.form.orderTypeName, $(e2).then((function(e3) {
|
|
0 == e3.code && (t2.$message({ message: "添加成功", type: "success" }), t2.$refs["categoryFrom"].resetFields(), t2.getData(), t2.typeDialog = false);
|
|
}));
|
|
}, getData: function() {
|
|
var e2 = this;
|
|
this.listLoading = true, this.listTable = [], O({ companyUuid: JSON.parse(localStorage.getItem("companyInfo")).osUuid }).then((function(t2) {
|
|
0 == t2.code && (e2.listTable = e2.listTable.concat(t2.data));
|
|
})), this.listLoading = false;
|
|
}, addClick: function(e2, t2) {
|
|
this.saveType = "add", this.typeDialog = true, this.type = t2, this.form.orderTypeName = "", this.form.aiQuote = "", this.form.formType = "", this.objData = {};
|
|
}, addClickData: function(e2, t2) {
|
|
this.saveType = "add", this.typeDialog = true, this.type = t2, this.superiorTypeName = e2.orderTypeName, this.objData = e2;
|
|
}, editClick: function(e2, t2) {
|
|
this.saveType = "edit", 1 == e2.orderTypeLevel ? (this.type = 1, this.form = E({}, e2)) : (this.type = 2, this.superiorTypeName = e2.orderTypeName, this.form = E({}, e2)), this.form.aiQuote = Number(this.form.aiQuote), this.objData = e2, this.typeDialog = true;
|
|
}, deleteClick: function(e2) {
|
|
var t2 = this;
|
|
if (e2.orderTypeChildren && e2.orderTypeChildren.length > 0) this.$message({ message: "该业务名称下存在子级工单业务,请先删除子级工单业务!", type: "error" });
|
|
else {
|
|
var a2 = { id: e2.id, operatorId: JSON.parse(localStorage.getItem("companyInfo")).id, operatorName: JSON.parse(localStorage.getItem("companyInfo")).abbreviation };
|
|
this.$confirm("确定删除该数据吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "info", center: true }).then((function() {
|
|
q(a2).then((function(e3) {
|
|
0 == e3.code && t2.$message({ message: "删除成功", type: "success" }), t2.getData();
|
|
}));
|
|
}));
|
|
}
|
|
}, cancelFrom: function(e2) {
|
|
this.typeDialog = false, this.$refs[e2].resetFields();
|
|
}, headClass: function() {
|
|
return "text-align:center;background:#FAFAFA;";
|
|
} } }, A = P, B = (a("e6dd"), Object(_["a"])(A, x, S, false, null, "3117d87a", null)), F = B.exports, Q = { name: "communityDynamic", components: { algorithmCfg: D, aisceneConfig: F }, data: function() {
|
|
return { activeName: "algorithmCfg" };
|
|
}, beforeRouteLeave: function(e2, t2, a2) {
|
|
this.activeName = "algorithmCfg", a2();
|
|
}, methods: { handleClick: function(e2) {
|
|
var t2 = e2.paneName;
|
|
this.activeName = t2;
|
|
} } }, J = Q, U = Object(_["a"])(J, i, r, false, null, null, null);
|
|
t["default"] = U.exports;
|
|
}, e6dd: function(e, t, a) {
|
|
"use strict";
|
|
a("07f5");
|
|
} }]);
|