858 lines
60 KiB
JavaScript
858 lines
60 KiB
JavaScript
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-378bab12"], { "00b6": function(t, e, i) {
|
||
"use strict";
|
||
i.d(e, "d", (function() {
|
||
return a;
|
||
})), i.d(e, "b", (function() {
|
||
return s;
|
||
})), i.d(e, "e", (function() {
|
||
return r;
|
||
})), i.d(e, "c", (function() {
|
||
return o;
|
||
})), i.d(e, "j", (function() {
|
||
return l;
|
||
})), i.d(e, "f", (function() {
|
||
return c;
|
||
})), i.d(e, "g", (function() {
|
||
return u;
|
||
})), i.d(e, "i", (function() {
|
||
return d;
|
||
})), i.d(e, "k", (function() {
|
||
return p;
|
||
})), i.d(e, "m", (function() {
|
||
return m;
|
||
})), i.d(e, "h", (function() {
|
||
return h;
|
||
})), i.d(e, "l", (function() {
|
||
return f;
|
||
})), i.d(e, "a", (function() {
|
||
return g;
|
||
}));
|
||
var n = i("b775");
|
||
function a(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/house/listPrecinctByCodes", method: "post", data: t2 });
|
||
}
|
||
function s(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/house/listBuildByCodes", method: "post", data: t2 });
|
||
}
|
||
function r(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/house/listUnitByCodes", method: "post", data: t2 });
|
||
}
|
||
function o(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/house/listHouseByCodes", method: "post", data: t2 });
|
||
}
|
||
function l(t2) {
|
||
return Object(n["a"])({ url: "/question/Theme/pageList", method: "post", data: t2 });
|
||
}
|
||
function c(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/Question/theme/create", method: "post", data: t2 });
|
||
}
|
||
function u(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/Question/theme/delete", method: "post", data: t2 });
|
||
}
|
||
function d(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/Question/questions/delete", method: "post", data: t2 });
|
||
}
|
||
function p(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/Question/option/delete", method: "post", data: t2 });
|
||
}
|
||
function m(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/Question/theme/update", method: "post", data: t2 });
|
||
}
|
||
function h(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/Question/theme/findById", method: "post", data: t2 });
|
||
}
|
||
function f(t2) {
|
||
return Object(n["a"])({ url: "/question/Theme/total", method: "post", data: t2 });
|
||
}
|
||
function g(t2) {
|
||
return Object(n["a"])({ url: "/question/Theme/finish", method: "post", data: t2 });
|
||
}
|
||
}, "0b37": function(t, e, i) {
|
||
"use strict";
|
||
i.d(e, "a", (function() {
|
||
return n;
|
||
})), i.d(e, "b", (function() {
|
||
return a;
|
||
})), i.d(e, "c", (function() {
|
||
return s;
|
||
})), i.d(e, "d", (function() {
|
||
return r;
|
||
})), i.d(e, "f", (function() {
|
||
return o;
|
||
})), i.d(e, "e", (function() {
|
||
return l;
|
||
}));
|
||
i("8dee"), i("e680"), i("4057"), i("fc02");
|
||
function n(t2, e2) {
|
||
var i2, n2, a2, s2;
|
||
try {
|
||
i2 = t2.toString().split(".")[1].length;
|
||
} catch (o2) {
|
||
i2 = 0;
|
||
}
|
||
try {
|
||
n2 = e2.toString().split(".")[1].length;
|
||
} catch (o2) {
|
||
n2 = 0;
|
||
}
|
||
if (s2 = Math.abs(i2 - n2), a2 = Math.pow(10, Math.max(i2, n2)), s2 > 0) {
|
||
var r2 = Math.pow(10, s2);
|
||
i2 > n2 ? (t2 = Number(t2.toString().replace(".", "")), e2 = Number(e2.toString().replace(".", "")) * r2) : (t2 = Number(t2.toString().replace(".", "")) * r2, e2 = Number(e2.toString().replace(".", "")));
|
||
} else t2 = Number(t2.toString().replace(".", "")), e2 = Number(e2.toString().replace(".", ""));
|
||
return (t2 + e2) / a2;
|
||
}
|
||
function a(t2, e2) {
|
||
var i2, n2, a2 = 0, s2 = 0;
|
||
try {
|
||
a2 = t2.toString().split(".")[1].length;
|
||
} catch (r2) {
|
||
}
|
||
try {
|
||
s2 = e2.toString().split(".")[1].length;
|
||
} catch (r2) {
|
||
}
|
||
return i2 = Number(t2.toString().replace(".", "")), n2 = Number(e2.toString().replace(".", "")), i2 / n2 * Math.pow(10, s2 - a2);
|
||
}
|
||
function s(t2, e2) {
|
||
var i2 = 0, n2 = t2.toString(), a2 = e2.toString();
|
||
try {
|
||
i2 += n2.split(".")[1].length;
|
||
} catch (s2) {
|
||
}
|
||
try {
|
||
i2 += a2.split(".")[1].length;
|
||
} catch (s2) {
|
||
}
|
||
return Number(n2.replace(".", "")) * Number(a2.replace(".", "")) / Math.pow(10, i2);
|
||
}
|
||
function r(t2, e2) {
|
||
var i2, n2, a2, s2;
|
||
try {
|
||
i2 = t2.toString().split(".")[1].length;
|
||
} catch (r2) {
|
||
i2 = 0;
|
||
}
|
||
try {
|
||
n2 = e2.toString().split(".")[1].length;
|
||
} catch (r2) {
|
||
n2 = 0;
|
||
}
|
||
return a2 = Math.pow(10, Math.max(i2, n2)), s2 = i2 >= n2 ? i2 : n2, (Math.round(t2 * a2 - e2 * a2) / a2).toFixed(s2);
|
||
}
|
||
function o(t2, e2) {
|
||
if (0 == t2 && (t2 = 0), /[^[\-|0-9][0-9]*]/.test(t2)) return "0";
|
||
if (null == t2 || "" === t2) return "";
|
||
t2 = t2.toString().replace(/^(-\d*)$/, "$1."), t2 = t2.toString().replace(/^(\d*)$/, "$1."), t2 = (t2 + "00").replace(/(\d*\.\d\d)\d*/, "$1"), t2 = t2.replace(".", ",");
|
||
var i2 = /(\d)(\d{3},)/;
|
||
while (i2.test(t2)) t2 = t2.replace(i2, "$1,$2");
|
||
if (t2 = t2.replace(/,(\d\d)$/, ".$1"), 0 === e2 || void 0 === e2) {
|
||
var n2 = t2.split(".");
|
||
"00" == n2[1] && (t2 = n2[0]);
|
||
}
|
||
return t2;
|
||
}
|
||
function l(t2, e2) {
|
||
t2 = t2.toString();
|
||
var i2 = t2.indexOf(".");
|
||
return t2 = -1 !== i2 ? t2.substring(0, e2 + i2 + 1) : t2.substring(0), parseFloat(t2).toFixed(e2);
|
||
}
|
||
}, "20e1": function(t, e, i) {
|
||
"use strict";
|
||
i.d(e, "l", (function() {
|
||
return a;
|
||
})), i.d(e, "k", (function() {
|
||
return s;
|
||
})), i.d(e, "h", (function() {
|
||
return r;
|
||
})), i.d(e, "a", (function() {
|
||
return o;
|
||
})), i.d(e, "e", (function() {
|
||
return l;
|
||
})), i.d(e, "b", (function() {
|
||
return c;
|
||
})), i.d(e, "c", (function() {
|
||
return u;
|
||
})), i.d(e, "d", (function() {
|
||
return d;
|
||
})), i.d(e, "m", (function() {
|
||
return p;
|
||
})), i.d(e, "f", (function() {
|
||
return m;
|
||
})), i.d(e, "i", (function() {
|
||
return h;
|
||
})), i.d(e, "g", (function() {
|
||
return f;
|
||
})), i.d(e, "j", (function() {
|
||
return g;
|
||
}));
|
||
var n = i("b775");
|
||
function a(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/YdRule/pageList", method: "post", data: t2 });
|
||
}
|
||
function s(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/YdPool/create", method: "post", data: t2 });
|
||
}
|
||
function r(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/YdPool/findOsProjectYdPageList", method: "post", data: t2 });
|
||
}
|
||
function o(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/YdPool/countYdTotalByProject", method: "post", data: t2 });
|
||
}
|
||
function l(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/YdPool/getDetail", method: "post", data: t2 });
|
||
}
|
||
function c(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/YdMemberAccount/findMemberYdPageList", method: "post", data: t2 });
|
||
}
|
||
function u(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/YdMemberAccount/findById", method: "post", data: t2 });
|
||
}
|
||
function d(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/YdPool/pageList", method: "post", data: t2 });
|
||
}
|
||
function p(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/YdPool/update", method: "post", data: t2 });
|
||
}
|
||
function m(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/YdMemberAccount/memberTradeRecordPageList", method: "post", data: t2 });
|
||
}
|
||
function h(t2) {
|
||
return Object(n["a"])({ url: "/company/YdMemberAccount/findTradeRecordDetail", method: "post", data: t2 });
|
||
}
|
||
function f(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/Project/orderPricePage", method: "post", data: t2 });
|
||
}
|
||
function g(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/Project/updateOrderPrice", method: "post", data: t2 });
|
||
}
|
||
}, "24db": function(t, e, i) {
|
||
"use strict";
|
||
i("c06f");
|
||
}, "48aa": function(t, e, i) {
|
||
}, "49bf": function(t, e, i) {
|
||
"use strict";
|
||
i("984b");
|
||
}, 5153: function(t, e, i) {
|
||
}, "67d5": function(t, e, i) {
|
||
"use strict";
|
||
i.d(e, "i", (function() {
|
||
return a;
|
||
})), i.d(e, "j", (function() {
|
||
return s;
|
||
})), i.d(e, "f", (function() {
|
||
return r;
|
||
})), i.d(e, "b", (function() {
|
||
return o;
|
||
})), i.d(e, "c", (function() {
|
||
return l;
|
||
})), i.d(e, "k", (function() {
|
||
return c;
|
||
})), i.d(e, "e", (function() {
|
||
return u;
|
||
})), i.d(e, "d", (function() {
|
||
return d;
|
||
})), i.d(e, "h", (function() {
|
||
return p;
|
||
})), i.d(e, "a", (function() {
|
||
return m;
|
||
})), i.d(e, "g", (function() {
|
||
return h;
|
||
}));
|
||
var n = i("b775");
|
||
function a(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/Role/pageList", method: "post", data: t2 });
|
||
}
|
||
function s(t2) {
|
||
return Object(n["a"])({ url: "/company/organizationalStructure/selectOsList", method: "post", data: t2 });
|
||
}
|
||
function r(t2) {
|
||
return Object(n["a"])({ url: "/company/organizationalStructure/findOsTree", method: "post", data: t2 });
|
||
}
|
||
function o(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/Role/create", method: "post", data: t2 });
|
||
}
|
||
function l(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/Role/delete", method: "post", data: t2 });
|
||
}
|
||
function c(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/Role/update", method: "post", data: t2 });
|
||
}
|
||
function u(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/RoleMenuRel/findByRoleIdAndClienId", method: "post", data: t2 });
|
||
}
|
||
function d(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/OrganizationRoleRel/findByRoleId", method: "post", data: t2 });
|
||
}
|
||
function p(t2) {
|
||
return Object(n["a"])({ url: "/company/member/pageListForRole", method: "post", data: t2 });
|
||
}
|
||
function m(t2) {
|
||
return Object(n["a"])({ url: "/company/MemberRoleRel/batchDelete", method: "post", data: t2 });
|
||
}
|
||
function h(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/account/findProjectByRole", method: "post", data: t2 });
|
||
}
|
||
}, "73be": function(t, e, i) {
|
||
"use strict";
|
||
i("5153");
|
||
}, "90e7": function(t, e, i) {
|
||
"use strict";
|
||
i.d(e, "g", (function() {
|
||
return a;
|
||
})), i.d(e, "m", (function() {
|
||
return s;
|
||
})), i.d(e, "f", (function() {
|
||
return r;
|
||
})), i.d(e, "l", (function() {
|
||
return o;
|
||
})), i.d(e, "h", (function() {
|
||
return l;
|
||
})), i.d(e, "n", (function() {
|
||
return c;
|
||
})), i.d(e, "a", (function() {
|
||
return u;
|
||
})), i.d(e, "b", (function() {
|
||
return d;
|
||
})), i.d(e, "c", (function() {
|
||
return p;
|
||
})), i.d(e, "e", (function() {
|
||
return m;
|
||
})), i.d(e, "d", (function() {
|
||
return h;
|
||
})), i.d(e, "i", (function() {
|
||
return f;
|
||
})), i.d(e, "j", (function() {
|
||
return g;
|
||
})), i.d(e, "o", (function() {
|
||
return v;
|
||
})), i.d(e, "k", (function() {
|
||
return b;
|
||
}));
|
||
var n = i("b775");
|
||
function a(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/DeductionInfo/findById", method: "post", data: t2 });
|
||
}
|
||
function s(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/DeductionInfo/update", method: "post", data: t2 });
|
||
}
|
||
function r(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/CollectionInfoApi/findById", method: "post", data: t2 });
|
||
}
|
||
function o(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/CollectionInfoApi/update", method: "post", data: t2 });
|
||
}
|
||
function l(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/ChargePushConfigApi/findById", method: "post", data: t2 });
|
||
}
|
||
function c(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/ChargePushConfigApi/update", method: "post", data: t2 });
|
||
}
|
||
function u(t2) {
|
||
return Object(n["a"])({ url: "/company/ProjectSatisfactionConfig/pageList", method: "post", data: t2 });
|
||
}
|
||
function d(t2) {
|
||
return Object(n["a"])({ url: "/company/ProjectSatisfactionConfig/update", method: "post", data: t2 });
|
||
}
|
||
function p(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/CockpitConfig/create", method: "post", data: t2 });
|
||
}
|
||
function m(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/CockpitConfig/findByCompanyIdAndType", method: "post", data: t2 });
|
||
}
|
||
function h(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/CockpitConfig/sceneMenuList", method: "post", data: t2 });
|
||
}
|
||
function f(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/ProjectConfig/pageList", method: "post", data: t2 });
|
||
}
|
||
function g(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/ProjectConfig/updateExponentByProjectUuid", method: "post", data: t2 });
|
||
}
|
||
function v(t2, e2) {
|
||
return Object(n["a"])({ url: "/oss/upload", isFile: true, isReturnResponse: true, headers: { "Content-Type": "multipart/form-data;charset=UTF-8" }, method: "post", data: t2, onUploadProgress: e2 && e2.onUploadProgress });
|
||
}
|
||
function b(t2) {
|
||
return Object(n["a"])({ url: "/hakocompany/ProjectConfig/updateVisitPollRateByProjectUuid", method: "post", data: t2 });
|
||
}
|
||
}, "984b": function(t, e, i) {
|
||
}, b860: function(t, e, i) {
|
||
"use strict";
|
||
i("d7bc");
|
||
}, c06f: function(t, e, i) {
|
||
}, cc57: function(t, e, i) {
|
||
"use strict";
|
||
var n = function() {
|
||
var t2 = this, e2 = t2.$createElement, i2 = t2._self._c || e2;
|
||
return i2("div", [[i2("el-upload", { staticClass: "upload-demo", attrs: { action: "", "http-request": t2.handleUpload, disabled: t2.disabled, "on-preview": t2.handlePreview, "on-remove": t2.handleRemove, "on-success": t2.handleSuccess, "before-remove": t2.beforeRemove, "show-file-list": t2.isShowFileList, accept: t2.accept, multiple: t2.multiple, limit: t2.limit, "on-exceed": t2.handleExceed, "file-list": t2.fileList, "list-type": t2.listType } }, ["picture-card" !== t2.listType ? [i2("el-button", { attrs: { size: "small", type: "primary" } }, [t2._v("点击上传")]), t2._v(" "), t2.disabled ? t2._e() : i2("div", { staticClass: "el-upload__tip", attrs: { slot: "tip" }, slot: "tip" }, [t2._v("\n 只能上传" + t2._s(t2.seeTrans[t2.uploadType]) + "文件,且不超过" + t2._s(t2.fileSizeLimit) + "MB\n ")])] : [!t2.isShowFileList && t2.fileList.length > 0 ? i2("img", { staticClass: "avatar", attrs: { src: t2.fileList[0].url } }) : i2("i", { staticClass: "el-icon-picture-outline avatar-uploader-icon" }), t2._v(" "), t2.disabled ? t2._e() : i2("div", { staticClass: "el-upload__tip", attrs: { slot: "tip" }, slot: "tip" }, [t2._v("\n 只能上传" + t2._s(t2.seeTrans[t2.uploadType]) + "文件,且不超过" + t2._s(t2.fileSizeLimit) + "MB\n ")])]], 2), t2._v(" "), i2("el-dialog", { attrs: { visible: t2.dialogVisible }, on: { "update:visible": function(e3) {
|
||
t2.dialogVisible = e3;
|
||
} } }, [i2("img", { attrs: { width: "100%", src: t2.dialogImageUrl, alt: "" } })])]], 2);
|
||
}, a = [], s = (i("b5aa"), i("3ef1")), r = (i("d31c"), i("aa18"), i("982e"), i("fc02"), i("a450"), i("e680"), i("90e7")), o = (i("4057"), function() {
|
||
function t2() {
|
||
return (65536 * (1 + Math.random()) | 0).toString(16).substring(1);
|
||
}
|
||
return "".concat(+/* @__PURE__ */ new Date(), "_").concat(t2()).concat(t2());
|
||
});
|
||
function l(t2) {
|
||
var e2 = t2.lastIndexOf("."), i2 = "";
|
||
return -1 != e2 && (i2 = t2.substring(e2)), i2;
|
||
}
|
||
var c = { name: "Upload", props: { value: String, tip: { type: String, default: "上传大小不能超过80M" }, limit: { type: Number, default: 1 }, action: { type: String, default: "" }, headers: { type: Object, default: function() {
|
||
} }, name: { type: String, default: "" }, listType: { type: String, default: "picture" }, fileSizeLimit: { type: Number, default: 1 }, accept: { type: String, default: "image/jpeg,image/png,image/JPG,image/jpg,image/PNG" }, uploadType: { type: String, default: function() {
|
||
return "images";
|
||
} }, multiple: { type: Boolean, default: false }, isShowFileList: { type: Boolean, default: false }, disabled: { type: Boolean, default: false }, imgStore: { type: String }, isChangeFileName: { type: Boolean, default: true } }, data: function() {
|
||
return { uploadTypeTrans: { images: { accept: "image/jpeg,image/png,image/JPG,image/jpg,image/PNG" }, music: { accept: "audio/mp3,video/mp4" }, doc: { accept: "text/plain,application/msword,application/excel,application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.wordprocessingml.document" }, pdf: { accept: "application/pdf" } }, seeTrans: { music: "歌曲", images: "图片", doc: "文档", xlsx: "execl文件", pdf: "pdf文档" }, dialogVisible: false, dialogImageUrl: "" };
|
||
}, computed: { imageUrl: function() {
|
||
return this.value;
|
||
}, imageName: function() {
|
||
return null != this.value && "" !== this.value && void 0 != this.value ? this.value.substr(this.value.lastIndexOf("/") + 1) : null;
|
||
}, fileList: function() {
|
||
return null != this.value && "" !== this.value && void 0 != this.value ? [{ name: this.imageName ? this.imageName : "", url: this.imageUrl ? this.imageUrl : "" }] : [];
|
||
}, showFileList: { get: function() {
|
||
return null !== this.value && "" !== this.value && void 0 !== this.value;
|
||
}, set: function(t2) {
|
||
} } }, mounted: function() {
|
||
this.uploadType && this.uploadTypeTrans[this.uploadType].accept && (this.accept = this.uploadTypeTrans[this.uploadType].accept);
|
||
}, methods: { emitInput: function(t2) {
|
||
this.$emit("input", t2);
|
||
}, handleRemove: function(t2, e2) {
|
||
this.emitInput("");
|
||
}, handlePreview: function(t2) {
|
||
this.dialogImageUrl = t2.url, this.dialogVisible = true;
|
||
}, handleExceed: function(t2, e2) {
|
||
console.log("fileList", e2), this.$message.warning("每次只能上传 ".concat(this.limit, " 个文件"));
|
||
}, beforeRemove: function(t2, e2) {
|
||
return this.$confirm("确定移除 ".concat(t2.name, "?"));
|
||
}, beforeAvatarUpload: function(t2) {
|
||
var e2 = t2.size / 1024 / 1024 < this.fileSizeLimit;
|
||
if (!e2) return this.$message.error("上传文件大小不能超过" + this.fileSizeLimit + "MB!"), false;
|
||
var i2 = this.accept.split(","), n2 = i2.some((function(e3) {
|
||
return t2.type === e3.trim() || e3.includes("*") && t2.type.startsWith(e3.split("*")[0]);
|
||
}));
|
||
return !(!n2 && i2.length > 0) || (this.$message.error("上传文件类型不符合要求!"), false);
|
||
}, handleSuccess: function(t2, e2, i2) {
|
||
this.fileList = i2, this.$emit("on-success", e2, i2);
|
||
}, add0: function(t2) {
|
||
return t2 < 10 ? "0" + t2 : t2;
|
||
}, getYearMonthDay: function() {
|
||
var t2 = /* @__PURE__ */ new Date(), e2 = t2.getFullYear(), i2 = t2.getMonth() + 1, n2 = t2.getDate();
|
||
return "" + e2 + this.add0(i2) + this.add0(n2);
|
||
}, handleUpload: (function() {
|
||
var t2 = Object(s["a"])(regeneratorRuntime.mark((function t3(e3) {
|
||
var i2, n2, a2, s2, c2;
|
||
return regeneratorRuntime.wrap((function(t4) {
|
||
while (1) switch (t4.prev = t4.next) {
|
||
case 0:
|
||
return t4.prev = 0, console.log("option", e3), i2 = "", i2 = this.isChangeFileName ? o() + l(e3.file.name) : e3.file.name, n2 = new FormData(), n2.append("file", e3.file), n2.append("imgStore", this.imgStore), n2.append("fileName", i2), n2.append("yearMonthDay", this.getYearMonthDay()), t4.next = 1, Object(r["o"])(n2);
|
||
case 1:
|
||
if (a2 = t4.sent, !a2 || !a2.data || 0 !== a2.data.code) {
|
||
t4.next = 2;
|
||
break;
|
||
}
|
||
s2 = a2.data.data.fullUrl || a2.data.data.url, e3.onSuccess({ name: e3.file.name, url: s2 }), this.fileList.pop(), this.fileList.push({ name: e3.file.name, url: s2 }), this.emitInput(s2), this.$message.success("文件上传成功"), t4.next = 3;
|
||
break;
|
||
case 2:
|
||
throw new Error(a2.data.message || "上传失败");
|
||
case 3:
|
||
t4.next = 5;
|
||
break;
|
||
case 4:
|
||
t4.prev = 4, c2 = t4["catch"](0), console.error("上传失败:", c2), this.$message.error("文件上传失败: ".concat(c2.message || "未知错误")), e3.onError("上传失败");
|
||
case 5:
|
||
case "end":
|
||
return t4.stop();
|
||
}
|
||
}), t3, this, [[0, 4]]);
|
||
})));
|
||
function e2(e3) {
|
||
return t2.apply(this, arguments);
|
||
}
|
||
return e2;
|
||
})() } }, u = c, d = (i("b860"), i("829d")), p = Object(d["a"])(u, n, a, false, null, "20ab94cc", null);
|
||
e["a"] = p.exports;
|
||
}, d6d9: function(t, e, i) {
|
||
"use strict";
|
||
i.r(e);
|
||
var n = function() {
|
||
var t2 = this, e2 = t2.$createElement, i2 = t2._self._c || e2;
|
||
return i2("div", { staticClass: "workPointsManage" }, [t2.infoList ? i2("div", { staticClass: "workPointsRuleList" }, [i2("el-card", { staticClass: "box-card" }, [i2("el-row", [i2("el-col", { staticClass: "elCol", attrs: { span: 4 } }, [i2("el-input", { attrs: { type: "text", clearable: "", placeholder: "投票主题" }, model: { value: t2.query.title, callback: function(e3) {
|
||
t2.$set(t2.query, "title", "string" === typeof e3 ? e3.trim() : e3);
|
||
}, expression: "query.title" } })], 1), t2._v(" "), i2("el-col", { staticClass: "elCol", attrs: { span: 4 } }, [i2("el-select", { attrs: { clearable: "", placeholder: "请选择项目" }, model: { value: t2.query.projectUuid, callback: function(e3) {
|
||
t2.$set(t2.query, "projectUuid", e3);
|
||
}, expression: "query.projectUuid" } }, t2._l(t2.projectList, (function(t3) {
|
||
return i2("el-option", { key: t3.uuid, attrs: { label: t3.name, value: t3.uuid } });
|
||
})), 1)], 1), t2._v(" "), i2("el-col", { staticClass: "elCol", attrs: { span: 4 } }, [i2("el-input", { attrs: { type: "text", clearable: "", placeholder: "创建人" }, model: { value: t2.query.createBy, callback: function(e3) {
|
||
t2.$set(t2.query, "createBy", "string" === typeof e3 ? e3.trim() : e3);
|
||
}, expression: "query.createBy" } })], 1), t2._v(" "), i2("el-col", { staticClass: "elCol", attrs: { span: 8 } }, [i2("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: t2.query.createDate, callback: function(e3) {
|
||
t2.$set(t2.query, "createDate", e3);
|
||
}, expression: "query.createDate" } })], 1), t2._v(" "), i2("el-col", { staticClass: "elCol", attrs: { span: 4 } }, [i2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(e3) {
|
||
return t2.resetForm();
|
||
} } }, [t2._v("重置")]), t2._v(" "), i2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: t2.onSearch } }, [t2._v("查询")])], 1)], 1)], 1), t2._v(" "), i2("el-card", { staticClass: "box-card", staticStyle: { "margin-top": "15px" } }, [i2("div", { staticClass: "planLst" }, [i2("span", { staticStyle: { color: "#2f2c2c", "font-size": "16px" } }, [t2._v("投票列表")]), t2._v(" "), i2("span", { staticClass: "add" }, [i2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: t2.addRuleGroup } }, [t2._v("新建投票")])], 1)]), t2._v(" "), i2("el-table", { staticStyle: { width: "100%", "margin-top": "15px" }, attrs: { border: "", data: t2.tableData, "header-cell-style": t2.headClass } }, [i2("el-table-column", { attrs: { label: "#", align: "center", "min-width": "50", fixed: "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
||
return [i2("span", [t2._v(t2._s(e3.$index + (t2.query.pageNumber - 1) * t2.query.pageSize + 1) + " ")])];
|
||
} }], null, false, 3830243315) }), t2._v(" "), i2("el-table-column", { attrs: { align: "center", prop: "title", label: "投票主题", fixed: "", "min-width": "180", "show-overflow-tooltip": "" } }), t2._v(" "), i2("el-table-column", { attrs: { align: "center", prop: "projectNames", label: "所属小区", "min-width": "180", "show-overflow-tooltip": "" } }), t2._v(" "), i2("el-table-column", { attrs: { align: "center", prop: "isAnonymous", label: "是否匿名" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
||
return [t2._v("\n " + t2._s(2 === e3.row.isAnonymous ? "否" : "是") + "\n ")];
|
||
} }], null, false, 627058839) }), t2._v(" "), i2("el-table-column", { attrs: { align: "center", prop: "status", label: "状态" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
||
return [t2._v("\n " + t2._s(1 === e3.row.status ? "未发布" : 2 === e3.row.status ? "投票中" : "已截止") + "\n ")];
|
||
} }], null, false, 3821127212) }), t2._v(" "), i2("el-table-column", { attrs: { align: "center", prop: "total", label: "投票人数" } }), t2._v(" "), i2("el-table-column", { attrs: { align: "center", prop: "createBy", label: "创建人", "show-overflow-tooltip": "" } }), t2._v(" "), i2("el-table-column", { attrs: { align: "center", prop: "endDate", label: "截止时间", "min-width": "160" } }), t2._v(" "), i2("el-table-column", { attrs: { align: "center", prop: "updateDate", label: "创建时间", "min-width": "160" } }), t2._v(" "), i2("el-table-column", { attrs: { align: "center", prop: "address", fixed: "right", label: "操作", "min-width": "120" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
||
return [e3.row ? i2("span", [i2("el-button", { attrs: { type: "text" }, on: { click: function(i3) {
|
||
return t2.detailsClick(e3.row, "view");
|
||
} } }, [t2._v("查看")])], 1) : t2._e(), t2._v(" "), 1 === e3.row.status ? i2("span", [i2("el-button", { attrs: { type: "text" }, on: { click: function(i3) {
|
||
return t2.detailsClick(e3.row, "edit");
|
||
} } }, [t2._v("编辑")])], 1) : t2._e(), t2._v(" "), 1 === e3.row.status ? i2("span", [i2("el-button", { attrs: { type: "text" }, on: { click: function(i3) {
|
||
return t2.deleteClick(e3.row);
|
||
} } }, [t2._v("删除")])], 1) : t2._e(), t2._v(" "), e3.row.total > 0 ? i2("span", [i2("el-button", { attrs: { type: "text" }, on: { click: function(i3) {
|
||
return t2.gotoVoteStatisic(e3.row);
|
||
} } }, [t2._v("统计")])], 1) : t2._e(), t2._v(" "), 2 === e3.row.status ? i2("span", [i2("el-button", { attrs: { type: "text" }, on: { click: function(i3) {
|
||
return t2.gotoEnd(e3.row);
|
||
} } }, [t2._v("提前结束")])], 1) : t2._e()];
|
||
} }], null, false, 2672412912) })], 1), t2._v(" "), i2("div", { staticClass: "paginations" }, [i2("el-pagination", { attrs: { background: "", "current-page": t2.query.pageNumber, "page-sizes": [10, 20, 30, 50], "page-size": t2.query.pageSize, layout: "total, sizes, prev, pager, next, jumper", total: t2.pageTotal }, on: { "update:currentPage": function(e3) {
|
||
return t2.$set(t2.query, "pageNumber", e3);
|
||
}, "update:current-page": function(e3) {
|
||
return t2.$set(t2.query, "pageNumber", e3);
|
||
}, "size-change": t2.handleSizeChange, "current-change": t2.handleCurrentChange } })], 1)], 1)], 1) : t2._e(), t2._v(" "), t2.viewInfo ? i2("div", { staticClass: "viewDetails" }, [i2("addVote", { ref: "addVote", attrs: { type: t2.type }, on: { goBack: t2.goBack } })], 1) : t2._e(), t2._v(" "), t2.statisic ? i2("div", { staticClass: "viewDetails" }, [i2("voteStatisic", { ref: "statisic", on: { goBack: t2.goBack } })], 1) : t2._e()]);
|
||
}, a = [], s = (i("20e1"), i("67d5")), r = i("00b6"), o = function() {
|
||
var t2 = this, e2 = t2.$createElement, i2 = t2._self._c || e2;
|
||
return i2("div", { staticClass: "ruleGroupInfo" }, [i2("el-card", { staticClass: "box-card" }, [i2("el-page-header", { attrs: { content: t2.content }, on: { back: t2.goBack } }), t2._v(" "), i2("div", { staticClass: "rule typeface" }, [t2._v("投票设置")]), t2._v(" "), i2("div", { staticClass: "vote-form" }, [i2("el-form", { ref: "ruleForm", staticClass: "demo-ruleForm", attrs: { model: t2.ruleForm, rules: t2.rules, "label-width": "130px" } }, [i2("el-row", [i2("el-col", { attrs: { span: 12 } }, [i2("el-form-item", { attrs: { label: "投票主题:", prop: "title" } }, [i2("el-input", { attrs: { disabled: t2.disabled, placeholder: "请输入投票主题", maxlength: "128", "show-word-limit": "" }, model: { value: t2.ruleForm.title, callback: function(e3) {
|
||
t2.$set(t2.ruleForm, "title", "string" === typeof e3 ? e3.trim() : e3);
|
||
}, expression: "ruleForm.title" } })], 1)], 1)], 1), t2._v(" "), i2("el-row", [i2("el-form-item", { attrs: { label: "截止日期", required: "" } }, [i2("el-col", { attrs: { span: 4 } }, [i2("el-form-item", { attrs: { prop: "expiryDate" } }, [i2("el-date-picker", { staticStyle: { width: "100%" }, attrs: { type: "date", disabled: t2.disabled, format: "yyyy-MM-dd", "value-format": "yyyy-MM-dd", "picker-options": t2.pickerOptions, placeholder: "选择投票截止日期" }, model: { value: t2.ruleForm.expiryDate, callback: function(e3) {
|
||
t2.$set(t2.ruleForm, "expiryDate", e3);
|
||
}, expression: "ruleForm.expiryDate" } })], 1)], 1), t2._v(" "), i2("el-col", { staticClass: "line", attrs: { span: 1 } }, [t2._v("-")]), t2._v(" "), i2("el-col", { attrs: { span: 4 } }, [i2("el-form-item", { attrs: { prop: "dateTime" } }, [i2("el-time-picker", { staticStyle: { width: "100%" }, attrs: { placeholder: "选择时间", disabled: t2.disabled, "value-format": "HH:mm:ss", format: "HH:mm:ss" }, model: { value: t2.ruleForm.dateTime, callback: function(e3) {
|
||
t2.$set(t2.ruleForm, "dateTime", e3);
|
||
}, expression: "ruleForm.dateTime" } })], 1)], 1)], 1)], 1), t2._v(" "), i2("el-row", [i2("el-col", [i2("el-form-item", { attrs: { label: "投票说明:", prop: "remarks" } }, [i2("el-input", { attrs: { type: "textarea", disabled: t2.disabled, rows: "5", placeholder: "请输入投票说明", maxlength: "300", "show-word-limit": "" }, model: { value: t2.ruleForm.remarks, callback: function(e3) {
|
||
t2.$set(t2.ruleForm, "remarks", "string" === typeof e3 ? e3.trim() : e3);
|
||
}, expression: "ruleForm.remarks" } })], 1)], 1)], 1), t2._v(" "), i2("el-row", [i2("el-col", [i2("el-form-item", { staticClass: "is-required", attrs: { label: "适用范围:", prop: "itemsProject" } }, [i2("div", { staticClass: "vote-projects" }, [t2._l(t2.rangeList, (function(e3, n2) {
|
||
return e3.children.length > 0 ? i2("div", { key: n2, staticClass: "vote-projects-items" }, [i2("div", { staticClass: "projects-list" }, [i2("label", { staticClass: "projects-list-item-title" }, [t2._v(t2._s(e3.name) + ":")]), t2._v(" "), i2("el-checkbox", { staticClass: "projects-checkAll", attrs: { disabled: t2.disabled, indeterminate: e3.isIndeterminate }, on: { change: function(e4) {
|
||
return t2.handleCheckAllChange(e4, n2);
|
||
} }, model: { value: e3.checkAll, callback: function(i3) {
|
||
t2.$set(e3, "checkAll", i3);
|
||
}, expression: "r.checkAll" } }, [t2._v("全选")])], 1), t2._v(" "), i2("div", { staticClass: "projects-checkbox" }, [i2("el-checkbox-group", { staticClass: "projects-checkbox-checkbox", style: { height: e3.show ? "auto" : e3.children.length > 5 ? "80px" : "40px" }, attrs: { disabled: t2.disabled }, on: { change: function(e4) {
|
||
return t2.handleCheckedCitiesChange(e4, n2);
|
||
} }, model: { value: e3.select, callback: function(i3) {
|
||
t2.$set(e3, "select", i3);
|
||
}, expression: "r.select" } }, t2._l(e3.children, (function(e4) {
|
||
return i2("el-checkbox", { key: 0 === n2 ? e4.uuid : e4.id, staticClass: "projects-checkbox-item", attrs: { label: 0 === n2 ? e4.uuid : e4.id } }, [t2._v(t2._s(4 === n2 ? e4.roomNum : e4.name))]);
|
||
})), 1), t2._v(" "), e3.children.length > 10 ? i2("el-button", { staticClass: "projects-show", attrs: { type: "primary", icon: e3.show ? "el-icon-arrow-up" : "el-icon-arrow-down", size: "mini" }, on: { click: function(e4) {
|
||
return t2.showSelects(n2);
|
||
} } }, [t2._v(t2._s(e3.show ? "收缩" : "展开"))]) : t2._e()], 1)]) : t2._e();
|
||
})), t2._v(" "), i2("div", { staticClass: "vote-projects-items" }, [i2("div", { staticClass: "projects-list projects-list-radio" }, [i2("label", { staticClass: "projects-list-item-title" }, [t2._v("选择身份:")]), t2._v(" "), i2("el-radio-group", { staticClass: "projects-checkAll", attrs: { disabled: t2.disabled }, model: { value: t2.identity, callback: function(e3) {
|
||
t2.identity = e3;
|
||
}, expression: "identity" } }, [i2("el-radio", { attrs: { label: 1 } }, [t2._v("所有人")]), t2._v(" "), i2("el-radio", { attrs: { label: 2 } }, [t2._v("住户")]), t2._v(" "), i2("el-radio", { attrs: { label: 3 } }, [t2._v("产权人")])], 1)], 1)])], 2)])], 1)], 1), t2._v(" "), i2("el-row", [i2("el-col", [i2("el-form-item", { attrs: { label: "是否匿名:", prop: "isAnonymous" } }, [i2("el-radio", { attrs: { label: 1, disabled: t2.disabled }, model: { value: t2.ruleForm.isAnonymous, callback: function(e3) {
|
||
t2.$set(t2.ruleForm, "isAnonymous", e3);
|
||
}, expression: "ruleForm.isAnonymous" } }, [t2._v("是")]), t2._v(" "), i2("el-radio", { attrs: { label: 2, disabled: t2.disabled }, model: { value: t2.ruleForm.isAnonymous, callback: function(e3) {
|
||
t2.$set(t2.ruleForm, "isAnonymous", e3);
|
||
}, expression: "ruleForm.isAnonymous" } }, [t2._v("否")])], 1)], 1)], 1)], 1)], 1), t2._v(" "), i2("div", { staticClass: "rule typeface" }, [t2._v("投票选项")]), t2._v(" "), i2("div", { staticClass: "vote-questions" }, [t2.questionsList.length > 0 ? i2("div", { staticClass: "vote-questions-list" }, [i2("draggable", { staticClass: "dragArea", attrs: { list: t2.questionsList, group: "article", animation: "10", disabled: "view" === t2.type }, on: { sort: t2.draggableSort, end: t2.draggableEnd } }, t2._l(t2.questionsList, (function(e3, n2) {
|
||
return i2("div", { key: n2, staticClass: "vote-questions-item" }, [i2("div", { staticClass: "vote-questions-item-index" }, [t2._v("问题" + t2._s(n2 + 1))]), t2._v(" "), i2("div", { staticClass: "vote-questions-item-detl" }, [i2("el-row", [i2("el-col", { attrs: { span: 2, offset: 1 } }, [i2("span", { staticClass: "item-detl-title" }, [t2._v("标题")])]), t2._v(" "), i2("el-col", { attrs: { span: 10 } }, [i2("el-input", { staticClass: "options-input", attrs: { type: "text", disabled: t2.disabled, placeholder: "请输入该项题目标题", "show-word-limit": "", maxlength: "128" }, model: { value: e3.title, callback: function(i3) {
|
||
t2.$set(e3, "title", "string" === typeof i3 ? i3.trim() : i3);
|
||
}, expression: "item.title" } })], 1)], 1), t2._v(" "), i2("div", { directives: [{ name: "show", rawName: "v-show", value: e3.show, expression: "item.show" }] }, [i2("el-row", [i2("el-col", { attrs: { span: 2, offset: 1 } }, [i2("span", { staticClass: "item-detl-title" }, [t2._v("题型")])]), t2._v(" "), i2("el-col", { attrs: { span: 20 } }, [i2("el-radio-group", { staticClass: "questionsType", attrs: { disabled: void 0 != e3.id && "edit" === t2.type || t2.disabled }, on: { change: function(e4) {
|
||
return t2.questionsTypeChange(e4, n2);
|
||
} }, model: { value: e3.type, callback: function(i3) {
|
||
t2.$set(e3, "type", i3);
|
||
}, expression: "item.type" } }, [i2("el-radio", { attrs: { label: 1 } }, [t2._v("单选")]), t2._v(" "), i2("el-radio", { attrs: { label: 2 } }, [t2._v("多选")]), t2._v(" "), i2("el-radio", { attrs: { label: 3 } }, [t2._v("填写")])], 1)], 1)], 1), t2._v(" "), t2._l(e3.questionOptionRelaList, (function(a2, s2) {
|
||
return i2("div", { key: s2 }, [1 === e3.type || 2 === e3.type ? i2("el-row", { staticClass: "options-box" }, [i2("el-col", { attrs: { span: 2, offset: 1 } }, [i2("span", { staticClass: "item-detl-title" }, [t2._v("选项" + t2._s(s2 + 1))])]), t2._v(" "), i2("el-col", { attrs: { span: 10 } }, [i2("el-input", { staticClass: "options-input", attrs: { disabled: t2.disabled, type: "text", placeholder: "请输入该选项内容", "show-word-limit": "", maxlength: "128" }, model: { value: a2.name, callback: function(e4) {
|
||
t2.$set(a2, "name", "string" === typeof e4 ? e4.trim() : e4);
|
||
}, expression: "op.name" } })], 1), t2._v(" "), i2("el-col", { attrs: { span: 3 } }, [i2("uploadOss", { staticClass: "upload-img", attrs: { disabled: t2.disabled, imgStore: t2.imgStore, isShowFileList: false, listType: t2.listType }, model: { value: a2.imageUrl, callback: function(e4) {
|
||
t2.$set(a2, "imageUrl", e4);
|
||
}, expression: "op.imageUrl" } })], 1), t2._v(" "), i2("el-col", { attrs: { span: 1, offset: 1 } }, [s2 < e3.questionOptionRelaList.length - 1 ? i2("el-button", { attrs: { disabled: t2.disabled, type: "primary", icon: "el-icon-delete", size: "mini" }, on: { click: function(e4) {
|
||
return t2.deleteOptions(n2, s2);
|
||
} } }) : t2._e(), t2._v(" "), s2 === e3.questionOptionRelaList.length - 1 ? i2("el-button", { attrs: { disabled: t2.disabled, type: "primary", icon: "el-icon-circle-plus-outline", size: "mini" }, on: { click: function(e4) {
|
||
return t2.addOptions(n2, s2);
|
||
} } }) : t2._e()], 1)], 1) : t2._e()], 1);
|
||
}))], 2)], 1), t2._v(" "), i2("el-button", { staticClass: "qt-show", style: { right: t2.questionsList.length > 1 ? "80px" : "30px" }, attrs: { type: "primary", icon: e3.show ? "el-icon-arrow-up" : "el-icon-arrow-down", size: "mini" }, on: { click: function(e4) {
|
||
return t2.showQuestions(n2);
|
||
} } }, [t2._v(t2._s(e3.show ? "收缩" : "展开"))]), t2._v(" "), t2.questionsList.length > 1 ? i2("el-button", { staticClass: "qt-delete", attrs: { disabled: t2.disabled, type: "primary", icon: "el-icon-delete", size: "mini" }, on: { click: function(e4) {
|
||
return t2.deleteQuestions(n2);
|
||
} } }) : t2._e()], 1);
|
||
})), 0)], 1) : i2("div", { staticClass: "vote-none-questions" }, [t2._v("暂无投票内容,请点击左下方“添加问题”按钮添加投票内容")]), t2._v(" "), i2("div", { staticClass: "add-questions" }, [i2("el-dropdown", { on: { command: t2.handleCommand } }, [i2("el-button", { attrs: { type: "primary", size: "small", disabled: t2.disabled } }, [t2._v("\n 添加问题"), i2("i", { staticClass: "el-icon-arrow-down el-icon--right" })]), t2._v(" "), i2("el-dropdown-menu", { attrs: { slot: "dropdown" }, slot: "dropdown" }, [i2("el-dropdown-item", { attrs: { command: 1, disabled: t2.disabled } }, [t2._v("单选")]), t2._v(" "), i2("el-dropdown-item", { attrs: { command: 2, disabled: t2.disabled } }, [t2._v("多选")]), t2._v(" "), i2("el-dropdown-item", { attrs: { command: 3, disabled: t2.disabled } }, [t2._v("填写")])], 1)], 1)], 1)]), t2._v(" "), i2("div", { staticClass: "vote-submit-options" }, [i2("el-button", { attrs: { size: "small" }, on: { click: t2.cancel } }, [t2._v("取消")]), t2._v(" "), i2("el-button", { attrs: { type: "primary", size: "small", disabled: t2.disabled }, on: { click: t2.save } }, [t2._v("保存")]), t2._v(" "), i2("el-button", { attrs: { type: "primary", size: "small", disabled: t2.disabled }, on: { click: t2.publish } }, [t2._v("发布")])], 1)], 1)], 1);
|
||
}, l = [], c = (i("e680"), i("fc02"), i("a450"), i("ed08"), i("cc57")), u = i("8ecb"), d = i.n(u), p = { components: { draggable: d.a, uploadOss: c["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(t2) {
|
||
return t2.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 };
|
||
}, mounted: function() {
|
||
}, methods: { getInfoLst: function(t2) {
|
||
void 0 != t2 && t2.id && (this.questionId = t2.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(t2) {
|
||
var e2 = this;
|
||
Object(r["h"])({ id: t2 }).then((function(t3) {
|
||
if (0 === t3.code && t3.data) {
|
||
var i2 = t3.data, n2 = i2.title, a2 = i2.endDate, s2 = i2.isAnonymous, r2 = i2.remarks, o2 = i2.questionsRespDTOList, l2 = i2.themeProjectRelaRespDTO;
|
||
e2.ruleForm = { title: n2, expiryDate: a2.substring(0, 10), isAnonymous: s2, remarks: r2, dateTime: a2.substring(11, a2.length) };
|
||
var c2 = [];
|
||
o2.map((function(t4) {
|
||
var e3 = [], i3 = t4.id, n3 = t4.title, a3 = t4.type, s3 = t4.themeId, r3 = t4.sortNumber;
|
||
t4.questionOptionRelaRespDTOList.map((function(t5) {
|
||
var i4 = t5.id, n4 = t5.name, a4 = t5.imageUrl, s4 = t5.questionsId;
|
||
e3.push({ id: i4, name: n4, imageUrl: a4, questionsId: s4 });
|
||
})), c2.push({ id: i3, title: n3, type: a3, themeId: s3, questionOptionRelaList: e3, show: true, sortNumber: r3 });
|
||
})), e2.reviewRangeList(l2), e2.questionsList = c2;
|
||
}
|
||
}));
|
||
}, reviewRangeList: function(t2) {
|
||
var e2 = t2.projectUuid, i2 = t2.precinctId, n2 = t2.buildingId, a2 = t2.unitId, s2 = t2.houseId, r2 = t2.identity, o2 = t2.id, l2 = t2.themeId;
|
||
if (this.reviewThemeProject = { projectUuid: e2, precinctId: i2, buildingId: n2, unitId: a2, houseId: s2, id: o2, themeId: l2 }, this.identity = r2, e2.indexOf(",") > 0) {
|
||
var c2 = e2.split(",");
|
||
this.rangeList[0].select = c2, c2.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", [e2]), i2.length > 0 && this.getPrecinctList();
|
||
}, getProjectInfo: function() {
|
||
var t2 = this, e2 = JSON.parse(window.localStorage.getItem("companyInfo")).osId;
|
||
Object(s["j"])({ id: e2, attribute: 1 }).then((function(e3) {
|
||
var i2 = e3.data;
|
||
t2.rangeList[0].children = i2, "view" === t2.type || "edit" === t2.type ? (t2.rangeList[0].select = [], t2.getQuestionFindById(t2.questionId)) : "add" === t2.type && (t2.rangeList[0].select = i2.length > 0 ? i2.map((function(t3) {
|
||
return t3["uuid"];
|
||
})) : []), 1 === i2.length && t2.getPrecinctList();
|
||
}));
|
||
}, handleCheckAllChange: function(t2, e2) {
|
||
var i2 = 0 === e2 ? "uuid" : "id", n2 = t2 ? this.rangeList[e2].children.map((function(t3) {
|
||
return t3[i2];
|
||
})) : [];
|
||
this.rangeList[e2].select = n2, this.rangeList[e2].isIndeterminate = true, t2 && this.clearItemArr(e2);
|
||
}, handleCheckedCitiesChange: function(t2, e2) {
|
||
var i2 = t2.length;
|
||
this.rangeList[e2].checkAll = i2 === this.rangeList[e2].children.length, this.rangeList[e2].isIndeterminate = i2 > 0 && i2 < this.rangeList[e2].children.length, 0 === e2 ? 1 === i2 ? this.getPrecinctList() : this.clearItemArr(0) : 1 === e2 ? 1 === i2 ? this.getbuildingList() : this.clearItemArr(1) : 2 === e2 ? 1 === i2 ? this.getUnitList() : this.clearItemArr(2) : 3 === e2 && (1 === i2 ? this.getHouseList() : this.clearItemArr(3));
|
||
}, clearItemArr: function(t2) {
|
||
this.rangeList.map((function(e2, i2) {
|
||
i2 > t2 && (e2.checkAll = true, e2.isIndeterminate = false, e2.select = [], e2.children = []);
|
||
}));
|
||
}, getPrecinctList: function() {
|
||
var t2 = this;
|
||
if (0 === this.rangeList[0].select.length) return false;
|
||
Object(r["d"])({ projectUuidS: this.rangeList[0].select }).then((function(e2) {
|
||
if (0 === e2.code && e2.data) {
|
||
var i2 = e2.data;
|
||
if (t2.rangeList[1].children = i2, "view" === t2.type || "edit" === t2.type) {
|
||
var n2 = t2.reviewThemeProject, a2 = n2.precinctId, s2 = n2.buildingId;
|
||
if (a2.indexOf(",") > 0) {
|
||
var r2 = a2.split(",").map(Number);
|
||
t2.rangeList[1].select = r2, r2.length === t2.rangeList[1].children.length ? (t2.rangeList[1].checkAll = true, t2.rangeList[1].isIndeterminate = false) : (t2.rangeList[1].checkAll = false, t2.rangeList[1].isIndeterminate = true);
|
||
} else t2.rangeList[1].select = a2 ? [Number(a2)] : [], t2.rangeList[1].checkAll = false, t2.rangeList[1].isIndeterminate = true, s2.length > 0 ? t2.getbuildingList() : (t2.rangeList[1].checkAll = true, t2.rangeList[1].isIndeterminate = false, t2.rangeList[1].select = i2.length > 0 ? i2.map((function(t3) {
|
||
return t3["id"];
|
||
})) : []);
|
||
} else "add" === t2.type && (t2.rangeList[1].select = i2.length > 0 ? i2.map((function(t3) {
|
||
return t3["id"];
|
||
})) : []);
|
||
1 === i2.length && t2.getbuildingList();
|
||
}
|
||
}));
|
||
}, getbuildingList: function() {
|
||
var t2 = this;
|
||
if (0 === this.rangeList[1].select.length) return false;
|
||
Object(r["b"])({ projectUuidS: this.rangeList[0].select, precinctId: this.rangeList[1].select }).then((function(e2) {
|
||
if (0 === e2.code && e2.data) {
|
||
var i2 = e2.data;
|
||
if (t2.rangeList[2].children = i2, "view" === t2.type || "edit" === t2.type) {
|
||
var n2 = t2.reviewThemeProject, a2 = n2.buildingId, s2 = n2.unitId;
|
||
if (a2.indexOf(",") > 0) {
|
||
var r2 = a2.split(",").map(Number);
|
||
t2.rangeList[2].select = r2, r2.length === t2.rangeList[2].children.length ? (t2.rangeList[2].checkAll = true, t2.rangeList[2].isIndeterminate = false) : (t2.rangeList[2].checkAll = false, t2.rangeList[2].isIndeterminate = true);
|
||
} else t2.rangeList[2].select = a2 ? [Number(a2)] : [], t2.rangeList[2].checkAll = false, t2.rangeList[2].isIndeterminate = true, s2.length > 0 ? t2.getUnitList() : (t2.rangeList[2].checkAll = true, t2.rangeList[2].isIndeterminate = false, t2.rangeList[2].select = i2.length > 0 ? i2.map((function(t3) {
|
||
return t3["id"];
|
||
})) : []);
|
||
} else "add" === t2.type && (t2.rangeList[2].select = i2.length > 0 ? i2.map((function(t3) {
|
||
return t3["id"];
|
||
})) : []);
|
||
1 === i2.length && t2.getUnitList();
|
||
}
|
||
}));
|
||
}, getUnitList: function() {
|
||
var t2 = this;
|
||
if (0 === this.rangeList[2].select.length) return false;
|
||
Object(r["e"])({ projectUuidS: this.rangeList[0].select, buildingIds: this.rangeList[2].select }).then((function(e2) {
|
||
if (0 === e2.code && e2.data) {
|
||
var i2 = e2.data;
|
||
if (t2.rangeList[3].children = i2, "view" === t2.type || "edit" === t2.type) {
|
||
var n2 = t2.reviewThemeProject, a2 = n2.unitId, s2 = n2.houseId;
|
||
if (a2.indexOf(",") > 0) {
|
||
var r2 = a2.split(",").map(Number);
|
||
t2.rangeList[3].select = r2, r2.length === t2.rangeList[3].children.length ? (t2.rangeList[3].checkAll = true, t2.rangeList[3].isIndeterminate = false) : (t2.rangeList[3].checkAll = false, t2.rangeList[3].isIndeterminate = true);
|
||
} else t2.rangeList[3].select = a2 ? [Number(a2)] : [], t2.rangeList[3].checkAll = false, t2.rangeList[3].isIndeterminate = true, s2.length > 0 ? t2.getHouseList() : (t2.rangeList[3].checkAll = true, t2.rangeList[3].isIndeterminate = false, t2.rangeList[3].select = i2.length > 0 ? i2.map((function(t3) {
|
||
return t3["id"];
|
||
})) : []);
|
||
} else "add" === t2.type && (t2.rangeList[3].select = i2.length > 0 ? i2.map((function(t3) {
|
||
return t3["id"];
|
||
})) : []);
|
||
1 === i2.length && t2.getHouseList();
|
||
}
|
||
}));
|
||
}, getHouseList: function() {
|
||
var t2 = this;
|
||
if (0 === this.rangeList[3].select.length) return false;
|
||
Object(r["c"])({ projectUuidS: this.rangeList[0].select, buildingId: this.rangeList[2].select, unitId: this.rangeList[3].select }).then((function(e2) {
|
||
if (0 === e2.code && e2.data) {
|
||
var i2 = e2.data;
|
||
if (t2.rangeList[4].children = i2, "view" === t2.type || "edit" === t2.type) {
|
||
var n2 = t2.reviewThemeProject.houseId;
|
||
if (n2.indexOf(",") > 0) {
|
||
var a2 = n2.split(",").map(Number);
|
||
t2.rangeList[4].select = a2, a2.length === t2.rangeList[4].children.length ? (t2.rangeList[4].checkAll = true, t2.rangeList[4].isIndeterminate = false) : (t2.rangeList[4].checkAll = false, t2.rangeList[4].isIndeterminate = true);
|
||
} else t2.rangeList[4].select = n2 ? [Number(n2)] : [], t2.rangeList[4].checkAll = false, t2.rangeList[4].isIndeterminate = true, 0 === n2.length && (t2.rangeList[4].checkAll = true, t2.rangeList[4].isIndeterminate = false, t2.rangeList[4].select = i2.length > 0 ? i2.map((function(t3) {
|
||
return t3["id"];
|
||
})) : []);
|
||
} else "add" === t2.type && (t2.rangeList[4].select = i2.length > 0 ? i2.map((function(t3) {
|
||
return t3["id"];
|
||
})) : []);
|
||
}
|
||
}));
|
||
}, draggableSort: function(t2) {
|
||
}, draggableEnd: function() {
|
||
var t2 = this, e2 = JSON.parse(JSON.stringify(this.questionsList)), i2 = 1;
|
||
setTimeout((function() {
|
||
e2.map((function(t3, e3) {
|
||
var n2 = i2++;
|
||
return t3.sortNumber = n2;
|
||
})), t2.questionsList = e2;
|
||
}), 100);
|
||
}, handleCommand: function(t2) {
|
||
var e2 = [];
|
||
e2 = t2 <= 2 ? [{ name: "", imageUrl: "" }, { name: "", imageUrl: "" }, { name: "", imageUrl: "" }, { name: "", imageUrl: "" }] : [{ name: "" }], this.sortNumber += 1, this.questionsList.push({ show: true, title: "", type: t2, sortNumber: this.sortNumber, questionOptionRelaList: e2 });
|
||
}, questionsTypeChange: function(t2, e2) {
|
||
var i2 = [];
|
||
i2 = 1 === t2 || 2 === t2 ? [{ name: "", imageUrl: "" }, { name: "", imageUrl: "" }, { name: "", imageUrl: "" }, { name: "", imageUrl: "" }] : [{ name: "" }], this.$set(this.questionsList[e2], "questionOptionRelaList", i2);
|
||
}, deleteQuestions: function(t2) {
|
||
var e2 = this;
|
||
this.questionsList.length > 1 ? this.$confirm("确定该问题吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "info", center: true }).then((function() {
|
||
var i2 = JSON.parse(JSON.stringify(e2.questionsList)), n2 = i2[t2];
|
||
void 0 != n2.id ? Object(r["i"])({ id: n2.id }).then((function(n3) {
|
||
0 === n3.code && (i2.splice(t2, 1), e2.questionsList = i2, e2.draggableEnd(), e2.$message({ type: "success", message: "删除成功" }));
|
||
})) : (i2.splice(t2, 1), e2.questionsList = i2, e2.draggableEnd());
|
||
})).catch((function() {
|
||
})) : this.$message({ type: "error", message: "至少保留一个问题选项" });
|
||
}, showQuestions: function(t2) {
|
||
var e2 = !this.questionsList[t2].show;
|
||
this.$set(this.questionsList[t2], "show", e2);
|
||
}, showSelects: function(t2) {
|
||
var e2 = !this.rangeList[t2].show;
|
||
this.$set(this.rangeList[t2], "show", e2);
|
||
}, deleteOptions: function(t2, e2) {
|
||
var i2 = this;
|
||
this.$confirm("确定该选项吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "info", center: true }).then((function() {
|
||
var n2 = i2.questionsList[t2].questionOptionRelaList, a2 = n2[e2];
|
||
void 0 != a2.id ? Object(r["k"])({ id: a2.id }).then((function(a3) {
|
||
0 === a3.code && (n2.splice(e2, 1), i2.$set(i2.questionsList[t2], "questionOptionRelaList", n2), i2.$message({ type: "success", message: "删除成功" }));
|
||
})) : (n2.splice(e2, 1), i2.$set(i2.questionsList[t2], "questionOptionRelaList", n2));
|
||
})).catch((function() {
|
||
}));
|
||
}, addOptions: function(t2, e2) {
|
||
var i2 = this.questionsList[t2].questionOptionRelaList;
|
||
i2.length < 5 ? (i2.push({ name: "", imageUrl: "" }), this.$set(this.questionsList[t2], "questionOptionRelaList", i2)) : 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(t2) {
|
||
var e2 = this, i2 = { 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 && (i2 = Object.assign(i2, { id: this.reviewThemeProject.id, themeId: this.questionId }));
|
||
var n2 = JSON.parse(window.localStorage.getItem("companyInfo")).osId, a2 = Object.assign(this.ruleForm, { companyId: n2, isPublish: t2, questionsList: this.questionsList, themeProjectRela: i2, createId: JSON.parse(localStorage.getItem("companyInfo")).id, operatorName: JSON.parse(localStorage.getItem("companyInfo")).abbreviation, createBy: JSON.parse(localStorage.getItem("companyInfo")).abbreviation });
|
||
0 !== this.questionId && (a2 = Object.assign(a2, { id: this.questionId })), this.$refs["ruleForm"].validate((function(t3) {
|
||
if (!t3) return e2.$message({ type: "error", message: "请检查投票主题和截止时间是否输入和选择." }), false;
|
||
if (0 === e2.rangeList[0].select.length) return e2.$message({ type: "error", message: "投票范围必须选择,请先选择小区" }), false;
|
||
if (!(e2.questionsList.length > 0)) return e2.$message({ type: "error", message: "请点击左下方“添加问题”按钮添加投票内容" }), false;
|
||
var i3 = e2.questionsList.every((function(t4, e3) {
|
||
return "" !== t4.title;
|
||
}));
|
||
if (!i3) return e2.$message({ type: "error", message: "某项投票内容标题为空,请填写相关内容" }), false;
|
||
var n3 = true;
|
||
e2.questionsList.map((function(t4) {
|
||
var e3 = 3 == t4.type || t4.questionOptionRelaList.every((function(t5) {
|
||
return "" !== t5.name;
|
||
}));
|
||
n3 = !e3;
|
||
})), n3 ? e2.$message({ type: "error", message: "某项投票选项内容为空,请填写相关内容" }) : (console.log("全部填写完毕"), a2.endDate = a2.expiryDate + " " + a2.dateTime, 0 === e2.questionId ? Object(r["f"])(a2).then((function(t4) {
|
||
0 === t4.code && (e2.$message({ type: "success", message: "创建投票成功" }), e2.goBack());
|
||
})) : Object(r["m"])(a2).then((function(t4) {
|
||
0 === t4.code && (e2.$message({ type: "success", message: "更新投票成功" }), e2.goBack());
|
||
})));
|
||
}));
|
||
}, goBack: function() {
|
||
this.$emit("goBack");
|
||
} } }, m = p, h = (i("73be"), i("829d")), f = Object(h["a"])(m, o, l, false, null, "e964727a", null), g = f.exports, v = function() {
|
||
var t2 = this, e2 = t2.$createElement, i2 = t2._self._c || e2;
|
||
return i2("div", { staticClass: "ruleGroupInfo" }, [i2("el-card", { staticClass: "box-card" }, [i2("el-page-header", { attrs: { content: t2.content }, on: { back: t2.goBack } }), t2._v(" "), i2("div", { staticClass: "vote-statisic" }, [i2("div", { staticClass: "vote-title" }, [t2._v(t2._s(t2.infor.title))]), t2._v(" "), i2("div", { staticClass: "vote-des" }, [t2._v(t2._s(t2.infor.remarks))]), t2._v(" "), t2._l(t2.infor.questions, (function(e3, n2) {
|
||
return i2("div", { key: n2, staticClass: "vote-questions-item" }, [i2("div", { staticClass: "vote-questions-title" }, [t2._v(t2._s(t2.culTitleFormat(e3.title, n2))), i2("span", { staticClass: "questions-type" }, [t2._v("(" + t2._s(1 === e3.type ? "单选题" : 2 === e3.type ? "多选题" : 3 === e3.type ? "问答题" : "填空题") + ")")])]), t2._v(" "), i2("div", { staticClass: "vote-questions-detaile" }, [i2("div", { staticClass: "detaile-table detaile-header" }, [i2("div", { staticClass: "detaile-table-item" }, [t2._v("选项")]), t2._v(" "), i2("div", { staticClass: "detaile-table-item" }, [t2._v("小计")]), t2._v(" "), i2("div", { staticClass: "detaile-table-item" }, [t2._v("比例")])]), t2._v(" "), t2._l(e3.answerTotalRespDTOS, (function(e4, n3) {
|
||
return i2("div", { key: n3, staticClass: "detaile-table detaile-section" }, [i2("div", { staticClass: "detaile-table-item" }, [t2._v(t2._s(e4.name))]), t2._v(" "), i2("div", { staticClass: "detaile-table-item" }, [t2._v(t2._s(e4.total ? e4.total : 0))]), t2._v(" "), i2("div", { staticClass: "detaile-table-item" }, [i2("el-progress", { staticClass: "detaile-table-progress", attrs: { "text-inside": true, "stroke-width": 20, percentage: t2.transLatToPer(e4.proportion) } })], 1)]);
|
||
})), t2._v(" "), i2("div", { staticClass: "detaile-table detaile-footer" }, [i2("div", { staticClass: "detaile-table-item" }, [t2._v("本题有效投票数")]), t2._v(" "), i2("div", { staticClass: "detaile-table-item" }, [t2._v(t2._s(e3.total))]), t2._v(" "), i2("div", { staticClass: "detaile-table-item" })])], 2)]);
|
||
}))], 2)], 1)], 1);
|
||
}, b = [], y = (i("aa18"), i("982e"), i("0b37")), L = { data: function() {
|
||
return { content: "投票统计分析", infor: {} };
|
||
}, mounted: function() {
|
||
}, methods: { getInfoLst: function(t2) {
|
||
this.getQuestionFindById(t2.id);
|
||
}, getQuestionFindById: function(t2) {
|
||
var e2 = this;
|
||
Object(r["l"])({ id: t2 }).then((function(t3) {
|
||
0 === t3.code && (e2.infor = t3.data);
|
||
}));
|
||
}, transLatToPer: function(t2) {
|
||
return t2 ? Object(y["c"])(t2, 100) : 0;
|
||
}, goBack: function() {
|
||
this.$emit("goBack");
|
||
}, culTitleFormat: function(t2, e2) {
|
||
return t2.includes("".concat(e2 + 1, "、")) ? t2 : "".concat(e2 + 1, "、").concat(t2);
|
||
} } }, _ = L, k = (i("da78"), Object(h["a"])(_, v, b, false, null, "0e3db64b", null)), w = k.exports, j = { components: { addVote: g, voteStatisic: w }, 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: JSON.parse(window.localStorage.getItem("companyInfo")).osId, projectUuid: "", createDate: "", pageNumber: 1, pageSize: 10 }, tableData: [] };
|
||
}, mounted: function() {
|
||
this.headClass(), this.getProjectInfo(), this.getlistData();
|
||
}, beforeRouteLeave: function(t2, e2, i2) {
|
||
this.viewInfo = false, this.statisic = false, this.infoList = true, i2();
|
||
}, methods: { getProjectInfo: function() {
|
||
var t2 = this, e2 = JSON.parse(window.localStorage.getItem("companyInfo")).osId;
|
||
Object(s["j"])({ id: e2, attribute: 1 }).then((function(e3) {
|
||
0 === e3.code && e3.data ? t2.projectList = e3.data : t2.projectList = [];
|
||
}));
|
||
}, deleteClick: function(t2) {
|
||
var e2 = this;
|
||
this.$confirm("确定删除该数据吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "info", center: true }).then((function() {
|
||
Object(r["g"])({ id: t2.id }).then((function(t3) {
|
||
0 === t3.code && (e2.getlistData(), e2.$message({ type: "success", message: "删除投票成功" }));
|
||
}));
|
||
})).catch((function() {
|
||
}));
|
||
}, gotoEnd: function(t2) {
|
||
var e2 = this;
|
||
this.$confirm("确定要提前结束当前问卷吗?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "info", center: true }).then((function() {
|
||
Object(r["a"])({ id: t2.id }).then((function(t3) {
|
||
0 === t3.code && (e2.getlistData(), e2.$message({ type: "success", message: "提前结束成功" }));
|
||
}));
|
||
})).catch((function() {
|
||
}));
|
||
}, detailsClick: function(t2, e2) {
|
||
var i2 = this, n2 = t2;
|
||
this.type = e2, this.viewInfo = true, this.infoList = false, this.statisic = false, this.$nextTick((function() {
|
||
i2.$refs.addVote.getInfoLst(n2);
|
||
}));
|
||
}, addRuleGroup: function() {
|
||
var t2 = this;
|
||
this.type = "add", this.viewInfo = true, this.infoList = false, this.statisic = false, this.$nextTick((function() {
|
||
t2.$refs.addVote.getInfoLst();
|
||
}));
|
||
}, gotoVoteStatisic: function(t2) {
|
||
var e2 = this, i2 = t2;
|
||
this.viewInfo = false, this.infoList = false, this.statisic = true, this.$nextTick((function() {
|
||
e2.$refs.statisic.getInfoLst(i2);
|
||
}));
|
||
}, onSearch: function() {
|
||
this.query.pageNumber = 1, this.getlistData();
|
||
}, getlistData: function() {
|
||
var t2 = this, e2 = { title: this.query.title, createBy: this.query.createBy, companyId: JSON.parse(window.localStorage.getItem("companyInfo")).osId, 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 };
|
||
Object(r["j"])(e2).then((function(e3) {
|
||
0 === e3.code && e3.data ? (t2.tableData = e3.data.records, t2.pageTotal = e3.data.rowsCount) : t2.tableData = [];
|
||
}));
|
||
}, goBack: function() {
|
||
this.viewInfo = false, this.statisic = false, this.infoList = true, this.getlistData();
|
||
}, handleSizeChange: function(t2) {
|
||
this.query.pageSize = t2, this.getlistData();
|
||
}, handleCurrentChange: function(t2) {
|
||
this.query.pageNumber = t2, this.getlistData();
|
||
}, resetForm: function() {
|
||
this.query.pageNumber = 1, this.query.title = "", this.query.createBy = "", this.query.projectUuid = "", this.query.createDate = "", this.getlistData();
|
||
}, headClass: function() {
|
||
return "text-align:center;background:#FAFAFA;";
|
||
} } }, I = j, C = (i("24db"), i("49bf"), Object(h["a"])(I, n, a, false, null, "15a0cb49", null));
|
||
e["default"] = C.exports;
|
||
}, d7bc: function(t, e, i) {
|
||
}, da78: function(t, e, i) {
|
||
"use strict";
|
||
i("48aa");
|
||
} }]);
|