import { a as _export_sfc, c as useHead, n as navigateTo } from './server.mjs';
import { defineComponent, ref, reactive, 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: "expert",
__ssrInlineRender: true,
setup(__props) {
useHead({ title: "专家申请管理" });
const loading = ref(false);
const stats = reactive({ total: 12, pending: 3, approved: 8, rejected: 1 });
const columns = [
{ title: "申请人", dataIndex: "name", key: "name" },
{ title: "单位", dataIndex: "organization", key: "organization" },
{ title: "研究领域", dataIndex: "researchArea", key: "researchArea" },
{ title: "申请时间", dataIndex: "applyTime", key: "applyTime" },
{ title: "状态", key: "status", width: 100 },
{ title: "操作", key: "action", width: 80 }
];
const recentApplications = ref([
{ id: 1, name: "张某某", organization: "广西大学", researchArea: "区域经济", applyTime: "2024-12-18", status: "pending" },
{ id: 2, name: "李某某", organization: "广西社科院", researchArea: "产业政策", applyTime: "2024-12-17", status: "pending" },
{ id: 3, name: "王某某", organization: "广西师范大学", researchArea: "金融经济", applyTime: "2024-12-15", status: "approved" }
]);
function getStatusColor(status) {
const map = { pending: "orange", approved: "green", rejected: "red" };
return map[status] || "default";
}
function getStatusText(status) {
const map = { pending: "待审核", approved: "已通过", rejected: "已拒绝" };
return map[status] || status;
}
async function loadData() {
}
return (_ctx, _push, _parent, _attrs) => {
const _component_a_space = resolveComponent("a-space");
const _component_a_button = resolveComponent("a-button");
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).rejected)}
已拒绝
申请材料模板
以下为专家申请所需材料的模板文件,请申请人按要求填写并提交。
📄专家申请表(个人签字)`);
_push(ssrRenderComponent(_component_a_button, {
size: "small",
type: "primary"
}, {
default: withCtx((_, _push2, _parent2, _scopeId) => {
if (_push2) {
_push2(`下载模板`);
} else {
return [
createTextVNode("下载模板")
];
}
}),
_: 1
}, _parent));
_push(`
📋专家申请说明文件`);
_push(ssrRenderComponent(_component_a_button, {
size: "small",
type: "primary"
}, {
default: withCtx((_, _push2, _parent2, _scopeId) => {
if (_push2) {
_push2(`下载模板`);
} else {
return [
createTextVNode("下载模板")
];
}
}),
_: 1
}, _parent));
_push(`
`);
_push(ssrRenderComponent(_component_a_table, {
columns,
"data-source": unref(recentApplications),
loading: unref(loading),
"row-key": "id",
pagination: false,
size: "middle"
}, {
bodyCell: withCtx(({ column, record }, _push2, _parent2, _scopeId) => {
if (_push2) {
if (column.key === "status") {
_push2(ssrRenderComponent(_component_a_tag, {
color: getStatusColor(record.status)
}, {
default: withCtx((_, _push3, _parent3, _scopeId2) => {
if (_push3) {
_push3(`${ssrInterpolate(getStatusText(record.status))}`);
} else {
return [
createTextVNode(toDisplayString(getStatusText(record.status)), 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/experts/review")
}, {
default: withCtx((_, _push3, _parent3, _scopeId2) => {
if (_push3) {
_push3(`审核`);
} else {
return [
createTextVNode("审核")
];
}
}),
_: 2
}, _parent2, _scopeId));
} else {
_push2(``);
}
} else {
return [
column.key === "status" ? (openBlock(), createBlock(_component_a_tag, {
key: 0,
color: getStatusColor(record.status)
}, {
default: withCtx(() => [
createTextVNode(toDisplayString(getStatusText(record.status)), 1)
]),
_: 2
}, 1032, ["color"])) : createCommentVNode("", true),
column.key === "action" ? (openBlock(), createBlock(_component_a_button, {
key: 1,
size: "small",
onClick: ($event) => ("navigateTo" in _ctx ? _ctx.navigateTo : unref(navigateTo))("/admin/experts/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/expert.vue");
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
};
const expert = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-ecb81a69"]]);
export { expert as default };
//# sourceMappingURL=expert-BQyfMLGC.mjs.map