1288 lines
131 KiB
JavaScript
1288 lines
131 KiB
JavaScript
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-8f854eda"], { "24c8": function(e, t, a) {
|
||
}, "25b5": function(e, t, a) {
|
||
"use strict";
|
||
a("6066");
|
||
}, "26fb": function(e, t, a) {
|
||
"use strict";
|
||
a("6cd6");
|
||
}, "5fccc": function(e, t, a) {
|
||
}, 6066: function(e, t, a) {
|
||
}, "6cd6": function(e, t, a) {
|
||
}, "770a": function(e, t, a) {
|
||
}, 8345: function(e, t, a) {
|
||
"use strict";
|
||
a("5fccc");
|
||
}, "86fc": function(e, t, a) {
|
||
"use strict";
|
||
a("c54d");
|
||
}, "8b31": function(e, t, a) {
|
||
"use strict";
|
||
a("24c8");
|
||
}, a402: function(e, t, a) {
|
||
}, b2f2: function(e, t, a) {
|
||
"use strict";
|
||
a("a402");
|
||
}, c54d: function(e, t, a) {
|
||
}, cfb6: function(e, t, a) {
|
||
"use strict";
|
||
a.d(t, "a", (function() {
|
||
return s;
|
||
})), a.d(t, "b", (function() {
|
||
return n;
|
||
})), a.d(t, "c", (function() {
|
||
return o;
|
||
})), a.d(t, "e", (function() {
|
||
return l;
|
||
})), a.d(t, "g", (function() {
|
||
return r;
|
||
})), a.d(t, "h", (function() {
|
||
return c;
|
||
})), a.d(t, "d", (function() {
|
||
return u;
|
||
})), a.d(t, "f", (function() {
|
||
return p;
|
||
}));
|
||
var i = a("b775");
|
||
function s(e2) {
|
||
return Object(i["a"])({ url: "/space/DangerousSourceMonitor/createBatch", method: "post", data: e2 });
|
||
}
|
||
function n(e2) {
|
||
return Object(i["a"])({ url: "/space/DangerousSourceMonitor/findById", method: "post", data: e2 });
|
||
}
|
||
function o(e2) {
|
||
return Object(i["a"])({ url: "/space/DangerousSourceMonitor/pageList", method: "post", data: e2 });
|
||
}
|
||
function l(e2) {
|
||
return Object(i["a"])({ url: "/space/DangerousSourceMonitor/unrelatedPageList", method: "post", data: e2 });
|
||
}
|
||
function r(e2) {
|
||
return Object(i["a"])({ url: "/space/DangerousSourceMonitor/updateNextResetTime", method: "post", data: e2 });
|
||
}
|
||
function c(e2) {
|
||
return Object(i["a"])({ url: "/space/DangerousSourceMonitor/updateStatus", method: "post", data: e2 });
|
||
}
|
||
function u(e2) {
|
||
return Object(i["a"])({ url: "/space/DangerousSourceMonitor/relStandPageList", method: "post", data: e2 });
|
||
}
|
||
function p(e2) {
|
||
return Object(i["a"])({ url: "/space/DangerousSourceMonitor/updateMonitorStartTime", method: "post", data: e2 });
|
||
}
|
||
}, d0eb: 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", { staticClass: "spaceIndex", attrs: { type: "border-card" }, model: { value: e2.activeName, callback: function(t3) {
|
||
e2.activeName = t3;
|
||
}, expression: "activeName" } }, [a2("el-tab-pane", { attrs: { label: "空间网格", name: "spaceIndex" } }, [a2("spaceIndex")], 1), e2._v(" "), a2("el-tab-pane", { attrs: { label: "网格码配置", name: "whiteCodeList" } }, [a2("whiteCodeList")], 1), e2._v(" "), a2("el-tab-pane", { attrs: { label: "隐患信息", name: "warningList" } }, [a2("warningList")], 1)], 1)], 1);
|
||
}, s = [], n = function() {
|
||
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
||
return a2("div", [a2("el-tabs", { attrs: { type: "border-card" }, on: { "tab-click": e2.handleClick }, model: { value: e2.activeName, callback: function(t3) {
|
||
e2.activeName = t3;
|
||
}, expression: "activeName" } }, [a2("el-tab-pane", { attrs: { label: "网格信息", name: "spatialRegion" } }, [a2("spatialRegion")], 1), e2._v(" "), a2("el-tab-pane", { attrs: { label: "网格模板", name: "locationTemplate" } }, [a2("locationTemplate")], 1), e2._v(" "), a2("el-tab-pane", { attrs: { label: "模板应用", name: "templateApplication" } }, [a2("templateApplication", { ref: "templateApplication" })], 1)], 1)], 1);
|
||
}, o = [], l = function() {
|
||
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
||
return a2("div", { staticClass: "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: 5 } }, [a2("el-form-item", { attrs: { prop: "spaceUuid" } }, [a2("el-select", { attrs: { clearable: "", placeholder: "请选择空间名称" }, model: { value: e2.query.spaceUuid, callback: function(t3) {
|
||
e2.$set(e2.query, "spaceUuid", t3);
|
||
}, expression: "query.spaceUuid" } }, e2._l(e2.spaceTypeList, (function(e3) {
|
||
return a2("el-option", { key: e3.spaceUuid, attrs: { label: e3.name, value: e3.spaceUuid } });
|
||
})), 1)], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 5 } }, [a2("el-form-item", { attrs: { prop: "location" } }, [a2("el-input", { attrs: { clearable: "", placeholder: "请输入网格信息" }, model: { value: e2.query.location, callback: function(t3) {
|
||
e2.$set(e2.query, "location", t3);
|
||
}, expression: "query.location" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 4 } }, [a2("el-form-item", { attrs: { prop: "enableStatus" } }, [a2("el-select", { attrs: { clearable: "", placeholder: "请选择状态" }, model: { value: e2.query.enableStatus, callback: function(t3) {
|
||
e2.$set(e2.query, "enableStatus", t3);
|
||
}, expression: "query.enableStatus" } }, e2._l(e2.statusList, (function(e3) {
|
||
return a2("el-option", { key: e3.value, attrs: { label: e3.label, value: e3.value } });
|
||
})), 1)], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 5 } }, [a2("el-form-item", { attrs: { prop: "sceneId" } }, [a2("el-select", { attrs: { placeholder: "选择场景归属", clearable: "" }, model: { value: e2.query.sceneId, callback: function(t3) {
|
||
e2.$set(e2.query, "sceneId", t3);
|
||
}, expression: "query.sceneId" } }, e2._l(e2.sceneMenu, (function(e3, t3) {
|
||
return a2("el-option", { key: t3, attrs: { label: e3.sceneName, value: e3.id } });
|
||
})), 1)], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 5 } }, [a2("el-form-item", { attrs: { prop: "spaceLocationTypes" } }, [a2("el-select", { attrs: { clearable: "", placeholder: "网格分类", "collapse-tags": "", multiple: "" }, model: { value: e2.query.spaceLocationTypes, callback: function(t3) {
|
||
e2.$set(e2.query, "spaceLocationTypes", t3);
|
||
}, expression: "query.spaceLocationTypes" } }, e2._l(e2.gridClassList, (function(e3) {
|
||
return a2("el-option", { key: e3.value, attrs: { label: e3.label, value: e3.value } });
|
||
})), 1)], 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._v(" "), a2("div", [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary", size: "small" }, on: { click: e2.ruleGroupConfig } }, [e2._v("规则组配置")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary", size: "small" }, on: { click: e2.addSpace } }, [e2._v("新增空间")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary", size: "small" }, on: { click: e2.addPosition } }, [e2._v("新增网格")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary", size: "small" }, on: { click: e2.addDangerousSource } }, [e2._v("识别危险源")])], 1)]), e2._v(" "), a2("div", { staticStyle: { display: "flex", "align-items": "center", "margin-bottom": "20px" } }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], staticClass: "mr10", attrs: { type: "primary", size: "small" }, on: { click: e2.downloadSpaceTmp } }, [e2._v("导出空间网格")]), e2._v(" "), a2("el-upload", { ref: "upload", staticClass: "importSpaceTmpBtn mr10", attrs: { loading: e2.importDataBtn, "auto-upload": true, "show-file-list": false, accept: ".xlsx", "http-request": e2.importSpaceTmp, action: "" } }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], staticClass: "el-icon-upload2", attrs: { type: "primary", size: "small" } }, [e2._v("导入空间网格")])], 1), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary", size: "small" }, on: { click: e2.exportBatchBinding } }, [e2._v("导出物品批量绑定")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], staticClass: "el-icon-upload2", attrs: { type: "primary", size: "small" }, on: { click: e2.batchBinding } }, [e2._v("导入批量绑定")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary", size: "small" }, on: { click: e2.batchExportQr } }, [e2._v("批量导出已选")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary", size: "small" }, on: { click: e2.exportExcelList } }, [e2._v("下载Excel")]), e2._v(" "), a2("el-button", { attrs: { type: "primary", disabled: e2.exportBatchDeviceLoading, loading: e2.exportBatchDeviceLoading, size: "small" }, on: { click: e2.exportBatchDevice } }, [e2._v("导出设备批量绑定")]), e2._v(" "), a2("el-button", { attrs: { type: "primary", size: "small" }, on: { click: e2.batchBindStandard } }, [e2._v("批量绑定标准")])], 1), e2._v(" "), a2("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: e2.listLoading, expression: "listLoading" }], ref: "multipleTable", attrs: { border: "", "header-cell-style": e2.headClass, data: e2.listData, "row-key": "qrUuid" }, on: { "selection-change": e2.handleSelectionChange } }, [a2("el-table-column", { attrs: { type: "selection", align: "center", "reserve-selection": true, width: "55" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "场景", "show-overflow-tooltip": "", prop: "", "min-width": "160", fixed: "left" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(t3.row.sceneName || "-"))])];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "空间网格编码", "show-overflow-tooltip": "", prop: "", "min-width": "160", fixed: "left" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(t3.row.locationCode))])];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "空间", "show-overflow-tooltip": "", fixed: "left", "min-width": "160" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(t3.row.spaceName ? t3.row.spaceName : "-"))])];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "网格", "show-overflow-tooltip": "", "min-width": "160" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(t3.row.location ? t3.row.location : "-"))])];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "二维码编码", "min-width": "200" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(t3.row.qrCode || "-"))])];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "网格分类", "min-width": "130" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(e2._f("getItemType")(t3.row.spaceLocationType, e2.gridClassList)))])];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "最近更新人", "min-width": "100" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(t3.row.updateUserName))])];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "更新时间", "min-width": "180" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(t3.row.updateDate))])];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "启停状态" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [0 == t3.row.enableStatus ? a2("el-tag", { attrs: { type: "success" } }, [e2._v("启用")]) : e2._e(), e2._v(" "), 1 == t3.row.enableStatus ? a2("el-tag", { attrs: { type: "info" } }, [e2._v("停用")]) : e2._e()];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "操作", fixed: "right", "min-width": "240" }, 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.goto(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.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.viewDetail(t3.row);
|
||
} } }, [e2._v("查看")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], class: 1 == t3.row.enableStatus ? "statusTrue" : "statusFalse", attrs: { type: "text" }, on: { click: function(a3) {
|
||
return e2.updataStatus(t3.row);
|
||
} } }, [e2._v(e2._s(1 == t3.row.enableStatus ? "启用" : "停用"))])];
|
||
} }]) })], 1), e2._v(" "), a2("div", { staticClass: "paginations" }, [a2("Pagination", { attrs: { total: e2.total }, on: { handleCurrentChange: e2.handleCurrentChange, handleSizeChange: e2.handleSizeChange } })], 1)], 1), e2._v(" "), a2("el-dialog", { staticClass: "dialogHead", attrs: { title: "新增空间", visible: e2.spaceVisible, "show-close": true, "close-on-press-escape": false, "close-on-click-modal": false, width: "30%" }, on: { "update:visible": function(t3) {
|
||
e2.spaceVisible = t3;
|
||
} } }, [a2("el-form", { attrs: { model: e2.add, "label-width": "100px" } }, [a2("el-form-item", { attrs: { label: "选择业态" } }, [a2("el-select", { attrs: { placeholder: "请选择业态" }, on: { change: e2.selectPtId }, model: { value: e2.add.ptId, callback: function(t3) {
|
||
e2.$set(e2.add, "ptId", t3);
|
||
}, expression: "add.ptId" } }, e2._l(e2.typeList, (function(e3) {
|
||
return a2("el-option", { key: e3.targetId, attrs: { label: e3.name, value: e3.targetId } });
|
||
})), 1)], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "选择空间" } }, [a2("el-select", { attrs: { multiple: "", placeholder: "请选择空间" }, model: { value: e2.add.nameList, callback: function(t3) {
|
||
e2.$set(e2.add, "nameList", t3);
|
||
}, expression: "add.nameList" } }, e2._l(e2.spaceList, (function(e3) {
|
||
return a2("el-option", { key: e3.targetId, attrs: { label: e3.name, value: e3.name } });
|
||
})), 1)], 1)], 1), e2._v(" "), a2("span", { staticClass: "dialog-footer", attrs: { slot: "footer" }, slot: "footer" }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) {
|
||
e2.spaceVisible = false;
|
||
} } }, [e2._v("取 消")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary", disabled: e2.btnloading }, on: { click: e2.postSpace } }, [e2._v("确 定")])], 1)], 1), e2._v(" "), a2("el-dialog", { staticClass: "dialogHead", attrs: { "show-close": true, "close-on-press-escape": false, "close-on-click-modal": false, visible: e2.pictureDialog, width: "630px" }, on: { "update:visible": function(t3) {
|
||
e2.pictureDialog = t3;
|
||
} } }, [a2("span", { attrs: { slot: "title" }, slot: "title" }, [a2("span", { staticClass: "header-main-title" }, [e2._v("照片集")]), e2._v(" "), a2("span", { staticClass: "header-sub-title" }, [e2._v("注:对图片进行删除,删除后的图片再被选择为初始化图片,则这里再次显示")])]), e2._v(" "), a2("div", { staticClass: "imgPreview" }, [e2.pictureUrl.length > 0 ? e2._l(Math.ceil(e2.pictureUrl.length / 3), (function(t3, i2) {
|
||
return a2("el-row", { key: t3, staticClass: "pictureRow", attrs: { type: "flex" } }, e2._l(e2.pictureUrl.slice(0 === i2 ? 0 : 3 * i2, 3 * (i2 + 1)), (function(t4) {
|
||
return a2("el-col", { key: t4.src, attrs: { span: 8 } }, [a2("div", { staticClass: "imgItem", on: { click: function(a3) {
|
||
return e2.handleImg(t4);
|
||
} } }, [a2("span", { staticClass: "imgWrap" }, [a2("img", { staticStyle: { cursor: "pointer" }, attrs: { src: t4.src, alt: "" } })]), e2._v(" "), a2("span", { staticClass: "btnWrap2" }, [a2("i", { staticClass: "floats" }, [a2("el-image", { staticClass: "bannerImg", attrs: { src: e2.replaceUrl(t4.src), "preview-src-list": [t4.src], fit: "contain" } })], 1)]), e2._v(" "), t4.checked ? a2("span", { staticClass: "btnWrap" }, [a2("el-button", { attrs: { type: "primary", icon: "el-icon-check", circle: "" } })], 1) : e2._e()])]);
|
||
})), 1);
|
||
})) : a2("div", { staticClass: "noData" }, [e2._v("暂无数据")]), e2._v(" "), a2("div", { staticClass: "picture" }, [e2.pictureUrl.length > 0 ? a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.saveSelect } }, [e2._v("确定删除")]) : e2._e(), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) {
|
||
e2.pictureDialog = false;
|
||
} } }, [e2._v("取消")])], 1)], 2)]), e2._v(" "), e2.viewImport ? a2("el-dialog", { staticClass: "dialogHead", attrs: { title: "查看导入详情", "show-close": true, "close-on-press-escape": false, "close-on-click-modal": false, "destroy-on-close": "", visible: e2.viewImport }, on: { "update:visible": function(t3) {
|
||
e2.viewImport = t3;
|
||
} } }, [a2("div", { staticClass: "center2" }, [a2("span", [e2._v("上传成功!共上传")]), e2._v(" "), a2("span", { staticClass: "color1" }, [e2._v(e2._s(e2.totalCount))]), e2._v(" "), a2("span", [e2._v("条,成功")]), e2._v(" "), a2("span", { staticClass: "color2" }, [e2._v(e2._s(e2.successCount))]), e2._v(" "), a2("span", [e2._v("条,失败")]), e2._v(" "), a2("span", { staticClass: "color3" }, [e2._v(e2._s(e2.errorCount))]), e2._v(" "), a2("span", [e2._v("条")]), e2._v(" "), a2("span", [a2("el-button", { staticStyle: { "font-size": "16px" }, attrs: { type: "text" }, on: { click: e2.downloadImportDetailes } }, [e2._v("\n 查看导入详情")])], 1)]), e2._v(" "), a2("div", { staticClass: "btnStsy" }, [a2("el-button", { attrs: { type: "info" }, on: { click: function(t3) {
|
||
e2.viewImport = false;
|
||
} } }, [e2._v("取消")])], 1)]) : e2._e(), e2._v(" "), a2("el-dialog", { staticClass: "dialogHead", attrs: { title: "add" == e2.bindStatus ? "下载批量绑定模板" : "批量绑定", visible: e2.bindVisible, "close-on-click-modal": false, "close-on-press-escape": false, width: "30%" }, on: { "update:visible": function(t3) {
|
||
e2.bindVisible = t3;
|
||
} } }, [a2("el-form", { attrs: { model: e2.form, "label-width": "100px" } }, [a2("el-form-item", { attrs: { label: "绑定类型" } }, [a2("el-select", { attrs: { placeholder: "请选择绑定类型" }, model: { value: e2.form.targetType, callback: function(t3) {
|
||
e2.$set(e2.form, "targetType", t3);
|
||
}, expression: "form.targetType" } }, e2._l(e2.targetTypeList, (function(e3, t3) {
|
||
return a2("el-option", { key: t3, attrs: { label: e3.label, value: e3.value, disabled: e3.disabled } });
|
||
})), 1)], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "批量绑定文件" } }, [3 == e2.form.targetType ? a2("el-upload", { ref: "upload", staticClass: "importChargingBtn", attrs: { "auto-upload": true, "show-file-list": false, accept: ".xlsx", "http-request": e2.importBatchBindTmp, action: "" } }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], staticClass: "el-icon-upload2", attrs: { loading: e2.importDataBtn, type: "primary" } }, [e2._v("批量绑定空间物品")])], 1) : e2._e(), e2._v(" "), 1 == e2.form.targetType ? a2("el-upload", { ref: "importDevice", attrs: { "auto-upload": true, "show-file-list": false, accept: ".xlsx", "http-request": e2.batchDevice, action: "" } }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], staticClass: "el-icon-upload2", attrs: { loading: e2.importDeviceLoading, type: "primary" } }, [e2._v("批量绑定设施设备")])], 1) : e2._e()], 1)], 1), e2._v(" "), a2("span", { staticClass: "dialog-footer", attrs: { slot: "footer" }, slot: "footer" }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) {
|
||
e2.bindVisible = false;
|
||
} } }, [e2._v("关闭")])], 1)], 1), e2._v(" "), a2("standSelect", { attrs: { show: e2.standSelectShow, selectList: e2.tableSelected }, on: { close: e2.closeSelect, callback: e2.callbackSelect } })], 1);
|
||
}, r = [], c = a("333d"), u = a("be2e"), p = a("24d2"), d = a("5f43"), m = a("e350"), h = a("1a80"), f = a("d2a7"), g = a("cfb6"), v = function() {
|
||
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
||
return a2("div", [a2("el-dialog", { attrs: { title: e2.standDialogtitle, visible: e2.show, width: "80%", "before-close": e2.resetstandDialog }, on: { "update:visible": function(t3) {
|
||
e2.show = 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" }, on: { click: function(t3) {
|
||
return e2.submitstandDialog();
|
||
} } }, [e2._v("确认添加")])], 1)], 1)], 1);
|
||
}, b = [], y = a("f8b7"), _ = { props: { show: { type: Boolean, default: false }, selectList: { type: Array, default: [] } }, data: function() {
|
||
return { standDialogtitle: "批量绑定标准", jobListArr: [], standQuery: { eventName: "", jobName: "", pageNumber: 1, pageSize: 10, projectUuid: this.$store.state.community_uuid }, standTotal: 0, standList: [], multipleSelection: [] };
|
||
}, mounted: function() {
|
||
this.getJobListPeople(), this.getlistData();
|
||
}, methods: { getJobListPeople: function() {
|
||
var e2 = this, t2 = { projectUuid: this.$store.state.community_uuid, flag: 1 };
|
||
Object(y["q"])(t2).then((function(t3) {
|
||
0 === t3.code && (e2.jobListArr = t3.data);
|
||
}));
|
||
}, getlistData: function() {
|
||
var e2 = this;
|
||
Object(u["tb"])(this.standQuery).then((function(t2) {
|
||
0 === t2.code && (e2.standList = t2.data.records, e2.standTotal = t2.data.rowsCount);
|
||
}));
|
||
}, 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();
|
||
}, resetstandQueryForm: function() {
|
||
this.standQuery.eventName = "", this.standQuery.jobName = "", this.standQuery.pageNumber = 1, this.isQuery = 1, this.getlistData();
|
||
}, onstandQuerySearch: function() {
|
||
this.getlistData();
|
||
}, resetstandDialog: function() {
|
||
this.standQuery.eventName = "", this.standQuery.jobName = "", this.standQuery.pageNumber = 1, this.$refs.multipleTable.clearSelection(), this.$emit("close");
|
||
}, headClass: function() {
|
||
return "text-align:center;background:#FAFAFA;";
|
||
}, submitstandDialog: function() {
|
||
var e2 = this;
|
||
console.log(this.selectList), console.log(this.multipleSelection);
|
||
var t2 = { projectUuid: this.$store.state.community_uuid, locationUuids: this.selectList.map((function(e3) {
|
||
return e3["locationUuid"];
|
||
})), standDataList: this.multipleSelection.map((function(e3) {
|
||
return { standardUuid: e3["standUuid"], eventProjectName: e3["eventName"], category: 8 };
|
||
})) };
|
||
console.log(t2), Object(d["a"])(t2).then((function(t3) {
|
||
0 == t3.code && (e2.$message({ type: "success", message: "标准批量绑定成功" }), e2.standQuery.eventName = "", e2.standQuery.jobName = "", e2.standQuery.pageNumber = 1, e2.$refs.multipleTable.clearSelection(), e2.$emit("callback"));
|
||
}));
|
||
} } }, w = _, k = (a("8345"), a("829d")), S = Object(k["a"])(w, v, b, false, null, "d4f0e4d0", null), I = S.exports, L = a("dce5"), C = { components: { Pagination: c["a"], picturePreview: h["a"], standSelect: I }, data: function() {
|
||
return { gridClassList: L["bb"], is_show: false, pictureDialog: false, height: "", checkButtonsPermission: m["a"], projectId: "", spaceTypeList: [], spaceList: [], typeList: [], spaceVisible: false, pictureUrl: [], examplesImageUrl: [], listData: [], listLoading: false, total: 0, add: { ptId: "", nameList: [] }, query: { pageNumber: 1, pageSize: 10, spaceUuid: "", location: "", spaceLocationTypes: [], sceneId: "", enableStatus: "" }, sceneMenu: [], statusList: [{ value: 0, label: "启用" }, { value: 1, label: "停用" }], tableSelected: [], btnloading: false, importDataBtn: false, viewImport: false, importDeviceLoading: false, exportBatchDeviceLoading: false, totalCount: "", successCount: "", errorCount: "", downloadInfo: null, targetTypeList: [{ value: 1, label: "设施设备", disabled: false }, { value: 3, label: "物品", disabled: false }, { value: 4, label: "房屋", disabled: true }, { value: 5, label: "绿植", disabled: true }], bindVisible: false, form: { targetType: 3 }, bindStatus: "add", standSelectShow: false };
|
||
}, beforeRouteEnter: function(e2, t2, a2) {
|
||
a2((function(t3) {
|
||
var a3 = e2.name, i2 = JSON.parse(sessionStorage.getItem(a3));
|
||
i2 && (t3.query = i2), t3.getList();
|
||
}));
|
||
}, mounted: function() {
|
||
this.$route.path.includes("dangerousGrid") && (this.gridClassList = this.gridClassList.filter((function(e2) {
|
||
if ("不含危险源" !== e2.label) return e2;
|
||
}))), this.getRealHeight();
|
||
}, created: function() {
|
||
this.projectId = this.$store.state.community_uuid, this.getSpaceList(), this.getList(), this.headClass(), this.getSceneMenuList();
|
||
}, methods: { exportBatchDevice: function() {
|
||
var e2 = this;
|
||
this.exportBatchDeviceLoading = true;
|
||
var t2 = { projectUuid: this.$store.state.community_uuid };
|
||
Object(d["c"])(t2).then((function(t3) {
|
||
var a2 = "application/vnd.ms-excel;charset=UTF-8", i2 = new Blob([t3], { type: a2 }), s2 = "空间网格批量绑定设备导入模板.xlsx";
|
||
if (window.navigator.msSaveOrOpenBlob) navigator.msSaveBlob(i2, s2), e2.exportBatchDeviceLoading = false;
|
||
else {
|
||
var n2 = document.createElement("a");
|
||
n2.download = s2, n2.style.display = "none", n2.href = URL.createObjectURL(i2), document.body.appendChild(n2), n2.click(), document.body.removeChild(n2), e2.exportBatchDeviceLoading = false;
|
||
}
|
||
}));
|
||
}, batchDevice: function(e2) {
|
||
var t2 = this, a2 = e2.file, i2 = a2.size / 1024 / 1024 < 20, s2 = a2.name.lastIndexOf("."), n2 = a2.name.length, o2 = a2.name.substring(s2 + 1, n2);
|
||
if ("xls" == o2 || "xlsx" == o2) if (i2) {
|
||
var l2 = new FormData();
|
||
this.fileName = a2.name, l2.append("file", a2, a2.name);
|
||
var r2 = "/".concat(this.$store.state.community_uuid, "/").concat(this.$store.state.user.userInfo.memberId);
|
||
this.importDeviceLoading = true, Object(d["x"])(l2, r2).then((function(e3) {
|
||
console.log("response", e3);
|
||
var a3 = e3.headers, i3 = e3.data;
|
||
if (t2.downloadInfo = i3, a3.count) if (a3.count.includes(-1)) t2.importDeviceLoading = false, t2.teanslateResBlob(i3);
|
||
else {
|
||
var s3 = JSON.parse(a3.count);
|
||
s3 && (0 == s3.code ? (t2.importDeviceLoading = false, s3.errorCount > 0 ? (t2.viewImport = true, t2.totalCount = s3.totalCount, t2.successCount = s3.successCount, t2.errorCount = s3.errorCount) : t2.$message({ message: "导入成功", type: "success" }), t2.query.pageNumber = 1, t2.getList(), t2.bindVisible = false) : t2.importDeviceLoading = false);
|
||
}
|
||
else t2.importDeviceLoading = false, t2.teanslateResBlob(i3);
|
||
})).catch((function() {
|
||
t2.importDeviceLoading = false;
|
||
}));
|
||
} else this.$message("上传文件大小不能超过20M!");
|
||
else this.$message("只能上传Excel文件!");
|
||
}, getSceneMenuList: function() {
|
||
var e2 = this;
|
||
Object(f["a"])().then((function(t2) {
|
||
e2.sceneMenu = t2.data;
|
||
}));
|
||
}, saveSelect: function() {
|
||
var e2 = this;
|
||
0 !== this.examplesImageUrl.length ? (Object(d["i"])({ idList: this.examplesImageUrl }).then((function(t2) {
|
||
0 == t2.code && (e2.$message({ message: "删除成功", type: "success" }), e2.pictureDialog = false);
|
||
})).catch((function() {
|
||
e2.pictureDialog = false;
|
||
})), this.pictureDialog = false) : this.$message({ message: "请选择图片", type: "error" });
|
||
}, goto: function(e2) {
|
||
this.$router.push({ name: "showSatialPositionImg", query: { locationUuid: e2.locationUuid } });
|
||
}, viewPhotos: function(e2) {
|
||
var t2 = this;
|
||
this.pictureUrl = [], this.examplesImageUrl = [], Object(d["z"])({ locationUuid: e2.locationUuid }).then((function(e3) {
|
||
0 === e3.code && e3.data.records.length > 0 && (t2.pictureUrl = e3.data.records.map((function(e4, t3) {
|
||
return { src: e4.examplesImageUrl, id: e4.id, checked: false };
|
||
})), console.log(t2.pictureUrl, "this.pictureUrl"));
|
||
})), this.pictureDialog = true;
|
||
}, replaceUrl: function(e2) {
|
||
return e2 && e2.split(";")[0] || "";
|
||
}, handleImg: function(e2) {
|
||
var t2 = this.examplesImageUrl.indexOf(e2.id);
|
||
if (-1 !== t2) return this.examplesImageUrl.splice(t2, 1), void (e2.checked = false);
|
||
this.examplesImageUrl.length >= 6 || (this.examplesImageUrl.push(e2.id), e2.checked = true);
|
||
}, checkSelectable: function(e2) {
|
||
return !!e2.qrUuid;
|
||
}, getList: function() {
|
||
var e2 = this;
|
||
this.query.projectUuid = this.projectId;
|
||
var t2 = JSON.parse(JSON.stringify(this.query));
|
||
this.$route.path.includes("dangerousGrid") && 0 == t2.spaceLocationTypes.length && (t2.spaceLocationTypes = [1, 2]), Object(u["lb"])(t2).then((function(t3) {
|
||
e2.listData = t3.data.records, e2.total = t3.data.rowsCount;
|
||
}));
|
||
}, getSpaceList: function() {
|
||
var e2 = this;
|
||
Object(u["ib"])({ projectId: this.projectId }).then((function(t2) {
|
||
0 == t2.code ? e2.spaceTypeList = t2.data : e2.$message.error(t2.message);
|
||
}));
|
||
}, getProjectList: function() {
|
||
var e2 = this;
|
||
Object(p["d"])().then((function(t2) {
|
||
0 == t2.code ? (e2.typeList = t2.data, e2.add.ptId = t2.data[0].targetId, e2.getAddSpaceList()) : e2.$message.error(t2.message);
|
||
}));
|
||
}, getAddSpaceList: function() {
|
||
var e2 = this, t2 = { ptId: this.add.ptId, projectId: this.projectId };
|
||
Object(d["E"])(t2).then((function(t3) {
|
||
e2.spaceList = t3.data;
|
||
}));
|
||
}, selectPtId: function(e2) {
|
||
this.add.nameList = [], this.getAddSpaceList();
|
||
}, postSpace: function() {
|
||
var e2 = this;
|
||
this.add.ptId && this.add.nameList.length > 0 ? (this.add.projectId = this.projectId, this.btnloading = true, Object(d["g"])(this.add).then((function(t2) {
|
||
e2.$message({ message: "添加成功", type: "success" }), e2.spaceVisible = false, e2.getSpaceList(), e2.btnloading = false;
|
||
})).catch((function(t2) {
|
||
e2.btnloading = false;
|
||
}))) : this.$message("必须选择需要添加的空间");
|
||
}, updataStatus: function(e2) {
|
||
var t2 = this, a2 = JSON.parse(JSON.stringify(e2)), i2 = Object.assign(a2, { enableStatus: 0 == a2.enableStatus ? 1 : 0 }), s2 = 0 == a2.enableStatus ? "启用" : "停用";
|
||
this.$confirm("确定".concat(s2, "该数据吗?"), "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "info", center: true }).then((function() {
|
||
Object(u["zb"])(i2).then((function(e3) {
|
||
0 == e3.code ? (t2.$message({ message: "".concat(s2, "成功"), type: "success" }), t2.getList()) : t2.$message({ message: "".concat(s2, "失败"), type: "error" });
|
||
})).catch((function() {
|
||
}));
|
||
}));
|
||
}, onSearch: function() {
|
||
this.query.pageNumber = 1, this.getList();
|
||
}, resetForm: function(e2) {
|
||
this.$refs[e2].resetFields(), this.query.pageNumber = 1, this.getList();
|
||
}, addSpace: function() {
|
||
this.add = { ptId: "", nameList: [] }, this.getProjectList(), this.spaceVisible = !this.spaceVisible;
|
||
}, addPosition: function() {
|
||
this.$router.push({ name: "addSatialPosition" });
|
||
}, editDetail: function(e2) {
|
||
this.$router.push({ name: "editSatialPosition" }), sessionStorage.setItem("saveEditSatialPosition", JSON.stringify(e2));
|
||
}, ruleGroupConfig: function() {
|
||
this.$router.push({ name: "ruleConfigList" });
|
||
}, handleSizeChange: function(e2) {
|
||
this.query.pageSize = e2.limit, this.query.pageNumber = 1, this.getList();
|
||
}, headClass: function() {
|
||
return "text-align:center;background:#FAFAFA;";
|
||
}, handleCurrentChange: function(e2) {
|
||
this.query.pageNumber = e2.currentPage, this.getList();
|
||
}, viewDetail: function(e2) {
|
||
this.$router.push({ name: "viewSpaceContent", query: { data: e2 } });
|
||
}, memoryChecked: function() {
|
||
var e2 = this, t2 = [];
|
||
this.tableSelected.forEach((function(e3) {
|
||
t2.push(e3.qrUuid);
|
||
})), t2.length && this.$nextTick((function() {
|
||
e2.listData.forEach((function(a2, i2) {
|
||
console.log(a2), t2.indexOf(a2.qrUuid) >= 0 && e2.$refs.multipleTable.toggleRowSelection(a2, true);
|
||
}));
|
||
}));
|
||
}, handleSelectionChange: function(e2) {
|
||
this.tableSelected = e2;
|
||
}, batchExportQr: function() {
|
||
if (0 == this.tableSelected.length) return this.$message({ type: "info", message: "请选择需要导出的二维码" }), false;
|
||
var e2 = { qrUuidList: this.tableSelected.map((function(e3) {
|
||
return e3.qrUuid;
|
||
})) };
|
||
Object(d["m"])(e2).then((function(e3) {
|
||
var t2 = new Blob([e3], { type: "application/zip" }), a2 = (/* @__PURE__ */ new Date()).valueOf(), i2 = "空间网格二维码" + a2 + "-批量.zip";
|
||
if (window.navigator.msSaveOrOpenBlob) navigator.msSaveBlob(t2, i2);
|
||
else {
|
||
var s2 = document.createElement("a");
|
||
s2.download = i2, s2.style.display = "none", s2.href = URL.createObjectURL(t2), s2.click(), URL.revokeObjectURL(s2.href), document.body.removeChild(s2);
|
||
}
|
||
}));
|
||
}, 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";
|
||
}));
|
||
}, importSpaceTmp: function(e2) {
|
||
var t2 = this, a2 = e2.file, i2 = a2.size / 1024 / 1024 < 20, s2 = a2.name.lastIndexOf("."), n2 = a2.name.length, o2 = a2.name.substring(s2 + 1, n2);
|
||
if ("xls" == o2 || "xlsx" == o2) if (i2) {
|
||
var l2 = new FormData();
|
||
this.fileName = a2.name, l2.append("file", a2, a2.name);
|
||
var r2 = "/".concat(this.$store.state.community_uuid, "/").concat(this.$store.state.user.userInfo.memberId);
|
||
this.importDataBtn = true, Object(d["u"])(l2, r2).then((function(e3) {
|
||
var a3 = e3.headers, i3 = e3.data;
|
||
if (t2.downloadInfo = i3, a3.count) if (a3.count.includes(-1)) t2.importDataBtn = false, t2.teanslateResBlob(i3);
|
||
else {
|
||
var s3 = JSON.parse(a3.count);
|
||
s3 && (0 == s3.code ? (t2.importDataBtn = false, s3.errorCount > 0 ? (t2.viewImport = true, t2.totalCount = s3.totalCount, t2.successCount = s3.successCount, t2.errorCount = s3.errorCount) : t2.$message({ message: "导入成功", type: "success" }), t2.query.pageNumber = 1, t2.getList()) : t2.importDataBtn = false);
|
||
}
|
||
else t2.importDataBtn = false, t2.teanslateResBlob(i3);
|
||
})).catch((function() {
|
||
t2.importDataBtn = false;
|
||
}));
|
||
} else this.$message("上传文件大小不能超过20M!");
|
||
else this.$message("只能上传Excel文件!");
|
||
}, teanslateResBlob: function(e2) {
|
||
var t2 = this, a2 = new FileReader();
|
||
a2.readAsText(e2), a2.onload = function() {
|
||
var e3 = this.result;
|
||
e3 && (e3 = JSON.parse(e3), -1 === e3.code && t2.$message({ message: e3.message, type: "error" }));
|
||
};
|
||
}, downloadImportDetailes: function() {
|
||
var e2 = "application/vnd.ms-excel;charset=UTF-8", t2 = new Blob([this.downloadInfo], { type: e2 }), a2 = "导入失败详情.xlsx";
|
||
if (window.navigator.msSaveOrOpenBlob) navigator.msSaveBlob(t2);
|
||
else {
|
||
var i2 = document.createElement("a");
|
||
i2.download = a2, i2.style.display = "none", i2.href = URL.createObjectURL(t2), document.body.appendChild(i2), i2.click(), document.body.removeChild(i2);
|
||
}
|
||
}, downloadSpaceTmp: function() {
|
||
var e2 = { projectUuid: this.$store.state.community_uuid };
|
||
Object(d["o"])(e2).then((function(e3) {
|
||
var t2 = "application/vnd.ms-excel;charset=UTF-8", a2 = new Blob([e3], { type: t2 }), i2 = "空间网格导入模板.xlsx";
|
||
if (window.navigator.msSaveOrOpenBlob) navigator.msSaveBlob(a2, i2);
|
||
else {
|
||
var s2 = document.createElement("a");
|
||
s2.download = i2, s2.style.display = "none", s2.href = URL.createObjectURL(a2), document.body.appendChild(s2), s2.click(), document.body.removeChild(s2);
|
||
}
|
||
}));
|
||
}, batchBinding: function() {
|
||
this.bindStatus = "edit", this.viewImport = false, this.totalCount = "", this.successCount = "", this.errorCount = "", this.downloadInfo = null, this.bindVisible = true;
|
||
}, exportBatchBinding: function() {
|
||
var e2 = { projectUuid: this.$store.state.community_uuid };
|
||
Object(d["n"])(e2).then((function(e3) {
|
||
var t2 = "application/vnd.ms-excel;charset=UTF-8", a2 = new Blob([e3], { type: t2 }), i2 = "空间网格批量绑定物品导入模板.xlsx";
|
||
if (window.navigator.msSaveOrOpenBlob) navigator.msSaveBlob(a2, i2);
|
||
else {
|
||
var s2 = document.createElement("a");
|
||
s2.download = i2, s2.style.display = "none", s2.href = URL.createObjectURL(a2), document.body.appendChild(s2), s2.click(), document.body.removeChild(s2);
|
||
}
|
||
}));
|
||
}, exportExcelList: function() {
|
||
this.query.projectUuid = this.projectId, Object(d["k"])(this.query).then((function(e2) {
|
||
var t2 = new Blob([e2], { type: "application/vnd.ms-excel;charset=UTF-8" }), a2 = (/* @__PURE__ */ new Date()).valueOf();
|
||
if (window.navigator.msSaveOrOpenBlob) navigator.msSaveBlob(t2);
|
||
else {
|
||
var i2 = document.createElement("a");
|
||
i2.download = "空间网格网格列表_".concat(a2, ".xls"), i2.href = URL.createObjectURL(t2), i2.click(), URL.revokeObjectURL(i2.href), document.body.removeChild(i2);
|
||
}
|
||
}));
|
||
}, importBatchBindTmp: function(e2) {
|
||
var t2 = this, a2 = e2.file, i2 = a2.size / 1024 / 1024 < 20, s2 = a2.name.lastIndexOf("."), n2 = a2.name.length, o2 = a2.name.substring(s2 + 1, n2);
|
||
if ("xls" == o2 || "xlsx" == o2) if (i2) {
|
||
var l2 = new FormData();
|
||
this.fileName = a2.name, l2.append("file", a2, a2.name);
|
||
var r2 = "/".concat(this.$store.state.community_uuid, "/").concat(this.$store.state.user.userInfo.memberId);
|
||
this.importDataBtn = true, Object(d["t"])(l2, r2).then((function(e3) {
|
||
console.log("response", e3);
|
||
var a3 = e3.headers, i3 = e3.data;
|
||
if (t2.downloadInfo = i3, a3.count) if (a3.count.includes(-1)) t2.importDataBtn = false, t2.teanslateResBlob(i3);
|
||
else {
|
||
var s3 = JSON.parse(a3.count);
|
||
s3 && (0 == s3.code ? (t2.importDataBtn = false, s3.errorCount > 0 ? (t2.viewImport = true, t2.totalCount = s3.totalCount, t2.successCount = s3.successCount, t2.errorCount = s3.errorCount) : t2.$message({ message: "导入成功", type: "success" }), t2.query.pageNumber = 1, t2.getList(), t2.bindVisible = false) : t2.importDataBtn = false);
|
||
}
|
||
else t2.importDataBtn = false, t2.teanslateResBlob(i3);
|
||
})).catch((function() {
|
||
t2.importDataBtn = false;
|
||
}));
|
||
} else this.$message("上传文件大小不能超过20M!");
|
||
else this.$message("只能上传Excel文件!");
|
||
}, addDangerousSource: function() {
|
||
var e2 = this;
|
||
if (0 == this.tableSelected.length) return this.$message({ type: "warning", message: "请选择需要识别为危险源的空间网格" }), false;
|
||
var t2 = { creatorId: this.$store.state.user.userInfo.memberId, creatorName: this.$store.state.user.userInfo.memberName, locationUuids: this.tableSelected.map((function(e3) {
|
||
return e3.locationUuid;
|
||
})), projectUuid: this.$store.state.community_uuid };
|
||
Object(g["a"])(t2).then((function(t3) {
|
||
0 === t3.code ? (e2.$refs.multipleTable.clearSelection(), e2.$message({ message: "危险源识别成功", type: "success" })) : e2.$message({ message: "危险源识别失败", type: "error" });
|
||
}));
|
||
}, batchBindStandard: function() {
|
||
if (0 == this.tableSelected.length) return this.$message({ type: "warning", message: "请选择需要绑定标准的空间网格" }), false;
|
||
this.standSelectShow = true;
|
||
}, closeSelect: function() {
|
||
this.standSelectShow = false;
|
||
}, callbackSelect: function() {
|
||
this.standSelectShow = false, this.$refs.multipleTable.clearSelection(), this.getList();
|
||
} } }, x = C, N = (a("26fb"), Object(k["a"])(x, l, r, false, null, "4500c34c", null)), T = N.exports, $ = function() {
|
||
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
||
return a2("div", [a2("div", [a2("el-form", { staticClass: "demo-form-inline", attrs: { model: e2.query, inline: true } }, [a2("el-row", { attrs: { gutter: 24 } }, [a2("el-col", { attrs: { span: 16 } }, [a2("el-form-item", [a2("el-input", { staticClass: "form-item-content", attrs: { placeholder: "模板名称", clearable: "" }, 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: 8 } }, [a2("el-form-item", { staticClass: "form-item-button" }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.onSearch } }, [e2._v("查询")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: 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.createPricing } }, [e2._v("新增模板")])], 1)], 1)], 1)], 1)], 1), e2._v(" "), a2("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: e2.listLoading, expression: "listLoading" }], staticStyle: { width: "100%" }, attrs: { border: "", data: e2.listData, "header-cell-style": e2.headClass, fit: "", "highlight-current-row": "" } }, [a2("el-table-column", { attrs: { label: "#", align: "center", "min-width": "50", "show-overflow-tooltip": "" }, 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: { align: "center", label: "网格模板名称", "min-width": "120", "show-overflow-tooltip": "" }, 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: "网格数量", width: "80", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("div", { staticClass: "numunderline", on: { click: function(a3) {
|
||
return e2.checkHasBindSpace(t3.row);
|
||
} } }, [e2._v(e2._s(t3.row.locationNum ? t3.row.locationNum : 0))])];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "创建时间", "min-width": "170", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(t3.row.createDate ? t3.row.createDate : "-"))])];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "创建人", "min-width": "70", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(t3.row.createUserName ? t3.row.createUserName : "-"))])];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "备注", "min-width": "100", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(t3.row.remarks ? t3.row.remarks : "-"))])];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "操作", "min-width": "100" }, 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.addPosition(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.editItem(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.deleteItem(t3.row);
|
||
} } }, [e2._v("删除")])];
|
||
} }]) })], 1), e2._v(" "), a2("div", { staticClass: "paginations" }, [a2("el-pagination", { attrs: { background: "", "current-page": e2.query.pageNumber, "page-sizes": [10, 20, 30, 50], "page-size": e2.query.pageSize, layout: "total, sizes, prev, pager, next, jumper", total: e2.total }, 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), e2._v(" "), a2("el-dialog", { staticClass: "dialogHead", attrs: { title: e2.title, visible: e2.partyVisible, "show-close": true, "close-on-press-escape": false, "close-on-click-modal": false, "destroy-on-close": "", width: "50%" }, on: { "update:visible": function(t3) {
|
||
e2.partyVisible = t3;
|
||
}, close: e2.closeVisible } }, [a2("el-form", { ref: "infoList", attrs: { model: e2.infoList, rules: e2.rules, "label-width": "120px", size: "small" } }, [a2("el-form-item", { attrs: { label: "模板名称", prop: "name" } }, [a2("el-input", { staticClass: "formItemWidth", attrs: { clearable: "", placeholder: "请输入模板名称" }, model: { value: e2.infoList.name, callback: function(t3) {
|
||
e2.$set(e2.infoList, "name", t3);
|
||
}, expression: "infoList.name" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "备注", prop: "remarks" } }, [a2("el-input", { attrs: { type: "textarea", maxlength: "140", "show-word-limit": "", clearable: "", placeholder: "请输入备注" }, model: { value: e2.infoList.remarks, callback: function(t3) {
|
||
e2.$set(e2.infoList, "remarks", t3);
|
||
}, expression: "infoList.remarks" } })], 1)], 1), e2._v(" "), a2("span", { staticClass: "dialog-footer", attrs: { slot: "footer" }, slot: "footer" }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) {
|
||
e2.partyVisible = false;
|
||
} } }, [e2._v("取 消")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary", disabled: e2.btnloading }, on: { click: function(t3) {
|
||
return e2.createTmpByCharges("infoList");
|
||
} } }, [e2._v("确 定")])], 1)], 1), e2._v(" "), a2("el-dialog", { staticClass: "dialogHead", attrs: { title: "空间网格", visible: e2.positionVisible, "show-close": true, "close-on-press-escape": false, "close-on-click-modal": false, "destroy-on-close": "", width: "70%" }, on: { "update:visible": function(t3) {
|
||
e2.positionVisible = t3;
|
||
}, close: e2.closeVisible } }, [a2("el-form", { ref: "positionForm", attrs: { model: e2.positionForm, inline: true, "label-width": "120px", size: "mini" } }, [a2("el-form-item", { attrs: { prop: "spaceUuid" } }, [a2("el-select", { staticClass: "select1", attrs: { placeholder: "请选择空间" }, model: { value: e2.positionForm.spaceUuid, callback: function(t3) {
|
||
e2.$set(e2.positionForm, "spaceUuid", t3);
|
||
}, expression: "positionForm.spaceUuid" } }, e2._l(e2.spaceTypeList, (function(e3) {
|
||
return a2("el-option", { key: e3.spaceUuid, attrs: { label: e3.name, value: e3.spaceUuid } });
|
||
})), 1)], 1), e2._v(" "), a2("el-form-item", { attrs: { prop: "location" } }, [a2("el-input", { attrs: { placeholder: "网格" }, model: { value: e2.positionForm.location, callback: function(t3) {
|
||
e2.$set(e2.positionForm, "location", t3);
|
||
}, expression: "positionForm.location" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { prop: "sceneId" } }, [a2("el-select", { attrs: { placeholder: "选择场景归属", clearable: "" }, model: { value: e2.positionForm.sceneId, callback: function(t3) {
|
||
e2.$set(e2.positionForm, "sceneId", t3);
|
||
}, expression: "positionForm.sceneId" } }, e2._l(e2.sceneMenu, (function(e3, t3) {
|
||
return a2("el-option", { key: t3, attrs: { label: e3.sceneName, value: e3.id } });
|
||
})), 1)], 1), e2._v(" "), a2("el-form-item", [a2("el-button", { on: { click: e2.resetPositionForm } }, [e2._v("重置")]), e2._v(" "), a2("el-button", { attrs: { type: "primary" }, on: { click: e2.queryPositionForm } }, [e2._v("查询")])], 1)], 1), e2._v(" "), a2("el-table", { ref: "workPositionMultipleTable", staticStyle: { width: "100%" }, attrs: { "row-key": "locationUuid", border: "", size: "small", data: e2.positionTableData.slice((e2.positionQuery.pageNumber - 1) * e2.positionQuery.pageSize, e2.positionQuery.pageNumber * e2.positionQuery.pageSize), "tooltip-effect": "dark", "header-cell-style": e2.headClass }, on: { "selection-change": e2.handleSelectionChange } }, [a2("el-table-column", { attrs: { type: "selection", align: "center", "reserve-selection": true, width: "55" } }), e2._v(" "), a2("el-table-column", { attrs: { label: "空间网格编码", align: "center", prop: "locationCode" } }), e2._v(" "), a2("el-table-column", { attrs: { label: "空间", prop: "spaceName", align: "center", "show-overflow-tooltip": "" } }), e2._v(" "), a2("el-table-column", { attrs: { label: "网格", prop: "location", align: "center", "show-overflow-tooltip": "" } }), e2._v(" "), a2("el-table-column", { attrs: { label: "场景", prop: "sceneName", align: "center", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(t3.row.sceneName ? t3.row.sceneName : "-"))])];
|
||
} }]) })], 1), e2._v(" "), a2("div", { staticClass: "pagination" }, [a2("Pagination", { attrs: { total: e2.positionPageTotal }, on: { handleCurrentChange: e2.handlePositionCurrentChange, handleSizeChange: e2.handlePositionSizeChange } })], 1), e2._v(" "), a2("span", { staticClass: "dialog-footer", attrs: { slot: "footer" }, slot: "footer" }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) {
|
||
e2.positionVisible = false;
|
||
} } }, [e2._v("取 消")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary", disabled: e2.btnloading }, on: { click: e2.temBindPositions } }, [e2._v("确 定")])], 1)], 1), e2._v(" "), a2("el-dialog", { attrs: { title: "已绑定网格", visible: e2.spaceLocationDialog, "show-close": true, "close-on-press-escape": false, "close-on-click-modal": false, width: "70%" }, on: { "update:visible": function(t3) {
|
||
e2.spaceLocationDialog = t3;
|
||
} } }, [a2("el-table", { staticStyle: { width: "100%" }, attrs: { data: e2.spaceLocationList.slice((e2.spaceLocationQuery.pageNumber - 1) * e2.spaceLocationQuery.pageSize, e2.spaceLocationQuery.pageNumber * e2.spaceLocationQuery.pageSize), border: "", size: "small", "tooltip-effect": "dark", "header-cell-style": e2.headClass } }, [a2("el-table-column", { attrs: { label: "空间网格编码", align: "center", prop: "locationCode" } }), e2._v(" "), a2("el-table-column", { attrs: { label: "空间", prop: "spaceName", align: "center", "show-overflow-tooltip": "" } }), e2._v(" "), a2("el-table-column", { attrs: { label: "网格", prop: "location", align: "center", "show-overflow-tooltip": "" } }), e2._v(" "), a2("el-table-column", { attrs: { label: "场景", prop: "sceneName", align: "center", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(t3.row.sceneName ? t3.row.sceneName : "-"))])];
|
||
} }]) })], 1), e2._v(" "), a2("div", { staticClass: "pagination" }, [a2("Pagination", { attrs: { total: e2.spaceLocationTotal }, on: { handleCurrentChange: e2.handleSpaceLocationCurrentChange, handleSizeChange: e2.handleSpaceLocationSizeChange } })], 1), e2._v(" "), a2("span", { staticClass: "dialog-footer", attrs: { slot: "footer" }, slot: "footer" }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) {
|
||
e2.spaceLocationDialog = false;
|
||
} } }, [e2._v("取 消")])], 1)], 1)], 1);
|
||
}, q = [], D = a("b775");
|
||
function j(e2) {
|
||
return Object(D["a"])({ url: "/appproject/SpaceTemplate/create", method: "post", data: e2 });
|
||
}
|
||
function U(e2) {
|
||
return Object(D["a"])({ url: "/appproject/SpaceTemplate/delete", method: "post", data: e2 });
|
||
}
|
||
function O(e2) {
|
||
return Object(D["a"])({ url: "/appproject/SpaceTemplate/findById", method: "post", data: e2 });
|
||
}
|
||
function z(e2) {
|
||
return Object(D["a"])({ url: "/appproject/SpaceTemplate/pageList", method: "post", data: e2 });
|
||
}
|
||
function B(e2) {
|
||
return Object(D["a"])({ url: "/appproject/SpaceTemplate/update", method: "post", data: e2 });
|
||
}
|
||
function F(e2) {
|
||
return Object(D["a"])({ url: "/appproject/HouseSpaceTemplateRel/useBatch", method: "post", data: e2 });
|
||
}
|
||
function P(e2) {
|
||
return Object(D["a"])({ url: "/appproject/HouseSpaceTemplateRel/batchDelete", method: "post", data: e2 });
|
||
}
|
||
function A(e2) {
|
||
return Object(D["a"])({ url: "/appproject/HouseSpaceTemplateRel/editHouseTemplate", method: "post", data: e2 });
|
||
}
|
||
a("8826");
|
||
var Q = { components: { Pagination: c["a"] }, data: function() {
|
||
return { listData: [], listLoading: false, total: 0, query: { name: "", pageNumber: 1, pageSize: 10 }, title: "新增模板", isEdit: 0, partyVisible: false, infoList: { name: "", remarks: "" }, rules: { name: [{ required: true, message: "请填写模板名称", trigger: "blur" }] }, btnloading: false, positionVisible: false, positionTableData: [], positionPageTotal: 0, positionQuery: { pageNumber: 1, pageSize: 10, projectUuid: "" }, positionForm: { spaceUuid: "", location: "", sceneId: "" }, spaceTypeList: [], sceneMenu: [], workPositionSelection: [], hasSelectedList: [], bindItemTem: null, spaceLocationDialog: false, spaceLocationList: [], spaceLocationTotal: 0, spaceLocationQuery: { pageNumber: 1, pageSize: 10 } };
|
||
}, created: function() {
|
||
this.query.projectUuid = this.$store.state.community_uuid, this.positionQuery.projectUuid = this.$store.state.community_uuid, this.projectName = this.$store.state.community_name, this.headClass();
|
||
}, mounted: function() {
|
||
this.getSpaceTemplateList();
|
||
}, methods: { getSpaceTemplateList: function() {
|
||
var e2 = this;
|
||
this.listLoading = true, z(this.query).then((function(t2) {
|
||
t2.data && t2.data.records && (e2.listData = t2.data.records, e2.total = t2.data.rowsCount);
|
||
})), this.listLoading = false;
|
||
}, getSpaceList: function() {
|
||
var e2 = this;
|
||
Object(u["ib"])({ projectId: this.$store.state.community_uuid }).then((function(t2) {
|
||
0 == t2.code ? e2.spaceTypeList = t2.data : e2.$message.error(t2.message);
|
||
}));
|
||
}, getSceneMenuList: function() {
|
||
var e2 = this;
|
||
Object(f["a"])().then((function(t2) {
|
||
e2.sceneMenu = t2.data;
|
||
}));
|
||
}, getTableList: function() {
|
||
var e2 = this, t2 = { pageSize: -1, pageNumber: -1, projectUuid: this.$store.state.community_uuid };
|
||
t2 = Object.assign(t2, this.positionForm), Object(u["lb"])(t2).then((function(t3) {
|
||
0 == t3.code && (e2.positionTableData = t3.data.records, e2.positionPageTotal = t3.data.records.length);
|
||
}));
|
||
}, checkHasBindSpace: function(e2) {
|
||
var t2 = this, a2 = { id: e2.id };
|
||
Object(u["mb"])(a2).then((function(e3) {
|
||
0 === e3.code && (t2.spaceLocationList = e3.data, t2.spaceLocationTotal = e3.data.length, t2.spaceLocationDialog = true);
|
||
}));
|
||
}, handleSelectionChange: function(e2) {
|
||
this.workPositionSelection = e2;
|
||
}, createPricing: function() {
|
||
this.isEdit = 0, this.title = "新增模板", this.partyVisible = true;
|
||
}, resetPositionForm: function() {
|
||
this.$refs.positionForm.resetFields(), this.getTableList();
|
||
}, queryPositionForm: function() {
|
||
this.getTableList();
|
||
}, onSearch: function() {
|
||
this.query.pageNumber = 1, this.getSpaceTemplateList();
|
||
}, resetForm: function() {
|
||
this.query.pageNumber = 1, this.query.name = "", this.getSpaceTemplateList();
|
||
}, handleSizeChange: function(e2) {
|
||
this.query.pageSize = e2, this.getSpaceTemplateList();
|
||
}, handleCurrentChange: function(e2) {
|
||
this.query.pageNumber = e2, this.getSpaceTemplateList();
|
||
}, handlePositionSizeChange: function(e2) {
|
||
this.positionQuery.pageNumber = 1, this.positionQuery.pageSize = e2.limit;
|
||
}, handlePositionCurrentChange: function(e2) {
|
||
this.positionQuery.pageNumber = e2.currentPage;
|
||
}, handleSpaceLocationCurrentChange: function(e2) {
|
||
this.spaceLocationQuery.pageNumber = e2.currentPage;
|
||
}, handleSpaceLocationSizeChange: function(e2) {
|
||
this.spaceLocationQuery.pageNumber = 1, this.spaceLocationQuery.pageSize = e2.limit;
|
||
}, headClass: function() {
|
||
return "text-align:center;background:#FAFAFA;";
|
||
}, closeVisible: function() {
|
||
this.infoList = { name: "", remarks: "" }, this.partyVisible = false;
|
||
}, getSubjectType: function(e2) {
|
||
if (null != e2 && "" != e2 && void 0 != e2) {
|
||
var t2 = this.salibType.filter((function(t3) {
|
||
return t3.value == e2;
|
||
}));
|
||
return t2.length > 0 ? t2[0].label : "-";
|
||
}
|
||
return "-";
|
||
}, createTmpByCharges: function(e2) {
|
||
var t2 = this, a2 = Object.assign({ projectUuid: this.$store.state.community_uuid, createUserName: this.$store.state.user.userInfo.memberName, createUserId: this.$store.state.user.userInfo.memberId }, this.infoList);
|
||
this.$refs.infoList.validate((function(e3) {
|
||
if (!e3) return false;
|
||
0 === t2.isEdit ? j(a2).then((function(e4) {
|
||
0 === e4.code ? (t2.$message({ type: "success", message: "创建网格模板成功" }), t2.partyVisible = false, t2.getSpaceTemplateList()) : t2.$message({ type: "error", message: "创建网格模板失败" });
|
||
})) : B(a2).then((function(e4) {
|
||
0 === e4.code ? (t2.$message({ type: "success", message: "更新网格模板成功" }), t2.partyVisible = false, t2.getSpaceTemplateList()) : t2.$message({ type: "error", message: "更新网格模板失败" });
|
||
}));
|
||
}));
|
||
}, deleteItem: function(e2) {
|
||
var t2 = this;
|
||
if (e2.locationNum && e2.locationNum > 0) return this.$message({ type: "error", message: "网格模板已被应用,无法删除!" }), false;
|
||
this.$confirm("确定删除该网格模板吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "info", center: true }).then((function() {
|
||
U({ id: e2.id }).then((function(e3) {
|
||
0 === e3.code && (t2.$message({ type: "success", message: "删除成功" }), t2.getSpaceTemplateList());
|
||
}));
|
||
})).catch((function() {
|
||
}));
|
||
}, editItem: function(e2) {
|
||
this.isEdit = 1, this.title = "编辑模板", this.infoList = { id: e2.id, projectUuid: e2.projectUuid, name: e2.name, remarks: e2.remarks }, this.partyVisible = true;
|
||
}, addPosition: function(e2) {
|
||
var t2 = this;
|
||
this.bindItemTem = e2, this.getSceneMenuList(), this.getSpaceList(), this.getTableList(), O({ id: e2.id }).then((function(e3) {
|
||
0 === e3.code && (t2.hasSelectedList = e3.data.locationUuidList ? e3.data.locationUuidList : [], t2.positionVisible = true, t2.setPositionSelect());
|
||
}));
|
||
}, setPositionSelect: function() {
|
||
var e2 = this, t2 = this.hasSelectedList, a2 = this.positionTableData.filter((function(e3) {
|
||
return t2.some((function(t3) {
|
||
return t3 === e3.locationUuid;
|
||
}));
|
||
}));
|
||
a2.length > 0 ? this.$nextTick((function() {
|
||
a2.forEach((function(t3) {
|
||
e2.$refs.workPositionMultipleTable.toggleRowSelection(t3, true);
|
||
}));
|
||
})) : this.$nextTick((function() {
|
||
e2.$refs.workPositionMultipleTable.clearSelection();
|
||
})), this.$forceUpdate();
|
||
}, temBindPositions: function() {
|
||
var e2 = this;
|
||
if (0 === this.workPositionSelection.length) return this.$message({ type: "error", message: "请选择网格" }), false;
|
||
var t2 = this.getArByKey(this.workPositionSelection, "locationUuid", 0), a2 = { id: this.bindItemTem.id, name: this.bindItemTem.name, locationUuidList: t2 };
|
||
console.log("params", a2), B(a2).then((function(t3) {
|
||
0 === t3.code ? (e2.$message({ type: "success", message: "更新网格模板成功" }), e2.positionVisible = false, e2.getSpaceTemplateList()) : e2.$message({ type: "error", message: "更新网格模板失败" });
|
||
}));
|
||
}, getArByKey: function(e2, t2, a2, i2) {
|
||
if (0 === a2) return e2.map((function(e3) {
|
||
return e3[t2];
|
||
}));
|
||
var s2 = void 0 === i2 ? "," : i2;
|
||
return e2.map((function(e3) {
|
||
return e3[t2];
|
||
})).join(s2);
|
||
} } }, V = Q, E = (a("25b5"), Object(k["a"])(V, $, q, false, null, "52f6c613", null)), R = E.exports, H = function() {
|
||
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
||
return a2("div", [e2.showList ? a2("div", [a2("el-form", { staticClass: "demo-form-inline", attrs: { model: e2.query, inline: true } }, [a2("el-row", { attrs: { gutter: 24 } }, [a2("el-col", { attrs: { span: 18 } }, [a2("el-form-item", [a2("el-input", { staticClass: "form-item-content", attrs: { placeholder: "请输入房间编号", clearable: "" }, model: { value: e2.query.houseNo, callback: function(t3) {
|
||
e2.$set(e2.query, "houseNo", t3);
|
||
}, expression: "query.houseNo" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { prop: "precinctId" } }, [a2("el-select", { staticClass: "form-item-content", attrs: { filterable: "", clearable: "", placeholder: "管理区名称" }, on: { change: e2.selectChange }, model: { value: e2.query.precinctId, callback: function(t3) {
|
||
e2.$set(e2.query, "precinctId", t3);
|
||
}, expression: "query.precinctId" } }, e2._l(e2.areaOptions, (function(e3) {
|
||
return a2("el-option", { key: e3.id, attrs: { label: e3.name, value: e3.id } });
|
||
})), 1)], 1), e2._v(" "), a2("el-form-item", { attrs: { prop: "buildingId" } }, [a2("el-select", { staticClass: "form-item-content", attrs: { filterable: "", clearable: "", placeholder: "所有楼栋" }, on: { change: e2.changeBuild }, model: { value: e2.query.buildingId, callback: function(t3) {
|
||
e2.$set(e2.query, "buildingId", t3);
|
||
}, expression: "query.buildingId" } }, e2._l(e2.building, (function(e3) {
|
||
return a2("el-option", { key: e3.id, attrs: { label: e3.name, value: e3.id } });
|
||
})), 1)], 1), e2._v(" "), a2("el-form-item", { attrs: { prop: "unitId" } }, [a2("el-select", { staticClass: "form-item-content", attrs: { filterable: "", clearable: "", placeholder: "所有单元" }, model: { value: e2.query.unitId, callback: function(t3) {
|
||
e2.$set(e2.query, "unitId", t3);
|
||
}, expression: "query.unitId" } }, e2._l(e2.unit, (function(e3) {
|
||
return a2("el-option", { key: e3.id, attrs: { label: e3.name, value: e3.id } });
|
||
})), 1)], 1), e2._v(" "), a2("el-form-item", { attrs: { prop: "roomNum" } }, [a2("el-input", { staticClass: "form-item-content", attrs: { placeholder: "请输入房号", clearable: "" }, model: { value: e2.query.roomNum, callback: function(t3) {
|
||
e2.$set(e2.query, "roomNum", t3);
|
||
}, expression: "query.roomNum" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 6 } }, [a2("el-form-item", [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.onSearch } }, [e2._v("查询")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: e2.resetForm } }, [e2._v("重置")])], 1), e2._v(" "), a2("el-form-item", [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.batchApplication } }, [e2._v("批量应用")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.batchApplicationDelete } }, [e2._v("批量取消模板应用")])], 1)], 1)], 1)], 1), e2._v(" "), a2("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: e2.listLoading, expression: "listLoading" }], staticStyle: { width: "100%" }, attrs: { border: "", data: e2.listData, "header-cell-style": e2.headClass, fit: "", "highlight-current-row": "" } }, [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) + "\n ")])];
|
||
} }], null, false, 3311124033) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "房屋编号", fixed: "", "min-width": "220", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(t3.row.houseNo))])];
|
||
} }], null, false, 4019345219) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "管理区", fixed: "", "min-width": "80", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(t3.row.precinctName))])];
|
||
} }], null, false, 1930010645) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "楼栋", "min-width": "80", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(t3.row.buildingName))])];
|
||
} }], null, false, 3496157463) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "单元", "min-width": "80", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(t3.row.unitName))])];
|
||
} }], null, false, 2151930279) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "房间号", "min-width": "80", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(t3.row.roomNum))])];
|
||
} }], null, false, 2917815535) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "房间类型", "min-width": "90", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(e2._f("getItemType")(t3.row.type, e2.houseTypeList)))])];
|
||
} }], null, false, 3535128942) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "网格模板", "min-width": "150", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(t3.row.houseSpaceTemplateList ? e2.transTmpName(t3.row.houseSpaceTemplateList) : "-"))])];
|
||
} }], null, false, 1957437531) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "100", fixed: "right", 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.viewItems(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.editItems(t3.row);
|
||
} } }, [e2._v("编辑")])];
|
||
} }], null, false, 213446792) })], 1), e2._v(" "), a2("div", { staticClass: "paginations" }, [a2("el-pagination", { attrs: { background: "", "current-page": e2.query.pageNumber, "page-sizes": [10, 20, 30, 50], "page-size": e2.query.pageSize, layout: "total, sizes, prev, pager, next, jumper", total: e2.total }, 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.showDetailes ? a2("div", [a2("tmpDetailes", { ref: "showDetailes", on: { goBackList: e2.goBackList } })], 1) : e2._e(), e2._v(" "), a2("el-dialog", { staticClass: "dialogHead", attrs: { title: "add" === e2.batchEdit ? "模板批量应用" : "模板批量取消应用", "modal-append-to-body": true, "append-to-body": true, "close-on-click-modal": false, "close-on-press-escape": false, width: "500px", height: "300px", "destroy-on-close": "", visible: e2.checkInforVisible }, on: { "update:visible": function(t3) {
|
||
e2.checkInforVisible = t3;
|
||
}, close: e2.closeVisible } }, [a2("div", { staticClass: "checkInforSelct" }, [a2("el-form", { ref: "checkInfor", attrs: { model: e2.checkInfor, rules: e2.checkInforRules, "label-width": "100px" } }, [a2("el-form-item", { attrs: { label: "选择管理区", prop: "precinctId" } }, [a2("el-select", { attrs: { multiple: "", "collapse-tags": "", filterable: "", clearable: "", placeholder: "选择管理区名称" }, on: { change: e2.selectCheckChange }, model: { value: e2.checkInfor.precinctId, callback: function(t3) {
|
||
e2.$set(e2.checkInfor, "precinctId", t3);
|
||
}, expression: "checkInfor.precinctId" } }, [a2("el-option", { key: "allprecinctId", attrs: { label: "全部管理区", value: "allprecinctId" } }), e2._v(" "), e2._l(e2.areaOptionsList, (function(e3) {
|
||
return a2("el-option", { key: e3.id, attrs: { label: e3.name, value: e3.id } });
|
||
}))], 2)], 1), e2._v(" "), 1 === e2.checkInfor.precinctId.length && e2.chackbuilding.length > 0 ? a2("el-form-item", { attrs: { label: "选择楼栋", prop: "buildingId" } }, [a2("el-select", { attrs: { multiple: "", "collapse-tags": "", filterable: "", clearable: "", placeholder: "选择楼栋" }, on: { change: e2.checkChangeBuild }, model: { value: e2.checkInfor.buildingId, callback: function(t3) {
|
||
e2.$set(e2.checkInfor, "buildingId", t3);
|
||
}, expression: "checkInfor.buildingId" } }, [a2("el-option", { key: "allbuildingId", attrs: { label: "全部楼栋", value: "allbuildingId" } }), e2._v(" "), e2._l(e2.chackbuilding, (function(e3) {
|
||
return a2("el-option", { key: e3.id, attrs: { label: e3.name, value: e3.id } });
|
||
}))], 2)], 1) : e2._e(), e2._v(" "), 1 === e2.checkInfor.precinctId.length && 1 === e2.checkInfor.buildingId.length && e2.chackUnitList.length > 0 ? a2("el-form-item", { attrs: { label: "选择单元", prop: "unitId" } }, [a2("el-select", { attrs: { multiple: "", "collapse-tags": "", filterable: "", clearable: "", placeholder: "选择单元" }, on: { change: e2.checkChangeUnit }, model: { value: e2.checkInfor.unitId, callback: function(t3) {
|
||
e2.$set(e2.checkInfor, "unitId", t3);
|
||
}, expression: "checkInfor.unitId" } }, [a2("el-option", { key: "allunitId", attrs: { label: "全部单元", value: "allunitId" } }), e2._v(" "), e2._l(e2.chackUnitList, (function(e3) {
|
||
return a2("el-option", { key: e3.id, attrs: { label: e3.name, value: e3.id } });
|
||
}))], 2)], 1) : e2._e(), e2._v(" "), 1 === e2.checkInfor.precinctId.length && 1 === e2.checkInfor.buildingId.length && 1 === e2.checkInfor.unitId.length && e2.houseList.length > 0 ? a2("el-form-item", { attrs: { label: "选择房间", prop: "houseId" } }, [a2("el-select", { attrs: { multiple: "", "collapse-tags": "", filterable: "", clearable: "", placeholder: "选择房间" }, on: { change: e2.checkHouseChange }, model: { value: e2.checkInfor.houseId, callback: function(t3) {
|
||
e2.$set(e2.checkInfor, "houseId", t3);
|
||
}, expression: "checkInfor.houseId" } }, [a2("el-option", { key: "allhouseId", attrs: { label: "全部房间", value: "allhouseId" } }), e2._v(" "), e2._l(e2.houseList, (function(e3) {
|
||
return a2("el-option", { key: e3.id, attrs: { label: e3.roomNum, value: e3.id } });
|
||
}))], 2)], 1) : e2._e(), e2._v(" "), 0 == e2.checkInfor.houseId.length ? a2("el-form-item", { attrs: { label: "房屋状态", prop: "houseStatusList" } }, [a2("el-select", { attrs: { multiple: "", "collapse-tags": "", filterable: "", clearable: "", placeholder: "选择房屋状态" }, on: { change: e2.selectHouseStatus }, model: { value: e2.checkInfor.houseStatusList, callback: function(t3) {
|
||
e2.$set(e2.checkInfor, "houseStatusList", t3);
|
||
}, expression: "checkInfor.houseStatusList" } }, [a2("el-option", { key: "allHouseStatusId", attrs: { label: "全部状态", value: "allHouseStatusId" } }), e2._v(" "), e2._l(e2.houseStatusList, (function(e3) {
|
||
return a2("el-option", { key: e3.value, attrs: { label: e3.label, value: e3.value } });
|
||
}))], 2)], 1) : e2._e(), e2._v(" "), a2("el-form-item", { attrs: { label: "选择模板", prop: "houseSpaceTemplateList" } }, [a2("el-select", { attrs: { filterable: "", clearable: "", multiple: "", placeholder: "选择模板" }, model: { value: e2.checkInfor.houseSpaceTemplateList, callback: function(t3) {
|
||
e2.$set(e2.checkInfor, "houseSpaceTemplateList", t3);
|
||
}, expression: "checkInfor.houseSpaceTemplateList" } }, e2._l(e2.templeteList, (function(e3) {
|
||
return a2("el-option", { key: e3.id, attrs: { label: e3.name, value: e3.id } });
|
||
})), 1)], 1), e2._v(" "), a2("el-form-item", [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary", loading: e2.checkInforbtnLoading }, on: { click: function(t3) {
|
||
return e2.submitForm("checkInfor");
|
||
} } }, [e2._v(e2._s("add" === e2.batchEdit ? "确定" : "批量取消应用") + " ")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) {
|
||
return e2.resetFormDialog("checkInfor");
|
||
} } }, [e2._v("取消")])], 1)], 1)], 1)]), e2._v(" "), a2("el-dialog", { staticClass: "dialogHead", attrs: { title: "修改模板应用", "modal-append-to-body": true, "append-to-body": true, "close-on-click-modal": false, "close-on-press-escape": false, width: "500px", height: "300px", "destroy-on-close": "", visible: e2.templateApplicationEditing }, on: { "update:visible": function(t3) {
|
||
e2.templateApplicationEditing = t3;
|
||
} } }, [a2("div", { staticClass: "checkInforSelct" }, [a2("el-form", { ref: "editInfor", attrs: { model: e2.editInfor, rules: e2.editInforRules, "label-width": "100px" } }, [a2("el-form-item", { attrs: { label: "房屋编号", prop: "houseNo" } }, [a2("el-input", { attrs: { disabled: "" }, model: { value: e2.editInfor.houseNo, callback: function(t3) {
|
||
e2.$set(e2.editInfor, "houseNo", t3);
|
||
}, expression: "editInfor.houseNo" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "选择模板", prop: "houseSpaceTemplateList" } }, [a2("el-select", { attrs: { filterable: "", clearable: "", multiple: "", placeholder: "选择模板" }, model: { value: e2.editInfor.houseSpaceTemplateList, callback: function(t3) {
|
||
e2.$set(e2.editInfor, "houseSpaceTemplateList", t3);
|
||
}, expression: "editInfor.houseSpaceTemplateList" } }, e2._l(e2.templeteList, (function(e3) {
|
||
return a2("el-option", { key: e3.id, attrs: { label: e3.name, value: e3.id } });
|
||
})), 1)], 1), e2._v(" "), a2("el-form-item", [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary", loading: e2.editBtnLoading }, on: { click: function(t3) {
|
||
return e2.submitEditForm("editInfor");
|
||
} } }, [e2._v("确定")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) {
|
||
return e2.resetFormEditDialog("editInfor");
|
||
} } }, [e2._v("取消")])], 1)], 1)], 1)])], 1);
|
||
}, M = [], J = a("2b74"), G = function() {
|
||
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
|
||
return a2("div", [a2("el-page-header", { attrs: { content: "房屋成员不感兴趣详情" }, on: { back: e2.goBackTop } }), e2._v(" "), a2("h4", [e2._v("房屋:" + e2._s(e2.projectName) + "-" + e2._s(e2.houseInfor.precinctName) + "-" + e2._s(e2.houseInfor.buildingName) + "-" + e2._s(e2.houseInfor.unitName) + "-" + e2._s(e2.houseInfor.roomNum))]), e2._v(" "), a2("div", {}, [a2("el-table", { attrs: { border: "", data: e2.residentInfoList.slice((e2.currentPage - 1) * e2.pageSize, e2.currentPage * e2.pageSize), fit: "", "highlight-current-row": "", "header-cell-style": e2.headClass } }, [a2("el-table-column", { attrs: { align: "center", label: "姓名", fixed: "", "min-width": "120", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(t3.row.realName))])];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "性别", "min-width": "60" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [1 === t3.row.gender ? a2("span", [e2._v("男")]) : 2 === t3.row.gender ? a2("span", [e2._v("女")]) : a2("span", [e2._v("-")])];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "身份", "min-width": "100" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(e2._f("getItemType")(t3.row.identityType, e2.identityList)))])];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "180", label: "证件号" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(t3.row.idCard ? t3.row.idCard : "-"))])];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "手机号码", "min-width": "130" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(t3.row.mobile ? t3.row.mobile : "-"))])];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "100", label: "缴费人" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(t3.row.ispayer && 1 === t3.row.ispayer ? "是" : "否"))])];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "状态", "min-width": "80" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(e2._f("getItemType")(t3.row.status, e2.houseStatusList)))])];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "180", label: "认证时间" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(t3.row.createTime))])];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "160", label: "失效时间" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(t3.row.authorizeExpireTime ? t3.row.authorizeExpireTime : "-"))])];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "操作", "min-width": "100", fixed: "right" }, 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.editItem(t3.row);
|
||
} } }, [e2._v("查看权限")])];
|
||
} }]) })], 1), e2._v(" "), a2("div", { staticClass: "paginations" }, [a2("el-pagination", { attrs: { layout: "total, sizes, prev, pager, next, jumper", "current-page": e2.currentPage, "page-sizes": [10, 30, 50, 100, 200], "page-size": e2.pageSize, total: e2.residentInfoList.length }, on: { "size-change": e2.handleSizeChange, "current-change": e2.handleCurrentChange } })], 1)], 1), e2._v(" "), a2("el-dialog", { attrs: { title: "查看权限", visible: e2.spaceLocationDialog, "show-close": true, "close-on-press-escape": false, "close-on-click-modal": false, width: "70%" }, on: { "update:visible": function(t3) {
|
||
e2.spaceLocationDialog = t3;
|
||
} } }, [a2("div", { staticClass: "spaceLocationDialogNotes" }, [a2("i", { staticClass: "el-icon-warning" }), e2._v(" 状态开启后,该网格下作业类型的作业事项会推送至此用户;状态关闭后,该网格下作业类型的作业事项不会推送至此用户")]), e2._v(" "), a2("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: e2.spaceLocationDialogloading, expression: "spaceLocationDialogloading" }], staticStyle: { width: "100%" }, attrs: { data: e2.spaceLocationList, border: "", size: "small", "tooltip-effect": "dark", "header-cell-style": e2.headClass } }, [a2("el-table-column", { attrs: { label: "姓名", align: "center", prop: "userName" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "身份", "min-width": "100" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(e2._f("getItemType")(t3.row.identityType, e2.identityList)))])];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { label: "空间", prop: "space", align: "center", "show-overflow-tooltip": "" } }), e2._v(" "), a2("el-table-column", { attrs: { label: "网格", prop: "location", align: "center", "show-overflow-tooltip": "" } }), e2._v(" "), a2("el-table-column", { attrs: { label: "作业类型", align: "center", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(e2._f("getItemType")(t3.row.planModel, e2.planModeLArr)))])];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { label: "状态", align: "center", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("el-switch", { attrs: { "active-color": "#13ce66", "inactive-color": "#909399", "inactive-value": 0, "active-value": 1, "active-text": "开", "inactive-text": "关" }, on: { change: function(a3) {
|
||
return e2.switchChange(a3, t3.row);
|
||
} }, model: { value: t3.row.type, callback: function(a3) {
|
||
e2.$set(t3.row, "type", a3);
|
||
}, expression: "scope.row.type" } })];
|
||
} }]) })], 1), e2._v(" "), a2("div", { staticClass: "pagination" }, [a2("Pagination", { attrs: { total: e2.spaceLocationTotal }, on: { handleCurrentChange: e2.handleSpaceLocationCurrentChange, handleSizeChange: e2.handleSpaceLocationSizeChange } })], 1), e2._v(" "), a2("span", { staticClass: "dialog-footer", attrs: { slot: "footer" }, slot: "footer" }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) {
|
||
e2.spaceLocationDialog = false;
|
||
} } }, [e2._v("关闭")])], 1)], 1)], 1);
|
||
}, W = [], K = a("8f53"), X = { name: "tmpDetailes", components: { Pagination: c["a"] }, data: function() {
|
||
return { projectName: "", identityList: K["k"], planModeLArr: K["w"], houseStatusList: L["fb"], residentInfoList: [], currentPage: 1, pageSize: 10, spaceLocationDialog: false, spaceLocationTotal: 0, spaceLocationQuery: { pageNumber: 1, pageSize: 10, houseId: 0, projectUuid: "", userId: "" }, spaceLocationList: [], houseInfor: {}, spaceLocationDialogloading: false };
|
||
}, methods: { goBackTop: function() {
|
||
this.$emit("goBackList");
|
||
}, initData: function(e2) {
|
||
this.projectName = this.$store.state.community_name, this.houseInfor = e2, this.getHaouseUserList();
|
||
}, getHaouseUserList: function() {
|
||
var e2 = this, t2 = { id: this.houseInfor.id };
|
||
Object(J["E"])(t2).then((function(t3) {
|
||
0 === t3.code && (e2.residentInfoList = t3.data);
|
||
}));
|
||
}, editItem: function(e2) {
|
||
e2.userId ? (this.spaceLocationDialog = true, this.spaceLocationQuery.houseId = e2.houseId, this.spaceLocationQuery.projectUuid = e2.projectCode, this.spaceLocationQuery.userId = e2.userId, this.spaceLocationQuery.pageNumber = 1, this.spaceLocationQuery.pageSize = 10, this.gethouseTaskPageList()) : this.$message({ type: "error", message: "该房屋成员不是有效用户" });
|
||
}, gethouseTaskPageList: function() {
|
||
var e2 = this;
|
||
this.spaceLocationDialogloading = true, Object(y["v"])(this.spaceLocationQuery).then((function(t2) {
|
||
if (e2.spaceLocationDialogloading = false, 0 === t2.code) {
|
||
var a2 = t2.data.records ? t2.data.records : [];
|
||
a2.length > 0 ? (e2.spaceLocationList = a2, e2.spaceLocationTotal = t2.data.rowsCount ? t2.data.rowsCount : 0) : (e2.spaceLocationList = [], e2.spaceLocationTotal = 0, e2.$message({ type: "success", message: "未查询到相关权限信息" }));
|
||
}
|
||
})).catch((function() {
|
||
e2.spaceLocationDialogloading = false;
|
||
}));
|
||
}, switchChange: function(e2, t2) {
|
||
var a2 = this, i2 = { locationUuid: t2.locationUuid, locationName: t2.location, planModel: t2.planModel, projectUuid: this.$store.state.community_uuid, userId: t2.userId, userName: t2.userName, operatorId: this.$store.state.user.userInfo.memberId, operatorName: this.$store.state.user.userInfo.memberName, operatorUuid: this.$store.state.user.userInfo.memberUuid, type: e2 };
|
||
Object(y["m"])(i2).then((function(e3) {
|
||
0 === e3.code ? (a2.$message({ type: "success", message: "操作成功" }), a2.gethouseTaskPageList()) : a2.$message({ type: "error", message: e3.message });
|
||
}));
|
||
}, handleSizeChange: function(e2) {
|
||
this.currentPage = 1, this.pageSize = e2;
|
||
}, handleCurrentChange: function(e2) {
|
||
this.currentPage = e2;
|
||
}, handleSpaceLocationCurrentChange: function(e2) {
|
||
this.spaceLocationQuery.pageNumber = e2.currentPage, this.gethouseTaskPageList();
|
||
}, handleSpaceLocationSizeChange: function(e2) {
|
||
this.spaceLocationQuery.pageNumber = 1, this.spaceLocationQuery.pageSize = e2.limit, this.gethouseTaskPageList();
|
||
}, headClass: function() {
|
||
return "text-align:center;background:#FAFAFA;";
|
||
} } }, Y = X, Z = (a("b2f2"), Object(k["a"])(Y, G, W, false, null, "3c7635e2", null)), ee = Z.exports, te = { components: { tmpDetailes: ee }, data: function() {
|
||
return { houseStatusList: L["fb"], houseTypeList: L["gb"], listData: [], listLoading: false, total: 0, query: { projectCode: "", houseNo: "", precinctId: "", buildingId: "", unitId: "", roomNum: "", pageNumber: 1, pageSize: 10, houseStatusList: [] }, areaOptions: [], areaOptionsList: [], building: [], unit: [], chackbuilding: [], chackUnitList: [], houseList: [], templeteList: [], checkInforVisible: false, checkInforbtnLoading: false, templateApplicationEditing: false, editBtnLoading: false, checkInfor: { precinctId: [], buildingId: [], unitId: [], houseId: [], houseStatusList: [], houseSpaceTemplateList: [] }, editInfor: { houseNo: "", roomNum: "", houseId: "", houseSpaceTemplateList: [] }, editInforRules: { houseSpaceTemplateList: [{ required: true, message: "请选择模板", trigger: "change" }] }, checkInforRules: { precinctId: [{ required: true, message: "请选择管理区", trigger: "change" }], houseStatusList: [{ required: true, message: "请选择房屋状态", trigger: "change" }], houseSpaceTemplateList: [{ required: true, message: "请选择模板", trigger: "change" }] }, batchEdit: "add", showList: true, showDetailes: false };
|
||
}, created: function() {
|
||
this.query.projectCode = this.$store.state.community_uuid, this.headClass(), this.getBuildList();
|
||
}, methods: { showListFun: function() {
|
||
this.showList = true, this.showDetailes = false;
|
||
}, getChargesTemplateApplyList: function() {
|
||
var e2 = this;
|
||
this.listLoading = true, Object(J["M"])(this.query).then((function(t2) {
|
||
t2.data && t2.data.records && (e2.listData = t2.data.records, e2.total = t2.data.rowsCount);
|
||
})), this.listLoading = false;
|
||
}, selectChange: function() {
|
||
this.getBuild(0);
|
||
}, selectCheckChange: function(e2) {
|
||
this.chackbuilding = [], this.chackUnitList = [], this.houseList = [], this.checkInfor.buildingId = "", this.checkInfor.unitId = "", this.checkInfor.houseId = "", e2.includes("allprecinctId") ? this.checkInfor.precinctId = this.areaOptionsList.map((function(e3) {
|
||
return e3["id"];
|
||
})) : this.getBuild(1);
|
||
}, getBuildList: function() {
|
||
var e2 = this, t2 = { projectUuid: this.$store.state.community_uuid, pageNumber: -1, pageSize: -1 };
|
||
Object(J["f"])(t2).then((function(t3) {
|
||
0 === t3.code && (e2.areaOptions = t3.data, e2.areaOptionsList = t3.data);
|
||
}));
|
||
}, getBuild: function(e2) {
|
||
var t2 = this;
|
||
if (1 === e2 && 1 !== this.checkInfor.precinctId.length) return false;
|
||
Object(J["x"])({ precinctId: 0 === e2 ? this.query.precinctId : this.checkInfor.precinctId[0], projectCode: this.$store.state.community_uuid, projectName: this.$store.state.community_name, pageNumber: -1, pageSize: -1 }).then((function(a2) {
|
||
0 === e2 ? t2.building = a2.data : t2.chackbuilding = a2.data;
|
||
}));
|
||
}, getUnit: function(e2) {
|
||
var t2 = this;
|
||
if (1 === e2 && 1 !== this.checkInfor.buildingId.length) return false;
|
||
Object(J["mb"])({ pageNumber: -1, pageSize: -1, projectCode: this.$store.state.community_uuid, buildingId: 0 === e2 ? this.query.buildingId : this.checkInfor.buildingId[0] }).then((function(a2) {
|
||
0 === e2 ? t2.unit = a2.data.records : t2.chackUnitList = a2.data.records;
|
||
}));
|
||
}, changeBuild: function(e2) {
|
||
this.query.buildingId = e2, this.getUnit(0);
|
||
}, checkChangeBuild: function(e2) {
|
||
this.chackUnitList = [], this.houseList = [], this.checkInfor.unitId = "", this.checkInfor.houseId = "", e2.includes("allbuildingId") ? this.checkInfor.buildingId = this.chackbuilding.map((function(e3) {
|
||
return e3["id"];
|
||
})) : this.getUnit(1);
|
||
}, checkChangeUnit: function(e2) {
|
||
var t2 = this;
|
||
this.houseList = [], this.checkInfor.houseId = "";
|
||
var a2 = { projectCode: this.checkInfor.projectUuid, precinctId: this.checkInfor.precinctId[0], buildingId: this.checkInfor.buildingId[0], unitId: this.checkInfor.unitId[0], pageNumber: -1, pageSize: -1 };
|
||
if (1 !== this.checkInfor.unitId.length) return false;
|
||
e2.includes("allunitId") ? this.checkInfor.unitId = this.chackUnitList.map((function(e3) {
|
||
return e3["id"];
|
||
})) : Object(J["bb"])(a2).then((function(e3) {
|
||
0 === e3.code && (t2.houseList = e3.data.records);
|
||
}));
|
||
}, checkHouseChange: function(e2) {
|
||
e2.includes("allhouseId") && (this.checkInfor.houseId = this.houseList.map((function(e3) {
|
||
return e3["id"];
|
||
}))), this.checkInfor.houseId.length > 0 && (this.checkInfor.houseStatusList = []);
|
||
}, selectHouseStatus: function(e2) {
|
||
e2.includes("allHouseStatusId") && (this.checkInfor.houseStatusList = this.houseStatusList.map((function(e3) {
|
||
return e3["value"];
|
||
}))), this.checkInfor.houseStatusList.length > 0 && (this.checkInfor.houseId = []);
|
||
}, submitForm: function() {
|
||
var e2 = this;
|
||
if (1 === this.checkInfor.precinctId.length && 0 === this.chackbuilding.length) return this.$message({ type: "error", message: "该管理区下无楼栋,无法将模板应用到房屋" }), false;
|
||
if (1 === this.checkInfor.buildingId.length && 0 === this.chackUnitList.length) return this.$message({ type: "error", message: "该楼栋下无单元,无法将模板应用到房屋" }), false;
|
||
if (1 === this.checkInfor.unitId.length && 0 === this.houseList.length) return this.$message({ type: "error", message: "该单元下无房屋,无法将模板应用到房屋" }), false;
|
||
var t2 = 0, a2 = null;
|
||
this.checkInfor.precinctId.length === this.areaOptionsList.length && 0 === this.checkInfor.buildingId.length && 0 === this.checkInfor.unitId.length && 0 === this.checkInfor.houseId.length ? (t2 = 1, a2 = null) : (t2 = 0, a2 = this.checkInfor.precinctId);
|
||
var i2 = [];
|
||
this.templeteList.map((function(t3) {
|
||
e2.checkInfor.houseSpaceTemplateList.map((function(e3) {
|
||
t3.id === e3 && i2.push({ templateId: t3.id, templateName: t3.name });
|
||
}));
|
||
}));
|
||
var s2 = { projectUuid: this.$store.state.community_uuid, precinctIdList: a2, buildingIdList: this.checkInfor.buildingId.length > 0 ? this.checkInfor.buildingId : null, unitIdList: this.checkInfor.unitId.length > 0 ? this.checkInfor.unitId : null, houseIdList: this.checkInfor.houseId.length > 0 ? this.checkInfor.houseId : null, houseStatusList: this.checkInfor.houseStatusList.length > 0 ? this.checkInfor.houseStatusList : null, houseSpaceTemplateList: i2, operatorName: this.$store.state.user.userInfo.memberName, operatorUuid: this.$store.state.user.userInfo.memberUuid, isAll: t2 };
|
||
console.log("params", s2), this.$refs.checkInfor.validate((function(t3) {
|
||
if (!t3) return false;
|
||
"add" === e2.batchEdit ? F(s2).then((function(t4) {
|
||
0 === t4.code ? (e2.$message({ type: "success", message: "批量应用成功" }), e2.checkInforVisible = false, e2.getChargesTemplateApplyList()) : e2.$message({ type: "error", message: "批量应用失败" });
|
||
})).catch((function(e3) {
|
||
})) : P(s2).then((function(t4) {
|
||
0 === t4.code ? (e2.$message({ type: "success", message: "模板批量取消应用成功" }), e2.checkInforVisible = false, e2.getChargesTemplateApplyList()) : e2.$message({ type: "error", message: "模板批量取消应用失败" });
|
||
})).catch((function(e3) {
|
||
}));
|
||
}));
|
||
}, editItems: function(e2) {
|
||
this.editInfor = { houseNo: e2.houseNo, roomNum: e2.roomNum, houseId: e2.id, houseSpaceTemplateList: e2.houseSpaceTemplateList ? e2.houseSpaceTemplateList.map((function(e3) {
|
||
return e3["templateId"];
|
||
})) : [] }, this.getChargesTemplateList(), this.templateApplicationEditing = true;
|
||
}, viewItems: function(e2) {
|
||
var t2 = this;
|
||
this.showList = false, this.showDetailes = true, this.$nextTick((function() {
|
||
t2.$refs.showDetailes.initData(e2);
|
||
}));
|
||
}, goBackList: function() {
|
||
this.showList = true, this.showDetailes = false;
|
||
}, closeVisible: function() {
|
||
this.resetFormDialog();
|
||
}, resetFormDialog: function() {
|
||
this.checkInfor = { precinctId: [], buildingId: [], unitId: [], houseId: [], houseSpaceTemplateList: [] }, this.checkInforbtnLoading = false, this.checkInforVisible = false, this.$refs.checkInfor.resetFields();
|
||
}, resetFormEditDialog: function() {
|
||
this.editInfor = { houseNo: "", roomNum: "", houseId: "", houseSpaceTemplateList: [] }, this.editBtnLoading = false, this.templateApplicationEditing = false, this.$refs.editInfor.resetFields();
|
||
}, submitEditForm: function() {
|
||
var e2 = this;
|
||
this.editBtnLoading = true, this.$refs.editInfor.validate((function(t2) {
|
||
if (!t2) return e2.editBtnLoading = false, false;
|
||
var a2 = [];
|
||
e2.templeteList.map((function(t3) {
|
||
e2.editInfor.houseSpaceTemplateList.map((function(e3) {
|
||
t3.id === e3 && a2.push({ templateId: t3.id, templateName: t3.name });
|
||
}));
|
||
}));
|
||
var i2 = { houseId: e2.editInfor.houseId, houseSpaceTemplateList: a2, operatorName: e2.$store.state.user.userInfo.memberName, operatorUuid: e2.$store.state.user.userInfo.memberUuid };
|
||
console.log("params", i2), A(i2).then((function(t3) {
|
||
e2.editBtnLoading = false, 0 === t3.code ? (e2.$message({ type: "success", message: "更新模板成功" }), e2.templateApplicationEditing = false, e2.getChargesTemplateApplyList()) : e2.$message({ type: "error", message: "更新模板失败" });
|
||
})).catch((function(t3) {
|
||
e2.editBtnLoading = false;
|
||
}));
|
||
}));
|
||
}, onSearch: function() {
|
||
this.query.pageNumber = 1, this.getChargesTemplateApplyList();
|
||
}, resetForm: function() {
|
||
this.query.pageNumber = 1, this.query.houseNo = "", this.query.precinctId = "", this.query.buildingId = "", this.query.unitId = "", this.query.roomNum = "", this.getChargesTemplateApplyList();
|
||
}, handleSizeChange: function(e2) {
|
||
this.query.pageSize = e2, this.getChargesTemplateApplyList();
|
||
}, handleCurrentChange: function(e2) {
|
||
this.query.pageNumber = e2, this.getChargesTemplateApplyList();
|
||
}, headClass: function() {
|
||
return "text-align:center;background:#FAFAFA;";
|
||
}, batchApplication: function() {
|
||
this.batchEdit = "add", this.getChargesTemplateList(), this.checkInforVisible = true;
|
||
}, batchApplicationDelete: function() {
|
||
this.batchEdit = "del", this.getChargesTemplateList(), this.checkInforVisible = true;
|
||
}, getChargesTemplateList: function() {
|
||
var e2 = this, t2 = { projectUuid: this.$store.state.community_uuid, pageNumber: -1, pageSize: -1 };
|
||
z(t2).then((function(t3) {
|
||
0 === t3.code && (e2.templeteList = t3.data.records, setTimeout((function() {
|
||
e2.$nextTick((function() {
|
||
e2.checkInforVisible ? e2.$refs.checkInfor.clearValidate("houseSpaceTemplateList") : e2.$refs.editInfor.clearValidate("houseSpaceTemplateList");
|
||
})), e2.$forceUpdate();
|
||
}), 200));
|
||
}));
|
||
}, transTmpName: function(e2) {
|
||
return e2.length > 0 ? e2.map((function(e3) {
|
||
return e3["templateName"];
|
||
})).join(",") : "-";
|
||
} }, mounted: function() {
|
||
this.getChargesTemplateApplyList();
|
||
} }, ae = te, ie = (a("e3df"), Object(k["a"])(ae, H, M, false, null, "2951f10e", null)), se = ie.exports, ne = { name: "spaceIndex", components: { spatialRegion: T, locationTemplate: R, templateApplication: se }, data: function() {
|
||
return { activeName: "spatialRegion" };
|
||
}, methods: { handleClick: function() {
|
||
var e2 = this;
|
||
this.$nextTick((function() {
|
||
e2.$refs.templateApplication && e2.$refs.templateApplication.showListFun();
|
||
}));
|
||
} } }, oe = ne, le = Object(k["a"])(oe, n, o, false, null, "2680b078", null), re = le.exports, ce = 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: "spaceUuid" } }, [a2("el-select", { attrs: { clearable: "", placeholder: "请选择空间名称" }, model: { value: e2.query.spaceUuid, callback: function(t3) {
|
||
e2.$set(e2.query, "spaceUuid", t3);
|
||
}, expression: "query.spaceUuid" } }, e2._l(e2.spaceTypeList, (function(e3) {
|
||
return a2("el-option", { key: e3.spaceUuid, attrs: { label: e3.name, value: e3.spaceUuid } });
|
||
})), 1)], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 6 } }, [a2("el-form-item", { attrs: { label: "" } }, [a2("el-input", { attrs: { placeholder: "网格", clearable: "", maxlength: "36" }, model: { value: e2.query.locationName, callback: function(t3) {
|
||
e2.$set(e2.query, "locationName", t3);
|
||
}, expression: "query.locationName" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 6 } }, [a2("el-form-item", { attrs: { label: "" } }, [a2("el-input", { attrs: { placeholder: "二维码编码", clearable: "", maxlength: "36" }, model: { value: e2.query.qrCode, callback: function(t3) {
|
||
e2.$set(e2.query, "qrCode", t3);
|
||
}, expression: "query.qrCode" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 6 } }, [a2("el-form-item", { attrs: { label: "" } }, [a2("el-select", { attrs: { clearable: "", placeholder: "启停状态" }, model: { value: e2.query.enableStatus, callback: function(t3) {
|
||
e2.$set(e2.query, "enableStatus", t3);
|
||
}, expression: "query.enableStatus" } }, e2._l(e2.statusList, (function(e3) {
|
||
return a2("el-option", { key: e3.id, attrs: { label: e3.name, value: e3.id } });
|
||
})), 1)], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 6 } }, [a2("el-form-item", { attrs: { label: "" } }, [a2("el-select", { attrs: { clearable: "", placeholder: "二维码类型" }, model: { value: e2.query.qrType, callback: function(t3) {
|
||
e2.$set(e2.query, "qrType", t3);
|
||
}, expression: "query.qrType" } }, e2._l(e2.qrTypeList, (function(e3) {
|
||
return a2("el-option", { key: e3.id, attrs: { label: e3.name, value: e3.id } });
|
||
})), 1)], 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._v(" "), a2("div", [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.ruleGroupConfig } }, [e2._v("规则组配置")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.addQrCode } }, [e2._v("批量创建二维码")])], 1)]), e2._v(" "), a2("div", [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], staticStyle: { "margin-bottom": "22px" }, attrs: { type: "primary" }, on: { click: e2.batchExportQr } }, [e2._v("批量导出已选")])], 1), e2._v(" "), a2("el-table", { ref: "multipleTable", attrs: { border: "", data: e2.listTable, "header-cell-style": e2.headClass, "tooltip-effect": "dark", "row-key": "qrUuid" }, on: { "selection-change": e2.handleSelectionChange } }, [a2("el-table-column", { attrs: { type: "selection", align: "center", fixed: "left", "reserve-selection": true, width: "55" } }), e2._v(" "), a2("el-table-column", { attrs: { label: "#", align: "center", width: "50", fixed: "left" }, 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: { align: "center", "show-overflow-tooltip": "", prop: "qrCode", label: "二维码编码", "min-width": "180", fixed: "left" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "show-overflow-tooltip": "", label: "二维码类型", "min-width": "100", fixed: "left" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(1 === t3.row.qrType ? "空间码" : "物码"))])];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "空间网格编码", "min-width": "180" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(t3.row.locationCode ? t3.row.locationCode : "-"))])];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "空间", "min-width": "160", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(t3.row.spaceName ? t3.row.spaceName : "-"))])];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "show-overflow-tooltip": "", label: "网格", width: "160" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(t3.row.locationName ? t3.row.locationName : "-"))])];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "createUserName", label: "创建人", "min-width": "130" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "createDate", label: "创建时间", "min-width": "180" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "show-overflow-tooltip": "", label: "状态", "min-width": "80" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", { style: { color: 0 === t3.row.enableStatus ? "#70B603" : "#FF0000" } }, [e2._v(e2._s(0 === t3.row.enableStatus ? "启用" : "关闭"))])];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "操作", fixed: "right", "min-width": "130" }, 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.getQRC(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.viewDetail(t3.row);
|
||
} } }, [e2._v("查看")])];
|
||
} }]) })], 1), e2._v(" "), a2("div", { staticClass: "paginations" }, [a2("Pagination", { attrs: { total: e2.pageTotal }, on: { handleCurrentChange: e2.handleCurrentChange, handleSizeChange: e2.handleSizeChange } })], 1)], 1), e2._v(" "), e2.centerDialogVisible ? a2("el-dialog", { staticClass: "dialogHead", attrs: { visible: e2.centerDialogVisible, "modal-append-to-body": true, "append-to-body": true, "close-on-click-modal": false, "close-on-press-escape": false, "destroy-on-close": true, width: "600px", title: "新增二维码" }, on: { "update:visible": function(t3) {
|
||
e2.centerDialogVisible = t3;
|
||
}, closed: function(t3) {
|
||
return e2.closeDialog("form");
|
||
} } }, [a2("el-form", { ref: "form", attrs: { model: e2.form, rules: e2.rules, "label-width": "110px" } }, [a2("el-form-item", { attrs: { label: "二维码数量:", prop: "createNum" } }, [a2("el-input", { attrs: { maxlength: "5", placeholder: "请输入需要创建的二维码数量" }, model: { value: e2.form.createNum, callback: function(t3) {
|
||
e2.$set(e2.form, "createNum", t3);
|
||
}, expression: "form.createNum" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "二维码类型:", prop: "qrType" } }, [a2("el-select", { staticStyle: { width: "100%" }, attrs: { clearable: "", placeholder: "二维码类型" }, model: { value: e2.form.qrType, callback: function(t3) {
|
||
e2.$set(e2.form, "qrType", t3);
|
||
}, expression: "form.qrType" } }, e2._l(e2.qrTypeList, (function(e3) {
|
||
return a2("el-option", { key: e3.id, attrs: { label: e3.name, value: e3.id } });
|
||
})), 1)], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "备注:" } }, [a2("el-input", { attrs: { type: "textarea", rows: "5", maxlength: "512" }, model: { value: e2.form.remark, callback: function(t3) {
|
||
e2.$set(e2.form, "remark", t3);
|
||
}, expression: "form.remark" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "状态:" } }, [a2("el-switch", { model: { value: e2.form.enableStatus, callback: function(t3) {
|
||
e2.$set(e2.form, "enableStatus", t3);
|
||
}, expression: "form.enableStatus" } })], 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.closeDialog("form");
|
||
} } }, [e2._v("取消")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary", loading: e2.btnLoading }, on: { click: function(t3) {
|
||
return e2.onSubmit("form");
|
||
} } }, [e2._v("立即创建")])], 1)], 1)], 1) : e2._e(), e2._v(" "), e2.qrcodeVisible ? a2("el-dialog", { staticClass: "dialogHead", attrs: { title: "查看二维码", visible: e2.qrcodeVisible, width: "30%" }, on: { "update:visible": function(t3) {
|
||
e2.qrcodeVisible = t3;
|
||
} } }, [a2("div", { staticClass: "viewSet" }, [a2("el-image", { attrs: { src: e2.QRcodeUrl, fit: "fill" } })], 1)]) : e2._e()], 1);
|
||
}, ue = [];
|
||
function pe(e2) {
|
||
return Object(D["a"])({ url: "/appproject/QrInfo/pageList", method: "POST", data: e2 });
|
||
}
|
||
function de(e2) {
|
||
return Object(D["a"])({ url: "/appproject/QrInfo/createBatch", method: "POST", data: e2 });
|
||
}
|
||
function me(e2) {
|
||
return Object(D["a"])({ url: "/appproject/QrInfo/exportQRCode", method: "POST", responseType: "blob", data: e2 });
|
||
}
|
||
var he = { components: { Pagination: c["a"] }, data: function() {
|
||
return { is_show: false, height: 0, uuid: "", name: "", pageTotal: 0, listLoading: false, spaceTypeList: [], listTable: [], tableSelected: [], statusList: [{ id: 0, name: "启用" }, { id: 1, name: "停用" }], qrTypeList: [{ id: 2, name: "物码" }, { id: 1, name: "空间码" }], qrcodeVisible: false, query: { pageNumber: 1, pageSize: 10, spaceUuid: "", locationName: "", qrCode: "", enableStatus: "", qrType: "" }, form: { createNum: "", qrType: 2, enableStatus: true, remark: "" }, rules: { createNum: [{ required: true, message: "请输入需要创建的二维码数量", trigger: "blur" }], qrType: [{ required: true, message: "请选择活动区域", trigger: "change" }] }, btnLoading: false, centerDialogVisible: false, userInfors: null };
|
||
}, beforeRouteEnter: function(e2, t2, a2) {
|
||
a2((function(t3) {
|
||
var a3 = e2.name, i2 = JSON.parse(sessionStorage.getItem(a3));
|
||
i2 && (t3.query = i2), t3.getlistData();
|
||
}));
|
||
}, created: function() {
|
||
this.uuid = this.$store.state.community_uuid, this.name = this.$store.state.community_name, this.userInfors = JSON.parse(localStorage.getItem("C_userInfo")), this.headClass();
|
||
}, mounted: function() {
|
||
this.getRealHeight(), this.getSpaceList(), this.getlistData();
|
||
}, methods: { checkSelectable: function(e2) {
|
||
return !!e2.qrUuid;
|
||
}, getSpaceList: function() {
|
||
var e2 = this;
|
||
Object(u["ib"])({ projectId: this.uuid }).then((function(t2) {
|
||
0 == t2.code ? e2.spaceTypeList = t2.data : e2.$message.error(t2.message);
|
||
}));
|
||
}, getlistData: function() {
|
||
var e2 = this;
|
||
this.listLoading = true, this.query.projectUuid = this.uuid, pe(this.query).then((function(t2) {
|
||
0 == t2.code && (e2.listTable = t2.data.records, e2.pageTotal = t2.data.rowsCount), sessionStorage.setItem(e2.$route.name, JSON.stringify(e2.query));
|
||
})), this.listLoading = false;
|
||
}, memoryChecked: function() {
|
||
var e2 = this, t2 = [];
|
||
this.tableSelected.forEach((function(e3) {
|
||
t2.push(e3.qrUuid);
|
||
})), t2.length && this.$nextTick((function() {
|
||
e2.listData.forEach((function(a2, i2) {
|
||
console.log(a2), t2.indexOf(a2.qrUuid) >= 0 && e2.$refs.multipleTable.toggleRowSelection(a2, true);
|
||
}));
|
||
}));
|
||
}, handleSelectionChange: function(e2) {
|
||
this.tableSelected = e2.map((function(e3) {
|
||
return e3.qrUuid;
|
||
}));
|
||
}, batchExportQr: function() {
|
||
if (0 == this.tableSelected.length) return this.$message({ type: "info", message: "请选择需要导出的二维码" }), false;
|
||
var e2 = { projectUuid: this.uuid, qrUuidList: this.tableSelected };
|
||
me(e2).then((function(e3) {
|
||
var t2 = new Blob([e3], { type: "application/zip" }), a2 = (/* @__PURE__ */ new Date()).valueOf(), i2 = "空间网格二维码" + a2 + "-批量.zip";
|
||
if (window.navigator.msSaveOrOpenBlob) navigator.msSaveBlob(t2, i2);
|
||
else {
|
||
var s2 = document.createElement("a");
|
||
s2.download = i2, s2.style.display = "none", s2.href = URL.createObjectURL(t2), s2.click(), URL.revokeObjectURL(s2.href), document.body.removeChild(s2);
|
||
}
|
||
}));
|
||
}, editDetail: function(e2) {
|
||
this.$router.push({ name: "editSatialPosition" }), sessionStorage.setItem("saveEditSatialPosition", JSON.stringify(e2));
|
||
}, viewDetail: function(e2) {
|
||
1 === e2.qrType ? this.$router.push({ path: "/viewInfo/viewSpaceContent", query: { data: e2 } }) : this.$router.push({ path: "/viewInfo/whiteCodeContent", query: { data: e2 } });
|
||
}, getQRC: function(e2) {
|
||
var t2 = this;
|
||
e2.qrUuid ? Object(d["I"])({ qrUuid: e2.qrUuid }).then((function(e3) {
|
||
t2.QRcodeUrl = e3.data, t2.qrcodeVisible = true;
|
||
})) : this.$message({ message: "二维码UUID无效,无法预览", type: "warning" });
|
||
}, ruleGroupConfig: function() {
|
||
this.$router.push({ path: "/projectProfile/ruleConfigList" });
|
||
}, addQrCode: function() {
|
||
this.form.qrType = 2, this.centerDialogVisible = true;
|
||
}, onSubmit: function(e2) {
|
||
var t2 = this;
|
||
this.$refs[e2].validate((function(a2) {
|
||
if (!a2) return false;
|
||
t2.btnLoading = true;
|
||
var i2 = JSON.parse(t2.userInfors.targetInfo), s2 = Object.assign({ projectUuid: t2.uuid, projectName: t2.name, createUserId: i2.id, createUserName: i2.memberName }, t2.form);
|
||
s2.enableStatus = t2.form.enableStatus ? 0 : 1, de(s2).then((function(a3) {
|
||
0 == a3.code && (t2.$message({ message: "添加成功", type: "success" }), t2.getlistData(), t2.closeDialog(e2), t2.btnLoading = false);
|
||
})).catch((function(e3) {
|
||
t2.btnLoading = false;
|
||
}));
|
||
}));
|
||
}, closeDialog: function(e2) {
|
||
this.form = { createNum: "", qrType: "", enableStatus: true, remark: "" }, this.$refs[e2].resetFields(), this.centerDialogVisible = false, this.getlistData();
|
||
}, submitDialog: function() {
|
||
this.$refs[formName].resetFields(), this.centerDialogVisible = false, this.getlistData();
|
||
}, onSearch: function() {
|
||
this.query.pageNumber = 1, this.getlistData();
|
||
}, handleSizeChange: function(e2) {
|
||
this.query.pageSize = e2.limit, this.query.pageNumber = 1, this.getlistData();
|
||
}, handleCurrentChange: function(e2) {
|
||
this.query.pageNumber = e2.currentPage, this.getlistData();
|
||
}, resetForm: function(e2) {
|
||
this.query = { pageNumber: 1, pageSize: 10, spaceUuid: "", locationName: "", qrCode: "", enableStatus: "", qrType: "" }, this.dateTimer = "", this.$refs[e2].resetFields(), this.getlistData();
|
||
}, 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";
|
||
}));
|
||
} } }, fe = he, ge = (a("86fc"), Object(k["a"])(fe, ce, ue, false, null, "31d5c26e", null)), ve = ge.exports, be = 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: { label: "" } }, [a2("el-input", { attrs: { placeholder: "空间", clearable: "", maxlength: "36" }, model: { value: e2.query.alarmSpaceName, callback: function(t3) {
|
||
e2.$set(e2.query, "alarmSpaceName", t3);
|
||
}, expression: "query.alarmSpaceName" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 6 } }, [a2("el-form-item", { attrs: { label: "" } }, [a2("el-input", { attrs: { placeholder: "网格", clearable: "", maxlength: "36" }, model: { value: e2.query.alarmLocationName, callback: function(t3) {
|
||
e2.$set(e2.query, "alarmLocationName", t3);
|
||
}, expression: "query.alarmLocationName" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 6 } }, [a2("el-form-item", { attrs: { label: "" } }, [a2("el-input", { attrs: { placeholder: "设备编码", clearable: "", maxlength: "36" }, 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: { label: "" } }, [a2("el-input", { attrs: { placeholder: "设备负责人", clearable: "", maxlength: "36" }, model: { value: e2.query.personLiableName, callback: function(t3) {
|
||
e2.$set(e2.query, "personLiableName", t3);
|
||
}, expression: "query.personLiableName" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 6 } }, [a2("el-form-item", { attrs: { label: "" } }, [a2("el-select", { attrs: { clearable: "", placeholder: "状态" }, model: { value: e2.query.status, callback: function(t3) {
|
||
e2.$set(e2.query, "status", t3);
|
||
}, expression: "query.status" } }, e2._l(e2.statusList, (function(e3) {
|
||
return a2("el-option", { key: e3.id, attrs: { label: e3.name, value: e3.id } });
|
||
})), 1)], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 12 } }, [a2("el-form-item", [a2("el-date-picker", { attrs: { format: "yyyy-MM-dd", "value-format": "yyyy-MM-dd", type: "daterange", "range-separator": "至", "start-placeholder": "开始日期", "end-placeholder": "结束日期" }, on: { change: e2.dateTimerChange }, model: { value: e2.dateTimer, callback: function(t3) {
|
||
e2.dateTimer = t3;
|
||
}, expression: "dateTimer" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 6 } }, [a2("el-form-item", { attrs: { label: "" } }, [a2("el-select", { attrs: { clearable: "", placeholder: "报警类型" }, model: { value: e2.query.alarmType, callback: function(t3) {
|
||
e2.$set(e2.query, "alarmType", t3);
|
||
}, expression: "query.alarmType" } }, e2._l(e2.AIAlearmType, (function(e3) {
|
||
return a2("el-option", { key: e3.value, attrs: { label: e3.label, value: e3.value } });
|
||
})), 1)], 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._v(" "), a2("el-table", { attrs: { border: "", data: e2.listTable, "header-cell-style": e2.headClass, "tooltip-effect": "dark" } }, [a2("el-table-column", { attrs: { label: "#", align: "center", width: "60" }, 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: { align: "center", prop: "deviceCode", label: "设备编号", "min-width": "160" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "deviceName", label: "设备名称", "min-width": "120", "show-overflow-tooltip": "" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "alarmSpaceName", label: "空间", "min-width": "120", "show-overflow-tooltip": "" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "alarmLocationName", label: "网格", "min-width": "120", "show-overflow-tooltip": "" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "报警类型", width: "130" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [e2._v(e2._s(e2._f("getAIAlearmType")(t3.row.alarmType)))];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "personLiableName", "show-overflow-tooltip": "", label: "设备负责人", "min-width": "130" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "图片", width: "150" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("el-image", { staticClass: "bannerImg", attrs: { src: t3.row.images, fit: "contain", "preview-src-list": t3.row.list } }, [a2("div", { staticClass: "image-slot", attrs: { slot: "placeholder" }, slot: "placeholder" }, [e2._v("加载中"), a2("span", { staticClass: "dot" }, [e2._v("...")])]), e2._v(" "), a2("div", { staticClass: "image-error-slot", attrs: { slot: "error" }, slot: "error" }, [e2._v("-")])])];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "AI判断", width: "120" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("el-select", { attrs: { placeholder: "请选择", disabled: !!t3.row.aiSign }, on: { change: function(a3) {
|
||
e2.aiSelectChange(a3, t3.row, t3.$index);
|
||
} }, model: { value: t3.row.aiSign, callback: function(a3) {
|
||
e2.$set(t3.row, "aiSign", a3);
|
||
}, expression: "scope.row.aiSign" } }, e2._l(e2.AICheckLIst, (function(e3) {
|
||
return a2("el-option", { key: e3.id, attrs: { label: e3.name, value: e3.id } });
|
||
})), 1)];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "createDate", label: "报警时间", width: "180" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "show-overflow-tooltip": "", label: "状态", width: "100" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", [e2._v(e2._s(1 === t3.row.status ? "未处理" : 2 === t3.row.status ? "处理中" : 3 === t3.row.status ? "已修复" : 4 === t3.row.status ? "已忽略" : "AI自动处理"))])];
|
||
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "min-width": "230", label: "工单单号" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
|
||
return [a2("span", { attrs: { type: "text" } }, [e2._v(e2._s(t3.row.postponeOrderNo))])];
|
||
} }]) })], 1), e2._v(" "), a2("div", { staticClass: "paginations" }, [a2("Pagination", { attrs: { total: e2.pageTotal }, on: { handleCurrentChange: e2.handleCurrentChange, handleSizeChange: e2.handleSizeChange } })], 1)], 1), e2._v(" "), e2.centerDialogVisible ? a2("el-dialog", { staticClass: "dialogHead", attrs: { visible: e2.centerDialogVisible, "modal-append-to-body": true, "append-to-body": true, "close-on-click-modal": false, "close-on-press-escape": false, "destroy-on-close": true, width: "70%", center: "" }, on: { "update:visible": function(t3) {
|
||
e2.centerDialogVisible = t3;
|
||
}, closed: e2.closeDialog } }, [a2("work-order-edit", { ref: "workorderedit", attrs: { editInfor: e2.editInfor }, on: { handleClose: e2.closeDialog, handleSubmit: e2.submitDialog } })], 1) : e2._e()], 1);
|
||
}, ye = [], _e = a("ed5f"), we = a("055f"), ke = { components: { Pagination: c["a"], WorkOrderEdit: we["a"] }, data: function() {
|
||
return { is_show: false, height: 0, uuid: "", name: "", pageTotal: 0, listLoading: false, AIAlearmType: L["a"], listTable: [], statusList: [{ id: 1, name: "未处理" }, { id: 2, name: "处理中" }, { id: 3, name: "已修复" }, { id: 4, name: "已忽略" }, { id: 5, name: "AI自动处理" }], time: "", query: { pageNumber: 1, pageSize: 10, alarmType: "", alarmLocationName: "", alarmSpaceName: "", deviceCode: "", personLiableName: "", status: "", startTime: "", endTime: "" }, aiStatus: "", dateTimer: "", AICheckLIst: [{ id: 1, name: "是" }, { id: 2, name: "不是" }], centerDialogVisible: false, editInfor: null };
|
||
}, beforeRouteEnter: function(e2, t2, a2) {
|
||
a2((function(t3) {
|
||
var a3 = e2.name, i2 = JSON.parse(sessionStorage.getItem(a3));
|
||
i2 && (t3.query = i2), t3.getlistData();
|
||
}));
|
||
}, created: function() {
|
||
this.uuid = this.$store.state.community_uuid, this.name = this.$store.state.community_name, this.headClass();
|
||
}, mounted: function() {
|
||
this.getRealHeight(), this.getlistData();
|
||
}, methods: { getlistData: function() {
|
||
var e2 = this;
|
||
this.listLoading = true, this.query.projectUuid = this.uuid, Object(_e["e"])(this.query).then((function(t2) {
|
||
0 == t2.code && (e2.listTable = t2.data.records, e2.pageTotal = t2.data.rowsCount, e2.getDrawerTableList()), sessionStorage.setItem(e2.$route.name, JSON.stringify(e2.query));
|
||
})), this.listLoading = false;
|
||
}, aiSelectChange: function(e2, t2, a2) {
|
||
1 === e2 ? (this.editInfor = t2, this.centerDialogVisible = true) : this.updataStatus(t2);
|
||
}, updataStatus: function(e2) {
|
||
var t2 = this, a2 = { id: e2.id, aiSign: 2 };
|
||
Object(_e["h"])(a2).then((function(e3) {
|
||
0 === e3.code && (t2.$message({ type: "success", message: "更新成功" }), t2.getlistData());
|
||
}));
|
||
}, dateTimerChange: function(e2) {
|
||
console.log("val", e2), e2.length > 0 && (this.query.startTime = e2[0] + " 00:00:00", this.query.endTime = e2[1] + " 23:59:59");
|
||
}, closeDialog: function(e2) {
|
||
this.editInfor = null, this.centerDialogVisible = false, this.getlistData();
|
||
}, submitDialog: function() {
|
||
this.editInfor = null, this.centerDialogVisible = false, this.getlistData();
|
||
}, getDrawerTableList: function(e2) {
|
||
this.list = [];
|
||
for (var t2 = 0; t2 < this.listTable.length; t2++) this.list.push(this.listTable[t2].images);
|
||
for (t2 = 0; t2 < this.listTable.length; t2++) {
|
||
var a2 = this.list, i2 = a2.slice(0, t2), s2 = a2.slice(t2, this.listTable.length), n2 = s2.concat(i2);
|
||
this.listTable[t2].list = n2;
|
||
}
|
||
}, onSearch: function() {
|
||
this.query.pageNumber = 1, this.getlistData();
|
||
}, handleSizeChange: function(e2) {
|
||
this.query.pageSize = e2.limit, this.query.pageNumber = 1, this.getlistData();
|
||
}, handleCurrentChange: function(e2) {
|
||
this.query.pageNumber = e2.currentPage, this.getlistData();
|
||
}, resetForm: function(e2) {
|
||
this.query = { pageNumber: 1, pageSize: 10, deviceCode: "", alarmLocationName: "", alarmSpaceName: "", personLiableName: "", status: "", startTime: "", endTime: "" }, this.dateTimer = "", this.$refs[e2].resetFields(), this.getlistData();
|
||
}, 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";
|
||
}));
|
||
} } }, Se = ke, Ie = (a("8b31"), Object(k["a"])(Se, be, ye, false, null, "00f72ac2", null)), Le = Ie.exports, Ce = { name: "spatialRegionInfo", components: { spaceIndex: re, whiteCodeList: ve, warningList: Le }, data: function() {
|
||
return { activeName: "spaceIndex" };
|
||
} }, xe = Ce, Ne = Object(k["a"])(xe, i, s, false, null, "b569ba38", null);
|
||
t["default"] = Ne.exports;
|
||
}, e350: function(e, t, a) {
|
||
"use strict";
|
||
a.d(t, "a", (function() {
|
||
return s;
|
||
}));
|
||
var i = a("4360");
|
||
function s(e2) {
|
||
var t2 = i["a"].getters.buttonsPermission;
|
||
return t2[e2];
|
||
}
|
||
}, e3df: function(e, t, a) {
|
||
"use strict";
|
||
a("770a");
|
||
} }]);
|