Files
wysite/output/sourcemaps/hc-pos.sqygj.cn/static/js/chunk-364f2526.ad337856.js

321 lines
28 KiB
JavaScript

(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-364f2526", "chunk-2d0aa9e6"], { "127f": function(e, t, a) {
"use strict";
a.d(t, "a", (function() {
return n;
}));
var n = function() {
function e2() {
return (65536 * (1 + Math.random()) | 0).toString(16).substring(1);
}
return "".concat(+/* @__PURE__ */ new Date(), "_").concat(e2()).concat(e2());
};
}, "18f8": function(e, t, a) {
"use strict";
a.r(t);
var n = function() {
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
return a2("div", { staticClass: "app-container bgHeight" }, [a2("el-tabs", { staticClass: "thirdTabs", attrs: { value: e2.activeName, type: "border-card" }, on: { "tab-click": e2.handleClick } }, [a2("el-tab-pane", { attrs: { label: "能源档案", name: "facilitiesList" } }, [a2("facilitiesList", { attrs: { equipmentType: e2.type } })], 1), e2._v(" "), a2("el-tab-pane", { attrs: { label: "空间网格", name: "spatialRegion" } }, [a2("spatialRegion")], 1)], 1)], 1);
}, i = [], s = a("4c07"), r = a("d0eb"), o = { name: "energyArchives", components: { facilitiesList: s["a"], spatialRegion: r["default"] }, data: function() {
return { type: "energy", activeName: "facilitiesList" };
}, methods: { handleClick: function(e2) {
var t2 = e2.paneName;
this.activeName = t2;
} } }, l = o, c = (a("993e"), a("829d")), u = Object(c["a"])(l, n, i, false, null, "16e40a08", null);
t["default"] = u.exports;
}, "1f4a": function(e, t, a) {
"use strict";
a("5917");
}, "4c07": function(e, t, a) {
"use strict";
var n = function() {
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
return a2("div", { staticClass: "app-container bgHeight" }, [a2("div", { ref: "box", staticClass: "searchStys transition_dom" }, [a2("el-form", { ref: "query", attrs: { model: e2.query } }, [a2("div", { ref: "form_box", staticClass: "searchBar" }, [a2("div", { staticClass: "searchInput" }, [a2("el-row", { attrs: { gutter: 20 } }, [a2("el-col", { attrs: { span: 6 } }, [a2("el-form-item", { attrs: { prop: "deviceTypeId" } }, [a2("el-cascader", { attrs: { clearable: "", placeholder: "请选择设备类型", options: e2.typeList, "show-all-levels": false, props: { label: "eventName", children: "children", value: "id", emitPath: false }, filterable: "" }, model: { value: e2.query.deviceTypeId, callback: function(t3) {
e2.$set(e2.query, "deviceTypeId", t3);
}, expression: "query.deviceTypeId" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 6 } }, [a2("el-form-item", { attrs: { prop: "name" } }, [a2("el-input", { attrs: { clearable: "", placeholder: "设备名称" }, model: { value: e2.query.name, callback: function(t3) {
e2.$set(e2.query, "name", t3);
}, expression: "query.name" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 6 } }, [a2("el-form-item", { attrs: { prop: "deviceCode" } }, [a2("el-input", { attrs: { clearable: "", placeholder: "设备编号" }, model: { value: e2.query.deviceCode, callback: function(t3) {
e2.$set(e2.query, "deviceCode", t3);
}, expression: "query.deviceCode" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 6 } }, [a2("el-form-item", { attrs: { prop: "deviceNo" } }, [a2("el-input", { attrs: { clearable: "", placeholder: "设备编码" }, model: { value: e2.query.deviceNo, callback: function(t3) {
e2.$set(e2.query, "deviceNo", t3);
}, expression: "query.deviceNo" } })], 1)], 1)], 1)], 1), e2._v(" "), a2("div", { staticClass: "searchBtn" }, [a2("el-form-item", [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) {
return e2.resetForm("query");
} } }, [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("查询")]), e2._v(" "), e2.is_show || "80px" == e2.height ? e2._e() : a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: e2.upAndDown } }, [e2._v("展开"), a2("i", { staticClass: "el-icon-arrow-down" })]), e2._v(" "), e2.is_show && "80px" != e2.height ? a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: e2.upAndDown } }, [e2._v("收起"), a2("i", { staticClass: "el-icon-arrow-up" })]) : e2._e()], 1)], 1)])])], 1), e2._v(" "), a2("el-card", { staticClass: "box-card", attrs: { shadow: "never" } }, [a2("div", { staticClass: "planLst", attrs: { slot: "header" }, slot: "header" }, [a2("span", { staticClass: "planTitle" }, [e2._v(e2._s(e2.title))]), e2._v(" "), a2("div", ["设备列表" == e2.title ? a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.exportExcelList } }, [e2._v("导出模版")]) : e2._e(), e2._v(" "), "设备列表" == e2.title ? a2("el-upload", { ref: "upload", staticClass: "importSpaceTmpBtn", attrs: { loading: e2.importDataBtn, "auto-upload": true, "show-file-list": false, accept: ".xlsx", "http-request": e2.importFile, action: "" } }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" } }, [e2._v("导入数据")])], 1) : e2._e(), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.batchBindStand } }, [e2._v("批量绑定标准")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.batchUnBindStands } }, [e2._v("批量解绑标准")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 1e3, expression: "1000" }], attrs: { type: "primary", icon: e2.isAsync ? "el-icon-loading" : "el-icon-refresh" }, on: { click: e2.asyncParamsBy } }, [e2._v(e2._s(e2.isAsync ? "参数同步中" : "参数云同步"))]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary", icon: "el-icon-plus" }, on: { click: e2.addFacilities } }, [e2._v("新增")])], 1)]), e2._v(" "), a2("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: e2.listLoading, expression: "listLoading" }], ref: "listDataMuilt", staticStyle: { width: "100%" }, attrs: { border: "", data: e2.listData, "highlight-current-row": "", "header-cell-style": e2.headClass, "row-key": "deviceBaseUuid" }, on: { "selection-change": e2.handleSelectionMChange } }, [a2("el-table-column", { attrs: { type: "selection", align: "center", width: "55", "reserve-selection": true } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "设备编号" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [a2("span", [e2._v(e2._s(t3.row.deviceNo))])];
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "设备名称" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [a2("span", [e2._v(e2._s(t3.row.name))])];
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "第三方编码" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [a2("span", [e2._v(e2._s(t3.row.thirdPartyCode || "-"))])];
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "是否已绑定设备职责" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [a2("span", [e2._v(e2._s(1 == t3.row.bindStandard ? "是" : "否"))])];
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "是否绑定责任人" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [a2("span", [e2._v(e2._s(1 == t3.row.bindManager ? "是" : "否"))])];
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "show-overflow-tooltip": "", label: "设备分类" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [a2("span", [e2._v(e2._s(t3.row.parentDeviceTypeName) + " /\n " + e2._s(t3.row.deviceTypeName))])];
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "品牌" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [a2("span", [e2._v(e2._s(t3.row.brand || "-"))])];
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "型号" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [a2("span", [e2._v(e2._s(t3.row.model || "-"))])];
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "设备编码" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [a2("span", [e2._v(e2._s(t3.row.deviceCode))])];
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "设备uuid" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [a2("span", [e2._v(e2._s(t3.row.deviceBaseUuid || "-"))])];
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "操作" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: function(a3) {
return e2.editDetail(t3.row);
} } }, [e2._v("详情")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: function(a3) {
return e2.deleteDevice(t3.row);
} } }, [e2._v("删除")])];
} }]) })], 1), e2._v(" "), a2("div", { staticClass: "paginations" }, [a2("Pagination", { attrs: { total: e2.total, page: e2.query.pageNumber, limit: e2.query.pageSize }, on: { handleCurrentChange: e2.handleCurrentChange, handleSizeChange: e2.handleSizeChange } })], 1)], 1), e2._v(" "), a2("el-dialog", { attrs: { title: e2.standDialogtitle, visible: e2.standDialogVisible, width: "80%", "before-close": e2.resetstandDialog }, on: { "update:visible": function(t3) {
e2.standDialogVisible = t3;
} } }, [a2("div", { staticClass: "standQuerySearch" }, [a2("el-row", [a2("el-col", { staticClass: "elCol", attrs: { span: 4 } }, [a2("el-input", { attrs: { type: "text", clearable: "", placeholder: "作业事项" }, model: { value: e2.standQuery.eventName, callback: function(t3) {
e2.$set(e2.standQuery, "eventName", "string" === typeof t3 ? t3.trim() : t3);
}, expression: "standQuery.eventName" } })], 1), e2._v(" "), a2("el-col", { staticClass: "elCol", attrs: { span: 4 } }, [a2("el-select", { staticClass: "select-dom", attrs: { clearable: "", placeholder: "请选择职责归属" }, model: { value: e2.standQuery.jobName, callback: function(t3) {
e2.$set(e2.standQuery, "jobName", t3);
}, expression: "standQuery.jobName" } }, e2._l(e2.jobListArr, (function(e3, t3) {
return a2("el-option", { key: t3, attrs: { label: e3.name, value: e3.name } });
})), 1)], 1), e2._v(" "), a2("el-col", { staticClass: "elCol", attrs: { offset: 12, span: 4 } }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) {
return e2.resetstandQueryForm();
} } }, [e2._v("重置")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.onstandQuerySearch } }, [e2._v("查询")])], 1)], 1)], 1), e2._v(" "), a2("el-table", { ref: "multipleTable", attrs: { border: "", size: "mini", "header-cell-style": e2.headClass, data: e2.standList, "row-key": "standUuid" }, on: { "selection-change": e2.handleSelectionChange } }, [a2("el-table-column", { attrs: { type: "selection", align: "center", width: "55", "reserve-selection": true } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "作业事项", prop: "eventName", "show-overflow-tooltip": "", "min-width": "200" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "作业标准", prop: "serviceDesc", "show-overflow-tooltip": "", "min-width": "150" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "150", label: "检查标准", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [e2._v("\n " + e2._s(t3.row.serviceDesc || "-") + "\n ")];
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "120", label: "频次", prop: "freName", "show-overflow-tooltip": "" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "140", label: "职责归属", prop: "jobName", "show-overflow-tooltip": "" } })], 1), e2._v(" "), a2("div", { staticClass: "paginations" }, [a2("el-pagination", { attrs: { background: "", "current-page": e2.standQuery.pageNumber, "page-sizes": [10], "page-size": e2.standQuery.pageSize, layout: "total, prev, pager, next, jumper", total: e2.standTotal }, on: { "size-change": e2.handlestandSizeChange, "current-change": e2.handlestandCurrentChange } })], 1), e2._v(" "), a2("span", { staticClass: "dialog-footer", attrs: { slot: "footer" }, slot: "footer" }, [a2("el-button", { on: { click: function(t3) {
return e2.resetstandDialog();
} } }, [e2._v("取 消")]), e2._v(" "), a2("el-button", { attrs: { type: "primary", disabled: !(e2.multipleSelection.length > 0) }, on: { click: function(t3) {
return e2.submitstandDialog();
} } }, [e2._v(e2._s(1 === e2.isQuery ? "确认添加" : "确认解绑"))])], 1)], 1)], 1);
}, i = [], s = a("be2e"), r = a("333d"), o = a("c40e"), l = a("f8b7"), c = { components: { Pagination: r["a"] }, props: ["equipmentType"], data: function() {
return { title: "设备列表", is_show: false, height: 0, listData: [], typeList: [], listLoading: false, total: 0, query: { pageNumber: 1, pageSize: 10, deviceCode: "", name: "", deviceTypeId: "" }, uuid: "", isAsync: false, tableSelected: [], targetUuid: "", targetName: "", standDialogtitle: "批量绑定标准", standDialogVisible: false, standTotal: 0, standQuery: { projectUuid: this.$store.state.community_uuid, eventName: "", jobName: "", pageNumber: 1, pageSize: 10 }, standList: [], multipleSelection: [], jobListArr: [], isQuery: 1, importDataBtn: false };
}, mounted: function() {
console.log(this.equipmentType), "elevator" == this.equipmentType ? this.title = "电梯设备列表" : "energy" == this.equipmentType ? this.title = "能源设备列表" : this.title = "设备列表", this.getRealHeight();
}, created: function() {
this.uuid = this.$store.state.community_uuid, this.getType();
var e2 = this.getCacheKey(), t2 = JSON.parse(sessionStorage.getItem(e2));
t2 && (this.query = Object.assign({}, this.query, t2)), this.getList(), this.headClass();
}, methods: { getCacheKey: function() {
var e2 = this.$route.name || "facilitiesList", t2 = this.equipmentType || "equipment";
return "".concat(e2, "_").concat(t2);
}, exportExcelList: function() {
var e2 = "/static/template/equipmentDataTemplate.xlsx", t2 = "设备数据导入模板.xlsx", a2 = document.createElement("a");
a2.setAttribute("type", "download"), a2.setAttribute("download", t2), a2.style.display = "none", a2.href = e2, console.log(a2, "elink++++"), document.body.appendChild(a2), a2.click(), document.body.removeChild(a2);
}, importFile: function(e2) {
var t2 = this, a2 = e2.file, n2 = a2.size / 1024 / 1024 < 20, i2 = a2.name.lastIndexOf("."), r2 = a2.name.length, o2 = a2.name.substring(i2 + 1, r2);
if ("xls" == o2 || "xlsx" == o2) if (n2) {
var l2 = new FormData();
this.fileName = a2.name, l2.append("file", a2, a2.name);
var c2 = "".concat(this.$store.state.community_uuid, "/").concat(this.$store.state.user.userInfo.memberId, "/").concat(this.$store.state.id);
this.importDataBtn = true, Object(s["Z"])(l2, c2).then((function(e3) {
console.log(e3, "response");
var a3 = e3.headers, n3 = e3.data;
if (a3.count) {
var i3 = JSON.parse(a3.count);
0 == i3.code ? i3.errorCount > 0 ? (t2.$message({ message: "上传结果:总条数".concat(i3.totalCount, "条,成功").concat(i3.successCount, "条,失败").concat(i3.errorCount, "条。"), type: "warning" }), t2.downloadImportDetailes(n3), t2.query.pageNumber = 1, t2.getList()) : (t2.$message({ message: "导入数据成功!", type: "success" }), t2.query.pageNumber = 1, t2.getList()) : t2.$message({ message: "数据导入失败,请检查模板数据格式是否规范!", type: "error" }), t2.importDataBtn = false;
} else t2.$message({ message: "数据导入失败,请检查模板数据格式是否规范!", type: "error" }), t2.importDataBtn = false;
})).catch((function() {
t2.$message({ message: "数据导入失败,请检查模板数据格式是否规范!", type: "error" }), t2.importDataBtn = false;
}));
} else this.$message("上传文件大小不能超过20M!");
else this.$message("只能上传Excel文件!");
}, downloadImportDetailes: function(e2) {
var t2 = "application/vnd.ms-excel", a2 = new Blob([e2], { type: t2 }), n2 = "设备数据导入失败信息.xls";
if (window.navigator.msSaveOrOpenBlob) navigator.msSaveBlob(a2);
else {
var i2 = document.createElement("a");
i2.download = n2, i2.style.display = "none", i2.href = URL.createObjectURL(a2), document.body.appendChild(i2), i2.click(), document.body.removeChild(i2);
}
}, getType: function() {
var e2 = this, t2 = {};
"elevator" == this.equipmentType ? t2 = { projectId: this.uuid, queryType: 3 } : "equipment" == this.equipmentType ? t2 = { projectId: this.uuid, queryType: 2 } : "energy" == this.equipmentType && (t2 = { projectId: this.uuid, queryType: 4 }), Object(s["F"])(t2).then((function(t3) {
e2.typeList = t3.data;
}));
}, getList: function() {
var e2 = this;
this.query.projectId = this.uuid, "elevator" == this.equipmentType ? this.query.queryType = 3 : "equipment" == this.equipmentType ? this.query.queryType = 2 : "energy" == this.equipmentType && (this.query.queryType = 4), Object(s["C"])(this.query).then((function(t2) {
t2 && t2.data && (e2.listData = t2.data.records, e2.total = t2.data.rowsCount);
var a2 = { pageNumber: e2.query.pageNumber, pageSize: e2.query.pageSize, deviceCode: e2.query.deviceCode, name: e2.query.name, deviceTypeId: e2.query.deviceTypeId, deviceNo: e2.query.deviceNo };
sessionStorage.setItem(e2.getCacheKey(), JSON.stringify(a2));
})), this.listLoading = false;
}, onSearch: function() {
this.query.pageNumber = 1, this.getList();
}, resetForm: function(e2) {
this.query.deviceTypeId = "", this.query.name = "", this.query.deviceCode = "", this.query.deviceNo = "", this.query.pageNumber = 1, this.query.pageSize = 10, this.getList();
}, addFacilities: function() {
this.$store.commit("UPDATE_ACTIVE_NAME_FACILITIES", "equipment"), this.$router.push({ path: "/createInfo/addFacilities", query: { type: "add", equipmentType: this.equipmentType } });
}, editDetail: function(e2) {
this.$store.commit("UPDATE_ACTIVE_NAME_FACILITIES", "equipment"), this.$router.push({ path: "/editInfo/editFacilities", query: { type: "edit", equipmentType: this.equipmentType, data: e2 } });
}, asyncParamsBy: function() {
var e2 = this;
this.isAsync = true;
var t2 = { createUserName: this.$store.state.user.userInfo.memberName, projectUuid: this.$store.state.community_uuid };
Object(s["D"])(t2).then((function(t3) {
0 === t3.code ? e2.$message({ type: "success", message: "同步成功" }) : e2.$message({ type: "error", message: "同步失败" }), e2.isAsync = false;
}));
}, handleSizeChange: function(e2) {
this.query.pageSize = e2.limit, this.query.pageNumber = 1, this.getList();
}, handleCurrentChange: function(e2) {
this.query.pageNumber = e2.currentPage, this.getList();
}, headClass: function() {
return "text-align:center;background:#FAFAFA;";
}, upAndDown: function() {
this.is_show ? this.$refs.box.style.height = "80px" : this.$refs.box.style.height = this.height, this.is_show = !this.is_show;
}, getRealHeight: function() {
this.$nextTick((function() {
this.height = this.$refs.form_box.offsetHeight + "px";
}));
}, deleteDevice: function(e2) {
var t2 = this;
this.$confirm("此操作将删除该设备, 是否继续?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then((function() {
Object(s["B"])({ deviceBaseUuid: e2.deviceBaseUuid }).then((function(e3) {
0 === e3.code ? (t2.$message({ type: "success", message: "删除成功" }), t2.getList()) : t2.$message({ type: "error", message: e3.message });
}));
})).catch((function() {
t2.$message({ type: "info", message: "已取消删除" });
}));
}, handleSelectionMChange: function(e2) {
this.tableSelected = e2;
}, getJobListPeople: function() {
var e2 = this, t2 = { projectUuid: this.$store.state.community_uuid, flag: 1 };
Object(l["q"])(t2).then((function(t3) {
0 === t3.code && (e2.jobListArr = t3.data);
}));
}, resetstandQueryForm: function() {
this.standQuery.eventName = "", this.standQuery.jobName = "", this.standQuery.pageNumber = 1, this.isQuery = 1, this.getlistData();
}, onstandQuerySearch: function() {
this.standQuery.pageNumber = 1, this.getlistData();
}, batchBindStand: function() {
if (0 === this.tableSelected.length) return this.$message({ type: "error", message: "请选择物品" }), false;
this.standDialogVisible = true, this.isQuery = 1, this.getJobListPeople(), this.getlistData();
}, batchUnBindStands: function() {
if (0 === this.tableSelected.length) return this.$message({ type: "error", message: "请选择物品" }), false;
this.standDialogVisible = true, this.isQuery = 2, this.getJobListPeople(), this.getlistData();
}, resetstandDialog: function() {
this.standQuery.eventName = "", this.standQuery.jobName = "", this.standQuery.pageNumber = 1, this.$refs.multipleTable.clearSelection(), this.standDialogVisible = false;
}, submitstandDialog: function() {
var e2 = this;
if (0 === this.multipleSelection.length) return this.$message({ type: "error", message: "请选择标准" }), false;
var t2 = this.multipleSelection.map((function(e3) {
return { standardUuid: e3["standUuid"], eventProjectName: e3["eventName"], category: 8 };
})), a2 = this.tableSelected.map((function(t3) {
return { targetId: t3["deviceBaseUuid"], targetName: t3["name"], targetType: 1, projectUuid: e2.$store.state.community_uuid };
}));
this.contractStandOperation(this.isQuery, t2, a2);
}, contractStandOperation: function(e2, t2, a2) {
var n2 = this, i2 = { projectUuid: this.$store.state.community_uuid, standDataList: t2, targets: a2 };
console.log("params", i2), 1 === e2 ? Object(o["d"])(i2).then((function(e3) {
0 === e3.code ? (n2.$message({ type: "success", message: "标准绑定成功" }), n2.isQuery = 1, n2.$refs.listDataMuilt.clearSelection(), n2.resetstandDialog()) : n2.$message({ type: "error", message: "标准绑定失败" });
})) : Object(o["f"])(i2).then((function(e3) {
0 === e3.code ? (n2.$message({ type: "success", message: "解除标准绑定成功" }), n2.isQuery = 2, n2.$refs.listDataMuilt.clearSelection(), n2.resetstandDialog()) : n2.$message({ type: "error", message: "解除标准绑定失败" });
}));
}, handleSelectionChange: function(e2) {
this.multipleSelection = e2;
}, handlestandSizeChange: function(e2) {
this.standQuery.pageSize = e2, this.standQuery.pageNumber = 1, this.getlistData();
}, handlestandCurrentChange: function(e2) {
this.standQuery.pageNumber = e2, this.getlistData();
}, getlistData: function() {
var e2 = this, t2 = [];
t2 = "equipment" == this.equipmentType || "elevator" == this.equipmentType ? this.tableSelected.map((function(e3) {
return e3.deviceBaseUuid;
})) : this.tableSelected.map((function(e3) {
return e3.materialUuid;
}));
var a2 = 1 === this.isQuery ? this.standQuery : Object.assign({}, this.standQuery, { targetUuids: t2 });
Object(s["tb"])(a2).then((function(t3) {
0 === t3.code && (e2.standList = t3.data.records, e2.standTotal = t3.data.rowsCount);
}));
} } }, u = c, d = (a("1f4a"), a("829d")), p = Object(d["a"])(u, n, i, false, null, "95676abe", null);
t["a"] = p.exports;
}, 5917: function(e, t, a) {
}, "993e": function(e, t, a) {
"use strict";
a("a5f5");
}, a5f5: function(e, t, a) {
}, c40e: function(e, t, a) {
"use strict";
a.d(t, "h", (function() {
return i;
})), a.d(t, "a", (function() {
return s;
})), a.d(t, "k", (function() {
return r;
})), a.d(t, "b", (function() {
return o;
})), a.d(t, "j", (function() {
return l;
})), a.d(t, "c", (function() {
return c;
})), a.d(t, "g", (function() {
return u;
})), a.d(t, "l", (function() {
return d;
})), a.d(t, "m", (function() {
return p;
})), a.d(t, "n", (function() {
return m;
})), a.d(t, "p", (function() {
return h;
})), a.d(t, "q", (function() {
return f;
})), a.d(t, "o", (function() {
return v;
})), a.d(t, "d", (function() {
return y;
})), a.d(t, "f", (function() {
return g;
})), a.d(t, "e", (function() {
return b;
})), a.d(t, "i", (function() {
return _;
}));
var n = a("b775");
function i(e2) {
return Object(n["a"])({ url: "/appproject/MaterialBaseInfo/pageList", method: "post", data: e2 });
}
function s(e2) {
return Object(n["a"])({ url: "/appproject/MaterialBaseInfo/create", method: "post", data: e2 });
}
function r(e2) {
return Object(n["a"])({ url: "/appproject/MaterialBaseInfo/update", method: "post", data: e2 });
}
function o(e2) {
return Object(n["a"])({ url: "/appproject/MaterialBaseInfo/delete", method: "post", data: e2 });
}
function l(e2) {
return Object(n["a"])({ url: "/appproject/MaterialBaseInfo/relatedPageList", method: "post", data: e2 });
}
function c(e2) {
return Object(n["a"])({ url: "/appproject/MaterialBaseInfo/exportExcel", method: "post", responseType: "blob", data: e2 });
}
function u(e2, t2) {
return Object(n["a"])({ url: "/appproject/MaterialBaseInfo/importExcel" + t2, method: "post", isReturnResponse: true, responseType: "blob", headers: { "Content-Type": "multipart/form-data;charset=UTF-8" }, data: e2 });
}
function d(e2) {
return Object(n["a"])({ url: "/appproject/VirescenceBaseInfo/create", method: "post", data: e2 });
}
function p(e2) {
return Object(n["a"])({ url: "/appproject/VirescenceBaseInfo/update", method: "post", data: e2 });
}
function m(e2) {
return Object(n["a"])({ url: "/appproject/VirescenceBaseInfo/delete", method: "post", data: e2 });
}
function h(e2) {
return Object(n["a"])({ url: "/appproject/VirescenceBaseInfo/pageList", method: "post", data: e2 });
}
function f(e2) {
return Object(n["a"])({ url: "/appproject/VirescenceBaseInfo/relatedPageList", method: "post", data: e2 });
}
function v(e2, t2) {
return Object(n["a"])({ url: "/appproject/VirescenceBaseInfo/importExcel" + t2, method: "post", isReturnResponse: true, responseType: "blob", headers: { "Content-Type": "multipart/form-data;charset=UTF-8" }, data: e2 });
}
function y(e2) {
return Object(n["a"])({ url: "/appproject/LocationStandard/multipleTargetStandardCreate", method: "post", data: e2 });
}
function g(e2) {
return Object(n["a"])({ url: "/appproject/LocationStandard/multipleTargetStandardRemove", method: "post", data: e2 });
}
function b(e2) {
return Object(n["a"])({ url: "/appproject/LocationStandard/targetStandPageList", method: "post", data: e2 });
}
function _(e2) {
return Object(n["a"])({ url: "/appproject/LocationStandard/updateStandardQuoted", method: "post", data: e2 });
}
} }]);