Files
wysite/output/sourcemaps/hc-pos.sqygj.cn/static/js/chunk-3bbe0bf5.2aec7608.js

386 lines
27 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-3bbe0bf5", "chunk-2d0aa9e6"], { "127f": function(e, t, a) {
"use strict";
a.d(t, "a", (function() {
return n;
}));
var n = function() {
function e2() {
return (65536 * (1 + Math.random()) | 0).toString(16).substring(1);
}
return "".concat(+/* @__PURE__ */ new Date(), "_").concat(e2()).concat(e2());
};
}, "212e": function(e, t, a) {
}, 6396: function(e, t, a) {
"use strict";
Math.easeInOutQuad = function(e2, t2, a2, n) {
return e2 /= n / 2, e2 < 1 ? a2 / 2 * e2 * e2 + t2 : (e2--, -a2 / 2 * (e2 * (e2 - 2) - 1) + t2);
};
(function() {
window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame;
})();
}, a5a3: function(e, t, a) {
"use strict";
a("fce8");
}, b2ef: function(e, t, a) {
"use strict";
var n = function() {
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
return a2("div", [a2("el-dialog", { staticClass: "activities-add", attrs: { title: e2.title, visible: e2.show, "before-close": e2.onClose, width: "35%", "close-on-click-modal": false, "close-on-press-escape": false }, on: { "update:visible": function(t3) {
e2.show = t3;
} } }, [a2("el-form", { ref: "addForm", attrs: { model: e2.addForm, rules: e2.addRules, "label-width": "100px" } }, [a2("el-form-item", { attrs: { label: "活动名称", prop: "name" } }, [a2("el-input", { attrs: { clearable: "" }, model: { value: e2.addForm.name, callback: function(t3) {
e2.$set(e2.addForm, "name", t3);
}, expression: "addForm.name" } })], 1), e2._v(" "), "party" != e2.type ? a2("el-form-item", { attrs: { label: "活动类型", prop: "type" } }, [a2("el-select", { attrs: { placeholder: "选择活动类型", clearable: "", filterable: "" }, model: { value: e2.addForm.type, callback: function(t3) {
e2.$set(e2.addForm, "type", t3);
}, expression: "addForm.type" } }, e2._l(e2.activityTypeList, (function(e3) {
return a2("el-option", { key: e3.value, attrs: { label: e3.label, value: e3.value } });
})), 1)], 1) : e2._e(), e2._v(" "), a2("el-form-item", { attrs: { label: "活动日期", prop: "activityTime" } }, [a2("el-date-picker", { attrs: { "value-format": "yyyy-MM-dd HH:mm:ss", format: "yyyy-MM-dd HH:mm:ss", "default-time": "08:00:00", type: "datetime", placeholder: "选择活动日期" }, model: { value: e2.addForm.activityTime, callback: function(t3) {
e2.$set(e2.addForm, "activityTime", t3);
}, expression: "addForm.activityTime" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "参与人数", prop: "joinNum" } }, [a2("el-input-number", { attrs: { "controls-position": "right", min: 1, max: 999 }, model: { value: e2.addForm.joinNum, callback: function(t3) {
e2.$set(e2.addForm, "joinNum", t3);
}, expression: "addForm.joinNum" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "状态", prop: "status" } }, [a2("el-switch", { attrs: { "active-value": 1, "inactive-value": 2, "active-text": "启用", "inactive-text": "禁用" }, model: { value: e2.addForm.status, callback: function(t3) {
e2.$set(e2.addForm, "status", t3);
}, expression: "addForm.status" } })], 1), e2._v(" "), a2("el-form-item", { attrs: { label: "附件" } }, [a2("el-upload", { ref: "uploadFile", staticClass: "upload-demo", attrs: { disabled: "info" === e2.type, action: "", accept: ".pdf,.doc,.docx,.xls,.xlsx,.txt,.png,.jpg,.jpeg,.bmp", "on-exceed": e2.exceedUpload, "before-upload": e2.beforeUpload, "http-request": e2.uploadRequest, "on-success": e2.uploadSuccess, "on-remove": e2.uploadRemove, multiple: "", limit: 5, "file-list": e2.fileList } }, [a2("el-button", { attrs: { size: "small", type: "primary", disabled: "info" === e2.type } }, [e2._v("点击上传")]), e2._v(" "), a2("div", { staticClass: "el-upload__tip", attrs: { slot: "tip" }, slot: "tip" }, [e2._v("\n 只能上传图片和文档图片不超过2M文档不超过10M\n ")])], 1)], 1), e2._v(" "), a2("el-form-item", [a2("el-button", { on: { click: e2.onClose } }, [e2._v("取 消")]), e2._v(" "), "新增活动" == e2.title ? a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary", loading: e2.addLoad }, on: { click: e2.addInfo } }, [e2._v("确 定")]) : a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary", loading: e2.addLoad }, on: { click: e2.saveInfo } }, [e2._v("保 存")])], 1)], 1)], 1)], 1);
}, i = [], r = (a("127f"), a("b562")), s = a("dce5"), o = a("ca41");
function l() {
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
var e2, t2, a2 = "function" == typeof Symbol ? Symbol : {}, n2 = a2.iterator || "@@iterator", i2 = a2.toStringTag || "@@toStringTag";
function r2(a3, n3, i3, r3) {
var l2 = n3 && n3.prototype instanceof o2 ? n3 : o2, c3 = Object.create(l2.prototype);
return u(c3, "_invoke", (function(a4, n4, i4) {
var r4, o3, l3, u2 = 0, c4 = i4 || [], d3 = false, p3 = { p: 0, n: 0, v: e2, a: f3, f: f3.bind(e2, 4), d: function(t3, a5) {
return r4 = t3, o3 = 0, l3 = e2, p3.n = a5, s2;
} };
function f3(a5, n5) {
for (o3 = a5, l3 = n5, t2 = 0; !d3 && u2 && !i5 && t2 < c4.length; t2++) {
var i5, r5 = c4[t2], f4 = p3.p, m3 = r5[2];
a5 > 3 ? (i5 = m3 === n5) && (l3 = r5[(o3 = r5[4]) ? 5 : (o3 = 3, 3)], r5[4] = r5[5] = e2) : r5[0] <= f4 && ((i5 = a5 < 2 && f4 < r5[1]) ? (o3 = 0, p3.v = n5, p3.n = r5[1]) : f4 < m3 && (i5 = a5 < 3 || r5[0] > n5 || n5 > m3) && (r5[4] = a5, r5[5] = n5, p3.n = m3, o3 = 0));
}
if (i5 || a5 > 1) return s2;
throw d3 = true, n5;
}
return function(i5, c5, m3) {
if (u2 > 1) throw TypeError("Generator is already running");
for (d3 && 1 === c5 && f3(c5, m3), o3 = c5, l3 = m3; (t2 = o3 < 2 ? e2 : l3) || !d3; ) {
r4 || (o3 ? o3 < 3 ? (o3 > 1 && (p3.n = -1), f3(o3, l3)) : p3.n = l3 : p3.v = l3);
try {
if (u2 = 2, r4) {
if (o3 || (i5 = "next"), t2 = r4[i5]) {
if (!(t2 = t2.call(r4, l3))) throw TypeError("iterator result is not an object");
if (!t2.done) return t2;
l3 = t2.value, o3 < 2 && (o3 = 0);
} else 1 === o3 && (t2 = r4.return) && t2.call(r4), o3 < 2 && (l3 = TypeError("The iterator does not provide a '" + i5 + "' method"), o3 = 1);
r4 = e2;
} else if ((t2 = (d3 = p3.n < 0) ? l3 : a4.call(n4, p3)) !== s2) break;
} catch (t3) {
r4 = e2, o3 = 1, l3 = t3;
} finally {
u2 = 1;
}
}
return { value: t2, done: d3 };
};
})(a3, i3, r3), true), c3;
}
var s2 = {};
function o2() {
}
function c2() {
}
function d2() {
}
t2 = Object.getPrototypeOf;
var p2 = [][n2] ? t2(t2([][n2]())) : (u(t2 = {}, n2, (function() {
return this;
})), t2), f2 = d2.prototype = o2.prototype = Object.create(p2);
function m2(e3) {
return Object.setPrototypeOf ? Object.setPrototypeOf(e3, d2) : (e3.__proto__ = d2, u(e3, i2, "GeneratorFunction")), e3.prototype = Object.create(f2), e3;
}
return c2.prototype = d2, u(f2, "constructor", d2), u(d2, "constructor", c2), c2.displayName = "GeneratorFunction", u(d2, i2, "GeneratorFunction"), u(f2), u(f2, i2, "Generator"), u(f2, n2, (function() {
return this;
})), u(f2, "toString", (function() {
return "[object Generator]";
})), (l = function() {
return { w: r2, m: m2 };
})();
}
function u(e2, t2, a2, n2) {
var i2 = Object.defineProperty;
try {
i2({}, "", {});
} catch (e3) {
i2 = 0;
}
u = function(e3, t3, a3, n3) {
function r2(t4, a4) {
u(e3, t4, (function(e4) {
return this._invoke(t4, a4, e4);
}));
}
t3 ? i2 ? i2(e3, t3, { value: a3, enumerable: !n3, configurable: !n3, writable: !n3 }) : e3[t3] = a3 : (r2("next", 0), r2("throw", 1), r2("return", 2));
}, u(e2, t2, a2, n2);
}
function c(e2, t2, a2, n2, i2, r2, s2) {
try {
var o2 = e2[r2](s2), l2 = o2.value;
} catch (e3) {
return void a2(e3);
}
o2.done ? t2(l2) : Promise.resolve(l2).then(n2, i2);
}
function d(e2) {
return function() {
var t2 = this, a2 = arguments;
return new Promise((function(n2, i2) {
var r2 = e2.apply(t2, a2);
function s2(e3) {
c(r2, n2, i2, s2, o2, "next", e3);
}
function o2(e3) {
c(r2, n2, i2, s2, o2, "throw", e3);
}
s2(void 0);
}));
};
}
var p = { props: { show: { type: Boolean, default: false }, type: { type: String, default: "culture" } }, data: function() {
return { title: "新增活动", activityTypeList: s["h"], addLoad: false, addForm: { name: "", type: "", activityTime: "", joinNum: 1, status: 1 }, addRules: { name: [{ required: true, message: "请输入活动名称", trigger: "blur" }], type: [{ required: true, message: "请选择活动类型", trigger: "change" }], activityTime: [{ required: true, message: "请选择活动日期", trigger: "change" }], joinNum: [{ required: true, message: "请输入参与人数", trigger: "blur" }] }, uploadFileList: [], fileList: [] };
}, mounted: function() {
}, methods: { init: function(e2) {
this.title = "编辑活动", this.saveData = JSON.parse(JSON.stringify(e2)), this.addForm = { name: this.saveData.name, type: this.saveData.type, activityTime: this.saveData.activityTime, joinNum: this.saveData.joinNum, status: this.saveData.status }, this.fileList = this.saveData.fileInfo ? JSON.parse(this.saveData.fileInfo) : [], this.uploadFileList = this.saveData.fileInfo ? JSON.parse(this.saveData.fileInfo) : [];
}, addInfo: function() {
var e2 = this;
this.$refs["addForm"].validate((function(t2) {
if (t2) {
e2.addLoad = true;
var a2 = e2.addForm;
a2.fileInfo = JSON.stringify(e2.uploadFileList), a2.projectUuid = e2.$store.state.community_uuid, a2.creatorName = e2.$store.state.user.userInfo.memberName, a2.type = "party" == e2.type ? 1 : a2.type, Object(o["a"])(a2).then((function(t3) {
0 == t3.code ? (e2.$message({ message: "新增成功", type: "success" }), e2.onCallback()) : e2.addLoad = false;
})).catch((function(t3) {
e2.addLoad = false;
}));
}
}));
}, saveInfo: function() {
var e2 = this;
this.$refs["addForm"].validate((function(t2) {
if (t2) {
e2.addLoad = true;
var a2 = e2.addForm;
a2.fileInfo = JSON.stringify(e2.uploadFileList), a2.projectUuid = e2.$store.state.community_uuid, a2.updaterName = e2.$store.state.user.userInfo.memberName, a2.id = e2.saveData.id, a2.type = "party" == e2.type ? 1 : a2.type, Object(o["d"])(a2).then((function(t3) {
0 == t3.code ? (e2.$message({ message: "保存成功", type: "success" }), e2.onCallback()) : e2.addLoad = false;
})).catch((function(t3) {
e2.addLoad = false;
}));
}
}));
}, exceedUpload: function() {
this.$message("最多仅允许上传5个文件");
}, beforeUpload: function(e2) {
var t2 = e2.size / 1024 / 1024 < 10, a2 = e2.size / 1024 / 1024 < 2, n2 = ["jpeg", "jpg", "gif", "bmp", "png"], i2 = ["xls", "xlsx", "doc", "docx", "ppt", "pptx", "pdf", "txt"], r2 = e2.name.substring(e2.name.lastIndexOf(".") + 1);
if (!n2.includes(r2) && !i2.includes(r2)) return this.$message("上传文件只能是图片或文档jpg、jpeg、png、doc、pdf、xls、txt等格式!"), false;
if (n2.includes(r2) || i2.includes(r2)) {
if (n2.includes(r2) && !a2) return this.$message("图片文件最大不超过2M"), false;
if (i2.includes(r2) && !t2) return this.$message("文档文件最大不超过10M"), false;
}
return true;
}, uploadRequest: (function() {
var e2 = d(l().m((function e3(t3) {
var a2, n2, i2, s2, o2, u2, c2, d2, p2, f2, m2, v2, h;
return l().w((function(e4) {
while (1) switch (e4.p = e4.n) {
case 0:
if (a2 = t3.file, e4.p = 1, n2 = a2.size / 1024 / 1024 < 10, i2 = a2.size / 1024 / 1024 < 2, s2 = ["jpeg", "jpg", "gif", "bmp", "png"], o2 = ["xls", "xlsx", "doc", "docx", "ppt", "pptx", "pdf", "txt"], u2 = a2.name.substring(a2.name.lastIndexOf(".") + 1), s2.includes(u2) || o2.includes(u2)) {
e4.n = 2;
break;
}
return this.$message("上传文件只能是图片或文档jpg、jpeg、png、doc、pdf、xls、txt等格式!"), t3.onError("文件类型不支持"), e4.a(2, false);
case 2:
if (!s2.includes(u2) && !o2.includes(u2)) {
e4.n = 4;
break;
}
if (!s2.includes(u2) || i2) {
e4.n = 3;
break;
}
return this.$message("图片文件最大不超过2M"), t3.onError("图片文件过大"), e4.a(2, false);
case 3:
if (!o2.includes(u2) || n2) {
e4.n = 4;
break;
}
return this.$message("文档文件最大不超过10M"), t3.onError("文档文件过大"), e4.a(2, false);
case 4:
return c2 = new FormData(), c2.append("file", a2), e4.n = 5, Object(r["b"])(c2);
case 5:
d2 = e4.v, d2 && 0 === d2.data.code && d2.data.data.fullUrl ? (p2 = { name: a2.name, url: d2.data.data.fullUrl }, t3.onSuccess(p2), this.$message({ message: "文件上传成功", type: "success" })) : (f2 = a2.uid, m2 = this.$refs.uploadFile.uploadFiles.findIndex((function(e5) {
return e5.uid == f2;
})), this.$refs.uploadFile.uploadFiles.splice(m2, 1), this.$message.error("文件上传失败"), t3.onError("上传失败")), e4.n = 7;
break;
case 6:
e4.p = 6, e4.v, v2 = a2.uid, h = this.$refs.uploadFile.uploadFiles.findIndex((function(e5) {
return e5.uid == v2;
})), this.$refs.uploadFile.uploadFiles.splice(h, 1), this.$message.error("文件上传失败"), t3.onError("上传失败");
case 7:
return e4.a(2);
}
}), e3, this, [[1, 6]]);
})));
function t2(t3) {
return e2.apply(this, arguments);
}
return t2;
})(), uploadSuccess: function(e2) {
e2 && this.uploadFileList.push(e2);
}, uploadRemove: function(e2) {
var t2 = this.uploadFileList.findIndex((function(t3) {
return t3.name === e2.name;
}));
this.uploadFileList.splice(t2, 1);
}, dialogClose: function() {
this.$refs["addForm"].resetFields(), this.uploadFileList = [], this.fileList = [];
}, onClose: function() {
this.dialogClose(), this.$emit("close"), this.title = "新增活动";
}, onCallback: function() {
this.dialogClose(), this.$emit("callback"), this.title = "新增活动";
} } }, f = p, m = (a("c209"), a("829d")), v = Object(m["a"])(f, n, i, false, null, "3ebeedb2", null);
t["a"] = v.exports;
}, bfd7: function(e, t, a) {
"use strict";
a.r(t);
var n = function() {
var e2 = this, t2 = e2.$createElement, a2 = e2._self._c || t2;
return a2("div", { staticClass: "app-container" }, [a2("div", { ref: "box", staticClass: "searchStys transition_dom" }, [a2("el-form", { ref: "query", attrs: { model: e2.query } }, [a2("div", { ref: "form_box", staticClass: "searchBar" }, [a2("div", { staticClass: "searchInput" }, [a2("el-row", { attrs: { gutter: 20 } }, [a2("el-col", { attrs: { span: 5 } }, [a2("el-form-item", { attrs: { prop: "name" } }, [a2("el-input", { attrs: { clearable: "", placeholder: "活动名称" }, model: { value: e2.query.name, callback: function(t3) {
e2.$set(e2.query, "name", t3);
}, expression: "query.name" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 4 } }, [a2("el-form-item", { attrs: { prop: "type" } }, [a2("el-select", { attrs: { placeholder: "选择活动类型", clearable: "", filterable: "" }, model: { value: e2.query.type, callback: function(t3) {
e2.$set(e2.query, "type", t3);
}, expression: "query.type" } }, e2._l(e2.activityTypeList, (function(e3) {
return a2("el-option", { key: e3.value, attrs: { label: e3.label, value: e3.value } });
})), 1)], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 10 } }, [a2("el-form-item", { attrs: { prop: "time" } }, [a2("el-date-picker", { attrs: { type: "datetimerange", "range-separator": "至", format: "yyyy-MM-dd HH:mm:ss", "value-format": "yyyy-MM-dd HH:mm:ss", "default-time": ["00:00:00", "23:59:59"], "start-placeholder": "活动时间开始日期", "end-placeholder": "活动时间结束日期" }, model: { value: e2.query.time, callback: function(t3) {
e2.$set(e2.query, "time", t3);
}, expression: "query.time" } })], 1)], 1), e2._v(" "), a2("el-col", { attrs: { span: 4 } }, [a2("el-form-item", { attrs: { prop: "status" } }, [a2("el-select", { attrs: { placeholder: "选择活动状态", clearable: "" }, model: { value: e2.query.status, callback: function(t3) {
e2.$set(e2.query, "status", t3);
}, expression: "query.status" } }, [a2("el-option", { attrs: { label: "启用", value: 1 } }), e2._v(" "), a2("el-option", { attrs: { label: "禁用", value: 2 } })], 1)], 1)], 1)], 1)], 1), e2._v(" "), a2("div", { staticClass: "searchBtn" }, [a2("el-form-item", [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(t3) {
return e2.resetForm("query");
} } }, [e2._v("重置")]), e2._v(" "), a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "primary" }, on: { click: e2.onSearch } }, [e2._v("查询")])], 1)], 1)])])], 1), e2._v(" "), a2("el-card", { staticClass: "box-card", attrs: { shadow: "never" } }, [a2("div", { staticClass: "planLst", attrs: { slot: "header" }, slot: "header" }, [a2("span", { staticClass: "planTitle" }, [e2._v("社区文化列表")]), e2._v(" "), a2("div", [a2("el-button", { attrs: { type: "primary", icon: "el-icon-plus", size: "small" }, on: { click: function(t3) {
e2.add = true;
} } }, [e2._v("新增")])], 1)]), e2._v(" "), a2("el-table", { directives: [{ name: "loading", rawName: "v-loading", value: e2.listLoading, expression: "listLoading" }], attrs: { border: "", "header-cell-style": e2.headClass, data: e2.listData, "row-key": "qrUuid" } }, [a2("el-table-column", { attrs: { align: "center", label: "活动名称", "show-overflow-tooltip": "", prop: "", "min-width": "200", fixed: "left" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [a2("span", [e2._v(e2._s(t3.row.name || "-"))])];
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "活动时间", "show-overflow-tooltip": "", fixed: "left", "min-width": "200" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [a2("span", [e2._v(e2._s(t3.row.activityTime || "-"))])];
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "活动类型", "show-overflow-tooltip": "", "min-width": "100" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [a2("span", [e2._v(e2._s(e2._f("getItemType")(t3.row.type, e2.activityTypeList)))])];
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "show-overflow-tooltip": "", label: "参与人数", "min-width": "80" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [a2("span", [e2._v(e2._s(t3.row.joinNum || 0))])];
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "show-overflow-tooltip": "", label: "附件", "min-width": "100" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [e2.fileData(t3.row.fileInfo).length ? a2("el-popover", { attrs: { placement: "right", width: "400", trigger: "click" } }, [e2._l(e2.fileData(t3.row.fileInfo), (function(t4, n2) {
return a2("div", { key: n2 }, [a2("div", { staticClass: "download-style" }, [a2("span", [e2._v(e2._s(t4.name))]), e2._v(" "), a2("i", { staticClass: "el-icon-download", on: { click: function(a3) {
return e2.downloadItem(t4);
} } })])]);
})), e2._v(" "), a2("el-link", { attrs: { slot: "reference", type: "primary" }, slot: "reference" }, [e2._v(e2._s(e2.fileData(t3.row.fileInfo).length))])], 2) : a2("span", [e2._v(e2._s(e2.fileData(t3.row.fileInfo).length))])];
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "状态", "min-width": "80" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [2 == t3.row.status ? a2("el-tag", { attrs: { type: "info" } }, [e2._v("禁用")]) : e2._e(), e2._v(" "), 1 == t3.row.status ? a2("el-tag", { attrs: { type: "success" } }, [e2._v("启用")]) : e2._e()];
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "show-overflow-tooltip": "", label: "更新人", "min-width": "150" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [a2("span", [e2._v(e2._s(t3.row.updaterName || "-"))])];
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", "show-overflow-tooltip": "", label: "更新时间", "min-width": "200" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [a2("span", [e2._v(e2._s(t3.row.updateTime || "-"))])];
} }]) }), e2._v(" "), a2("el-table-column", { attrs: { align: "center", label: "操作", fixed: "right", width: "120" }, scopedSlots: e2._u([{ key: "default", fn: function(t3) {
return [a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], attrs: { type: "text" }, on: { click: function(a3) {
return e2.editItem(t3.row);
} } }, [e2._v("编辑")]), e2._v(" "), 1 == t3.row.status ? a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], staticClass: "btn-danger", attrs: { type: "text" }, on: { click: function(a3) {
return e2.changeStatus(t3.row);
} } }, [e2._v("禁用")]) : e2._e(), e2._v(" "), 2 == t3.row.status ? a2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], staticClass: "btn-success", attrs: { type: "text" }, on: { click: function(a3) {
return e2.changeStatus(t3.row);
} } }, [e2._v("启用")]) : e2._e()];
} }]) })], 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.total }, on: { "update:currentPage": function(t3) {
return e2.$set(e2.query, "pageNumber", t3);
}, "update:current-page": function(t3) {
return e2.$set(e2.query, "pageNumber", t3);
}, "size-change": e2.handleSizeChange, "current-change": e2.handleCurrentChange } })], 1)], 1), e2._v(" "), a2("addActivities", { ref: "addForm", attrs: { show: e2.add, type: e2.addType }, on: { close: function(t3) {
e2.add = false;
}, callback: e2.getList } })], 1);
}, i = [], r = a("333d"), s = a("ca41"), o = a("dce5"), l = a("b2ef"), u = { components: { Pagination: r["a"], addActivities: l["a"] }, data: function() {
return { activityTypeList: o["h"], listData: [], listLoading: false, add: false, addType: "culture", total: 0, query: { pageNumber: 1, pageSize: 10, checkerNo: "", name: "", type: "", time: "", status: "" } };
}, created: function() {
this.$route.query.startTime && this.$route.query.endTime && (this.query.time = [this.$route.query.startTime, this.$route.query.endTime]), this.getList();
}, methods: { getList: function() {
var e2 = this;
this.add = false, this.query.projectUuid = this.$store.state.community_uuid, this.query.startTime = this.query.time ? this.query.time[0] : "", this.query.endTime = this.query.time ? this.query.time[1] : "", Object(s["c"])(this.query).then((function(t2) {
e2.listData = t2.data.records, e2.total = t2.data.rowsCount;
}));
}, fileData: function(e2) {
return e2 && "" != e2 ? JSON.parse(e2) : [];
}, downloadItem: function(e2) {
var t2 = e2.url, a2 = new XMLHttpRequest();
a2.open("GET", t2, true), a2.responseType = "blob", a2.onload = function() {
var t3 = URL.createObjectURL(a2.response), n2 = document.createElement("a");
n2.href = t3, n2.download = e2.name, n2.target = "_blank", n2.click();
}, a2.send();
}, changeStatus: function(e2) {
var t2 = this, a2 = "";
switch (e2.status) {
case 1:
a2 = "是禁用该活动信息?";
break;
case 2:
a2 = "是否启用该活动信息?";
break;
}
this.$confirm(a2, "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }).then((function() {
var a3 = { id: e2.id, status: 1 == e2.status ? 2 : 1, updaterName: t2.$store.state.user.userInfo.memberName };
Object(s["e"])(a3).then((function(e3) {
e3 && 0 == e3.code && (t2.$message({ message: "操作成功", type: "success" }), t2.getList());
}));
}));
}, editItem: function(e2) {
var t2 = this;
this.add = true, this.$nextTick((function() {
t2.$refs.addForm.init(e2);
}));
}, onSearch: function() {
this.query.pageNumber = 1, this.getList();
}, resetForm: function(e2) {
this.$refs[e2].resetFields(), this.query.pageNumber = 1, this.getList();
}, handleSizeChange: function(e2) {
this.query.pageSize = e2, this.query.pageNumber = 1, this.getList();
}, handleCurrentChange: function(e2) {
this.query.pageNumber = e2, this.getList();
}, headClass: function() {
return "text-align:center;background:#FAFAFA;";
} } }, c = u, d = (a("a5a3"), a("829d")), p = Object(d["a"])(c, n, i, false, null, "96f9ad40", null);
t["default"] = p.exports;
}, c209: function(e, t, a) {
"use strict";
a("212e");
}, ca41: function(e, t, a) {
"use strict";
a.d(t, "c", (function() {
return i;
})), a.d(t, "a", (function() {
return r;
})), a.d(t, "d", (function() {
return s;
})), a.d(t, "e", (function() {
return o;
})), a.d(t, "b", (function() {
return l;
}));
var n = a("b775");
function i(e2) {
return Object(n["a"])({ url: "/appproject/CulturalActivity/pageList", method: "post", data: e2 });
}
function r(e2) {
return Object(n["a"])({ url: "/appproject/CulturalActivity/create", method: "post", data: e2 });
}
function s(e2) {
return Object(n["a"])({ url: "/appproject/CulturalActivity/update", method: "post", data: e2 });
}
function o(e2) {
return Object(n["a"])({ url: "/appproject/CulturalActivity/updateStatus", method: "post", data: e2 });
}
function l(e2) {
return Object(n["a"])({ url: "/appproject/CulturalActivity/count", method: "post", data: e2 });
}
}, fce8: function(e, t, a) {
} }]);