Files
wysite/output/sourcemaps/hc-pos.sqygj.cn/static/js/chunk-0fbd73b8.1900dbf5.js

147 lines
14 KiB
JavaScript

(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-0fbd73b8"], { "69ec": function(e, t, i) {
}, "70d6": function(e, t, i) {
"use strict";
i.r(t);
var a = function() {
var e2 = this, t2 = e2.$createElement, i2 = e2._self._c || t2;
return i2("div", { staticClass: "app-container bgHeight" }, [i2("div", { ref: "box", staticClass: "searchStys transition_dom" }, [i2("el-form", { ref: "query", attrs: { model: e2.query } }, [i2("div", { ref: "form_box", staticClass: "searchBar" }, [i2("div", { staticClass: "searchInput" }, [i2("el-row", { attrs: { gutter: 20 } }, [i2("el-col", { attrs: { span: 6 } }, [i2("el-form-item", { attrs: { prop: "inTime" } }, [i2("el-date-picker", { attrs: { format: "yyyy-MM-dd", "value-format": "yyyy-MM-dd", type: "date", placeholder: "请选择入驻时间" }, model: { value: e2.query.inTime, callback: function(t3) {
e2.$set(e2.query, "inTime", t3);
}, expression: "query.inTime" } })], 1)], 1), e2._v(" "), i2("el-col", { attrs: { span: 6 } }, [i2("el-form-item", { attrs: { prop: "outTime" } }, [i2("el-date-picker", { attrs: { format: "yyyy-MM-dd", "value-format": "yyyy-MM-dd", type: "date", placeholder: "请选择退租时间" }, model: { value: e2.query.outTime, callback: function(t3) {
e2.$set(e2.query, "outTime", t3);
}, expression: "query.outTime" } })], 1)], 1), e2._v(" "), i2("el-col", { attrs: { span: 6 } }, [i2("el-form-item", { attrs: { prop: "status" } }, [i2("el-select", { attrs: { clearable: "", placeholder: "请选择多经档案状态" }, model: { value: e2.query.status, callback: function(t3) {
e2.$set(e2.query, "status", t3);
}, expression: "query.status" } }, [i2("el-option", { attrs: { label: "启用", value: 1 } }), e2._v(" "), i2("el-option", { attrs: { label: "禁用", value: 2 } })], 1)], 1)], 1)], 1)], 1), e2._v(" "), i2("div", { staticClass: "searchBtn" }, [i2("el-form-item", [i2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) {
return e2.resetForm("query");
} } }, [e2._v("重置")]), e2._v(" "), i2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.onSearch } }, [e2._v("查询")])], 1)], 1)])])], 1), e2._v(" "), i2("el-card", { staticClass: "box-card", attrs: { shadow: "never" } }, [i2("div", { staticClass: "planLst", attrs: { slot: "header" }, slot: "header" }, [i2("span", { staticClass: "planTitle" }, [e2._v("多经档案")]), e2._v(" "), i2("div", [i2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], staticClass: "el-icon-plus", attrs: { type: "primary" }, on: { click: e2.addInfo } }, [e2._v("新建多经档案")])], 1)]), e2._v(" "), i2("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: e2.listLoading, expression: "listLoading" }], attrs: { border: "", data: e2.listTable, "header-cell-style": e2.headClass, "tooltip-effect": "dark" } }, [i2("el-table-column", { attrs: { label: "#", align: "center", "min-width": "50", "show-overflow-tooltip": "", fixed: "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [i2("span", [e2._v(e2._s(t3.$index + (e2.query.pageNumber - 1) * e2.query.pageSize + 1) + "\n ")])];
} }]) }), e2._v(" "), i2("el-table-column", { attrs: { align: "center", "min-width": "180", "show-overflow-tooltip": "", label: "多经名称", fixed: "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [i2("span", [e2._v(e2._s(t3.row.deviceName || "-"))])];
} }]) }), e2._v(" "), i2("el-table-column", { attrs: { align: "center", "min-width": "100", label: "功率", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [i2("span", [e2._v(e2._s(t3.row.devicePower || "-"))])];
} }]) }), e2._v(" "), i2("el-table-column", { attrs: { align: "center", "min-width": "140", label: "入驻时间", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [i2("span", [e2._v(e2._s(t3.row.inTime || "-"))])];
} }]) }), e2._v(" "), i2("el-table-column", { attrs: { align: "center", "min-width": "140", label: "退租时间", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [i2("span", [e2._v(e2._s(t3.row.outTime || "-"))])];
} }]) }), e2._v(" "), i2("el-table-column", { attrs: { align: "center", "min-width": "60", label: "状态", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [i2("span", [e2._v(e2._s(1 == t3.row.status ? "启用" : "禁用"))])];
} }]) }), e2._v(" "), i2("el-table-column", { attrs: { align: "center", "min-width": "100", label: "更新人", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [i2("span", [e2._v(e2._s(t3.row.updaterName || "-"))])];
} }]) }), e2._v(" "), i2("el-table-column", { attrs: { align: "center", "min-width": "160", label: "更新时间", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [i2("span", [e2._v(e2._s(t3.row.updateTime || "-"))])];
} }]) }), e2._v(" "), i2("el-table-column", { attrs: { label: "操作", align: "center", "min-width": "150" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [i2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: function(i3) {
return e2.editClick(t3.row);
} } }, [e2._v("编辑")]), e2._v(" "), i2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: function(i3) {
return e2.changeStatus(t3.row);
} } }, [e2._v(e2._s(1 == t3.row.status ? "禁用" : "启用"))])];
} }]) })], 1), e2._v(" "), i2("div", { staticClass: "paginations" }, [i2("el-pagination", { attrs: { background: "", "current-page": e2.query.pageNumber, "page-sizes": [10, 30, 50, 100, 200], "page-size": e2.query.pageSize, layout: "total, sizes, prev, pager, next, jumper", total: e2.pageTotal }, on: { "update:currentPage": function(t3) {
return e2.$set(e2.query, "pageNumber", t3);
}, "update:current-page": function(t3) {
return e2.$set(e2.query, "pageNumber", t3);
}, "size-change": e2.handleSizeChange, "current-change": e2.handleCurrentChange } })], 1)], 1), e2._v(" "), i2("el-dialog", { attrs: { visible: e2.dialogVisible, "modal-append-to-body": true, "append-to-body": true, "close-on-click-modal": false, "close-on-press-escape": false, "destroy-on-close": true, width: "30%", title: e2.dialogTitle }, on: { "update:visible": function(t3) {
e2.dialogVisible = t3;
}, closed: function(t3) {
return e2.closeDialog("form");
} } }, [i2("el-form", { ref: "form", attrs: { model: e2.form, rules: e2.rules, "label-width": "110px" } }, [i2("el-form-item", { attrs: { prop: "deviceName", label: "多经名称" } }, [i2("el-input", { staticStyle: { width: "220px" }, attrs: { placeholder: "请输入多经设备名称" }, model: { value: e2.form.deviceName, callback: function(t3) {
e2.$set(e2.form, "deviceName", t3);
}, expression: "form.deviceName" } })], 1), e2._v(" "), i2("el-form-item", { attrs: { label: "功率", prop: "devicePower" } }, [i2("el-input-number", { attrs: { "controls-position": "right", min: 1 }, model: { value: e2.form.devicePower, callback: function(t3) {
e2.$set(e2.form, "devicePower", t3);
}, expression: "form.devicePower" } })], 1), e2._v(" "), i2("el-form-item", { attrs: { label: "入驻时间", prop: "inTime" } }, [i2("el-date-picker", { attrs: { format: "yyyy-MM-dd", "value-format": "yyyy-MM-dd", type: "date", placeholder: "请选择入驻时间" }, model: { value: e2.form.inTime, callback: function(t3) {
e2.$set(e2.form, "inTime", t3);
}, expression: "form.inTime" } })], 1), e2._v(" "), i2("el-form-item", { attrs: { label: "退租时间", prop: "outTime" } }, [i2("el-date-picker", { attrs: { format: "yyyy-MM-dd", "value-format": "yyyy-MM-dd", type: "date", placeholder: "请选择退租时间" }, model: { value: e2.form.outTime, callback: function(t3) {
e2.$set(e2.form, "outTime", t3);
}, expression: "form.outTime" } })], 1), e2._v(" "), i2("el-form-item", [i2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) {
return e2.closeDialog("form");
} } }, [e2._v("取 消")]), e2._v(" "), "更新多经档案" === e2.dialogTitle ? i2("el-button", { attrs: { type: "primary", loading: e2.btnLoading }, on: { click: function(t3) {
return e2.update("form");
} } }, [e2._v("保 存")]) : e2._e(), e2._v(" "), "新增多经档案" === e2.dialogTitle ? i2("el-button", { attrs: { type: "primary", loading: e2.btnLoading }, on: { click: function(t3) {
return e2.onSubmit("form");
} } }, [e2._v("新 增")]) : e2._e()], 1)], 1)], 1)], 1);
}, o = [], r = i("b775");
function n(e2) {
return Object(r["a"])({ url: "/appproject/MultipathDevice/pageList", method: "POST", data: e2 });
}
function s(e2) {
return Object(r["a"])({ url: "/appproject/MultipathDevice/update", method: "POST", data: e2 });
}
function l(e2) {
return Object(r["a"])({ url: "appproject/MultipathDevice/delete", method: "POST", data: e2 });
}
function u(e2) {
return Object(r["a"])({ url: "appproject/MultipathDevice/create", method: "POST", data: e2 });
}
var c = { components: {}, data: function() {
return { pageTotal: 0, listLoading: false, btnLoading: false, queryTime: "", listTable: [], query: { pageNumber: 1, pageSize: 10, inTime: "", outTime: "", status: "" }, dialogVisible: false, dialogTitle: "新增多经档案", form: { deviceName: "", devicePower: 1, inTime: "", outTime: "" }, rules: { deviceName: [{ required: true, message: "请输入多经设备名称", trigger: "blur" }], devicePower: [{ required: true, message: "请输入功率", trigger: "blur" }], inTime: [{ required: true, message: "请选择入驻时间", trigger: "change" }] } };
}, created: function() {
this.getlistData(), this.headClass();
}, mounted: function() {
}, methods: { onSubmit: function(e2) {
var t2 = this;
this.$refs[e2].validate((function(i2) {
if (i2) {
t2.btnLoading = true;
var a2 = { deviceName: t2.form.deviceName, devicePower: t2.form.devicePower, inTime: t2.form.inTime, outTime: t2.form.outTime, creatorName: t2.$store.state.user.userInfo.memberName, projectUuid: t2.$store.state.community_uuid, projectName: t2.$store.state.community_name };
u(a2).then((function(i3) {
0 == i3.code && (t2.$message({ message: "新增成功", type: "success" }), t2.getlistData(), t2.closeDialog(e2), t2.btnLoading = false);
})).catch((function(e3) {
t2.btnLoading = false;
}));
} else t2.btnLoading = false;
}));
}, update: function(e2) {
var t2 = this;
this.$refs[e2].validate((function(i2) {
if (i2) {
t2.btnLoading = true;
var a2 = { deviceName: t2.form.deviceName, devicePower: t2.form.devicePower, inTime: t2.form.inTime, outTime: t2.form.outTime, id: t2.form.id, updaterName: t2.$store.state.user.userInfo.memberName };
s(a2).then((function(i3) {
0 == i3.code && (t2.$message({ message: "更新成功", type: "success" }), t2.getlistData(), t2.closeDialog(e2), t2.btnLoading = false);
})).catch((function(e3) {
t2.btnLoading = false;
}));
} else t2.btnLoading = false;
}));
}, deleteItem: function(e2) {
var t2 = this;
this.$confirm("确认要删除掉这条多经档案数据吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then((function() {
l({ id: e2.id }).then((function(e3) {
0 == e3.code && (t2.getlistData(), t2.$message({ type: "success", message: "删除成功!" }));
}));
})).catch((function() {
t2.$message({ type: "info", message: "已取消删除" });
}));
}, closeDialog: function(e2) {
this.form.deviceName = "", this.form.devicePower = 1, this.form.inTime = "", this.form.outTime = "", this.dialogVisible = false, this.getlistData();
}, addInfo: function() {
this.dialogTitle = "新增多经档案", this.dialogVisible = true;
}, changeStatus: function(e2) {
var t2 = this, i2 = { id: e2.id, status: 1 == e2.status ? 0 : 1, updaterName: this.$store.state.user.userInfo.memberName };
s(i2).then((function(e3) {
0 == e3.code && (t2.$message({ message: "更新成功", type: "success" }), t2.getlistData());
}));
}, editClick: function(e2) {
this.dialogTitle = "更新多经档案", this.form.deviceName = e2.deviceName, this.form.devicePower = e2.devicePower, this.form.inTime = e2.inTime, this.form.outTime = e2.outTime, this.form.id = e2.id, this.dialogVisible = true;
}, getlistData: function() {
var e2 = this;
this.listLoading = true, this.query.projectUuid = this.$store.state.community_uuid, n(this.query).then((function(t2) {
t2 && t2.data && (e2.listTable = t2.data.records, e2.pageTotal = t2.data.rowsCount);
})), this.listLoading = false;
}, onSearch: function() {
this.query.pageNumber = 1, this.getlistData();
}, handleSizeChange: function(e2) {
this.query.pageSize = e2, this.getlistData();
}, handleCurrentChange: function(e2) {
this.query.pageNumber = e2, this.getlistData();
}, resetForm: function(e2) {
this.query.status = "", this.$refs[e2].resetFields(), this.getlistData();
}, handleSlow: function() {
this.isShow = !this.isShow;
}, headClass: function() {
return "text-align:center;background:#FAFAFA;";
} } }, d = c, m = (i("c170"), i("829d")), p = Object(m["a"])(d, a, o, false, null, "b877842a", null);
t["default"] = p.exports;
}, c170: function(e, t, i) {
"use strict";
i("69ec");
} }]);