import { a as _export_sfc, c as useHead, n as navigateTo } from './server.mjs'; import { defineComponent, reactive, ref, resolveComponent, mergeProps, withCtx, unref, createTextVNode, createVNode, toDisplayString, createBlock, createCommentVNode, openBlock, useSSRContext } from 'vue'; import { ssrRenderAttrs, ssrRenderComponent, ssrInterpolate } from 'vue/server-renderer'; import '../nitro/nitro.mjs'; import 'node:http'; import 'node:https'; import 'node:events'; import 'node:buffer'; import 'node:fs'; import 'node:path'; import 'node:crypto'; import 'node:url'; import 'better-sqlite3'; import 'vue-router'; import 'ant-design-vue'; import '@babel/runtime/helpers/esm/extends'; import 'stylis'; import 'dayjs'; import '../routes/renderer.mjs'; import 'vue-bundle-renderer/runtime'; import 'unhead/server'; import 'devalue'; import 'unhead/plugins'; import 'unhead/utils'; const _sfc_main = /* @__PURE__ */ defineComponent({ __name: "member", __ssrInlineRender: true, setup(__props) { useHead({ title: "会员申请管理" }); const stats = reactive({ total: 20, pending: 5, approved: 14, enterprise: 8, personal: 12 }); const columns = [ { title: "申请人", dataIndex: "name", key: "name" }, { title: "类型", key: "type", width: 90 }, { title: "联系方式", dataIndex: "contact", key: "contact" }, { title: "申请时间", dataIndex: "applyTime", key: "applyTime" }, { title: "状态", key: "status", width: 100 }, { title: "操作", key: "action", width: 80 } ]; const recentApplications = ref([ { id: 1, name: "广西某科技公司", type: "enterprise", contact: "139****0001", applyTime: "2024-12-19", status: "pending" }, { id: 2, name: "张某某", type: "personal", contact: "138****0002", applyTime: "2024-12-18", status: "pending" }, { id: 3, name: "南宁某咨询机构", type: "enterprise", contact: "137****0003", applyTime: "2024-12-15", status: "approved" } ]); return (_ctx, _push, _parent, _attrs) => { const _component_a_space = resolveComponent("a-space"); const _component_a_button = resolveComponent("a-button"); const _component_a_tabs = resolveComponent("a-tabs"); const _component_a_tab_pane = resolveComponent("a-tab-pane"); const _component_a_table = resolveComponent("a-table"); const _component_a_tag = resolveComponent("a-tag"); _push(`
${ssrInterpolate(unref(stats).total)}
总申请
${ssrInterpolate(unref(stats).pending)}
待审核
${ssrInterpolate(unref(stats).approved)}
已通过
${ssrInterpolate(unref(stats).enterprise)}
企业会员
${ssrInterpolate(unref(stats).personal)}
个人会员

申请材料模板

`); _push(ssrRenderComponent(_component_a_tabs, null, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(ssrRenderComponent(_component_a_tab_pane, { key: "enterprise", tab: "企业会员模板" }, { default: withCtx((_2, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(`
📄企业会员入会申请表(盖章)`); _push3(ssrRenderComponent(_component_a_button, { size: "small", type: "primary" }, { default: withCtx((_3, _push4, _parent4, _scopeId3) => { if (_push4) { _push4(`下载模板`); } else { return [ createTextVNode("下载模板") ]; } }), _: 1 }, _parent3, _scopeId2)); _push3(`
所需材料:营业执照副本、法人身份证、单位简介
`); } else { return [ createVNode("div", { class: "template-list" }, [ createVNode("div", { class: "template-item" }, [ createVNode("span", { class: "template-icon" }, "📄"), createVNode("span", { class: "template-name" }, "企业会员入会申请表(盖章)"), createVNode(_component_a_button, { size: "small", type: "primary" }, { default: withCtx(() => [ createTextVNode("下载模板") ]), _: 1 }) ]), createVNode("div", { class: "template-desc" }, "所需材料:营业执照副本、法人身份证、单位简介") ]) ]; } }), _: 1 }, _parent2, _scopeId)); _push2(ssrRenderComponent(_component_a_tab_pane, { key: "personal", tab: "个人会员模板" }, { default: withCtx((_2, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(`
📄个人会员入会申请表(签字)`); _push3(ssrRenderComponent(_component_a_button, { size: "small", type: "primary" }, { default: withCtx((_3, _push4, _parent4, _scopeId3) => { if (_push4) { _push4(`下载模板`); } else { return [ createTextVNode("下载模板") ]; } }), _: 1 }, _parent3, _scopeId2)); _push3(`
所需材料:个人简介、职称证书/学历证书、身份证、研究成果或获奖证明
`); } else { return [ createVNode("div", { class: "template-list" }, [ createVNode("div", { class: "template-item" }, [ createVNode("span", { class: "template-icon" }, "📄"), createVNode("span", { class: "template-name" }, "个人会员入会申请表(签字)"), createVNode(_component_a_button, { size: "small", type: "primary" }, { default: withCtx(() => [ createTextVNode("下载模板") ]), _: 1 }) ]), createVNode("div", { class: "template-desc" }, "所需材料:个人简介、职称证书/学历证书、身份证、研究成果或获奖证明") ]) ]; } }), _: 1 }, _parent2, _scopeId)); } else { return [ createVNode(_component_a_tab_pane, { key: "enterprise", tab: "企业会员模板" }, { default: withCtx(() => [ createVNode("div", { class: "template-list" }, [ createVNode("div", { class: "template-item" }, [ createVNode("span", { class: "template-icon" }, "📄"), createVNode("span", { class: "template-name" }, "企业会员入会申请表(盖章)"), createVNode(_component_a_button, { size: "small", type: "primary" }, { default: withCtx(() => [ createTextVNode("下载模板") ]), _: 1 }) ]), createVNode("div", { class: "template-desc" }, "所需材料:营业执照副本、法人身份证、单位简介") ]) ]), _: 1 }), createVNode(_component_a_tab_pane, { key: "personal", tab: "个人会员模板" }, { default: withCtx(() => [ createVNode("div", { class: "template-list" }, [ createVNode("div", { class: "template-item" }, [ createVNode("span", { class: "template-icon" }, "📄"), createVNode("span", { class: "template-name" }, "个人会员入会申请表(签字)"), createVNode(_component_a_button, { size: "small", type: "primary" }, { default: withCtx(() => [ createTextVNode("下载模板") ]), _: 1 }) ]), createVNode("div", { class: "template-desc" }, "所需材料:个人简介、职称证书/学历证书、身份证、研究成果或获奖证明") ]) ]), _: 1 }) ]; } }), _: 1 }, _parent)); _push(`
近期申请记录`); _push(ssrRenderComponent(_component_a_button, { size: "small", onClick: ($event) => ("navigateTo" in _ctx ? _ctx.navigateTo : unref(navigateTo))("/admin/members/review") }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(`查看全部并审核 →`); } else { return [ createTextVNode("查看全部并审核 →") ]; } }), _: 1 }, _parent)); _push(`
`); _push(ssrRenderComponent(_component_a_table, { columns, "data-source": unref(recentApplications), "row-key": "id", pagination: false, size: "middle" }, { bodyCell: withCtx(({ column, record }, _push2, _parent2, _scopeId) => { if (_push2) { if (column.key === "type") { _push2(ssrRenderComponent(_component_a_tag, { color: record.type === "enterprise" ? "blue" : "green" }, { default: withCtx((_, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(`${ssrInterpolate(record.type === "enterprise" ? "企业" : "个人")}`); } else { return [ createTextVNode(toDisplayString(record.type === "enterprise" ? "企业" : "个人"), 1) ]; } }), _: 2 }, _parent2, _scopeId)); } else { _push2(``); } if (column.key === "status") { _push2(ssrRenderComponent(_component_a_tag, { color: record.status === "pending" ? "orange" : record.status === "approved" ? "green" : "red" }, { default: withCtx((_, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(`${ssrInterpolate(record.status === "pending" ? "待审核" : record.status === "approved" ? "已通过" : "已拒绝")}`); } else { return [ createTextVNode(toDisplayString(record.status === "pending" ? "待审核" : record.status === "approved" ? "已通过" : "已拒绝"), 1) ]; } }), _: 2 }, _parent2, _scopeId)); } else { _push2(``); } if (column.key === "action") { _push2(ssrRenderComponent(_component_a_button, { size: "small", onClick: ($event) => ("navigateTo" in _ctx ? _ctx.navigateTo : unref(navigateTo))("/admin/members/review") }, { default: withCtx((_, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(`审核`); } else { return [ createTextVNode("审核") ]; } }), _: 2 }, _parent2, _scopeId)); } else { _push2(``); } } else { return [ column.key === "type" ? (openBlock(), createBlock(_component_a_tag, { key: 0, color: record.type === "enterprise" ? "blue" : "green" }, { default: withCtx(() => [ createTextVNode(toDisplayString(record.type === "enterprise" ? "企业" : "个人"), 1) ]), _: 2 }, 1032, ["color"])) : createCommentVNode("", true), column.key === "status" ? (openBlock(), createBlock(_component_a_tag, { key: 1, color: record.status === "pending" ? "orange" : record.status === "approved" ? "green" : "red" }, { default: withCtx(() => [ createTextVNode(toDisplayString(record.status === "pending" ? "待审核" : record.status === "approved" ? "已通过" : "已拒绝"), 1) ]), _: 2 }, 1032, ["color"])) : createCommentVNode("", true), column.key === "action" ? (openBlock(), createBlock(_component_a_button, { key: 2, size: "small", onClick: ($event) => ("navigateTo" in _ctx ? _ctx.navigateTo : unref(navigateTo))("/admin/members/review") }, { default: withCtx(() => [ createTextVNode("审核") ]), _: 1 }, 8, ["onClick"])) : createCommentVNode("", true) ]; } }), _: 1 }, _parent)); _push(`
`); }; } }); const _sfc_setup = _sfc_main.setup; _sfc_main.setup = (props, ctx) => { const ssrContext = useSSRContext(); (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/admin/applications/member.vue"); return _sfc_setup ? _sfc_setup(props, ctx) : void 0; }; const member = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-cc6a8f13"]]); export { member as default }; //# sourceMappingURL=member-BW0JmP4L.mjs.map