Files
wysite/output/sourcemaps/hc-pos.sqygj.cn/static/js/chunk-cebcf6ce.72f95c51.js

734 lines
64 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-cebcf6ce"], { "00b6": function(e, t, a) {
"use strict";
a.d(t, "l", (function() {
return i;
})), a.d(t, "i", (function() {
return s;
})), a.d(t, "h", (function() {
return n;
})), a.d(t, "k", (function() {
return r;
})), a.d(t, "m", (function() {
return o;
})), a.d(t, "o", (function() {
return u;
})), a.d(t, "j", (function() {
return c;
})), a.d(t, "n", (function() {
return d;
})), a.d(t, "c", (function() {
return v;
})), a.d(t, "a", (function() {
return p;
})), a.d(t, "d", (function() {
return b;
})), a.d(t, "b", (function() {
return h;
})), a.d(t, "g", (function() {
return m;
})), a.d(t, "f", (function() {
return g;
})), a.d(t, "e", (function() {
return f;
}));
var l = a("b775");
function i(e2) {
return Object(l["a"])({ url: "/question/Theme/pageList", method: "post", data: e2 });
}
function s(e2) {
return Object(l["a"])({ url: "/appproject/Question/theme/delete", method: "post", data: e2 });
}
function n(e2) {
return Object(l["a"])({ url: "/appproject/Question/theme/create", method: "post", data: e2 });
}
function r(e2) {
return Object(l["a"])({ url: "/appproject/Question/questions/delete", method: "post", data: e2 });
}
function o(e2) {
return Object(l["a"])({ url: "/appproject/Question/option/delete", method: "post", data: e2 });
}
function u(e2) {
return Object(l["a"])({ url: "/appproject/Question/theme/update", method: "post", data: e2 });
}
function c(e2) {
return Object(l["a"])({ url: "/appproject/Question/theme/findById", method: "post", data: e2 });
}
function d(e2) {
return Object(l["a"])({ url: "/question/Theme/total", method: "post", data: e2 });
}
function v(e2) {
return Object(l["a"])({ url: "/project/Precinct/listPrecinctByCodes", method: "post", data: e2 });
}
function p(e2) {
return Object(l["a"])({ url: "/appproject/building/listBuildByCodes", method: "post", data: e2 });
}
function b(e2) {
return Object(l["a"])({ url: "/project/unit/listUnitByCodes", method: "post", data: e2 });
}
function h(e2) {
return Object(l["a"])({ url: "/appproject/house/listHouseByCodes", method: "post", data: e2 });
}
function m(e2) {
return Object(l["a"])({ url: "/appproject/Question/pageList", method: "post", data: e2 });
}
function g(e2) {
return Object(l["a"])({ url: "/appproject/Question/getOptions", method: "post", data: e2 });
}
function f(e2) {
return Object(l["a"])({ url: "/appproject/Question/answerPageList", method: "post", data: e2 });
}
}, "06f2": function(e, t, a) {
"use strict";
a("a85d");
}, "0b37": function(e, t, a) {
"use strict";
function l(e2, t2) {
var a2, l2, i2, s2;
try {
a2 = e2.toString().split(".")[1].length;
} catch (r2) {
a2 = 0;
}
try {
l2 = t2.toString().split(".")[1].length;
} catch (r2) {
l2 = 0;
}
if (s2 = Math.abs(a2 - l2), i2 = Math.pow(10, Math.max(a2, l2)), s2 > 0) {
var n2 = Math.pow(10, s2);
a2 > l2 ? (e2 = Number(e2.toString().replace(".", "")), t2 = Number(t2.toString().replace(".", "")) * n2) : (e2 = Number(e2.toString().replace(".", "")) * n2, t2 = Number(t2.toString().replace(".", "")));
} else e2 = Number(e2.toString().replace(".", "")), t2 = Number(t2.toString().replace(".", ""));
return (e2 + t2) / i2;
}
function i(e2, t2) {
var a2, l2, i2 = 0, s2 = 0;
try {
i2 = e2.toString().split(".")[1].length;
} catch (n2) {
}
try {
s2 = t2.toString().split(".")[1].length;
} catch (n2) {
}
return a2 = Number(e2.toString().replace(".", "")), l2 = Number(t2.toString().replace(".", "")), a2 / l2 * Math.pow(10, s2 - i2);
}
function s(e2, t2) {
var a2 = 0, l2 = e2.toString(), i2 = t2.toString();
try {
a2 += l2.split(".")[1].length;
} catch (s2) {
}
try {
a2 += i2.split(".")[1].length;
} catch (s2) {
}
return Number(l2.replace(".", "")) * Number(i2.replace(".", "")) / Math.pow(10, a2);
}
function n(e2, t2) {
var a2, l2, i2, s2;
try {
a2 = e2.toString().split(".")[1].length;
} catch (n2) {
a2 = 0;
}
try {
l2 = t2.toString().split(".")[1].length;
} catch (n2) {
l2 = 0;
}
return i2 = Math.pow(10, Math.max(a2, l2)), s2 = a2 >= l2 ? a2 : l2, (Math.round(e2 * i2 - t2 * i2) / i2).toFixed(s2);
}
function r(e2, t2) {
if (0 == e2 && (e2 = 0), /[^[\-|0-9][0-9]*]/.test(e2)) return "0";
if (null == e2 || "" === e2) return "";
e2 = e2.toString().replace(/^(-\d*)$/, "$1."), e2 = e2.toString().replace(/^(\d*)$/, "$1."), e2 = (e2 + "00").replace(/(\d*\.\d\d)\d*/, "$1"), e2 = e2.replace(".", ",");
var a2 = /(\d)(\d{3},)/;
while (a2.test(e2)) e2 = e2.replace(a2, "$1,$2");
if (e2 = e2.replace(/,(\d\d)$/, ".$1"), 0 === t2 || void 0 === t2) {
var l2 = e2.split(".");
"00" == l2[1] && (e2 = l2[0]);
}
return e2;
}
function o(e2, t2) {
e2 = e2.toString();
var a2 = e2.indexOf(".");
return e2 = -1 !== a2 ? e2.substring(0, t2 + a2 + 1) : e2.substring(0), parseFloat(e2).toFixed(t2);
}
function u(e2) {
var t2 = Object.prototype.toString.call(e2).slice(8, -1);
return "Null" === t2 ? "Null" : "Undefined" === t2 ? "Undefined" : t2;
}
function c(e2) {
var t2, a2 = u(e2);
if ("Object" === a2) t2 = {};
else {
if ("Array" !== a2) return e2;
t2 = [];
}
for (var l2 in e2) {
var i2 = e2[l2];
u(i2), t2[l2] = c(i2);
}
return t2;
}
a.d(t, "a", (function() {
return l;
})), a.d(t, "b", (function() {
return i;
})), a.d(t, "c", (function() {
return s;
})), a.d(t, "d", (function() {
return n;
})), a.d(t, "g", (function() {
return r;
})), a.d(t, "f", (function() {
return o;
})), a.d(t, "e", (function() {
return c;
}));
}, 24521: function(e, t, a) {
"use strict";
a("4573");
}, "310f": function(e, t, a) {
"use strict";
var l = function() {
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
return a2("div", { staticClass: "ruleGroupInfo" }, [a2("el-card", { staticClass: "box-card" }, [a2("el-page-header", { attrs: { content: e2.content }, on: { back: e2.goBack } }), e2._v(" "), a2("div", { staticClass: "rule typeface" }, [e2._v("投票设置")]), e2._v(" "), a2("div", { staticClass: "vote-form" }, [a2("el-form", { ref: "ruleForm", staticClass: "demo-ruleForm", attrs: { model: e2.ruleForm, rules: e2.rules, "label-width": "130px" } }, [a2("el-row", [a2("el-col", { attrs: { span: 12 } }, [a2("el-form-item", { attrs: { label: "投票主题:", prop: "title" } }, [a2("el-input", { attrs: { disabled: e2.disabled, placeholder: "请输入投票主题", maxlength: "128", "show-word-limit": "" }, model: { value: e2.ruleForm.title, callback: function(t3) {
e2.$set(e2.ruleForm, "title", "string" === typeof t3 ? t3.trim() : t3);
}, expression: "ruleForm.title" } })], 1)], 1)], 1), e2._v(" "), a2("el-row", [a2("el-form-item", { attrs: { label: "截止日期", required: "" } }, [a2("el-col", { attrs: { span: 4 } }, [a2("el-form-item", { attrs: { prop: "expiryDate" } }, [a2("el-date-picker", { staticStyle: { width: "100%" }, attrs: { type: "date", disabled: e2.disabled, format: "yyyy-MM-dd", "value-format": "yyyy-MM-dd", "picker-options": e2.pickerOptions, placeholder: "选择投票截止日期" }, model: { value: e2.ruleForm.expiryDate, callback: function(t3) {
e2.$set(e2.ruleForm, "expiryDate", t3);
}, expression: "ruleForm.expiryDate" } })], 1)], 1), e2._v(" "), a2("el-col", { staticClass: "line", attrs: { span: 1 } }, [e2._v("-")]), e2._v(" "), a2("el-col", { attrs: { span: 4 } }, [a2("el-form-item", { attrs: { prop: "dateTime" } }, [a2("el-time-picker", { staticStyle: { width: "100%" }, attrs: { placeholder: "选择时间", disabled: e2.disabled, "value-format": "HH:mm:ss", format: "HH:mm:ss" }, model: { value: e2.ruleForm.dateTime, callback: function(t3) {
e2.$set(e2.ruleForm, "dateTime", t3);
}, expression: "ruleForm.dateTime" } })], 1)], 1)], 1)], 1), e2._v(" "), a2("el-row", [a2("el-col", [a2("el-form-item", { attrs: { label: "投票说明:", prop: "remarks" } }, [a2("el-input", { attrs: { type: "textarea", disabled: e2.disabled, rows: "5", placeholder: "请输入投票说明", maxlength: "300", "show-word-limit": "" }, model: { value: e2.ruleForm.remarks, callback: function(t3) {
e2.$set(e2.ruleForm, "remarks", "string" === typeof t3 ? t3.trim() : t3);
}, expression: "ruleForm.remarks" } })], 1)], 1)], 1), e2._v(" "), a2("el-row", [a2("el-col", [a2("el-form-item", { staticClass: "is-required", attrs: { label: "适用范围:", prop: "itemsProject" } }, [a2("div", { staticClass: "vote-projects" }, [e2._l(e2.rangeList, (function(t3, l2) {
return t3.children.length > 0 ? a2("div", { key: l2, staticClass: "vote-projects-items" }, [a2("div", { staticClass: "projects-list" }, [a2("label", { staticClass: "projects-list-item-title" }, [e2._v(e2._s(t3.name) + ":")]), e2._v(" "), a2("el-checkbox", { staticClass: "projects-checkAll", attrs: { disabled: 0 === l2 || e2.disabled, indeterminate: t3.isIndeterminate }, on: { change: function(t4) {
return e2.handleCheckAllChange(t4, l2);
} }, model: { value: t3.checkAll, callback: function(a3) {
e2.$set(t3, "checkAll", a3);
}, expression: "r.checkAll" } }, [e2._v("全选")])], 1), e2._v(" "), a2("div", { staticClass: "projects-checkbox" }, [a2("el-checkbox-group", { staticClass: "projects-checkbox-checkbox", style: { height: t3.show ? "auto" : t3.children.length > 5 ? "80px" : "40px" }, attrs: { disabled: 0 === l2 || e2.disabled }, on: { change: function(t4) {
return e2.handleCheckedCitiesChange(t4, l2);
} }, model: { value: t3.select, callback: function(a3) {
e2.$set(t3, "select", a3);
}, expression: "r.select" } }, e2._l(t3.children, (function(t4) {
return a2("el-checkbox", { key: 0 === l2 ? t4.uuid : t4.id, staticClass: "projects-checkbox-item", attrs: { label: 0 === l2 ? t4.uuid : t4.id } }, [e2._v(e2._s(4 === l2 ? t4.roomNum : t4.name))]);
})), 1), e2._v(" "), t3.children.length > 10 ? a2("el-button", { staticClass: "projects-show", attrs: { type: "primary", icon: t3.show ? "el-icon-arrow-up" : "el-icon-arrow-down", size: "mini" }, on: { click: function(t4) {
return e2.showSelects(l2);
} } }, [e2._v(e2._s(t3.show ? "收缩" : "展开"))]) : e2._e()], 1)]) : e2._e();
})), e2._v(" "), a2("div", { staticClass: "vote-projects-items" }, [a2("div", { staticClass: "projects-list projects-list-radio" }, [a2("label", { staticClass: "projects-list-item-title" }, [e2._v("选择身份:")]), e2._v(" "), a2("el-radio-group", { staticClass: "projects-checkAll", attrs: { disabled: e2.disabled }, model: { value: e2.identity, callback: function(t3) {
e2.identity = t3;
}, expression: "identity" } }, [a2("el-radio", { attrs: { label: 1 } }, [e2._v("所有人")]), e2._v(" "), a2("el-radio", { attrs: { label: 2 } }, [e2._v("住户")]), e2._v(" "), a2("el-radio", { attrs: { label: 3 } }, [e2._v("产权人")])], 1)], 1)])], 2)])], 1)], 1), e2._v(" "), a2("el-row", [a2("el-col", [a2("el-form-item", { attrs: { label: "是否匿名:", prop: "isAnonymous" } }, [a2("el-radio", { attrs: { label: 1, disabled: e2.disabled }, model: { value: e2.ruleForm.isAnonymous, callback: function(t3) {
e2.$set(e2.ruleForm, "isAnonymous", t3);
}, expression: "ruleForm.isAnonymous" } }, [e2._v("是")]), e2._v(" "), a2("el-radio", { attrs: { label: 2, disabled: e2.disabled }, model: { value: e2.ruleForm.isAnonymous, callback: function(t3) {
e2.$set(e2.ruleForm, "isAnonymous", t3);
}, expression: "ruleForm.isAnonymous" } }, [e2._v("否")])], 1)], 1)], 1)], 1)], 1), e2._v(" "), a2("div", { staticClass: "rule typeface" }, [e2._v("投票选项")]), e2._v(" "), a2("div", { staticClass: "vote-questions" }, [e2.questionsList.length > 0 ? a2("div", { staticClass: "vote-questions-list" }, [a2("draggable", { staticClass: "dragArea", attrs: { list: e2.questionsList, group: "article", animation: "10", disabled: "view" === e2.type }, on: { sort: e2.draggableSort, end: e2.draggableEnd } }, e2._l(e2.questionsList, (function(t3, l2) {
return a2("div", { key: l2, staticClass: "vote-questions-item" }, [a2("div", { staticClass: "vote-questions-item-index" }, [e2._v("问题" + e2._s(l2 + 1))]), e2._v(" "), a2("div", { staticClass: "vote-questions-item-detl" }, [a2("el-row", [a2("el-col", { attrs: { span: 2, offset: 1 } }, [a2("span", { staticClass: "item-detl-title" }, [e2._v("标题")])]), e2._v(" "), a2("el-col", { attrs: { span: 10 } }, [a2("el-input", { staticClass: "options-input", attrs: { type: "text", disabled: e2.disabled, placeholder: "请输入该项题目标题", "show-word-limit": "", maxlength: "128" }, model: { value: t3.title, callback: function(a3) {
e2.$set(t3, "title", "string" === typeof a3 ? a3.trim() : a3);
}, expression: "item.title" } })], 1)], 1), e2._v(" "), a2("div", { directives: [{ name: "show", rawName: "v-show", value: t3.show, expression: "item.show" }] }, [a2("el-row", [a2("el-col", { attrs: { span: 2, offset: 1 } }, [a2("span", { staticClass: "item-detl-title" }, [e2._v("题型")])]), e2._v(" "), a2("el-col", { attrs: { span: 20 } }, [a2("el-radio-group", { staticClass: "questionsType", attrs: { disabled: void 0 != t3.id && "edit" === e2.type || e2.disabled }, on: { change: function(t4) {
return e2.questionsTypeChange(t4, l2);
} }, model: { value: t3.type, callback: function(a3) {
e2.$set(t3, "type", a3);
}, expression: "item.type" } }, [a2("el-radio", { attrs: { label: 1 } }, [e2._v("单选")]), e2._v(" "), a2("el-radio", { attrs: { label: 2 } }, [e2._v("多选")]), e2._v(" "), a2("el-radio", { attrs: { label: 3 } }, [e2._v("填写")])], 1)], 1)], 1), e2._v(" "), e2._l(t3.questionOptionRelaList, (function(i2, s2) {
return a2("div", { key: s2 }, [1 === t3.type || 2 === t3.type ? a2("el-row", { staticClass: "options-box" }, [a2("el-col", { attrs: { span: 2, offset: 1 } }, [a2("span", { staticClass: "item-detl-title" }, [e2._v("选项" + e2._s(s2 + 1))])]), e2._v(" "), a2("el-col", { attrs: { span: 10 } }, [a2("el-input", { staticClass: "options-input", attrs: { disabled: e2.disabled, type: "text", placeholder: "请输入该选项内容", "show-word-limit": "", maxlength: "128" }, model: { value: i2.name, callback: function(t4) {
e2.$set(i2, "name", "string" === typeof t4 ? t4.trim() : t4);
}, expression: "op.name" } })], 1), e2._v(" "), a2("el-col", { attrs: { span: 3 } }, [a2("uploadOss", { staticClass: "upload-img", attrs: { disabled: e2.disabled, imgStore: e2.imgStore, isShowFileList: false, listType: e2.listType }, model: { value: i2.imageUrl, callback: function(t4) {
e2.$set(i2, "imageUrl", t4);
}, expression: "op.imageUrl" } })], 1), e2._v(" "), a2("el-col", { attrs: { span: 1, offset: 1 } }, [s2 < t3.questionOptionRelaList.length - 1 ? a2("el-button", { attrs: { disabled: e2.disabled, type: "primary", icon: "el-icon-delete", size: "mini" }, on: { click: function(t4) {
return e2.deleteOptions(l2, s2);
} } }) : e2._e(), e2._v(" "), s2 === t3.questionOptionRelaList.length - 1 ? a2("el-button", { attrs: { disabled: e2.disabled, type: "primary", icon: "el-icon-circle-plus-outline", size: "mini" }, on: { click: function(t4) {
return e2.addOptions(l2, s2);
} } }) : e2._e()], 1)], 1) : e2._e()], 1);
}))], 2)], 1), e2._v(" "), a2("el-button", { staticClass: "qt-show", style: { right: e2.questionsList.length > 1 ? "80px" : "30px" }, attrs: { type: "primary", icon: t3.show ? "el-icon-arrow-up" : "el-icon-arrow-down", size: "mini" }, on: { click: function(t4) {
return e2.showQuestions(l2);
} } }, [e2._v(e2._s(t3.show ? "收缩" : "展开"))]), e2._v(" "), e2.questionsList.length > 1 ? a2("el-button", { staticClass: "qt-delete", attrs: { disabled: e2.disabled, type: "primary", icon: "el-icon-delete", size: "mini" }, on: { click: function(t4) {
return e2.deleteQuestions(l2);
} } }) : e2._e()], 1);
})), 0)], 1) : a2("div", { staticClass: "vote-none-questions" }, [e2._v("暂无投票内容,请点击左下方“添加问题”按钮添加投票内容")]), e2._v(" "), a2("div", { staticClass: "add-questions" }, [a2("el-dropdown", { on: { command: e2.handleCommand } }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary", size: "small", disabled: e2.disabled } }, [e2._v("\n 添加问题"), a2("i", { staticClass: "el-icon-arrow-down el-icon--right" })]), e2._v(" "), a2("el-dropdown-menu", { attrs: { slot: "dropdown" }, slot: "dropdown" }, [a2("el-dropdown-item", { attrs: { command: 1, disabled: e2.disabled } }, [e2._v("单选")]), e2._v(" "), a2("el-dropdown-item", { attrs: { command: 2, disabled: e2.disabled } }, [e2._v("多选")]), e2._v(" "), a2("el-dropdown-item", { attrs: { command: 3, disabled: e2.disabled } }, [e2._v("填写")])], 1)], 1)], 1)]), e2._v(" "), a2("div", { staticClass: "vote-submit-options" }, [a2("el-button", { attrs: { size: "small" }, on: { click: e2.cancel } }, [e2._v("取消")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 1500, expression: "1500" }], attrs: { type: "primary", size: "small", disabled: e2.disabled, loading: e2.saveLoading }, on: { click: e2.save } }, [e2._v("保存")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 1500, expression: "1500" }], attrs: { type: "primary", size: "small", disabled: e2.disabled, loading: e2.publishLoading }, on: { click: e2.publish } }, [e2._v("发布")])], 1)], 1)], 1);
}, i = [], s = a("00b6"), n = a("cc57"), r = a("8ecb"), o = a.n(r), u = { components: { draggable: o.a, uploadOss: n["a"] }, props: { type: { type: String, default: "" } }, data: function() {
return { listType: "picture-card", imgStore: "vote/", content: "新建投票", rangeList: [{ name: "选择小区", show: false, checkAll: true, isIndeterminate: false, select: [], children: [] }, { name: "选择管理区", show: false, checkAll: true, isIndeterminate: false, select: [], children: [] }, { name: "选择楼栋", show: false, checkAll: true, isIndeterminate: false, select: [], children: [] }, { name: "选择单元", show: false, checkAll: true, isIndeterminate: false, select: [], children: [] }, { name: "选择房间", show: false, checkAll: true, isIndeterminate: false, select: [], children: [] }], identity: 1, pickerOptions: { disabledDate: function(e2) {
return e2.getTime() < Date.now();
} }, ruleForm: { title: "", expiryDate: null, dateTime: null, remarks: "", isAnonymous: 1 }, rules: { title: [{ required: true, message: "请输入投票主题", trigger: "blur" }], expiryDate: [{ required: true, message: "请选择日期", trigger: "change" }], dateTime: [{ required: true, message: "请选择时间", trigger: "change" }] }, pages: 1, totalPage: 1, questionId: 0, questionTitle: "标题", questionsList: [{ show: true, title: "", type: 1, sortNumber: 1, questionOptionRelaList: [{ name: "", imageUrl: "" }, { name: "", imageUrl: "" }, { name: "", imageUrl: "" }, { name: "", imageUrl: "" }] }], sortNumber: 1, reviewThemeProject: {}, disabled: false, saveLoading: false, publishLoading: false };
}, mounted: function() {
}, methods: { getInfoLst: function(e2) {
void 0 != e2 && e2.id && (this.questionId = e2.id), this.getProjectInfo(), this.content = "add" === this.type ? "新建投票" : "编辑投票", "view" === this.type || "edit" === this.type ? "view" === this.type ? this.disabled = true : this.disabled = false : this.type;
}, getQuestionFindById: function(e2) {
var t2 = this;
Object(s["j"])({ id: e2 }).then((function(e3) {
if (0 === e3.code && e3.data) {
var a2 = e3.data, l2 = a2.title, i2 = a2.endDate, s2 = a2.isAnonymous, n2 = a2.remarks, r2 = a2.questionsRespDTOList, o2 = a2.themeProjectRelaRespDTO;
t2.ruleForm = { title: l2, expiryDate: i2.substring(0, 10), isAnonymous: s2, remarks: n2, dateTime: i2.substring(11, i2.length) };
var u2 = [];
r2.map((function(e4) {
var t3 = [], a3 = e4.id, l3 = e4.title, i3 = e4.type, s3 = e4.themeId, n3 = e4.sortNumber;
e4.questionOptionRelaRespDTOList.map((function(e5) {
var a4 = e5.id, l4 = e5.name, i4 = e5.imageUrl, s4 = e5.questionsId;
t3.push({ id: a4, name: l4, imageUrl: i4, questionsId: s4 });
})), u2.push({ id: a3, title: l3, type: i3, themeId: s3, questionOptionRelaList: t3, show: true, sortNumber: n3 });
})), t2.reviewRangeList(o2), t2.questionsList = u2;
}
}));
}, reviewRangeList: function(e2) {
var t2 = e2.projectUuid, a2 = e2.precinctId, l2 = e2.buildingId, i2 = e2.unitId, s2 = e2.houseId, n2 = e2.identity, r2 = e2.id, o2 = e2.themeId;
if (this.reviewThemeProject = { projectUuid: t2, precinctId: a2, buildingId: l2, unitId: i2, houseId: s2, id: r2, themeId: o2 }, this.identity = n2, t2.indexOf(",") > 0) {
var u2 = t2.split(",");
this.rangeList[0].select = u2, u2.length === this.rangeList[0].children.length ? (this.rangeList[0].checkAll = true, this.rangeList[0].isIndeterminate = false) : (this.rangeList[0].checkAll = false, this.rangeList[0].isIndeterminate = true);
} else this.$set(this.rangeList[0], "checkAll", false), this.$set(this.rangeList[0], "isIndeterminate", true), this.$set(this.rangeList[0], "select", [t2]), a2.length > 0 && this.getPrecinctList();
}, getProjectInfo: function() {
var e2 = this, t2 = this.$store.state.user.project;
this.rangeList[0].children = t2.filter((function(t3) {
return t3.uuid == e2.$store.state.community_uuid;
})), "view" === this.type || "edit" === this.type ? (this.rangeList[0].select = [], this.getQuestionFindById(this.questionId)) : "add" === this.type && (this.rangeList[0].select = this.rangeList[0].children.length > 0 ? this.rangeList[0].children.map((function(e3) {
return e3["uuid"];
})) : []), 1 === this.rangeList[0].children.length && this.getPrecinctList();
}, handleCheckAllChange: function(e2, t2) {
var a2 = this;
console.log("handleCheckAllChange-val", e2), console.log("handleCheckAllChange-type", t2);
var l2 = 0 === t2 ? "uuid" : "id", i2 = e2 ? this.rangeList[t2].children.map((function(e3) {
return e3[l2];
})) : [];
console.log("handleCheckAllChange-list", i2), this.$nextTick((function() {
a2.$set(a2.rangeList[t2], "select", i2), a2.$set(a2.rangeList[t2], "isIndeterminate", false), e2 ? 1 === t2 ? a2.getbuildingList() : 2 === t2 ? a2.getUnitList() : 3 === t2 && console.log("房屋全选无需更新房屋列表") : a2.clearItemArr(t2);
}));
}, handleCheckedCitiesChange: function(e2, t2) {
var a2 = e2.length;
this.rangeList[t2].checkAll = a2 === this.rangeList[t2].children.length, this.rangeList[t2].isIndeterminate = a2 > 0 && a2 < this.rangeList[t2].children.length, 0 === t2 ? this.getPrecinctList() : 1 === t2 ? this.getbuildingList() : 2 === t2 ? this.getUnitList() : 3 === t2 && this.getHouseList();
}, clearItemArr: function(e2) {
this.rangeList.map((function(t2, a2) {
a2 > e2 && (t2.checkAll = true, t2.isIndeterminate = false, t2.select = [], t2.children = []);
}));
}, getPrecinctList: function() {
var e2 = this;
if (0 === this.rangeList[0].select.length) return false;
Object(s["c"])({ projectUuidS: this.rangeList[0].select }).then((function(t2) {
if (0 === t2.code && t2.data) {
var a2 = t2.data;
if (e2.$set(e2.rangeList[1], "children", a2), "view" === e2.type || "edit" === e2.type) {
var l2 = e2.reviewThemeProject, i2 = l2.precinctId, s2 = l2.buildingId;
if (i2.indexOf(",") > 0) {
var n2 = i2.split(",").map(Number);
e2.rangeList[1].select = n2, n2.length === e2.rangeList[1].children.length ? (e2.rangeList[1].checkAll = true, e2.rangeList[1].isIndeterminate = false) : (e2.rangeList[1].checkAll = false, e2.rangeList[1].isIndeterminate = true);
} else e2.rangeList[1].select = i2 ? [Number(i2)] : [], e2.rangeList[1].checkAll = false, e2.rangeList[1].isIndeterminate = true, s2.length > 0 ? e2.getbuildingList() : (e2.rangeList[1].checkAll = true, e2.rangeList[1].isIndeterminate = false, e2.rangeList[1].select = a2.length > 0 ? a2.map((function(e3) {
return e3["id"];
})) : []);
} else "add" === e2.type && (e2.rangeList[1].select = a2.length > 0 ? a2.map((function(e3) {
return e3["id"];
})) : []);
e2.getbuildingList();
}
}));
}, getbuildingList: function() {
var e2 = this;
if (console.log("1111"), 0 === this.rangeList[1].select.length) return false;
Object(s["a"])({ projectUuidS: this.rangeList[0].select, precinctId: this.rangeList[1].select }).then((function(t2) {
if (0 === t2.code && t2.data) {
var a2 = t2.data;
if (e2.$set(e2.rangeList[2], "children", a2), "view" === e2.type || "edit" === e2.type) {
var l2 = e2.reviewThemeProject, i2 = l2.buildingId, s2 = l2.unitId;
if (i2.indexOf(",") > 0) {
var n2 = i2.split(",").map(Number);
e2.rangeList[2].select = n2, n2.length === e2.rangeList[2].children.length ? (e2.rangeList[2].checkAll = true, e2.rangeList[2].isIndeterminate = false) : (e2.rangeList[2].checkAll = false, e2.rangeList[2].isIndeterminate = true);
} else e2.rangeList[2].select = i2 ? [Number(i2)] : [], e2.rangeList[2].checkAll = false, e2.rangeList[2].isIndeterminate = true, s2.length > 0 ? e2.getUnitList() : (e2.rangeList[2].checkAll = true, e2.rangeList[2].isIndeterminate = false, e2.rangeList[2].select = a2.length > 0 ? a2.map((function(e3) {
return e3["id"];
})) : []);
} else "add" === e2.type && (e2.rangeList[2].select = a2.length > 0 ? a2.map((function(e3) {
return e3["id"];
})) : []);
e2.getUnitList();
}
}));
}, getUnitList: function() {
var e2 = this;
if (0 === this.rangeList[2].select.length) return false;
Object(s["d"])({ projectUuidS: this.rangeList[0].select, buildingIds: this.rangeList[2].select }).then((function(t2) {
if (0 === t2.code && t2.data) {
var a2 = t2.data;
if (e2.$set(e2.rangeList[3], "children", a2), "view" === e2.type || "edit" === e2.type) {
var l2 = e2.reviewThemeProject, i2 = l2.unitId, s2 = l2.houseId;
if (i2.indexOf(",") > 0) {
var n2 = i2.split(",").map(Number);
e2.rangeList[3].select = n2, n2.length === e2.rangeList[3].children.length ? (e2.rangeList[3].checkAll = true, e2.rangeList[3].isIndeterminate = false) : (e2.rangeList[3].checkAll = false, e2.rangeList[3].isIndeterminate = true);
} else e2.rangeList[3].select = i2 ? [Number(i2)] : [], e2.rangeList[3].checkAll = false, e2.rangeList[3].isIndeterminate = true, s2.length > 0 ? e2.getHouseList() : (e2.rangeList[3].checkAll = true, e2.rangeList[3].isIndeterminate = false, e2.rangeList[3].select = a2.length > 0 ? a2.map((function(e3) {
return e3["id"];
})) : []);
} else "add" === e2.type && (e2.rangeList[3].select = a2.length > 0 ? a2.map((function(e3) {
return e3["id"];
})) : []);
e2.getHouseList();
}
}));
}, getHouseList: function() {
var e2 = this;
if (0 === this.rangeList[3].select.length) return false;
Object(s["b"])({ projectUuidS: this.rangeList[0].select, buildingId: this.rangeList[2].select, unitId: this.rangeList[3].select }).then((function(t2) {
if (0 === t2.code && t2.data) {
var a2 = t2.data;
if (e2.$set(e2.rangeList[4], "children", a2), "view" === e2.type || "edit" === e2.type) {
var l2 = e2.reviewThemeProject.houseId;
if (l2.indexOf(",") > 0) {
var i2 = l2.split(",").map(Number);
e2.rangeList[4].select = i2, i2.length === e2.rangeList[4].children.length ? (e2.rangeList[4].checkAll = true, e2.rangeList[4].isIndeterminate = false) : (e2.rangeList[4].checkAll = false, e2.rangeList[4].isIndeterminate = true);
} else e2.rangeList[4].select = l2 ? [Number(l2)] : [], e2.rangeList[4].checkAll = false, e2.rangeList[4].isIndeterminate = true, 0 === l2.length && (e2.rangeList[4].checkAll = true, e2.rangeList[4].isIndeterminate = false, e2.rangeList[4].select = a2.length > 0 ? a2.map((function(e3) {
return e3["id"];
})) : []);
} else "add" === e2.type && (e2.rangeList[4].select = a2.length > 0 ? a2.map((function(e3) {
return e3["id"];
})) : []);
}
}));
}, draggableSort: function(e2) {
}, draggableEnd: function() {
var e2 = this, t2 = JSON.parse(JSON.stringify(this.questionsList)), a2 = 1;
setTimeout((function() {
t2.map((function(e3, t3) {
var l2 = a2++;
return e3.sortNumber = l2;
})), e2.questionsList = t2;
}), 100);
}, handleCommand: function(e2) {
var t2 = [];
t2 = e2 <= 2 ? [{ name: "", imageUrl: "" }, { name: "", imageUrl: "" }, { name: "", imageUrl: "" }, { name: "", imageUrl: "" }] : [{ name: "" }], this.sortNumber += 1, this.questionsList.push({ show: true, title: "", type: e2, sortNumber: this.sortNumber, questionOptionRelaList: t2 });
}, questionsTypeChange: function(e2, t2) {
var a2 = [];
a2 = 1 === e2 || 2 === e2 ? [{ name: "", imageUrl: "" }, { name: "", imageUrl: "" }, { name: "", imageUrl: "" }, { name: "", imageUrl: "" }] : [{ name: "" }], this.$set(this.questionsList[t2], "questionOptionRelaList", a2);
}, deleteQuestions: function(e2) {
var t2 = this;
this.questionsList.length > 1 ? this.$confirm("确定该问题吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "info", center: true }).then((function() {
var a2 = JSON.parse(JSON.stringify(t2.questionsList)), l2 = a2[e2];
void 0 != l2.id ? Object(s["k"])({ id: l2.id }).then((function(l3) {
0 === l3.code && (a2.splice(e2, 1), t2.questionsList = a2, t2.draggableEnd(), t2.$message({ type: "success", message: "删除成功" }));
})) : (a2.splice(e2, 1), t2.questionsList = a2, t2.draggableEnd());
})).catch((function() {
})) : this.$message({ type: "error", message: "至少保留一个问题选项" });
}, showQuestions: function(e2) {
var t2 = !this.questionsList[e2].show;
this.$set(this.questionsList[e2], "show", t2);
}, showSelects: function(e2) {
var t2 = !this.rangeList[e2].show;
this.$set(this.rangeList[e2], "show", t2);
}, deleteOptions: function(e2, t2) {
var a2 = this;
this.$confirm("确定该选项吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "info", center: true }).then((function() {
var l2 = a2.questionsList[e2].questionOptionRelaList, i2 = l2[t2];
void 0 != i2.id ? Object(s["m"])({ id: i2.id }).then((function(i3) {
0 === i3.code && (l2.splice(t2, 1), a2.$set(a2.questionsList[e2], "questionOptionRelaList", l2), a2.$message({ type: "success", message: "删除成功" }));
})) : (l2.splice(t2, 1), a2.$set(a2.questionsList[e2], "questionOptionRelaList", l2));
})).catch((function() {
}));
}, addOptions: function(e2, t2) {
var a2 = this.questionsList[e2].questionOptionRelaList;
a2.length < 5 ? (a2.push({ name: "", imageUrl: "" }), this.$set(this.questionsList[e2], "questionOptionRelaList", a2)) : this.$message({ type: "error", message: "问题选项最多为5项" });
}, addOptionsPage: function() {
this.pages = this.pages + 1, this.totalPage = this.totalPage + 1, this.questionsList.push({ isQt: false, pagesId: this.pages, totalPage: this.totalPage });
}, cancel: function() {
this.goBack();
}, save: function() {
this.submitQuestionInfor(0);
}, publish: function() {
this.submitQuestionInfor(1);
}, submitQuestionInfor: function(e2) {
var t2 = this, a2 = { identity: this.identity, projectUuid: this.rangeList[0].select.join(","), precinctId: this.rangeList[1].select.join(","), buildingId: this.rangeList[2].select.join(","), unitId: this.rangeList[3].select.join(","), houseId: this.rangeList[4].select.join(",") };
0 !== this.questionId && (a2 = Object.assign(a2, { id: this.reviewThemeProject.id, themeId: this.questionId }));
var l2 = this.$store.state.companyId, i2 = Object.assign(this.ruleForm, { companyId: l2, isPublish: e2, questionsList: this.questionsList, themeProjectRela: a2, createId: this.$store.state.user.userInfo.memberId, operatorName: this.$store.state.user.userInfo.memberName, createBy: this.$store.state.user.userInfo.memberName });
0 !== this.questionId && (i2 = Object.assign(i2, { id: this.questionId })), this.$refs["ruleForm"].validate((function(a3) {
if (!a3) return t2.$message({ type: "error", message: "请检查投票主题和截止时间是否输入和选择." }), false;
if (0 === t2.rangeList[0].select.length) return t2.$message({ type: "error", message: "投票范围必须选择,请先选择小区" }), false;
if (!(t2.questionsList.length > 0)) return t2.$message({ type: "error", message: "请点击左下方“添加问题”按钮添加投票内容" }), false;
var l3 = t2.questionsList.every((function(e3, t3) {
return "" !== e3.title;
}));
if (!l3) return t2.$message({ type: "error", message: "某项投票内容标题为空,请填写相关内容" }), false;
var n2 = true;
t2.questionsList.map((function(e3) {
var t3 = 3 == e3.type || e3.questionOptionRelaList.every((function(e4) {
return "" !== e4.name;
}));
n2 = !t3;
})), n2 ? t2.$message({ type: "error", message: "某项投票选项内容为空,请填写相关内容" }) : (console.log("全部填写完毕"), i2.endDate = i2.expiryDate + " " + i2.dateTime, 0 === e2 ? t2.saveLoading = true : t2.publishLoading = true, 0 === t2.questionId ? Object(s["h"])(i2).then((function(e3) {
0 === e3.code && (t2.$message({ type: "success", message: "创建投票成功" }), t2.saveLoading = false, t2.goBack());
})) : Object(s["o"])(i2).then((function(e3) {
0 === e3.code && (t2.$message({ type: "success", message: "更新投票成功" }), t2.publishLoading = false, t2.goBack());
})));
}));
}, goBack: function() {
this.$emit("goBack");
} } }, c = u, d = (a("06f2"), a("829d")), v = Object(d["a"])(c, l, i, false, null, "4879eb4d", null);
t["a"] = v.exports;
}, "3b6e": function(e, t, a) {
}, 4573: function(e, t, a) {
}, "49ef": function(e, t, a) {
}, "646b": function(e, t, a) {
"use strict";
var l = function() {
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
return a2("div", { staticClass: "ruleGroupInfo" }, [e2.statisicView ? a2("el-card", { staticClass: "box-card" }, [a2("el-page-header", { attrs: { content: e2.content }, on: { back: e2.goBack } }), e2._v(" "), a2("div", { staticClass: "vote-statisic" }, [a2("div", { staticClass: "vote-title" }, [e2._v(e2._s(e2.infor.title))]), e2._v(" "), a2("div", { staticClass: "vote-des" }, [e2._v(e2._s(e2.infor.remarks))]), e2._v(" "), e2._l(e2.infor.questions, (function(t3, l2) {
return a2("div", { key: l2, staticClass: "vote-questions-item" }, [a2("div", { staticClass: "vote-questions-title" }, [e2._v(e2._s(e2.culTitleFormat(t3.title, l2)) + "\n "), a2("span", { staticClass: "questions-type" }, [e2._v("" + e2._s(1 === t3.type ? "单选题" : 2 === t3.type ? "多选题" : 3 === t3.type ? "问答题" : "填空题") + "")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], staticClass: "viewItemDetailes", attrs: { type: "primary", size: "mini" }, on: { click: function(a3) {
return e2.gotoItemDetailes(t3);
} } }, [e2._v("查看详情")])], 1), e2._v(" "), 1 === t3.type || 2 === t3.type ? a2("div", { staticClass: "vote-questions-detaile" }, [a2("div", { staticClass: "detaile-table detaile-header" }, [a2("div", { staticClass: "detaile-table-item" }, [e2._v("选项")]), e2._v(" "), a2("div", { staticClass: "detaile-table-item" }, [e2._v("小计")]), e2._v(" "), a2("div", { staticClass: "detaile-table-item" }, [e2._v("比例")])]), e2._v(" "), e2._l(t3.answerTotalRespDTOS, (function(t4, l3) {
return a2("div", { key: l3, staticClass: "detaile-table detaile-section" }, [a2("div", { staticClass: "detaile-table-item" }, [e2._v(e2._s(t4.name))]), e2._v(" "), a2("div", { staticClass: "detaile-table-item" }, [e2._v(e2._s(t4.total ? t4.total : 0))]), e2._v(" "), a2("div", { staticClass: "detaile-table-item" }, [a2("el-progress", { staticClass: "detaile-table-progress", attrs: { "text-inside": true, "stroke-width": 20, percentage: e2.transLatToPer(t4.proportion) } })], 1)]);
})), e2._v(" "), a2("div", { staticClass: "detaile-table detaile-footer" }, [a2("div", { staticClass: "detaile-table-item" }, [e2._v("本题有效投票数")]), e2._v(" "), a2("div", { staticClass: "detaile-table-item" }, [e2._v(e2._s(t3.total))]), e2._v(" "), a2("div", { staticClass: "detaile-table-item" })])], 2) : e2._e()]);
}))], 2)], 1) : e2._e(), e2._v(" "), e2.detailesView ? a2("el-card", { staticClass: "box-card" }, [a2("el-page-header", { attrs: { content: e2.content2 }, on: { back: e2.goBackStatisic } }), e2._v(" "), a2("div", { staticClass: "vote-statisic" }, [a2("div", { staticClass: "vote-title" }, [e2._v(e2._s(e2.infor.title))]), e2._v(" "), a2("div", { staticClass: "vote-question-title" }, [a2("div", { staticClass: "vote-question-title-item" }, [e2._v("题目名称:" + e2._s(e2.detailesInfor.title))]), e2._v(" "), a2("div", { staticClass: "vote-question-title-item" }, [e2._v("题目类型:" + e2._s(1 === e2.detailesInfor.type ? "单选题" : 2 === e2.detailesInfor.type ? "多选题" : 3 === e2.detailesInfor.type ? "问答题" : "填空题"))])]), e2._v(" "), a2("el-table", { attrs: { border: "", data: e2.answerList, "header-cell-style": e2.headClass, "tooltip-effect": "dark" } }, [a2("el-table-column", { attrs: { label: "#", align: "center", type: "index", width: "50" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "userName", label: "姓名" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [e2._v(" " + e2._s(1 === e2.voteInfor.isAnonymous ? e2.handelAnonymous(t3.row, 0) : t3.row.userName ? t3.row.userName : "-") + " ")];
} }], null, false, 3003637541) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "userMobile", label: "手机号", "min-width": "140" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [e2._v(" " + e2._s(1 === e2.voteInfor.isAnonymous ? e2.handelAnonymous(t3.row, 1) : t3.row.userMobile) + " ")];
} }], null, false, 1199136253) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "userName", label: "房屋", "min-width": "200", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [e2._v(" " + e2._s(t3.row.userName ? t3.row.precinctName + "-" + t3.row.buildingName + "-" + t3.row.unitName + "-" + t3.row.roomNum : "-") + " ")];
} }], null, false, 3305133636) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "userName", label: "身份", "show-overflow-tooltipw": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [e2._v(" " + e2._s(e2._f("getItemType")(t3.row.identityType, e2.identityList)) + " ")];
} }], null, false, 2850288777) }), e2._v(" "), e2._l(e2.questionOption, (function(t3, l2) {
return 1 === e2.detailesInfor.type || 2 === e2.detailesInfor.type ? a2("el-table-column", { key: l2, attrs: { align: "center", label: t3.name, "min-width": "160", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(l3) {
return [e2.checkHasSelect(l3.row.concatOptionIds, t3.id) ? a2("i", { staticClass: "el-icon-check" }) : e2._e()];
} }], null, true) }) : a2("el-table-column", { attrs: { align: "center", label: "答案", "min-width": "160", "show-overflow-tooltip": "" }, scopedSlots: e2._u([{ key: "default", fn: function(t4) {
return [e2._v(e2._s(t4.row.content))];
} }], null, false, 589271540) });
}))], 2), e2._v(" "), a2("div", { staticClass: "paginations" }, [a2("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)], 1) : e2._e()], 1);
}, i = [], s = a("00b6"), n = a("0b37"), r = a("8f53"), o = { data: function() {
return { identityList: r["k"], content: "投票统计分析", content2: "查看投票结果详情", statisicView: true, detailesView: false, infor: {}, pageTotal: 0, query: { pageNumber: 1, pageSize: 10 }, detailesInfor: {}, questionOption: [], answerList: [], voteInfor: null };
}, mounted: function() {
}, methods: { getInfoLst: function(e2) {
this.voteInfor = e2, this.getQuestionFindById(e2.id);
}, getQuestionFindById: function(e2) {
var t2 = this;
Object(s["n"])({ id: e2 }).then((function(e3) {
0 === e3.code && (t2.infor = e3.data);
}));
}, transLatToPer: function(e2) {
return e2 ? Object(n["c"])(e2, 100) : 0;
}, goBack: function() {
this.$emit("goBack");
}, goBackStatisic: function() {
this.statisicView = true, this.detailesView = false;
}, gotoItemDetailes: function(e2) {
this.detailesInfor = e2, this.statisicView = false, this.detailesView = true, e2.type, this.query.questionsId = e2.id, this.query.themeId = this.infor.id, this.getQuestionOpt(e2.id);
}, getQuestionOpt: function(e2) {
var t2 = this;
Object(s["f"])({ id: e2 }).then((function(e3) {
0 === e3.code && (t2.questionOption = e3.data.questionOptionRelaRespDTOList), t2.getlistData();
}));
}, getlistData: function() {
var e2 = this, t2 = this.query;
Object(s["e"])(t2).then((function(t3) {
0 === t3.code && (e2.answerList = t3.data.records, e2.pageTotal = t3.data.rowsCount);
}));
}, handleSizeChange: function(e2) {
this.query.pageSize = e2, this.query.pageNumber = 1, this.getlistData();
}, handleCurrentChange: function(e2) {
this.query.pageNumber = e2, this.getlistData();
}, checkHasSelect: function(e2, t2) {
return e2.indexOf(t2) >= 0;
}, handelAnonymous: function(e2, t2) {
var a2 = e2.userName, l2 = e2.userMobile;
if (0 !== t2) {
if (!l2) return l2;
var i2 = l2.replace(l2.substring(3, 7), "****");
return i2;
}
return null == a2 || void 0 == a2 ? "" : 2 == a2.length ? a2.substring(0, 1) + "*" : 3 == a2.length ? a2.substring(0, 1) + "*" + a2.substring(2, 3) : a2.length > 3 ? a2.substring(0, 1) + "**" + a2.substring(3, a2.length) : void 0;
}, headClass: function() {
return "text-align:center;background:#FAFAFA;";
}, culTitleFormat: function(e2, t2) {
return e2.includes("".concat(t2 + 1, "、")) ? e2 : "".concat(t2 + 1, "、").concat(e2);
} } }, u = o, c = (a("6be9"), a("829d")), d = Object(c["a"])(u, l, i, false, null, "a7034c84", null);
t["a"] = d.exports;
}, "6b3c": function(e, t, a) {
"use strict";
a.d(t, "a", (function() {
return l;
})), a.d(t, "b", (function() {
return i;
}));
var l = function() {
function e2() {
return (65536 * (1 + Math.random()) | 0).toString(16).substring(1);
}
return "".concat(+/* @__PURE__ */ new Date(), "_").concat(e2()).concat(e2());
};
function i(e2) {
var t2 = e2.lastIndexOf("."), a2 = "";
return -1 != t2 && (a2 = e2.substring(t2)), a2;
}
}, "6be9": function(e, t, a) {
"use strict";
a("3b6e");
}, "8f53": function(e, t, a) {
"use strict";
a.d(t, "y", (function() {
return l;
})), a.d(t, "t", (function() {
return i;
})), a.d(t, "v", (function() {
return s;
})), a.d(t, "B", (function() {
return n;
})), a.d(t, "n", (function() {
return r;
})), a.d(t, "a", (function() {
return o;
})), a.d(t, "K", (function() {
return u;
})), a.d(t, "s", (function() {
return c;
})), a.d(t, "u", (function() {
return d;
})), a.d(t, "x", (function() {
return v;
})), a.d(t, "G", (function() {
return p;
})), a.d(t, "I", (function() {
return b;
})), a.d(t, "M", (function() {
return h;
})), a.d(t, "N", (function() {
return m;
})), a.d(t, "z", (function() {
return g;
})), a.d(t, "i", (function() {
return f;
})), a.d(t, "d", (function() {
return y;
})), a.d(t, "p", (function() {
return _;
})), a.d(t, "H", (function() {
return L;
})), a.d(t, "e", (function() {
return w;
})), a.d(t, "h", (function() {
return k;
})), a.d(t, "m", (function() {
return C;
})), a.d(t, "q", (function() {
return q;
})), a.d(t, "A", (function() {
return I;
})), a.d(t, "E", (function() {
return x;
})), a.d(t, "F", (function() {
return j;
})), a.d(t, "r", (function() {
return O;
})), a.d(t, "D", (function() {
return S;
})), a.d(t, "o", (function() {
return $;
})), a.d(t, "L", (function() {
return N;
})), a.d(t, "j", (function() {
return A;
})), a.d(t, "f", (function() {
return T;
})), a.d(t, "w", (function() {
return D;
})), a.d(t, "g", (function() {
return B;
})), a.d(t, "k", (function() {
return F;
})), a.d(t, "J", (function() {
return U;
})), a.d(t, "C", (function() {
return P;
})), a.d(t, "l", (function() {
return z;
})), a.d(t, "b", (function() {
return R;
})), a.d(t, "c", (function() {
return Q;
}));
var l = [{ value: 1, label: "低" }, { value: 2, label: "一般" }, { value: 3, label: "紧急" }], i = [{ value: 1, label: "待受理" }, { value: 2, label: "已派单" }, { value: 3, label: "已接单" }, { value: 4, label: "处理中" }, { value: 5, label: "已完成" }, { value: 6, label: "已回访" }, { value: 7, label: "已关闭" }, { value: 8, label: "已延后" }, { value: 9, label: "待评价" }, { value: 10, label: "已评价" }, { value: 11, label: "未受理" }], s = [{ value: 11, label: "公区整改" }, { value: 12, label: "住户服务" }, { value: 13, label: "通用工单" }, { value: 15, label: "工单审核" }], n = [{ value: 1, label: "邻里关系" }, { value: 2, label: "清洁卫生" }, { value: 3, label: "投诉报修" }, { value: 4, label: "房屋认证" }, { value: 5, label: "月卡申请" }, { value: 6, label: "门禁申请" }, { value: 7, label: "个人维修" }, { value: 8, label: "工区维修" }, { value: 9, label: "订单服务" }, { value: 10, label: "管家服务" }], r = [{ label: "日", value: 0 }, { label: "周", value: 1 }, { label: "月", value: 2 }, { label: "年", value: 4 }], o = [{ label: "普通", value: 1 }, { label: "培训", value: 2 }, { label: "认证", value: 3 }], u = [{ value: 1, label: "正常" }, { value: 2, label: "预警" }, { value: 3, label: "超时" }], c = [{ value: 1, label: "服务提交" }, { value: 2, label: "服务受理" }, { value: 3, label: "服务处理" }, { value: 4, label: "服务评价" }, { value: 5, label: "服务完成" }, { value: 6, label: "服务拒绝" }], d = [{ value: 1, label: "房屋认证" }, { value: 2, label: "门禁申请" }, { value: 3, label: "车辆月卡" }, { value: 4, label: "投诉报修" }], v = [{ value: 1, label: "巡检" }, { value: 2, label: "维保" }, { value: 3, label: "抄表" }, { value: 4, label: "保洁" }, { value: 5, label: "绿化" }, { value: 6, label: "拜访" }], p = [{ value: 1, label: "未执行" }, { value: 2, label: "执行中" }, { value: 3, label: "已完成" }, { value: 4, label: "超时" }, { value: 5, label: "领取超时" }, { value: 9, label: "超时完成" }, { value: 12, label: "超时预警" }], b = [{ label: "巡检类", value: 1 }, { label: "维保类", value: 2 }, { label: "抄表类", value: 3 }, { label: "清洁类", value: 4 }, { label: "绿化类", value: 5 }, { label: "上门拜访类", value: 6 }, { label: "维修类", value: 7 }, { label: "服务礼仪类", value: 8 }, { label: "内部管控类", value: 9 }, { label: "社区温度类", value: 10 }], h = [{ label: "人事管控类", value: 1 }, { label: "财务管控类", value: 2 }, { label: "事务管控类", value: 3 }, { label: "物料管控类", value: 4 }], m = [{ label: "人", value: 1 }, { label: "财", value: 2 }, { label: "事", value: 3 }, { label: "物", value: 4 }], g = [{ label: "普通", value: 1 }, { label: "培训", value: 2 }, { label: "认证", value: 3 }], f = [{ label: "日", value: 0 }, { label: "周", value: 1 }, { label: "月", value: 2 }, { label: "年", value: 4 }], y = [{ label: "全员收费", value: 1 }, { label: "全员突击", value: 2 }, { label: "全员巡查", value: 3 }, { label: "全员保洁", value: 4 }], _ = [{ label: "X新增默认", value: "X" }, { label: "A", value: "A" }, { label: "B", value: "B" }, { label: "C", value: "C" }, { label: "D", value: "D" }, { label: "E", value: "E" }], L = [{ label: "自管", value: 1 }, { label: "外包", value: 2 }], w = [{ label: "内勤", value: 1 }, { label: "外勤", value: 2 }], k = [{ label: "固定作业", value: 1 }, { label: "移动作业", value: 2 }], C = [{ label: "发现问题", value: 1 }, { label: "处理问题", value: 2 }], q = [{ label: "人", value: 1 }, { label: "物", value: 2 }], I = [{ label: "客户服务", value: 1 }, { label: "安全服务", value: 2 }, { label: "设施设备管理", value: 3 }, { label: "环境管理", value: 4 }, { label: "基础资料", value: 5 }], x = [{ label: "设备标准", value: 1 }, { label: "空间服务标准", value: 2 }, { label: "物品标准", value: 3 }, { label: "绿化养护标准", value: 5 }, { label: "内部标准", value: 6 }, { label: "体检标准", value: 7 }, { label: "项目标准", value: 8 }], j = [{ label: "1A", value: 1 }, { label: "2A", value: 2 }, { label: "3A", value: 3 }, { label: "4A", value: 4 }, { label: "5A", value: 5 }], O = [{ value: 1, label: "1星级" }, { value: 2, label: "2星级" }, { value: 3, label: "3星级" }, { value: 4, label: "4星级" }, { value: 5, label: "5星级" }], S = [{ label: "业务收入", value: 1 }, { label: "经营收入", value: 2 }, { label: "资产处置收益", value: 3 }, { label: "其他收益", value: 4 }, { label: "营业外收入", value: 5 }, { label: "投资收益", value: 6 }, { label: "筹资活动", value: 7 }, { label: "清洁卫生费", value: 8 }, { label: "安全保卫费", value: 9 }, { label: "绿化养护费", value: 10 }, { label: "工程维护费", value: 11 }, { label: "能源费", value: 12 }, { label: "职工薪酬", value: 13 }, { label: "行政办公费", value: 14 }, { label: "其他物业管理成本", value: 15 }, { label: "停车场经营成本", value: 16 }, { label: "物业经营成本", value: 17 }, { label: "其他业务成本", value: 18 }, { label: "税金及附加", value: 19 }, { label: "财务费用", value: 20 }, { label: "资产减值损失", value: 21 }, { label: "营业外支出", value: 22 }, { label: "所得税费用", value: 23 }, { label: "投资费用", value: 24 }, { label: "筹资费用", value: 25 }, { label: "资本支出", value: 26 }, { label: "代收代付项", value: 27 }], $ = [{ label: "水表", value: 1 }, { label: "电表", value: 2 }, { label: "暖气表", value: 3 }, { label: "燃气表", value: 4 }, { label: "热水表", value: 5 }], N = [{ label: "普通", value: 1 }, { label: "一般", value: 2 }, { label: "重要", value: 3 }], A = [{ label: "房屋认证", value: 1 }, { label: "门禁申请", value: 2 }, { label: "车辆月卡", value: 3 }, { label: "现场品质", value: 4 }, { label: "邻里关系", value: 6 }, { label: "投诉", value: 7 }, { label: "到家服务", value: 8 }, { label: "公区维修", value: 9 }, { label: "满意度调查", value: 10 }, { label: "业委会会议", value: 11 }, { label: "政务沟通", value: 12 }, { label: "客户拜访", value: 13 }, { label: "门禁权限申请", value: 14 }, { label: "服务态度", value: 15 }], T = [{ label: "设备整改", value: 2 }, { label: "电梯整改", value: 3 }, { label: "清洁卫生[内控]", value: 4 }, { label: "车场整改", value: 5 }, { label: "安防整改", value: 6 }, { label: "绿化整改", value: 7 }, { label: "历史工单-1", value: 12 }, { label: "历史工单-2", value: 13 }, { label: "能源整改", value: 15 }, { label: "审批工单", value: 16 }, { label: "内部整改", value: 17 }, { label: "行政", value: 18 }, { label: "人事", value: 19 }, { label: "财务", value: 20 }, { label: "市场", value: 21 }], D = [{ label: "主动服务", value: 1 }, { label: "设备管理", value: 2 }, { label: "电梯管理", value: 3 }, { label: "清洁卫生", value: 4 }, { label: "车场运营", value: 5 }, { label: "安防管理", value: 6 }, { label: "绿化管理", value: 7 }, { label: "业委会会议", value: 8 }, { label: "政务沟通", value: 9 }, { label: "客户拜访", value: 10 }, { label: "能源计划", value: 11 }, { label: "审批工单", value: 12 }, { label: "内部整改", value: 13 }], B = [{ label: "设备管理标准", value: 1 }, { label: "内部管控标准", value: 2 }, { label: "清洁管理标准", value: 3 }, { label: "安全管理标准", value: 4 }, { label: "绿化养护标准", value: 5 }, { label: "消防管控标准", value: 6 }, { label: "电梯管理标准", value: 7 }, { label: "停车场管理标准", value: 8 }, { label: "能源管理标准", value: 9 }], F = [{ label: "产权人", value: 1 }, { label: "亲属", value: 2 }, { label: "租户", value: 3 }, { label: "好友", value: 4 }, { label: "访客", value: 5 }, { label: "产权人(共有)", value: 6 }], U = [{ label: "感知器", value: 1 }, { label: "控制器", value: 2 }, { label: "动作器", value: 3 }], P = [{ label: "日报", value: 1 }, { label: "周报", value: 2 }, { label: "月报", value: 3 }, { label: "季度", value: 4 }, { label: "半年", value: 5 }, { label: "年度", value: 6 }], z = [{ label: "安全生产", value: 1 }, { label: "效益", value: 2 }, { label: "满意", value: 3 }], R = [{ label: "一般", value: [1, 2, 3] }, { label: "重要", value: [4, 5, 6] }, { label: "非常重要", value: [7, 8, 9] }], Q = [{ value: 0, label: "不合格" }, { value: 1, label: "合格" }, { value: 2, label: "AI判定中" }, { value: 3, label: "无需AI验收" }, { value: 4, label: "AI标准缺失" }, { value: 5, label: "智能体未配置" }, { value: 6, label: "无权益请充值" }];
}, a5b8: function(e, t, a) {
"use strict";
a.r(t);
var l = function() {
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
return a2("div", { staticClass: "workPointsManage" }, [e2.infoList ? a2("div", { staticClass: "workPointsRuleList" }, [a2("el-card", { staticClass: "box-card" }, [a2("el-row", [a2("el-col", { staticClass: "elCol", attrs: { span: 4 } }, [a2("el-input", { attrs: { type: "text", clearable: "", placeholder: "投票主题" }, model: { value: e2.query.title, callback: function(t3) {
e2.$set(e2.query, "title", "string" === typeof t3 ? t3.trim() : t3);
}, expression: "query.title" } })], 1), e2._v(" "), a2("el-col", { staticClass: "elCol", attrs: { span: 4 } }, [a2("el-select", { attrs: { clearable: "", placeholder: "请选择状态" }, model: { value: e2.query.queryStatus, callback: function(t3) {
e2.$set(e2.query, "queryStatus", t3);
}, expression: "query.queryStatus" } }, e2._l(e2.statusList, (function(e3) {
return a2("el-option", { key: e3.value, attrs: { label: e3.name, value: e3.value } });
})), 1)], 1), e2._v(" "), a2("el-col", { staticClass: "elCol", attrs: { span: 4 } }, [a2("el-input", { attrs: { type: "text", clearable: "", placeholder: "创建人" }, model: { value: e2.query.createBy, callback: function(t3) {
e2.$set(e2.query, "createBy", "string" === typeof t3 ? t3.trim() : t3);
}, expression: "query.createBy" } })], 1), e2._v(" "), a2("el-col", { staticClass: "elCol", attrs: { span: 8 } }, [a2("el-date-picker", { attrs: { type: "daterange", "start-placeholder": "开始日期", "end-placeholder": "结束日期", "value-format": "yyyy-MM-dd HH:mm:ss", "default-time": ["00:00:00", "23:59:59"] }, model: { value: e2.query.createDate, callback: function(t3) {
e2.$set(e2.query, "createDate", t3);
}, expression: "query.createDate" } })], 1), e2._v(" "), a2("el-col", { staticClass: "elCol", attrs: { span: 4 } }, [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) {
return e2.resetForm();
} } }, [e2._v("重置")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.onSearch } }, [e2._v("查询")])], 1)], 1)], 1), e2._v(" "), a2("el-card", { staticClass: "box-card", staticStyle: { "margin-top": ".9375rem" } }, [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" }], staticClass: "el-icon-plus", attrs: { type: "primary" }, on: { click: e2.addRuleGroup } }, [e2._v("新建投票")])], 1)]), e2._v(" "), a2("el-table", { staticStyle: { width: "100%", "margin-top": ".9375rem" }, attrs: { border: "", data: e2.tableData, "header-cell-style": e2.headClass } }, [a2("el-table-column", { attrs: { label: "#", align: "center", "min-width": "50", fixed: "" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [a2("span", [e2._v(e2._s(t3.$index + (e2.query.pageNumber - 1) * e2.query.pageSize + 1) + "\n ")])];
} }], null, false, 3311124033) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "title", label: "投票主题", fixed: "", "min-width": "180", "show-overflow-tooltip": "" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "projectNames", label: "所属小区", "min-width": "180", "show-overflow-tooltip": "" } }, [a2("template", { slot: "header" }, [a2("span", [e2._v("所属小区\n "), a2("el-tooltip", { attrs: { effect: "dark", placement: "top" } }, [a2("template", { slot: "content" }, [a2("div", [e2._v("\n 投票报告中包含的项目\n ")])]), e2._v(" "), a2("span", { staticClass: "el-icon-info" })], 2)], 1)])], 2), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "isAnonymous", label: "是否匿名" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [e2._v("\n " + e2._s(2 === t3.row.isAnonymous ? "否" : "是") + "\n ")];
} }], null, false, 627820279) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "status", label: "状态" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [e2._v("\n " + e2._s(1 === t3.row.status ? "未发布" : 2 === t3.row.status ? "投票中" : "已截止") + "\n ")];
} }], null, false, 3651709676) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "total", label: "投票人数" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "createBy", label: "创建人" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "endDate", label: "截止时间", "min-width": "160" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "updateDate", label: "创建时间", "min-width": "160" } }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", prop: "address", fixed: "right", label: "操作", "min-width": "120" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [1 !== t3.row.status ? a2("span", [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: function(a3) {
return e2.detailsClick(t3.row, "view");
} } }, [e2._v("查看")])], 1) : e2._e(), e2._v(" "), 1 === t3.row.status ? a2("span", [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: function(a3) {
return e2.detailsClick(t3.row, "edit");
} } }, [e2._v("编辑")])], 1) : e2._e(), e2._v(" "), 1 === t3.row.status ? a2("span", [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: function(a3) {
return e2.deleteClick(t3.row);
} } }, [e2._v("删除")])], 1) : e2._e(), e2._v(" "), t3.row.total > 0 ? a2("span", [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: function(a3) {
return e2.gotoVoteStatisic(t3.row);
} } }, [e2._v("统计")])], 1) : e2._e()];
} }], null, false, 3002016692) })], 1), e2._v(" "), a2("div", { staticClass: "paginations" }, [a2("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)], 1) : e2._e(), e2._v(" "), e2.viewInfo ? a2("div", { staticClass: "viewDetails" }, [a2("addVote", { ref: "addVote", attrs: { type: e2.type }, on: { goBack: e2.goBack } })], 1) : e2._e(), e2._v(" "), e2.statisic ? a2("div", { staticClass: "viewDetails" }, [a2("voteStatisic", { ref: "statisic", on: { goBack: e2.goBack } })], 1) : e2._e()]);
}, i = [], s = a("00b6"), n = a("310f"), r = a("646b"), o = { components: { addVote: n["a"], voteStatisic: r["a"] }, data: function() {
return { type: "", pageTotal: 0, viewInfo: false, infoList: true, statisic: false, projectList: [], statusList: [{ name: "未发布", value: 1 }, { name: "投票中", value: 2 }, { name: "已截止", value: 3 }], query: { title: "", createBy: "", companyId: this.$store.state.companyId, projectUuid: this.$store.state.community_uuid, createDate: "", queryStatus: "", pageNumber: 1, pageSize: 10 }, tableData: [] };
}, mounted: function() {
this.headClass(), this.getProjectInfo(), this.getlistData();
}, beforeRouteLeave: function(e2, t2, a2) {
this.viewInfo = false, this.statisic = false, this.infoList = true, a2();
}, methods: { getProjectInfo: function() {
this.projectList = this.$store.state.user.project;
}, deleteClick: function(e2) {
var t2 = this;
this.$confirm("确定删除该数据吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "info", center: true }).then((function() {
Object(s["i"])({ id: e2.id }).then((function(e3) {
0 === e3.code && (t2.getlistData(), t2.$message({ type: "success", message: "删除投票成功" }));
}));
})).catch((function() {
}));
}, detailsClick: function(e2, t2) {
var a2 = this, l2 = e2;
this.type = t2, this.viewInfo = true, this.infoList = false, this.statisic = false, this.$nextTick((function() {
a2.$refs.addVote.getInfoLst(l2);
}));
}, addRuleGroup: function() {
var e2 = this;
this.type = "add", this.viewInfo = true, this.infoList = false, this.statisic = false, this.$nextTick((function() {
e2.$refs.addVote.getInfoLst();
}));
}, gotoVoteStatisic: function(e2) {
var t2 = this, a2 = e2;
this.viewInfo = false, this.infoList = false, this.statisic = true, this.$nextTick((function() {
t2.$refs.statisic.getInfoLst(a2);
}));
}, onSearch: function() {
this.query.pageNumber = 1, this.getlistData();
}, getlistData: function() {
var e2 = this, t2 = { title: this.query.title, createBy: this.query.createBy, companyId: this.$store.state.companyId, projectUuid: this.query.projectUuid, start: this.query.createDate ? this.query.createDate[0] : "", end: this.query.createDate ? this.query.createDate[1] : "", pageNumber: this.query.pageNumber, pageSize: this.query.pageSize, queryStatus: this.query.queryStatus };
Object(s["l"])(t2).then((function(t3) {
0 === t3.code && t3.data ? (e2.tableData = t3.data.records, e2.pageTotal = t3.data.rowsCount) : e2.tableData = [];
}));
}, goBack: function() {
this.viewInfo = false, this.statisic = false, this.infoList = true, this.getlistData();
}, handleSizeChange: function(e2) {
this.query.pageSize = e2, this.getlistData();
}, handleCurrentChange: function(e2) {
this.query.pageNumber = e2, this.getlistData();
}, resetForm: function() {
this.query.pageNumber = 1, this.query.title = "", this.query.createBy = "", this.query.queryStatus = "", this.query.createDate = "", this.getlistData();
}, headClass: function() {
return "text-align:center;background:#FAFAFA;";
} } }, u = o, c = (a("24521"), a("f4b0"), a("829d")), d = Object(c["a"])(u, l, i, false, null, "3d25d1d2", null);
t["default"] = d.exports;
}, a85d: function(e, t, a) {
}, f4b0: function(e, t, a) {
"use strict";
a("49ef");
} }]);