310 lines
21 KiB
JavaScript
310 lines
21 KiB
JavaScript
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["chunk-d80a26d2"], { 5248: function(t, e, o) {
|
|
"use strict";
|
|
o("ddde");
|
|
}, "67d5": function(t, e, o) {
|
|
"use strict";
|
|
o.d(e, "i", (function() {
|
|
return n;
|
|
})), o.d(e, "j", (function() {
|
|
return r;
|
|
})), o.d(e, "f", (function() {
|
|
return i;
|
|
})), o.d(e, "b", (function() {
|
|
return l;
|
|
})), o.d(e, "c", (function() {
|
|
return s;
|
|
})), o.d(e, "k", (function() {
|
|
return c;
|
|
})), o.d(e, "e", (function() {
|
|
return u;
|
|
})), o.d(e, "d", (function() {
|
|
return p;
|
|
})), o.d(e, "h", (function() {
|
|
return d;
|
|
})), o.d(e, "a", (function() {
|
|
return f;
|
|
})), o.d(e, "g", (function() {
|
|
return m;
|
|
}));
|
|
var a = o("b775");
|
|
function n(t2) {
|
|
return Object(a["a"])({ url: "/hakocompany/Role/pageList", method: "post", data: t2 });
|
|
}
|
|
function r(t2) {
|
|
return Object(a["a"])({ url: "/company/organizationalStructure/selectOsList", method: "post", data: t2 });
|
|
}
|
|
function i(t2) {
|
|
return Object(a["a"])({ url: "/company/organizationalStructure/findOsTree", method: "post", data: t2 });
|
|
}
|
|
function l(t2) {
|
|
return Object(a["a"])({ url: "/hakocompany/Role/create", method: "post", data: t2 });
|
|
}
|
|
function s(t2) {
|
|
return Object(a["a"])({ url: "/hakocompany/Role/delete", method: "post", data: t2 });
|
|
}
|
|
function c(t2) {
|
|
return Object(a["a"])({ url: "/hakocompany/Role/update", method: "post", data: t2 });
|
|
}
|
|
function u(t2) {
|
|
return Object(a["a"])({ url: "/hakocompany/RoleMenuRel/findByRoleIdAndClienId", method: "post", data: t2 });
|
|
}
|
|
function p(t2) {
|
|
return Object(a["a"])({ url: "/hakocompany/OrganizationRoleRel/findByRoleId", method: "post", data: t2 });
|
|
}
|
|
function d(t2) {
|
|
return Object(a["a"])({ url: "/company/member/pageListForRole", method: "post", data: t2 });
|
|
}
|
|
function f(t2) {
|
|
return Object(a["a"])({ url: "/company/MemberRoleRel/batchDelete", method: "post", data: t2 });
|
|
}
|
|
function m(t2) {
|
|
return Object(a["a"])({ url: "/hakocompany/account/findProjectByRole", method: "post", data: t2 });
|
|
}
|
|
}, "90e7": function(t, e, o) {
|
|
"use strict";
|
|
o.d(e, "g", (function() {
|
|
return n;
|
|
})), o.d(e, "m", (function() {
|
|
return r;
|
|
})), o.d(e, "f", (function() {
|
|
return i;
|
|
})), o.d(e, "l", (function() {
|
|
return l;
|
|
})), o.d(e, "h", (function() {
|
|
return s;
|
|
})), o.d(e, "n", (function() {
|
|
return c;
|
|
})), o.d(e, "a", (function() {
|
|
return u;
|
|
})), o.d(e, "b", (function() {
|
|
return p;
|
|
})), o.d(e, "c", (function() {
|
|
return d;
|
|
})), o.d(e, "e", (function() {
|
|
return f;
|
|
})), o.d(e, "d", (function() {
|
|
return m;
|
|
})), o.d(e, "i", (function() {
|
|
return y;
|
|
})), o.d(e, "j", (function() {
|
|
return v;
|
|
})), o.d(e, "o", (function() {
|
|
return g;
|
|
})), o.d(e, "k", (function() {
|
|
return h;
|
|
}));
|
|
var a = o("b775");
|
|
function n(t2) {
|
|
return Object(a["a"])({ url: "/hakocompany/DeductionInfo/findById", method: "post", data: t2 });
|
|
}
|
|
function r(t2) {
|
|
return Object(a["a"])({ url: "/hakocompany/DeductionInfo/update", method: "post", data: t2 });
|
|
}
|
|
function i(t2) {
|
|
return Object(a["a"])({ url: "/hakocompany/CollectionInfoApi/findById", method: "post", data: t2 });
|
|
}
|
|
function l(t2) {
|
|
return Object(a["a"])({ url: "/hakocompany/CollectionInfoApi/update", method: "post", data: t2 });
|
|
}
|
|
function s(t2) {
|
|
return Object(a["a"])({ url: "/hakocompany/ChargePushConfigApi/findById", method: "post", data: t2 });
|
|
}
|
|
function c(t2) {
|
|
return Object(a["a"])({ url: "/hakocompany/ChargePushConfigApi/update", method: "post", data: t2 });
|
|
}
|
|
function u(t2) {
|
|
return Object(a["a"])({ url: "/company/ProjectSatisfactionConfig/pageList", method: "post", data: t2 });
|
|
}
|
|
function p(t2) {
|
|
return Object(a["a"])({ url: "/company/ProjectSatisfactionConfig/update", method: "post", data: t2 });
|
|
}
|
|
function d(t2) {
|
|
return Object(a["a"])({ url: "/hakocompany/CockpitConfig/create", method: "post", data: t2 });
|
|
}
|
|
function f(t2) {
|
|
return Object(a["a"])({ url: "/hakocompany/CockpitConfig/findByCompanyIdAndType", method: "post", data: t2 });
|
|
}
|
|
function m(t2) {
|
|
return Object(a["a"])({ url: "/hakocompany/CockpitConfig/sceneMenuList", method: "post", data: t2 });
|
|
}
|
|
function y(t2) {
|
|
return Object(a["a"])({ url: "/hakocompany/ProjectConfig/pageList", method: "post", data: t2 });
|
|
}
|
|
function v(t2) {
|
|
return Object(a["a"])({ url: "/hakocompany/ProjectConfig/updateExponentByProjectUuid", method: "post", data: t2 });
|
|
}
|
|
function g(t2, e2) {
|
|
return Object(a["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 h(t2) {
|
|
return Object(a["a"])({ url: "/hakocompany/ProjectConfig/updateVisitPollRateByProjectUuid", method: "post", data: t2 });
|
|
}
|
|
}, ddde: function(t, e, o) {
|
|
}, fc97: function(t, e, o) {
|
|
"use strict";
|
|
o.r(e);
|
|
var a = function() {
|
|
var t2 = this, e2 = t2.$createElement, o2 = t2._self._c || e2;
|
|
return o2("div", { staticClass: "app-container tabs-card" }, [o2("el-tabs", { attrs: { type: "border-card" }, model: { value: t2.activeTab, callback: function(e3) {
|
|
t2.activeTab = e3;
|
|
}, expression: "activeTab" } }, [o2("el-tab-pane", { attrs: { label: "短信回访配置", name: "sms" } }, [o2("el-card", { staticClass: "box-card" }, [o2("el-row", [o2("el-col", { staticClass: "elCol", attrs: { span: 4 } }, [o2("el-select", { attrs: { multiple: "", "collapse-tags": "", clearable: "", placeholder: "请选择项目" }, model: { value: t2.query.projectUuidList, callback: function(e3) {
|
|
t2.$set(t2.query, "projectUuidList", e3);
|
|
}, expression: "query.projectUuidList" } }, t2._l(t2.projectList, (function(t3) {
|
|
return o2("el-option", { key: t3.uuid, attrs: { label: t3.name, value: t3.uuid } });
|
|
})), 1)], 1), t2._v(" "), o2("el-col", { staticClass: "elCol", attrs: { span: 4 } }, [o2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(e3) {
|
|
return t2.resetForm();
|
|
} } }, [t2._v("重置")]), t2._v(" "), o2("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(" "), o2("el-card", { staticClass: "box-card", staticStyle: { "margin-top": "15px" } }, [o2("div", { staticClass: "planLst" }, [o2("span", { staticStyle: { color: "#2f2c2c", "font-size": "16px" } }, [t2._v("短信回访配置")])]), t2._v(" "), o2("el-table", { staticStyle: { width: "100%", "margin-top": "15px" }, attrs: { border: "", data: t2.tableData, "header-cell-style": t2.headClass } }, [o2("el-table-column", { attrs: { label: "#", align: "center", width: "50" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [o2("span", [t2._v(t2._s(e3.$index + (t2.query.pageNumber - 1) * t2.query.pageSize + 1))])];
|
|
} }]) }), t2._v(" "), o2("el-table-column", { attrs: { align: "center", prop: "projectName", label: "项目", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [t2._v(t2._s(e3.row.projectName))];
|
|
} }]) }), t2._v(" "), o2("el-table-column", { attrs: { align: "center", prop: "visitPollRate", label: "短信发送比例%" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [o2("div", [e3.row.forEdit ? t2._e() : o2("div", [t2._v("\n " + t2._s(e3.row.visitPollRate || 0) + "%\n "), o2("i", { staticClass: "el-icon-edit", on: { click: function(o3) {
|
|
return t2.toEdit(e3.row);
|
|
} } })]), t2._v(" "), e3.row.forEdit ? o2("div", { staticClass: "setEdit" }, [o2("el-input-number", { staticStyle: { width: "170px" }, attrs: { "controls-position": "right", min: 0, max: 100 }, model: { value: e3.row.visitPollRate, callback: function(o3) {
|
|
t2.$set(e3.row, "visitPollRate", o3);
|
|
}, expression: "scope.row.visitPollRate" } }), t2._v("%\n "), o2("div", [o2("el-button", { attrs: { type: "text" }, on: { click: function(o3) {
|
|
return t2.editRateSave(e3.row);
|
|
} } }, [t2._v("保存")]), t2._v(" "), o2("el-button", { attrs: { type: "text" }, on: { click: function(o3) {
|
|
return t2.escEdit(e3.row);
|
|
} } }, [t2._v("取消")])], 1)], 1) : t2._e()])];
|
|
} }]) }), t2._v(" "), o2("el-table-column", { attrs: { align: "center", prop: "operatorName", label: "操作人" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [t2._v(t2._s(e3.row.visitPollUpdaterName || "-"))];
|
|
} }]) }), t2._v(" "), o2("el-table-column", { attrs: { align: "center", prop: "operatingTime", label: "操作时间" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [t2._v(t2._s(e3.row.visitPollUpdateTime || "-"))];
|
|
} }]) })], 1), t2._v(" "), o2("div", { staticClass: "paginations" }, [o2("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._v(" "), o2("el-tab-pane", { attrs: { label: "拜访控制配置", name: "visitControl" } }, [o2("el-card", { staticClass: "box-card" }, [o2("el-row", [o2("el-col", { staticClass: "elCol", attrs: { span: 4 } }, [o2("el-select", { attrs: { multiple: "", "collapse-tags": "", clearable: "", placeholder: "请选择项目" }, model: { value: t2.query.projectUuidList, callback: function(e3) {
|
|
t2.$set(t2.query, "projectUuidList", e3);
|
|
}, expression: "query.projectUuidList" } }, t2._l(t2.projectList, (function(t3) {
|
|
return o2("el-option", { key: t3.uuid, attrs: { label: t3.name, value: t3.uuid } });
|
|
})), 1)], 1), t2._v(" "), o2("el-col", { staticClass: "elCol", attrs: { span: 4 } }, [o2("el-button", { directives: [{ name: "points", rawName: "v-points", value: 500, expression: "500" }], on: { click: function(e3) {
|
|
return t2.resetForm();
|
|
} } }, [t2._v("重置")]), t2._v(" "), o2("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(" "), o2("el-card", { staticClass: "box-card", staticStyle: { "margin-top": "15px" } }, [o2("div", { staticClass: "planLst" }, [o2("span", { staticStyle: { color: "#2f2c2c", "font-size": "16px" } }, [t2._v("拜访控制配置")])]), t2._v(" "), o2("el-table", { staticStyle: { width: "100%", "margin-top": "15px" }, attrs: { border: "", data: t2.tableData, "header-cell-style": t2.headClass } }, [o2("el-table-column", { attrs: { label: "#", align: "center", width: "50" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [o2("span", [t2._v(t2._s(e3.$index + (t2.query.pageNumber - 1) * t2.query.pageSize + 1))])];
|
|
} }]) }), t2._v(" "), o2("el-table-column", { attrs: { align: "center", prop: "projectName", label: "项目", "show-overflow-tooltip": "" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [t2._v(t2._s(e3.row.projectName))];
|
|
} }]) }), t2._v(" "), o2("el-table-column", { attrs: { align: "center", prop: "visitPhotoAllowType", label: "回访拍照拜访方式" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [o2("div", [e3.row.forEditPhotoAllowType ? t2._e() : o2("div", { staticClass: "allow-type-cell" }, [o2("el-tooltip", { attrs: { content: t2.formatVisitWays(e3.row.visitPhotoAllowType), placement: "top", effect: "dark" } }, [o2("span", { staticClass: "allow-type-text" }, [t2._v("\n " + t2._s(t2.formatVisitWays(e3.row.visitPhotoAllowType)) + "\n ")])]), t2._v(" "), o2("i", { staticClass: "el-icon-edit allow-type-edit", on: { click: function(o3) {
|
|
return t2.toggleAllowTypeEdit(e3.row, "visitPhotoAllowType", "forEditPhotoAllowType");
|
|
} } })], 1), t2._v(" "), e3.row.forEditPhotoAllowType ? o2("div", [o2("el-select", { attrs: { "collapse-tags": "", multiple: "", clearable: "", placeholder: "请选择拜访方式" }, model: { value: e3.row.visitPhotoAllowType, callback: function(o3) {
|
|
t2.$set(e3.row, "visitPhotoAllowType", o3);
|
|
}, expression: "scope.row.visitPhotoAllowType" } }, t2._l(t2.visitWayList, (function(t3) {
|
|
return o2("el-option", { key: t3.value, attrs: { label: t3.label, value: t3.value } });
|
|
})), 1), t2._v(" "), o2("div", [o2("el-button", { attrs: { type: "text" }, on: { click: function(o3) {
|
|
return t2.editAllowTypeSave(e3.row, "visitPhotoAllowType", "forEditPhotoAllowType");
|
|
} } }, [t2._v("保存")]), t2._v(" "), o2("el-button", { attrs: { type: "text" }, on: { click: function(o3) {
|
|
return t2.escAllowTypeEdit(e3.row, "forEditPhotoAllowType");
|
|
} } }, [t2._v("取消")])], 1)], 1) : t2._e()])];
|
|
} }]) }), t2._v(" "), o2("el-table-column", { attrs: { align: "center", prop: "visitVideoAllowType", label: "回访视频拜访方式" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [o2("div", [e3.row.forEditVideoAllowType ? t2._e() : o2("div", { staticClass: "allow-type-cell" }, [o2("el-tooltip", { attrs: { content: t2.formatVisitWays(e3.row.visitVideoAllowType), placement: "top", effect: "dark" } }, [o2("span", { staticClass: "allow-type-text" }, [t2._v("\n " + t2._s(t2.formatVisitWays(e3.row.visitVideoAllowType)) + "\n ")])]), t2._v(" "), o2("i", { staticClass: "el-icon-edit allow-type-edit", on: { click: function(o3) {
|
|
return t2.toggleAllowTypeEdit(e3.row, "visitVideoAllowType", "forEditVideoAllowType");
|
|
} } })], 1), t2._v(" "), e3.row.forEditVideoAllowType ? o2("div", [o2("el-select", { attrs: { "collapse-tags": "", multiple: "", clearable: "", placeholder: "请选择拜访方式" }, model: { value: e3.row.visitVideoAllowType, callback: function(o3) {
|
|
t2.$set(e3.row, "visitVideoAllowType", o3);
|
|
}, expression: "scope.row.visitVideoAllowType" } }, t2._l(t2.visitWayList, (function(t3) {
|
|
return o2("el-option", { key: t3.value, attrs: { label: t3.label, value: t3.value } });
|
|
})), 1), t2._v(" "), o2("div", [o2("el-button", { attrs: { type: "text" }, on: { click: function(o3) {
|
|
return t2.editAllowTypeSave(e3.row, "visitVideoAllowType", "forEditVideoAllowType");
|
|
} } }, [t2._v("保存")]), t2._v(" "), o2("el-button", { attrs: { type: "text" }, on: { click: function(o3) {
|
|
return t2.escAllowTypeEdit(e3.row, "forEditVideoAllowType");
|
|
} } }, [t2._v("取消")])], 1)], 1) : t2._e()])];
|
|
} }]) }), t2._v(" "), o2("el-table-column", { attrs: { align: "center", prop: "operatorName", label: "操作人" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [t2._v(t2._s(e3.row.visitPollUpdaterName || "-"))];
|
|
} }]) }), t2._v(" "), o2("el-table-column", { attrs: { align: "center", prop: "operatingTime", label: "操作时间" }, scopedSlots: t2._u([{ key: "default", fn: function(e3) {
|
|
return [t2._v(t2._s(e3.row.visitPollUpdateTime || "-"))];
|
|
} }]) })], 1), t2._v(" "), o2("div", { staticClass: "paginations" }, [o2("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)], 1)], 1);
|
|
}, n = [], r = (o("1bc7"), o("e680"), o("fc02"), o("5821")), i = (o("a450"), o("67d5")), l = o("90e7"), s = o("dce5"), c = { name: "smsVisitConfig", components: {}, data: function() {
|
|
return { activeTab: "sms", visitWayList: s["Gb"], companyInfo: {}, pageTotal: 0, projectList: [], query: { projectUuidList: [], pageNumber: 1, pageSize: 10, permittedExpireDays: 30 }, tableData: [] };
|
|
}, watch: {}, mounted: function() {
|
|
this.getProjectInfo(), this.memberId = window.localStorage.getItem("memberId"), this.headClass(), this.getlistData();
|
|
}, methods: { onToggleVisitSwitch: function(t2, e2) {
|
|
var o2 = this, a2 = t2[e2], n2 = 1 === a2 ? 0 : 1;
|
|
t2._saving = true;
|
|
var i2 = Object(r["a"])(Object(r["a"])({ visitPollUpdaterName: JSON.parse(window.localStorage.getItem("memberInfor")).name, projectUuid: t2.projectUuid }, e2, a2), "visitPollRate", t2.visitPollRate);
|
|
Object(l["k"])(i2).then((function(a3) {
|
|
0 === a3.code ? (o2.$message({ message: "已更新", type: "success" }), o2.getlistData()) : (t2[e2] = n2, o2.$message({ message: a3.msg || "更新失败", type: "error" }));
|
|
})).catch((function() {
|
|
t2[e2] = n2, o2.$message({ message: "更新失败", type: "error" });
|
|
})).finally((function() {
|
|
t2._saving = false;
|
|
}));
|
|
}, editRateSave: function(t2) {
|
|
var e2 = this, o2 = { visitPollUpdaterName: JSON.parse(window.localStorage.getItem("memberInfor")).name, visitPollRate: t2.visitPollRate, projectUuid: t2.projectUuid };
|
|
Object(l["k"])(o2).then((function(o3) {
|
|
0 === o3.code ? (t2.forEdit = false, e2.$message({ message: "编辑成功", type: "success" }), e2.getlistData()) : (t2.forEdit = false, e2.$message({ message: o3.msg || "编辑失败", type: "error" }));
|
|
})).catch((function() {
|
|
t2.forEdit = false, e2.$message({ message: "编辑失败", type: "error" });
|
|
}));
|
|
}, toEdit: function(t2) {
|
|
t2.forEdit = !t2.forEdit;
|
|
}, escEdit: function(t2) {
|
|
t2.forEdit = false;
|
|
}, toggleAllowTypeEdit: function(t2, e2, o2) {
|
|
if (t2[o2] = !t2[o2], t2[o2]) {
|
|
var a2 = t2[e2];
|
|
"string" === typeof a2 && a2 ? t2[e2] = a2.split(",").map((function(t3) {
|
|
return Number(t3);
|
|
})).filter((function(t3) {
|
|
return !isNaN(t3);
|
|
})) : null != a2 && "" !== a2 || (t2[e2] = []);
|
|
}
|
|
}, escAllowTypeEdit: function(t2, e2) {
|
|
t2[e2] = false;
|
|
}, editAllowTypeSave: function(t2, e2, o2) {
|
|
var a2 = this, n2 = function(e3) {
|
|
var o3 = null;
|
|
return Array.isArray(t2[e3]) ? o3 = t2[e3].length > 0 ? t2[e3].join(",") : null : void 0 !== t2[e3] && null !== t2[e3] && "" !== t2[e3] && (o3 = t2[e3]), "" === o3 && (o3 = null), o3;
|
|
}, i2 = n2(e2), s2 = "visitPhotoAllowType" === e2 ? "visitVideoAllowType" : "visitPhotoAllowType", c2 = n2(s2), u2 = Object(r["a"])(Object(r["a"])(Object(r["a"])({ visitPollUpdaterName: JSON.parse(window.localStorage.getItem("memberInfor")).name, projectUuid: t2.projectUuid }, e2, i2), s2, c2), "visitPollRate", t2.visitPollRate);
|
|
Object(l["k"])(u2).then((function(e3) {
|
|
0 === e3.code ? (t2[o2] = false, a2.$message({ message: "编辑成功", type: "success" }), a2.getlistData()) : (t2[o2] = false, a2.$message({ message: e3.msg || "编辑失败", type: "error" }));
|
|
})).catch((function() {
|
|
t2[o2] = false, a2.$message({ message: "编辑失败", type: "error" });
|
|
}));
|
|
}, getProjectInfo: function() {
|
|
var t2 = this, e2 = JSON.parse(window.localStorage.getItem("companyInfo")).osId;
|
|
Object(i["j"])({ id: e2, attribute: 1, permittedExpireDays: 30 }).then((function(e3) {
|
|
0 === e3.code && e3.data ? t2.projectList = e3.data : t2.projectList = [];
|
|
}));
|
|
}, getlistData: function() {
|
|
var t2 = this;
|
|
0 == this.query.projectUuidList.length ? this.query.companyId = JSON.parse(window.localStorage.getItem("companyInfo")).osId : delete this.query.companyId, Object(l["i"])(this.query).then((function(e2) {
|
|
0 === e2.code && e2.data ? (e2.data.records.forEach((function(t3) {
|
|
t3.forEdit = false, t3.forEditPhotoAllowType = false, t3.forEditVideoAllowType = false;
|
|
})), t2.tableData = e2.data.records, t2.pageTotal = e2.data.rowsCount) : (t2.tableData = [], t2.pageTotal = 0);
|
|
}));
|
|
}, onSearch: function() {
|
|
this.query.pageNumber = 1, 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.projectUuidList = [], this.getlistData();
|
|
}, headClass: function() {
|
|
return "text-align:center;background:#FAFAFA;";
|
|
}, formatVisitWays: function(t2) {
|
|
var e2 = function(t3) {
|
|
return Array.isArray(t3) ? t3 : "string" === typeof t3 && t3 ? t3.split(",").map((function(t4) {
|
|
return Number(t4);
|
|
})).filter((function(t4) {
|
|
return !isNaN(t4);
|
|
})) : [];
|
|
}, o2 = e2(t2);
|
|
if (!this.visitWayList || 0 === this.visitWayList.length) return o2.join(",") || "-";
|
|
var a2 = {};
|
|
this.visitWayList.forEach((function(t3) {
|
|
a2[t3.value] = t3.label;
|
|
}));
|
|
var n2 = o2.map((function(t3) {
|
|
return a2[t3] || String(t3);
|
|
}));
|
|
return n2.length ? n2.join("、") : "-";
|
|
} } }, u = c, p = (o("5248"), o("829d")), d = Object(p["a"])(u, a, n, false, null, "b88fac1e", null);
|
|
e["default"] = d.exports;
|
|
} }]);
|