90 lines
3.2 KiB
JavaScript
90 lines
3.2 KiB
JavaScript
"use strict";
|
|
const utils_util = require("../../utils/util.js");
|
|
const common_vendor = require("../../common/vendor.js");
|
|
const common_assets = require("../../common/assets.js");
|
|
const _sfc_main = {
|
|
name: "gltd-view",
|
|
data() {
|
|
return {
|
|
getLastNameStr: utils_util.getLastNameStr,
|
|
//获取姓
|
|
getAgeByBirthYear: utils_util.getAgeByBirthYear
|
|
//获取年龄
|
|
};
|
|
},
|
|
props: {
|
|
managementList: Array
|
|
},
|
|
methods: {
|
|
/**
|
|
* 点击展开或收起管理团队人员
|
|
*/
|
|
clickExpandOrRetractManagement(index) {
|
|
this.managementList[index].isExpand = !this.managementList[index].isExpand;
|
|
}
|
|
}
|
|
};
|
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
return {
|
|
a: common_vendor.f($props.managementList, (item, index, i0) => {
|
|
return common_vendor.e({
|
|
a: item.list.length > 0
|
|
}, item.list.length > 0 ? {
|
|
b: common_vendor.t(item.key),
|
|
c: common_vendor.t(item.list.length)
|
|
} : {}, {
|
|
d: item.list.length > 4 && !item.isExpand
|
|
}, item.list.length > 4 && !item.isExpand ? {
|
|
e: common_vendor.f(item.list.slice(0, 4), (pitem, pindex, i1) => {
|
|
return common_vendor.e({
|
|
a: common_vendor.t($data.getLastNameStr(pitem.name)),
|
|
b: pitem.gender == "女"
|
|
}, pitem.gender == "女" ? {
|
|
c: common_assets._imports_0$3
|
|
} : {
|
|
d: common_assets._imports_1$17
|
|
}, {
|
|
e: common_vendor.n("sexC flexCenter absolute " + (pitem.gender == "女" ? "female" : "male")),
|
|
f: common_vendor.t(pitem.name),
|
|
g: common_vendor.t(pitem.position_name),
|
|
h: common_vendor.t(pitem.start_date),
|
|
i: common_vendor.t(pitem.education),
|
|
j: common_vendor.t($data.getAgeByBirthYear(pitem.birth_year))
|
|
});
|
|
}),
|
|
f: index
|
|
} : {
|
|
g: common_vendor.f(item.list, (pitem, pindex, i1) => {
|
|
return common_vendor.e({
|
|
a: common_vendor.t($data.getLastNameStr(pitem.name)),
|
|
b: pitem.gender == "女"
|
|
}, pitem.gender == "女" ? {
|
|
c: common_assets._imports_0$3
|
|
} : {
|
|
d: common_assets._imports_1$17
|
|
}, {
|
|
e: common_vendor.n("sexC flexCenter absolute " + (pitem.gender == "女" ? "female" : "male")),
|
|
f: common_vendor.t(pitem.name),
|
|
g: common_vendor.t(pitem.position_name),
|
|
h: common_vendor.t(pitem.start_date),
|
|
i: common_vendor.t(pitem.education),
|
|
j: common_vendor.t($data.getAgeByBirthYear(pitem.birth_year))
|
|
});
|
|
}),
|
|
h: index
|
|
}, {
|
|
i: item.list.length > 4
|
|
}, item.list.length > 4 ? {
|
|
j: common_vendor.t(item.isExpand ? "收起" : "展开查看"),
|
|
k: common_assets._imports_2$13,
|
|
l: common_vendor.o(($event) => $options.clickExpandOrRetractManagement(index), index)
|
|
} : {}, {
|
|
m: index
|
|
});
|
|
})
|
|
};
|
|
}
|
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
wx.createComponent(Component);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/gltd-view/gltd-view.js.map
|