- 新增api目录下多个接口路径代理处理文件,支持动态拼接目标URL - 根据环境变量选择不同的后端服务地址(如dev和生产环境) - 统一添加TenantId和Authorization请求头传递租户及身份信息 - 实现请求参数及搜索参数的完整转发 - 引入better-sqlite3及node内建模块支持服务端功能 - 新增专家详情页面,实现文章、成果及预约咨询功能展示 - 页面实现加载骨架屏、标签页切换及空状态提示优化体验
5317 lines
324 KiB
JavaScript
5317 lines
324 KiB
JavaScript
import { defineComponent, ref, reactive, resolveComponent, mergeProps, withCtx, unref, createVNode, createBlock, openBlock, Fragment, renderList, createTextVNode, toDisplayString, createCommentVNode, isRef, toRaw, nextTick, useSSRContext } from 'vue';
|
||
import { ssrRenderAttrs, ssrRenderComponent, ssrRenderList, ssrRenderClass, ssrInterpolate, ssrRenderAttr } from 'vue/server-renderer';
|
||
import { message } from 'ant-design-vue';
|
||
import { r as requestClient } from './request-BIxQh2im.mjs';
|
||
import { a as _export_sfc, c as useHead } from './server.mjs';
|
||
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 '@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';
|
||
|
||
async function batchSaveCategory(category, values) {
|
||
const res = await requestClient.post(
|
||
`/api/app/setting/batch/${category}`,
|
||
values
|
||
);
|
||
if (res.data.code === 0 || res.data.code === 200) {
|
||
return res.data.message;
|
||
}
|
||
return Promise.reject(new Error(res.data.message));
|
||
}
|
||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||
__name: "settings",
|
||
__ssrInlineRender: true,
|
||
setup(__props) {
|
||
useHead({ title: "系统设置 - 决策咨询网管理后台" });
|
||
const activeTab = ref("basic");
|
||
const lastUpdate = ref((/* @__PURE__ */ new Date()).toLocaleDateString("zh-CN"));
|
||
const tabs = [
|
||
{ key: "basic", icon: "🌐", label: "基础配置" },
|
||
{ key: "homepage", icon: "🏠", label: "首页配置" },
|
||
{ key: "consultation", icon: "📞", label: "咨询服务" },
|
||
{ key: "review", icon: "🔍", label: "审核配置" },
|
||
{ key: "notify", icon: "🔔", label: "通知配置" },
|
||
{ key: "data", icon: "📊", label: "数据服务" },
|
||
{ key: "wechat", icon: "📱", label: "微信配置" },
|
||
{ key: "maintenance", icon: "🛠️", label: "系统维护" }
|
||
];
|
||
const savingBasic = ref(false);
|
||
const basicForm = reactive({
|
||
siteName: "广西决策咨询网",
|
||
shortName: "决策咨询网",
|
||
description: "",
|
||
keywords: "决策咨询,政策研究,专家智库,广西",
|
||
contactPhone: "0771-5386339",
|
||
contactEmail: "gxjzxzx@126.com",
|
||
contactAddress: "广西·南宁·良庆区五象大道401号五象航洋城",
|
||
icpNo: ""
|
||
});
|
||
const savingHomepage = ref(false);
|
||
const homepageForm = reactive({
|
||
noticeText: "欢迎访问广西决策咨询网!",
|
||
aboutIntro: "",
|
||
expertCount: 200,
|
||
memberCount: 500,
|
||
suggestionCount: 1e3,
|
||
statsUpdateTime: "每月定期更新"
|
||
});
|
||
const savingConsultation = ref(false);
|
||
const consultationForm = reactive({
|
||
serviceDesc: "",
|
||
servicePhone: "0771-5386339",
|
||
serviceHours: "周一至周五 9:00-17:00",
|
||
serviceEmail: "gxjzxzx@126.com",
|
||
postalCode: "530200",
|
||
mailingAddress: "",
|
||
serviceItemsJson: '[{"title":"政策解读","desc":"解读最新政策文件,提供专业分析"},{"title":"决策评估","desc":"重大决策事前评估与风险分析"},{"title":"专题研究","desc":"围绕重点课题开展专项研究"},{"title":"数据服务","desc":"提供决策所需数据支持和分析报告"}]'
|
||
});
|
||
const savingReview = ref(false);
|
||
const reviewForm = reactive({
|
||
expertEnabled: true,
|
||
expertNeedReview: true,
|
||
expertReviewEmail: "",
|
||
expertRejectTemplate: "您的专家申请材料不完整或不符合要求,请补充相关资料后重新提交。",
|
||
memberEnabled: true,
|
||
memberNeedReview: true,
|
||
memberReviewEmail: "",
|
||
memberRejectTemplate: "您的会员申请材料不完整或不符合要求,请补充相关资料后重新提交。",
|
||
suggestionNeedReview: true,
|
||
suggestionAnonymous: false
|
||
});
|
||
const savingNotify = ref(false);
|
||
const notifyForm = reactive({
|
||
notifyOnNewExpert: true,
|
||
notifyOnNewMember: true,
|
||
notifyOnNewSuggestion: false,
|
||
notifyReviewResult: true,
|
||
notifyReviewResultSms: false,
|
||
notifyEmail: "",
|
||
approveEmailTemplate: "您好,{name},您的{type}申请已审核通过,感谢您的参与!",
|
||
rejectEmailTemplate: "您好,{name},您的{type}申请未通过审核。原因:{reason}。如有疑问请联系管理员。"
|
||
});
|
||
const savingData = ref(false);
|
||
const dataForm = reactive({
|
||
enabled: true,
|
||
memberOnly: true,
|
||
updateFrequency: "monthly",
|
||
description: "",
|
||
dataSource: ""
|
||
});
|
||
const savingWechat = ref(false);
|
||
const wechatForm = reactive({
|
||
name: "",
|
||
originalId: "",
|
||
appId: "",
|
||
appSecret: "",
|
||
qrcode: "",
|
||
account: "",
|
||
autoReply: false,
|
||
subscribeReply: "感谢关注广西决策咨询网!我们将为您提供权威的决策咨询服务。"
|
||
});
|
||
const maintenanceMode = ref(false);
|
||
const clearingCache = ref(false);
|
||
async function saveBasic() {
|
||
savingBasic.value = true;
|
||
try {
|
||
await batchSaveCategory("site_basic", toRaw(basicForm));
|
||
message.success("基础配置已保存");
|
||
} catch (e) {
|
||
message.error(e?.message || "保存失败");
|
||
} finally {
|
||
savingBasic.value = false;
|
||
}
|
||
}
|
||
async function saveHomepage() {
|
||
savingHomepage.value = true;
|
||
try {
|
||
await batchSaveCategory("site_homepage", toRaw(homepageForm));
|
||
message.success("首页配置已保存");
|
||
} catch (e) {
|
||
message.error(e?.message || "保存失败");
|
||
} finally {
|
||
savingHomepage.value = false;
|
||
}
|
||
}
|
||
async function saveConsultation() {
|
||
savingConsultation.value = true;
|
||
try {
|
||
await batchSaveCategory("site_consultation", toRaw(consultationForm));
|
||
message.success("咨询服务配置已保存");
|
||
} catch (e) {
|
||
message.error(e?.message || "保存失败");
|
||
} finally {
|
||
savingConsultation.value = false;
|
||
}
|
||
}
|
||
async function saveReview() {
|
||
savingReview.value = true;
|
||
try {
|
||
await batchSaveCategory("site_review", toRaw(reviewForm));
|
||
message.success("审核配置已保存");
|
||
} catch (e) {
|
||
message.error(e?.message || "保存失败");
|
||
} finally {
|
||
savingReview.value = false;
|
||
}
|
||
}
|
||
async function saveNotify() {
|
||
savingNotify.value = true;
|
||
try {
|
||
await batchSaveCategory("site_notify", toRaw(notifyForm));
|
||
message.success("通知配置已保存");
|
||
} catch (e) {
|
||
message.error(e?.message || "保存失败");
|
||
} finally {
|
||
savingNotify.value = false;
|
||
}
|
||
}
|
||
async function saveData() {
|
||
savingData.value = true;
|
||
try {
|
||
await batchSaveCategory("site_data", toRaw(dataForm));
|
||
message.success("数据服务配置已保存");
|
||
} catch (e) {
|
||
message.error(e?.message || "保存失败");
|
||
} finally {
|
||
savingData.value = false;
|
||
}
|
||
}
|
||
async function saveWechat() {
|
||
savingWechat.value = true;
|
||
try {
|
||
await batchSaveCategory("site_wechat", toRaw(wechatForm));
|
||
message.success("微信配置已保存");
|
||
} catch (e) {
|
||
message.error(e?.message || "保存失败");
|
||
} finally {
|
||
savingWechat.value = false;
|
||
}
|
||
}
|
||
function handleMaintenanceToggle(val) {
|
||
batchSaveCategory("site_maintenance", { enabled: val }).then(() => {
|
||
message.success(val ? "已开启维护模式" : "已关闭维护模式");
|
||
}).catch((e) => {
|
||
message.error(e?.message || "保存失败");
|
||
nextTick(() => {
|
||
maintenanceMode.value = !val;
|
||
});
|
||
});
|
||
}
|
||
async function handleClearCache() {
|
||
clearingCache.value = true;
|
||
try {
|
||
const { removeSiteInfoCache } = await import('./index-B5isI_h0.mjs');
|
||
await removeSiteInfoCache("SiteInfo:5*");
|
||
message.success("缓存已清除");
|
||
} catch {
|
||
message.success("缓存已清除");
|
||
} finally {
|
||
clearingCache.value = false;
|
||
}
|
||
}
|
||
function handleQrUpload(info) {
|
||
const file = info.file;
|
||
if (!file) return;
|
||
const reader = new FileReader();
|
||
reader.onload = (e) => {
|
||
wechatForm.qrcode = e.target?.result;
|
||
message.success("二维码已上传");
|
||
};
|
||
reader.readAsDataURL(file);
|
||
}
|
||
return (_ctx, _push, _parent, _attrs) => {
|
||
const _component_a_row = resolveComponent("a-row");
|
||
const _component_a_col = resolveComponent("a-col");
|
||
const _component_a_form = resolveComponent("a-form");
|
||
const _component_a_form_item = resolveComponent("a-form-item");
|
||
const _component_a_input = resolveComponent("a-input");
|
||
const _component_a_textarea = resolveComponent("a-textarea");
|
||
const _component_a_button = resolveComponent("a-button");
|
||
const _component_a_divider = resolveComponent("a-divider");
|
||
const _component_a_input_number = resolveComponent("a-input-number");
|
||
const _component_a_switch = resolveComponent("a-switch");
|
||
const _component_a_space = resolveComponent("a-space");
|
||
const _component_a_checkbox = resolveComponent("a-checkbox");
|
||
const _component_a_select = resolveComponent("a-select");
|
||
const _component_a_select_option = resolveComponent("a-select-option");
|
||
const _component_a_input_password = resolveComponent("a-input-password");
|
||
const _component_a_upload = resolveComponent("a-upload");
|
||
const _component_a_alert = resolveComponent("a-alert");
|
||
_push(`<div${ssrRenderAttrs(mergeProps({ class: "settings-page" }, _attrs))} data-v-7836e485><div class="page-header" data-v-7836e485><div data-v-7836e485><h2 class="page-title" data-v-7836e485>⚙️ 系统设置</h2><p class="page-desc" data-v-7836e485>配置网站基础信息、咨询设置、审核规则等核心参数</p></div></div>`);
|
||
_push(ssrRenderComponent(_component_a_row, { gutter: [20, 20] }, {
|
||
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
||
if (_push2) {
|
||
_push2(ssrRenderComponent(_component_a_col, {
|
||
xs: 24,
|
||
md: 5
|
||
}, {
|
||
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
||
if (_push3) {
|
||
_push3(`<div class="settings-nav" data-v-7836e485${_scopeId2}><!--[-->`);
|
||
ssrRenderList(tabs, (tab) => {
|
||
_push3(`<div class="${ssrRenderClass([{ active: unref(activeTab) === tab.key }, "settings-nav-item"])}" data-v-7836e485${_scopeId2}><span class="nav-icon" data-v-7836e485${_scopeId2}>${ssrInterpolate(tab.icon)}</span> ${ssrInterpolate(tab.label)}</div>`);
|
||
});
|
||
_push3(`<!--]--></div>`);
|
||
} else {
|
||
return [
|
||
createVNode("div", { class: "settings-nav" }, [
|
||
(openBlock(), createBlock(Fragment, null, renderList(tabs, (tab) => {
|
||
return createVNode("div", {
|
||
key: tab.key,
|
||
class: ["settings-nav-item", { active: unref(activeTab) === tab.key }],
|
||
onClick: ($event) => activeTab.value = tab.key
|
||
}, [
|
||
createVNode("span", { class: "nav-icon" }, toDisplayString(tab.icon), 1),
|
||
createTextVNode(" " + toDisplayString(tab.label), 1)
|
||
], 10, ["onClick"]);
|
||
}), 64))
|
||
])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent2, _scopeId));
|
||
_push2(ssrRenderComponent(_component_a_col, {
|
||
xs: 24,
|
||
md: 19
|
||
}, {
|
||
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
||
if (_push3) {
|
||
_push3(`<div class="settings-panel" data-v-7836e485${_scopeId2}>`);
|
||
if (unref(activeTab) === "basic") {
|
||
_push3(`<!--[--><div class="settings-section-title" data-v-7836e485${_scopeId2}>🌐 基础配置</div>`);
|
||
_push3(ssrRenderComponent(_component_a_form, {
|
||
model: unref(basicForm),
|
||
layout: "vertical",
|
||
class: "settings-form"
|
||
}, {
|
||
default: withCtx((_3, _push4, _parent4, _scopeId3) => {
|
||
if (_push4) {
|
||
_push4(ssrRenderComponent(_component_a_row, { gutter: 16 }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_col, { span: 12 }, {
|
||
default: withCtx((_5, _push6, _parent6, _scopeId5) => {
|
||
if (_push6) {
|
||
_push6(ssrRenderComponent(_component_a_form_item, { label: "网站名称" }, {
|
||
default: withCtx((_6, _push7, _parent7, _scopeId6) => {
|
||
if (_push7) {
|
||
_push7(ssrRenderComponent(_component_a_input, {
|
||
value: unref(basicForm).siteName,
|
||
"onUpdate:value": ($event) => unref(basicForm).siteName = $event,
|
||
placeholder: "广西决策咨询网"
|
||
}, null, _parent7, _scopeId6));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).siteName,
|
||
"onUpdate:value": ($event) => unref(basicForm).siteName = $event,
|
||
placeholder: "广西决策咨询网"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent6, _scopeId5));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_form_item, { label: "网站名称" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).siteName,
|
||
"onUpdate:value": ($event) => unref(basicForm).siteName = $event,
|
||
placeholder: "广西决策咨询网"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent5, _scopeId4));
|
||
_push5(ssrRenderComponent(_component_a_col, { span: 12 }, {
|
||
default: withCtx((_5, _push6, _parent6, _scopeId5) => {
|
||
if (_push6) {
|
||
_push6(ssrRenderComponent(_component_a_form_item, { label: "网站简称" }, {
|
||
default: withCtx((_6, _push7, _parent7, _scopeId6) => {
|
||
if (_push7) {
|
||
_push7(ssrRenderComponent(_component_a_input, {
|
||
value: unref(basicForm).shortName,
|
||
"onUpdate:value": ($event) => unref(basicForm).shortName = $event,
|
||
placeholder: "决策咨询网"
|
||
}, null, _parent7, _scopeId6));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).shortName,
|
||
"onUpdate:value": ($event) => unref(basicForm).shortName = $event,
|
||
placeholder: "决策咨询网"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent6, _scopeId5));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_form_item, { label: "网站简称" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).shortName,
|
||
"onUpdate:value": ($event) => unref(basicForm).shortName = $event,
|
||
placeholder: "决策咨询网"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent5, _scopeId4));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "网站名称" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).siteName,
|
||
"onUpdate:value": ($event) => unref(basicForm).siteName = $event,
|
||
placeholder: "广西决策咨询网"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "网站简称" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).shortName,
|
||
"onUpdate:value": ($event) => unref(basicForm).shortName = $event,
|
||
placeholder: "决策咨询网"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
})
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "网站描述" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_textarea, {
|
||
value: unref(basicForm).description,
|
||
"onUpdate:value": ($event) => unref(basicForm).description = $event,
|
||
rows: 3,
|
||
placeholder: "网站简短描述,用于SEO和分享卡片",
|
||
maxlength: 500,
|
||
"show-count": ""
|
||
}, null, _parent5, _scopeId4));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(basicForm).description,
|
||
"onUpdate:value": ($event) => unref(basicForm).description = $event,
|
||
rows: 3,
|
||
placeholder: "网站简短描述,用于SEO和分享卡片",
|
||
maxlength: 500,
|
||
"show-count": ""
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "网站关键词" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_input, {
|
||
value: unref(basicForm).keywords,
|
||
"onUpdate:value": ($event) => unref(basicForm).keywords = $event,
|
||
placeholder: "用逗号分隔,如:决策咨询,政策研究,专家智库"
|
||
}, null, _parent5, _scopeId4));
|
||
_push5(`<div class="form-tip" data-v-7836e485${_scopeId4}>用于搜索引擎优化,多个关键词用中文逗号分隔</div>`);
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).keywords,
|
||
"onUpdate:value": ($event) => unref(basicForm).keywords = $event,
|
||
placeholder: "用逗号分隔,如:决策咨询,政策研究,专家智库"
|
||
}, null, 8, ["value", "onUpdate:value"]),
|
||
createVNode("div", { class: "form-tip" }, "用于搜索引擎优化,多个关键词用中文逗号分隔")
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(ssrRenderComponent(_component_a_row, { gutter: 16 }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_col, { span: 12 }, {
|
||
default: withCtx((_5, _push6, _parent6, _scopeId5) => {
|
||
if (_push6) {
|
||
_push6(ssrRenderComponent(_component_a_form_item, { label: "联系电话" }, {
|
||
default: withCtx((_6, _push7, _parent7, _scopeId6) => {
|
||
if (_push7) {
|
||
_push7(ssrRenderComponent(_component_a_input, {
|
||
value: unref(basicForm).contactPhone,
|
||
"onUpdate:value": ($event) => unref(basicForm).contactPhone = $event,
|
||
placeholder: "0771-5386339"
|
||
}, null, _parent7, _scopeId6));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).contactPhone,
|
||
"onUpdate:value": ($event) => unref(basicForm).contactPhone = $event,
|
||
placeholder: "0771-5386339"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent6, _scopeId5));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_form_item, { label: "联系电话" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).contactPhone,
|
||
"onUpdate:value": ($event) => unref(basicForm).contactPhone = $event,
|
||
placeholder: "0771-5386339"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent5, _scopeId4));
|
||
_push5(ssrRenderComponent(_component_a_col, { span: 12 }, {
|
||
default: withCtx((_5, _push6, _parent6, _scopeId5) => {
|
||
if (_push6) {
|
||
_push6(ssrRenderComponent(_component_a_form_item, { label: "联系邮箱" }, {
|
||
default: withCtx((_6, _push7, _parent7, _scopeId6) => {
|
||
if (_push7) {
|
||
_push7(ssrRenderComponent(_component_a_input, {
|
||
value: unref(basicForm).contactEmail,
|
||
"onUpdate:value": ($event) => unref(basicForm).contactEmail = $event,
|
||
placeholder: "gxjzxzx@126.com"
|
||
}, null, _parent7, _scopeId6));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).contactEmail,
|
||
"onUpdate:value": ($event) => unref(basicForm).contactEmail = $event,
|
||
placeholder: "gxjzxzx@126.com"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent6, _scopeId5));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_form_item, { label: "联系邮箱" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).contactEmail,
|
||
"onUpdate:value": ($event) => unref(basicForm).contactEmail = $event,
|
||
placeholder: "gxjzxzx@126.com"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent5, _scopeId4));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "联系电话" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).contactPhone,
|
||
"onUpdate:value": ($event) => unref(basicForm).contactPhone = $event,
|
||
placeholder: "0771-5386339"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "联系邮箱" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).contactEmail,
|
||
"onUpdate:value": ($event) => unref(basicForm).contactEmail = $event,
|
||
placeholder: "gxjzxzx@126.com"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
})
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(ssrRenderComponent(_component_a_row, { gutter: 16 }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_col, { span: 12 }, {
|
||
default: withCtx((_5, _push6, _parent6, _scopeId5) => {
|
||
if (_push6) {
|
||
_push6(ssrRenderComponent(_component_a_form_item, { label: "联系地址" }, {
|
||
default: withCtx((_6, _push7, _parent7, _scopeId6) => {
|
||
if (_push7) {
|
||
_push7(ssrRenderComponent(_component_a_input, {
|
||
value: unref(basicForm).contactAddress,
|
||
"onUpdate:value": ($event) => unref(basicForm).contactAddress = $event,
|
||
placeholder: "广西·南宁·良庆区五象大道401号"
|
||
}, null, _parent7, _scopeId6));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).contactAddress,
|
||
"onUpdate:value": ($event) => unref(basicForm).contactAddress = $event,
|
||
placeholder: "广西·南宁·良庆区五象大道401号"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent6, _scopeId5));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_form_item, { label: "联系地址" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).contactAddress,
|
||
"onUpdate:value": ($event) => unref(basicForm).contactAddress = $event,
|
||
placeholder: "广西·南宁·良庆区五象大道401号"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent5, _scopeId4));
|
||
_push5(ssrRenderComponent(_component_a_col, { span: 12 }, {
|
||
default: withCtx((_5, _push6, _parent6, _scopeId5) => {
|
||
if (_push6) {
|
||
_push6(ssrRenderComponent(_component_a_form_item, { label: "ICP备案号" }, {
|
||
default: withCtx((_6, _push7, _parent7, _scopeId6) => {
|
||
if (_push7) {
|
||
_push7(ssrRenderComponent(_component_a_input, {
|
||
value: unref(basicForm).icpNo,
|
||
"onUpdate:value": ($event) => unref(basicForm).icpNo = $event,
|
||
placeholder: "桂ICP备XXXXXXXX号"
|
||
}, null, _parent7, _scopeId6));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).icpNo,
|
||
"onUpdate:value": ($event) => unref(basicForm).icpNo = $event,
|
||
placeholder: "桂ICP备XXXXXXXX号"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent6, _scopeId5));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_form_item, { label: "ICP备案号" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).icpNo,
|
||
"onUpdate:value": ($event) => unref(basicForm).icpNo = $event,
|
||
placeholder: "桂ICP备XXXXXXXX号"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent5, _scopeId4));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "联系地址" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).contactAddress,
|
||
"onUpdate:value": ($event) => unref(basicForm).contactAddress = $event,
|
||
placeholder: "广西·南宁·良庆区五象大道401号"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "ICP备案号" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).icpNo,
|
||
"onUpdate:value": ($event) => unref(basicForm).icpNo = $event,
|
||
placeholder: "桂ICP备XXXXXXXX号"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
})
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(`<div class="form-footer" data-v-7836e485${_scopeId3}>`);
|
||
_push4(ssrRenderComponent(_component_a_button, {
|
||
type: "primary",
|
||
loading: unref(savingBasic),
|
||
onClick: saveBasic
|
||
}, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(`💾 保存基础配置`);
|
||
} else {
|
||
return [
|
||
createTextVNode("💾 保存基础配置")
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(`</div>`);
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_row, { gutter: 16 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "网站名称" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).siteName,
|
||
"onUpdate:value": ($event) => unref(basicForm).siteName = $event,
|
||
placeholder: "广西决策咨询网"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "网站简称" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).shortName,
|
||
"onUpdate:value": ($event) => unref(basicForm).shortName = $event,
|
||
placeholder: "决策咨询网"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "网站描述" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(basicForm).description,
|
||
"onUpdate:value": ($event) => unref(basicForm).description = $event,
|
||
rows: 3,
|
||
placeholder: "网站简短描述,用于SEO和分享卡片",
|
||
maxlength: 500,
|
||
"show-count": ""
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "网站关键词" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).keywords,
|
||
"onUpdate:value": ($event) => unref(basicForm).keywords = $event,
|
||
placeholder: "用逗号分隔,如:决策咨询,政策研究,专家智库"
|
||
}, null, 8, ["value", "onUpdate:value"]),
|
||
createVNode("div", { class: "form-tip" }, "用于搜索引擎优化,多个关键词用中文逗号分隔")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_row, { gutter: 16 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "联系电话" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).contactPhone,
|
||
"onUpdate:value": ($event) => unref(basicForm).contactPhone = $event,
|
||
placeholder: "0771-5386339"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "联系邮箱" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).contactEmail,
|
||
"onUpdate:value": ($event) => unref(basicForm).contactEmail = $event,
|
||
placeholder: "gxjzxzx@126.com"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_row, { gutter: 16 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "联系地址" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).contactAddress,
|
||
"onUpdate:value": ($event) => unref(basicForm).contactAddress = $event,
|
||
placeholder: "广西·南宁·良庆区五象大道401号"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "ICP备案号" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).icpNo,
|
||
"onUpdate:value": ($event) => unref(basicForm).icpNo = $event,
|
||
placeholder: "桂ICP备XXXXXXXX号"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode("div", { class: "form-footer" }, [
|
||
createVNode(_component_a_button, {
|
||
type: "primary",
|
||
loading: unref(savingBasic),
|
||
onClick: saveBasic
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("💾 保存基础配置")
|
||
]),
|
||
_: 1
|
||
}, 8, ["loading"])
|
||
])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent3, _scopeId2));
|
||
_push3(`<!--]-->`);
|
||
} else {
|
||
_push3(`<!---->`);
|
||
}
|
||
if (unref(activeTab) === "homepage") {
|
||
_push3(`<!--[--><div class="settings-section-title" data-v-7836e485${_scopeId2}>🏠 首页配置</div>`);
|
||
_push3(ssrRenderComponent(_component_a_form, {
|
||
model: unref(homepageForm),
|
||
layout: "vertical",
|
||
class: "settings-form"
|
||
}, {
|
||
default: withCtx((_3, _push4, _parent4, _scopeId3) => {
|
||
if (_push4) {
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "轮播公告文字" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_input, {
|
||
value: unref(homepageForm).noticeText,
|
||
"onUpdate:value": ($event) => unref(homepageForm).noticeText = $event,
|
||
placeholder: "欢迎访问广西决策咨询网!"
|
||
}, null, _parent5, _scopeId4));
|
||
_push5(`<div class="form-tip" data-v-7836e485${_scopeId4}>显示在首页顶部公告条</div>`);
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_input, {
|
||
value: unref(homepageForm).noticeText,
|
||
"onUpdate:value": ($event) => unref(homepageForm).noticeText = $event,
|
||
placeholder: "欢迎访问广西决策咨询网!"
|
||
}, null, 8, ["value", "onUpdate:value"]),
|
||
createVNode("div", { class: "form-tip" }, "显示在首页顶部公告条")
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "首页关于我们简介" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_textarea, {
|
||
value: unref(homepageForm).aboutIntro,
|
||
"onUpdate:value": ($event) => unref(homepageForm).aboutIntro = $event,
|
||
rows: 4,
|
||
placeholder: "学会/机构简介,用于首页展示...",
|
||
maxlength: 1e3,
|
||
"show-count": ""
|
||
}, null, _parent5, _scopeId4));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(homepageForm).aboutIntro,
|
||
"onUpdate:value": ($event) => unref(homepageForm).aboutIntro = $event,
|
||
rows: 4,
|
||
placeholder: "学会/机构简介,用于首页展示...",
|
||
maxlength: 1e3,
|
||
"show-count": ""
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(ssrRenderComponent(_component_a_divider, null, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(`统计数据(首页展示)`);
|
||
} else {
|
||
return [
|
||
createTextVNode("统计数据(首页展示)")
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(ssrRenderComponent(_component_a_row, { gutter: 16 }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_col, { span: 8 }, {
|
||
default: withCtx((_5, _push6, _parent6, _scopeId5) => {
|
||
if (_push6) {
|
||
_push6(ssrRenderComponent(_component_a_form_item, { label: "专家数量" }, {
|
||
default: withCtx((_6, _push7, _parent7, _scopeId6) => {
|
||
if (_push7) {
|
||
_push7(ssrRenderComponent(_component_a_input_number, {
|
||
value: unref(homepageForm).expertCount,
|
||
"onUpdate:value": ($event) => unref(homepageForm).expertCount = $event,
|
||
min: 0,
|
||
max: 99999,
|
||
style: { "width": "100%" }
|
||
}, null, _parent7, _scopeId6));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_input_number, {
|
||
value: unref(homepageForm).expertCount,
|
||
"onUpdate:value": ($event) => unref(homepageForm).expertCount = $event,
|
||
min: 0,
|
||
max: 99999,
|
||
style: { "width": "100%" }
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent6, _scopeId5));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_form_item, { label: "专家数量" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input_number, {
|
||
value: unref(homepageForm).expertCount,
|
||
"onUpdate:value": ($event) => unref(homepageForm).expertCount = $event,
|
||
min: 0,
|
||
max: 99999,
|
||
style: { "width": "100%" }
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent5, _scopeId4));
|
||
_push5(ssrRenderComponent(_component_a_col, { span: 8 }, {
|
||
default: withCtx((_5, _push6, _parent6, _scopeId5) => {
|
||
if (_push6) {
|
||
_push6(ssrRenderComponent(_component_a_form_item, { label: "会员数量" }, {
|
||
default: withCtx((_6, _push7, _parent7, _scopeId6) => {
|
||
if (_push7) {
|
||
_push7(ssrRenderComponent(_component_a_input_number, {
|
||
value: unref(homepageForm).memberCount,
|
||
"onUpdate:value": ($event) => unref(homepageForm).memberCount = $event,
|
||
min: 0,
|
||
max: 99999,
|
||
style: { "width": "100%" }
|
||
}, null, _parent7, _scopeId6));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_input_number, {
|
||
value: unref(homepageForm).memberCount,
|
||
"onUpdate:value": ($event) => unref(homepageForm).memberCount = $event,
|
||
min: 0,
|
||
max: 99999,
|
||
style: { "width": "100%" }
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent6, _scopeId5));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_form_item, { label: "会员数量" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input_number, {
|
||
value: unref(homepageForm).memberCount,
|
||
"onUpdate:value": ($event) => unref(homepageForm).memberCount = $event,
|
||
min: 0,
|
||
max: 99999,
|
||
style: { "width": "100%" }
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent5, _scopeId4));
|
||
_push5(ssrRenderComponent(_component_a_col, { span: 8 }, {
|
||
default: withCtx((_5, _push6, _parent6, _scopeId5) => {
|
||
if (_push6) {
|
||
_push6(ssrRenderComponent(_component_a_form_item, { label: "建言数量" }, {
|
||
default: withCtx((_6, _push7, _parent7, _scopeId6) => {
|
||
if (_push7) {
|
||
_push7(ssrRenderComponent(_component_a_input_number, {
|
||
value: unref(homepageForm).suggestionCount,
|
||
"onUpdate:value": ($event) => unref(homepageForm).suggestionCount = $event,
|
||
min: 0,
|
||
max: 99999,
|
||
style: { "width": "100%" }
|
||
}, null, _parent7, _scopeId6));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_input_number, {
|
||
value: unref(homepageForm).suggestionCount,
|
||
"onUpdate:value": ($event) => unref(homepageForm).suggestionCount = $event,
|
||
min: 0,
|
||
max: 99999,
|
||
style: { "width": "100%" }
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent6, _scopeId5));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_form_item, { label: "建言数量" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input_number, {
|
||
value: unref(homepageForm).suggestionCount,
|
||
"onUpdate:value": ($event) => unref(homepageForm).suggestionCount = $event,
|
||
min: 0,
|
||
max: 99999,
|
||
style: { "width": "100%" }
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent5, _scopeId4));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_col, { span: 8 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "专家数量" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input_number, {
|
||
value: unref(homepageForm).expertCount,
|
||
"onUpdate:value": ($event) => unref(homepageForm).expertCount = $event,
|
||
min: 0,
|
||
max: 99999,
|
||
style: { "width": "100%" }
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_col, { span: 8 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "会员数量" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input_number, {
|
||
value: unref(homepageForm).memberCount,
|
||
"onUpdate:value": ($event) => unref(homepageForm).memberCount = $event,
|
||
min: 0,
|
||
max: 99999,
|
||
style: { "width": "100%" }
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_col, { span: 8 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "建言数量" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input_number, {
|
||
value: unref(homepageForm).suggestionCount,
|
||
"onUpdate:value": ($event) => unref(homepageForm).suggestionCount = $event,
|
||
min: 0,
|
||
max: 99999,
|
||
style: { "width": "100%" }
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
})
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "数据更新时间" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_input, {
|
||
value: unref(homepageForm).statsUpdateTime,
|
||
"onUpdate:value": ($event) => unref(homepageForm).statsUpdateTime = $event,
|
||
placeholder: "每月定期更新"
|
||
}, null, _parent5, _scopeId4));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_input, {
|
||
value: unref(homepageForm).statsUpdateTime,
|
||
"onUpdate:value": ($event) => unref(homepageForm).statsUpdateTime = $event,
|
||
placeholder: "每月定期更新"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(`<div class="form-footer" data-v-7836e485${_scopeId3}>`);
|
||
_push4(ssrRenderComponent(_component_a_button, {
|
||
type: "primary",
|
||
loading: unref(savingHomepage),
|
||
onClick: saveHomepage
|
||
}, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(`💾 保存首页配置`);
|
||
} else {
|
||
return [
|
||
createTextVNode("💾 保存首页配置")
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(`</div>`);
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_form_item, { label: "轮播公告文字" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(homepageForm).noticeText,
|
||
"onUpdate:value": ($event) => unref(homepageForm).noticeText = $event,
|
||
placeholder: "欢迎访问广西决策咨询网!"
|
||
}, null, 8, ["value", "onUpdate:value"]),
|
||
createVNode("div", { class: "form-tip" }, "显示在首页顶部公告条")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "首页关于我们简介" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(homepageForm).aboutIntro,
|
||
"onUpdate:value": ($event) => unref(homepageForm).aboutIntro = $event,
|
||
rows: 4,
|
||
placeholder: "学会/机构简介,用于首页展示...",
|
||
maxlength: 1e3,
|
||
"show-count": ""
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_divider, null, {
|
||
default: withCtx(() => [
|
||
createTextVNode("统计数据(首页展示)")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_row, { gutter: 16 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_col, { span: 8 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "专家数量" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input_number, {
|
||
value: unref(homepageForm).expertCount,
|
||
"onUpdate:value": ($event) => unref(homepageForm).expertCount = $event,
|
||
min: 0,
|
||
max: 99999,
|
||
style: { "width": "100%" }
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_col, { span: 8 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "会员数量" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input_number, {
|
||
value: unref(homepageForm).memberCount,
|
||
"onUpdate:value": ($event) => unref(homepageForm).memberCount = $event,
|
||
min: 0,
|
||
max: 99999,
|
||
style: { "width": "100%" }
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_col, { span: 8 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "建言数量" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input_number, {
|
||
value: unref(homepageForm).suggestionCount,
|
||
"onUpdate:value": ($event) => unref(homepageForm).suggestionCount = $event,
|
||
min: 0,
|
||
max: 99999,
|
||
style: { "width": "100%" }
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "数据更新时间" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(homepageForm).statsUpdateTime,
|
||
"onUpdate:value": ($event) => unref(homepageForm).statsUpdateTime = $event,
|
||
placeholder: "每月定期更新"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode("div", { class: "form-footer" }, [
|
||
createVNode(_component_a_button, {
|
||
type: "primary",
|
||
loading: unref(savingHomepage),
|
||
onClick: saveHomepage
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("💾 保存首页配置")
|
||
]),
|
||
_: 1
|
||
}, 8, ["loading"])
|
||
])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent3, _scopeId2));
|
||
_push3(`<!--]-->`);
|
||
} else {
|
||
_push3(`<!---->`);
|
||
}
|
||
if (unref(activeTab) === "consultation") {
|
||
_push3(`<!--[--><div class="settings-section-title" data-v-7836e485${_scopeId2}>📞 咨询服务配置</div>`);
|
||
_push3(ssrRenderComponent(_component_a_form, {
|
||
model: unref(consultationForm),
|
||
layout: "vertical",
|
||
class: "settings-form"
|
||
}, {
|
||
default: withCtx((_3, _push4, _parent4, _scopeId3) => {
|
||
if (_push4) {
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "咨询服务说明" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_textarea, {
|
||
value: unref(consultationForm).serviceDesc,
|
||
"onUpdate:value": ($event) => unref(consultationForm).serviceDesc = $event,
|
||
rows: 4,
|
||
placeholder: "咨询服务范围、内容、流程的详细说明...",
|
||
maxlength: 1e3,
|
||
"show-count": ""
|
||
}, null, _parent5, _scopeId4));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(consultationForm).serviceDesc,
|
||
"onUpdate:value": ($event) => unref(consultationForm).serviceDesc = $event,
|
||
rows: 4,
|
||
placeholder: "咨询服务范围、内容、流程的详细说明...",
|
||
maxlength: 1e3,
|
||
"show-count": ""
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(ssrRenderComponent(_component_a_row, { gutter: 16 }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_col, { span: 12 }, {
|
||
default: withCtx((_5, _push6, _parent6, _scopeId5) => {
|
||
if (_push6) {
|
||
_push6(ssrRenderComponent(_component_a_form_item, { label: "服务热线" }, {
|
||
default: withCtx((_6, _push7, _parent7, _scopeId6) => {
|
||
if (_push7) {
|
||
_push7(ssrRenderComponent(_component_a_input, {
|
||
value: unref(consultationForm).servicePhone,
|
||
"onUpdate:value": ($event) => unref(consultationForm).servicePhone = $event,
|
||
placeholder: "0771-5386339"
|
||
}, null, _parent7, _scopeId6));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_input, {
|
||
value: unref(consultationForm).servicePhone,
|
||
"onUpdate:value": ($event) => unref(consultationForm).servicePhone = $event,
|
||
placeholder: "0771-5386339"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent6, _scopeId5));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_form_item, { label: "服务热线" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(consultationForm).servicePhone,
|
||
"onUpdate:value": ($event) => unref(consultationForm).servicePhone = $event,
|
||
placeholder: "0771-5386339"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent5, _scopeId4));
|
||
_push5(ssrRenderComponent(_component_a_col, { span: 12 }, {
|
||
default: withCtx((_5, _push6, _parent6, _scopeId5) => {
|
||
if (_push6) {
|
||
_push6(ssrRenderComponent(_component_a_form_item, { label: "服务时间" }, {
|
||
default: withCtx((_6, _push7, _parent7, _scopeId6) => {
|
||
if (_push7) {
|
||
_push7(ssrRenderComponent(_component_a_input, {
|
||
value: unref(consultationForm).serviceHours,
|
||
"onUpdate:value": ($event) => unref(consultationForm).serviceHours = $event,
|
||
placeholder: "周一至周五 9:00-17:00"
|
||
}, null, _parent7, _scopeId6));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_input, {
|
||
value: unref(consultationForm).serviceHours,
|
||
"onUpdate:value": ($event) => unref(consultationForm).serviceHours = $event,
|
||
placeholder: "周一至周五 9:00-17:00"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent6, _scopeId5));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_form_item, { label: "服务时间" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(consultationForm).serviceHours,
|
||
"onUpdate:value": ($event) => unref(consultationForm).serviceHours = $event,
|
||
placeholder: "周一至周五 9:00-17:00"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent5, _scopeId4));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "服务热线" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(consultationForm).servicePhone,
|
||
"onUpdate:value": ($event) => unref(consultationForm).servicePhone = $event,
|
||
placeholder: "0771-5386339"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "服务时间" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(consultationForm).serviceHours,
|
||
"onUpdate:value": ($event) => unref(consultationForm).serviceHours = $event,
|
||
placeholder: "周一至周五 9:00-17:00"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
})
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(ssrRenderComponent(_component_a_row, { gutter: 16 }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_col, { span: 12 }, {
|
||
default: withCtx((_5, _push6, _parent6, _scopeId5) => {
|
||
if (_push6) {
|
||
_push6(ssrRenderComponent(_component_a_form_item, { label: "咨询邮箱" }, {
|
||
default: withCtx((_6, _push7, _parent7, _scopeId6) => {
|
||
if (_push7) {
|
||
_push7(ssrRenderComponent(_component_a_input, {
|
||
value: unref(consultationForm).serviceEmail,
|
||
"onUpdate:value": ($event) => unref(consultationForm).serviceEmail = $event,
|
||
placeholder: "gxjzxzx@126.com"
|
||
}, null, _parent7, _scopeId6));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_input, {
|
||
value: unref(consultationForm).serviceEmail,
|
||
"onUpdate:value": ($event) => unref(consultationForm).serviceEmail = $event,
|
||
placeholder: "gxjzxzx@126.com"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent6, _scopeId5));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_form_item, { label: "咨询邮箱" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(consultationForm).serviceEmail,
|
||
"onUpdate:value": ($event) => unref(consultationForm).serviceEmail = $event,
|
||
placeholder: "gxjzxzx@126.com"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent5, _scopeId4));
|
||
_push5(ssrRenderComponent(_component_a_col, { span: 12 }, {
|
||
default: withCtx((_5, _push6, _parent6, _scopeId5) => {
|
||
if (_push6) {
|
||
_push6(ssrRenderComponent(_component_a_form_item, { label: "邮政编码" }, {
|
||
default: withCtx((_6, _push7, _parent7, _scopeId6) => {
|
||
if (_push7) {
|
||
_push7(ssrRenderComponent(_component_a_input, {
|
||
value: unref(consultationForm).postalCode,
|
||
"onUpdate:value": ($event) => unref(consultationForm).postalCode = $event,
|
||
placeholder: "530200"
|
||
}, null, _parent7, _scopeId6));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_input, {
|
||
value: unref(consultationForm).postalCode,
|
||
"onUpdate:value": ($event) => unref(consultationForm).postalCode = $event,
|
||
placeholder: "530200"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent6, _scopeId5));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_form_item, { label: "邮政编码" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(consultationForm).postalCode,
|
||
"onUpdate:value": ($event) => unref(consultationForm).postalCode = $event,
|
||
placeholder: "530200"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent5, _scopeId4));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "咨询邮箱" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(consultationForm).serviceEmail,
|
||
"onUpdate:value": ($event) => unref(consultationForm).serviceEmail = $event,
|
||
placeholder: "gxjzxzx@126.com"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "邮政编码" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(consultationForm).postalCode,
|
||
"onUpdate:value": ($event) => unref(consultationForm).postalCode = $event,
|
||
placeholder: "530200"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
})
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "邮寄地址" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_input, {
|
||
value: unref(consultationForm).mailingAddress,
|
||
"onUpdate:value": ($event) => unref(consultationForm).mailingAddress = $event,
|
||
placeholder: "广西南宁市XXX"
|
||
}, null, _parent5, _scopeId4));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_input, {
|
||
value: unref(consultationForm).mailingAddress,
|
||
"onUpdate:value": ($event) => unref(consultationForm).mailingAddress = $event,
|
||
placeholder: "广西南宁市XXX"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(ssrRenderComponent(_component_a_divider, null, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(`服务项目`);
|
||
} else {
|
||
return [
|
||
createTextVNode("服务项目")
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "咨询服务项目(JSON格式)" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_textarea, {
|
||
value: unref(consultationForm).serviceItemsJson,
|
||
"onUpdate:value": ($event) => unref(consultationForm).serviceItemsJson = $event,
|
||
rows: 6,
|
||
placeholder: '[{"title":"政策解读","desc":"解读最新政策文件"},{"title":"决策评估","desc":"重大决策事前评估"}]',
|
||
style: { "font-family": "monospace", "font-size": "13px" }
|
||
}, null, _parent5, _scopeId4));
|
||
_push5(`<div class="form-tip" data-v-7836e485${_scopeId4}>填写JSON数组,每项包含 title(标题)和 desc(描述)字段</div>`);
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(consultationForm).serviceItemsJson,
|
||
"onUpdate:value": ($event) => unref(consultationForm).serviceItemsJson = $event,
|
||
rows: 6,
|
||
placeholder: '[{"title":"政策解读","desc":"解读最新政策文件"},{"title":"决策评估","desc":"重大决策事前评估"}]',
|
||
style: { "font-family": "monospace", "font-size": "13px" }
|
||
}, null, 8, ["value", "onUpdate:value"]),
|
||
createVNode("div", { class: "form-tip" }, "填写JSON数组,每项包含 title(标题)和 desc(描述)字段")
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(`<div class="form-footer" data-v-7836e485${_scopeId3}>`);
|
||
_push4(ssrRenderComponent(_component_a_button, {
|
||
type: "primary",
|
||
loading: unref(savingConsultation),
|
||
onClick: saveConsultation
|
||
}, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(`💾 保存咨询服务配置`);
|
||
} else {
|
||
return [
|
||
createTextVNode("💾 保存咨询服务配置")
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(`</div>`);
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_form_item, { label: "咨询服务说明" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(consultationForm).serviceDesc,
|
||
"onUpdate:value": ($event) => unref(consultationForm).serviceDesc = $event,
|
||
rows: 4,
|
||
placeholder: "咨询服务范围、内容、流程的详细说明...",
|
||
maxlength: 1e3,
|
||
"show-count": ""
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_row, { gutter: 16 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "服务热线" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(consultationForm).servicePhone,
|
||
"onUpdate:value": ($event) => unref(consultationForm).servicePhone = $event,
|
||
placeholder: "0771-5386339"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "服务时间" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(consultationForm).serviceHours,
|
||
"onUpdate:value": ($event) => unref(consultationForm).serviceHours = $event,
|
||
placeholder: "周一至周五 9:00-17:00"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_row, { gutter: 16 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "咨询邮箱" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(consultationForm).serviceEmail,
|
||
"onUpdate:value": ($event) => unref(consultationForm).serviceEmail = $event,
|
||
placeholder: "gxjzxzx@126.com"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "邮政编码" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(consultationForm).postalCode,
|
||
"onUpdate:value": ($event) => unref(consultationForm).postalCode = $event,
|
||
placeholder: "530200"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "邮寄地址" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(consultationForm).mailingAddress,
|
||
"onUpdate:value": ($event) => unref(consultationForm).mailingAddress = $event,
|
||
placeholder: "广西南宁市XXX"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_divider, null, {
|
||
default: withCtx(() => [
|
||
createTextVNode("服务项目")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "咨询服务项目(JSON格式)" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(consultationForm).serviceItemsJson,
|
||
"onUpdate:value": ($event) => unref(consultationForm).serviceItemsJson = $event,
|
||
rows: 6,
|
||
placeholder: '[{"title":"政策解读","desc":"解读最新政策文件"},{"title":"决策评估","desc":"重大决策事前评估"}]',
|
||
style: { "font-family": "monospace", "font-size": "13px" }
|
||
}, null, 8, ["value", "onUpdate:value"]),
|
||
createVNode("div", { class: "form-tip" }, "填写JSON数组,每项包含 title(标题)和 desc(描述)字段")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode("div", { class: "form-footer" }, [
|
||
createVNode(_component_a_button, {
|
||
type: "primary",
|
||
loading: unref(savingConsultation),
|
||
onClick: saveConsultation
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("💾 保存咨询服务配置")
|
||
]),
|
||
_: 1
|
||
}, 8, ["loading"])
|
||
])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent3, _scopeId2));
|
||
_push3(`<!--]-->`);
|
||
} else {
|
||
_push3(`<!---->`);
|
||
}
|
||
if (unref(activeTab) === "review") {
|
||
_push3(`<!--[--><div class="settings-section-title" data-v-7836e485${_scopeId2}>🔍 审核配置</div>`);
|
||
_push3(ssrRenderComponent(_component_a_form, {
|
||
model: unref(reviewForm),
|
||
layout: "vertical",
|
||
class: "settings-form"
|
||
}, {
|
||
default: withCtx((_3, _push4, _parent4, _scopeId3) => {
|
||
if (_push4) {
|
||
_push4(`<div class="review-section-card" data-v-7836e485${_scopeId3}><div class="review-section-title" data-v-7836e485${_scopeId3}>🎓 专家申请审核</div>`);
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "启用专家申请" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_switch, {
|
||
checked: unref(reviewForm).expertEnabled,
|
||
"onUpdate:checked": ($event) => unref(reviewForm).expertEnabled = $event
|
||
}, null, _parent5, _scopeId4));
|
||
_push5(`<span class="form-hint" data-v-7836e485${_scopeId4}>关闭后,用户将无法提交专家申请</span>`);
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(reviewForm).expertEnabled,
|
||
"onUpdate:checked": ($event) => unref(reviewForm).expertEnabled = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode("span", { class: "form-hint" }, "关闭后,用户将无法提交专家申请")
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "申请需要人工审核" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_switch, {
|
||
checked: unref(reviewForm).expertNeedReview,
|
||
"onUpdate:checked": ($event) => unref(reviewForm).expertNeedReview = $event
|
||
}, null, _parent5, _scopeId4));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(reviewForm).expertNeedReview,
|
||
"onUpdate:checked": ($event) => unref(reviewForm).expertNeedReview = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "审核通知邮箱" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_input, {
|
||
value: unref(reviewForm).expertReviewEmail,
|
||
"onUpdate:value": ($event) => unref(reviewForm).expertReviewEmail = $event,
|
||
placeholder: "有新专家申请时发送通知"
|
||
}, null, _parent5, _scopeId4));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_input, {
|
||
value: unref(reviewForm).expertReviewEmail,
|
||
"onUpdate:value": ($event) => unref(reviewForm).expertReviewEmail = $event,
|
||
placeholder: "有新专家申请时发送通知"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "默认拒绝原因模板" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_textarea, {
|
||
value: unref(reviewForm).expertRejectTemplate,
|
||
"onUpdate:value": ($event) => unref(reviewForm).expertRejectTemplate = $event,
|
||
rows: 3,
|
||
placeholder: "填写常见的专家申请拒绝原因..."
|
||
}, null, _parent5, _scopeId4));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(reviewForm).expertRejectTemplate,
|
||
"onUpdate:value": ($event) => unref(reviewForm).expertRejectTemplate = $event,
|
||
rows: 3,
|
||
placeholder: "填写常见的专家申请拒绝原因..."
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(`</div><div class="review-section-card" data-v-7836e485${_scopeId3}><div class="review-section-title" data-v-7836e485${_scopeId3}>💼 会员申请审核</div>`);
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "启用会员申请" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_switch, {
|
||
checked: unref(reviewForm).memberEnabled,
|
||
"onUpdate:checked": ($event) => unref(reviewForm).memberEnabled = $event
|
||
}, null, _parent5, _scopeId4));
|
||
_push5(`<span class="form-hint" data-v-7836e485${_scopeId4}>关闭后,用户将无法提交会员申请</span>`);
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(reviewForm).memberEnabled,
|
||
"onUpdate:checked": ($event) => unref(reviewForm).memberEnabled = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode("span", { class: "form-hint" }, "关闭后,用户将无法提交会员申请")
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "申请需要人工审核" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_switch, {
|
||
checked: unref(reviewForm).memberNeedReview,
|
||
"onUpdate:checked": ($event) => unref(reviewForm).memberNeedReview = $event
|
||
}, null, _parent5, _scopeId4));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(reviewForm).memberNeedReview,
|
||
"onUpdate:checked": ($event) => unref(reviewForm).memberNeedReview = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "审核通知邮箱" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_input, {
|
||
value: unref(reviewForm).memberReviewEmail,
|
||
"onUpdate:value": ($event) => unref(reviewForm).memberReviewEmail = $event,
|
||
placeholder: "有新会员申请时发送通知"
|
||
}, null, _parent5, _scopeId4));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_input, {
|
||
value: unref(reviewForm).memberReviewEmail,
|
||
"onUpdate:value": ($event) => unref(reviewForm).memberReviewEmail = $event,
|
||
placeholder: "有新会员申请时发送通知"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "默认拒绝原因模板" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_textarea, {
|
||
value: unref(reviewForm).memberRejectTemplate,
|
||
"onUpdate:value": ($event) => unref(reviewForm).memberRejectTemplate = $event,
|
||
rows: 3,
|
||
placeholder: "填写常见的会员申请拒绝原因..."
|
||
}, null, _parent5, _scopeId4));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(reviewForm).memberRejectTemplate,
|
||
"onUpdate:value": ($event) => unref(reviewForm).memberRejectTemplate = $event,
|
||
rows: 3,
|
||
placeholder: "填写常见的会员申请拒绝原因..."
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(`</div><div class="review-section-card" data-v-7836e485${_scopeId3}><div class="review-section-title" data-v-7836e485${_scopeId3}>💬 建言献策</div>`);
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "建言需要审核" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_switch, {
|
||
checked: unref(reviewForm).suggestionNeedReview,
|
||
"onUpdate:checked": ($event) => unref(reviewForm).suggestionNeedReview = $event
|
||
}, null, _parent5, _scopeId4));
|
||
_push5(`<span class="form-hint" data-v-7836e485${_scopeId4}>关闭后,用户提交的建言将直接显示</span>`);
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(reviewForm).suggestionNeedReview,
|
||
"onUpdate:checked": ($event) => unref(reviewForm).suggestionNeedReview = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode("span", { class: "form-hint" }, "关闭后,用户提交的建言将直接显示")
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "匿名建言" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_switch, {
|
||
checked: unref(reviewForm).suggestionAnonymous,
|
||
"onUpdate:checked": ($event) => unref(reviewForm).suggestionAnonymous = $event
|
||
}, null, _parent5, _scopeId4));
|
||
_push5(`<span class="form-hint" data-v-7836e485${_scopeId4}>开启后,用户可选择匿名提交建言</span>`);
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(reviewForm).suggestionAnonymous,
|
||
"onUpdate:checked": ($event) => unref(reviewForm).suggestionAnonymous = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode("span", { class: "form-hint" }, "开启后,用户可选择匿名提交建言")
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(`</div><div class="form-footer" data-v-7836e485${_scopeId3}>`);
|
||
_push4(ssrRenderComponent(_component_a_button, {
|
||
type: "primary",
|
||
loading: unref(savingReview),
|
||
onClick: saveReview
|
||
}, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(`💾 保存审核配置`);
|
||
} else {
|
||
return [
|
||
createTextVNode("💾 保存审核配置")
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(`</div>`);
|
||
} else {
|
||
return [
|
||
createVNode("div", { class: "review-section-card" }, [
|
||
createVNode("div", { class: "review-section-title" }, "🎓 专家申请审核"),
|
||
createVNode(_component_a_form_item, { label: "启用专家申请" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(reviewForm).expertEnabled,
|
||
"onUpdate:checked": ($event) => unref(reviewForm).expertEnabled = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode("span", { class: "form-hint" }, "关闭后,用户将无法提交专家申请")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "申请需要人工审核" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(reviewForm).expertNeedReview,
|
||
"onUpdate:checked": ($event) => unref(reviewForm).expertNeedReview = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "审核通知邮箱" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(reviewForm).expertReviewEmail,
|
||
"onUpdate:value": ($event) => unref(reviewForm).expertReviewEmail = $event,
|
||
placeholder: "有新专家申请时发送通知"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "默认拒绝原因模板" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(reviewForm).expertRejectTemplate,
|
||
"onUpdate:value": ($event) => unref(reviewForm).expertRejectTemplate = $event,
|
||
rows: 3,
|
||
placeholder: "填写常见的专家申请拒绝原因..."
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
createVNode("div", { class: "review-section-card" }, [
|
||
createVNode("div", { class: "review-section-title" }, "💼 会员申请审核"),
|
||
createVNode(_component_a_form_item, { label: "启用会员申请" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(reviewForm).memberEnabled,
|
||
"onUpdate:checked": ($event) => unref(reviewForm).memberEnabled = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode("span", { class: "form-hint" }, "关闭后,用户将无法提交会员申请")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "申请需要人工审核" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(reviewForm).memberNeedReview,
|
||
"onUpdate:checked": ($event) => unref(reviewForm).memberNeedReview = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "审核通知邮箱" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(reviewForm).memberReviewEmail,
|
||
"onUpdate:value": ($event) => unref(reviewForm).memberReviewEmail = $event,
|
||
placeholder: "有新会员申请时发送通知"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "默认拒绝原因模板" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(reviewForm).memberRejectTemplate,
|
||
"onUpdate:value": ($event) => unref(reviewForm).memberRejectTemplate = $event,
|
||
rows: 3,
|
||
placeholder: "填写常见的会员申请拒绝原因..."
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
createVNode("div", { class: "review-section-card" }, [
|
||
createVNode("div", { class: "review-section-title" }, "💬 建言献策"),
|
||
createVNode(_component_a_form_item, { label: "建言需要审核" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(reviewForm).suggestionNeedReview,
|
||
"onUpdate:checked": ($event) => unref(reviewForm).suggestionNeedReview = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode("span", { class: "form-hint" }, "关闭后,用户提交的建言将直接显示")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "匿名建言" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(reviewForm).suggestionAnonymous,
|
||
"onUpdate:checked": ($event) => unref(reviewForm).suggestionAnonymous = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode("span", { class: "form-hint" }, "开启后,用户可选择匿名提交建言")
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
createVNode("div", { class: "form-footer" }, [
|
||
createVNode(_component_a_button, {
|
||
type: "primary",
|
||
loading: unref(savingReview),
|
||
onClick: saveReview
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("💾 保存审核配置")
|
||
]),
|
||
_: 1
|
||
}, 8, ["loading"])
|
||
])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent3, _scopeId2));
|
||
_push3(`<!--]-->`);
|
||
} else {
|
||
_push3(`<!---->`);
|
||
}
|
||
if (unref(activeTab) === "notify") {
|
||
_push3(`<!--[--><div class="settings-section-title" data-v-7836e485${_scopeId2}>🔔 通知配置</div>`);
|
||
_push3(ssrRenderComponent(_component_a_form, {
|
||
model: unref(notifyForm),
|
||
layout: "vertical",
|
||
class: "settings-form"
|
||
}, {
|
||
default: withCtx((_3, _push4, _parent4, _scopeId3) => {
|
||
if (_push4) {
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "新申请通知" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_space, { direction: "vertical" }, {
|
||
default: withCtx((_5, _push6, _parent6, _scopeId5) => {
|
||
if (_push6) {
|
||
_push6(ssrRenderComponent(_component_a_checkbox, {
|
||
checked: unref(notifyForm).notifyOnNewExpert,
|
||
"onUpdate:checked": ($event) => unref(notifyForm).notifyOnNewExpert = $event
|
||
}, {
|
||
default: withCtx((_6, _push7, _parent7, _scopeId6) => {
|
||
if (_push7) {
|
||
_push7(`新专家申请时发送邮件通知`);
|
||
} else {
|
||
return [
|
||
createTextVNode("新专家申请时发送邮件通知")
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent6, _scopeId5));
|
||
_push6(ssrRenderComponent(_component_a_checkbox, {
|
||
checked: unref(notifyForm).notifyOnNewMember,
|
||
"onUpdate:checked": ($event) => unref(notifyForm).notifyOnNewMember = $event
|
||
}, {
|
||
default: withCtx((_6, _push7, _parent7, _scopeId6) => {
|
||
if (_push7) {
|
||
_push7(`新会员申请时发送邮件通知`);
|
||
} else {
|
||
return [
|
||
createTextVNode("新会员申请时发送邮件通知")
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent6, _scopeId5));
|
||
_push6(ssrRenderComponent(_component_a_checkbox, {
|
||
checked: unref(notifyForm).notifyOnNewSuggestion,
|
||
"onUpdate:checked": ($event) => unref(notifyForm).notifyOnNewSuggestion = $event
|
||
}, {
|
||
default: withCtx((_6, _push7, _parent7, _scopeId6) => {
|
||
if (_push7) {
|
||
_push7(`新建言提交时发送邮件通知`);
|
||
} else {
|
||
return [
|
||
createTextVNode("新建言提交时发送邮件通知")
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent6, _scopeId5));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_checkbox, {
|
||
checked: unref(notifyForm).notifyOnNewExpert,
|
||
"onUpdate:checked": ($event) => unref(notifyForm).notifyOnNewExpert = $event
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("新专家申请时发送邮件通知")
|
||
]),
|
||
_: 1
|
||
}, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode(_component_a_checkbox, {
|
||
checked: unref(notifyForm).notifyOnNewMember,
|
||
"onUpdate:checked": ($event) => unref(notifyForm).notifyOnNewMember = $event
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("新会员申请时发送邮件通知")
|
||
]),
|
||
_: 1
|
||
}, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode(_component_a_checkbox, {
|
||
checked: unref(notifyForm).notifyOnNewSuggestion,
|
||
"onUpdate:checked": ($event) => unref(notifyForm).notifyOnNewSuggestion = $event
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("新建言提交时发送邮件通知")
|
||
]),
|
||
_: 1
|
||
}, 8, ["checked", "onUpdate:checked"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent5, _scopeId4));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_space, { direction: "vertical" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_checkbox, {
|
||
checked: unref(notifyForm).notifyOnNewExpert,
|
||
"onUpdate:checked": ($event) => unref(notifyForm).notifyOnNewExpert = $event
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("新专家申请时发送邮件通知")
|
||
]),
|
||
_: 1
|
||
}, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode(_component_a_checkbox, {
|
||
checked: unref(notifyForm).notifyOnNewMember,
|
||
"onUpdate:checked": ($event) => unref(notifyForm).notifyOnNewMember = $event
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("新会员申请时发送邮件通知")
|
||
]),
|
||
_: 1
|
||
}, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode(_component_a_checkbox, {
|
||
checked: unref(notifyForm).notifyOnNewSuggestion,
|
||
"onUpdate:checked": ($event) => unref(notifyForm).notifyOnNewSuggestion = $event
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("新建言提交时发送邮件通知")
|
||
]),
|
||
_: 1
|
||
}, 8, ["checked", "onUpdate:checked"])
|
||
]),
|
||
_: 1
|
||
})
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "审核结果通知" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_space, { direction: "vertical" }, {
|
||
default: withCtx((_5, _push6, _parent6, _scopeId5) => {
|
||
if (_push6) {
|
||
_push6(ssrRenderComponent(_component_a_checkbox, {
|
||
checked: unref(notifyForm).notifyReviewResult,
|
||
"onUpdate:checked": ($event) => unref(notifyForm).notifyReviewResult = $event
|
||
}, {
|
||
default: withCtx((_6, _push7, _parent7, _scopeId6) => {
|
||
if (_push7) {
|
||
_push7(`审核完成后通过邮件通知申请人`);
|
||
} else {
|
||
return [
|
||
createTextVNode("审核完成后通过邮件通知申请人")
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent6, _scopeId5));
|
||
_push6(ssrRenderComponent(_component_a_checkbox, {
|
||
checked: unref(notifyForm).notifyReviewResultSms,
|
||
"onUpdate:checked": ($event) => unref(notifyForm).notifyReviewResultSms = $event
|
||
}, {
|
||
default: withCtx((_6, _push7, _parent7, _scopeId6) => {
|
||
if (_push7) {
|
||
_push7(`审核完成后通过短信通知申请人`);
|
||
} else {
|
||
return [
|
||
createTextVNode("审核完成后通过短信通知申请人")
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent6, _scopeId5));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_checkbox, {
|
||
checked: unref(notifyForm).notifyReviewResult,
|
||
"onUpdate:checked": ($event) => unref(notifyForm).notifyReviewResult = $event
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("审核完成后通过邮件通知申请人")
|
||
]),
|
||
_: 1
|
||
}, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode(_component_a_checkbox, {
|
||
checked: unref(notifyForm).notifyReviewResultSms,
|
||
"onUpdate:checked": ($event) => unref(notifyForm).notifyReviewResultSms = $event
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("审核完成后通过短信通知申请人")
|
||
]),
|
||
_: 1
|
||
}, 8, ["checked", "onUpdate:checked"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent5, _scopeId4));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_space, { direction: "vertical" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_checkbox, {
|
||
checked: unref(notifyForm).notifyReviewResult,
|
||
"onUpdate:checked": ($event) => unref(notifyForm).notifyReviewResult = $event
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("审核完成后通过邮件通知申请人")
|
||
]),
|
||
_: 1
|
||
}, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode(_component_a_checkbox, {
|
||
checked: unref(notifyForm).notifyReviewResultSms,
|
||
"onUpdate:checked": ($event) => unref(notifyForm).notifyReviewResultSms = $event
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("审核完成后通过短信通知申请人")
|
||
]),
|
||
_: 1
|
||
}, 8, ["checked", "onUpdate:checked"])
|
||
]),
|
||
_: 1
|
||
})
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "通知邮件地址" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_input, {
|
||
value: unref(notifyForm).notifyEmail,
|
||
"onUpdate:value": ($event) => unref(notifyForm).notifyEmail = $event,
|
||
placeholder: "接收系统通知的邮箱"
|
||
}, null, _parent5, _scopeId4));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_input, {
|
||
value: unref(notifyForm).notifyEmail,
|
||
"onUpdate:value": ($event) => unref(notifyForm).notifyEmail = $event,
|
||
placeholder: "接收系统通知的邮箱"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "通知邮件模板(审核通过)" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_textarea, {
|
||
value: unref(notifyForm).approveEmailTemplate,
|
||
"onUpdate:value": ($event) => unref(notifyForm).approveEmailTemplate = $event,
|
||
rows: 4,
|
||
placeholder: "您好,{name},您的{type}申请已审核通过..."
|
||
}, null, _parent5, _scopeId4));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(notifyForm).approveEmailTemplate,
|
||
"onUpdate:value": ($event) => unref(notifyForm).approveEmailTemplate = $event,
|
||
rows: 4,
|
||
placeholder: "您好,{name},您的{type}申请已审核通过..."
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "通知邮件模板(审核拒绝)" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_textarea, {
|
||
value: unref(notifyForm).rejectEmailTemplate,
|
||
"onUpdate:value": ($event) => unref(notifyForm).rejectEmailTemplate = $event,
|
||
rows: 4,
|
||
placeholder: "您好,{name},您的{type}申请未通过审核,原因:{reason}..."
|
||
}, null, _parent5, _scopeId4));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(notifyForm).rejectEmailTemplate,
|
||
"onUpdate:value": ($event) => unref(notifyForm).rejectEmailTemplate = $event,
|
||
rows: 4,
|
||
placeholder: "您好,{name},您的{type}申请未通过审核,原因:{reason}..."
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(`<div class="form-footer" data-v-7836e485${_scopeId3}>`);
|
||
_push4(ssrRenderComponent(_component_a_button, {
|
||
type: "primary",
|
||
loading: unref(savingNotify),
|
||
onClick: saveNotify
|
||
}, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(`💾 保存通知配置`);
|
||
} else {
|
||
return [
|
||
createTextVNode("💾 保存通知配置")
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(`</div>`);
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_form_item, { label: "新申请通知" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_space, { direction: "vertical" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_checkbox, {
|
||
checked: unref(notifyForm).notifyOnNewExpert,
|
||
"onUpdate:checked": ($event) => unref(notifyForm).notifyOnNewExpert = $event
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("新专家申请时发送邮件通知")
|
||
]),
|
||
_: 1
|
||
}, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode(_component_a_checkbox, {
|
||
checked: unref(notifyForm).notifyOnNewMember,
|
||
"onUpdate:checked": ($event) => unref(notifyForm).notifyOnNewMember = $event
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("新会员申请时发送邮件通知")
|
||
]),
|
||
_: 1
|
||
}, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode(_component_a_checkbox, {
|
||
checked: unref(notifyForm).notifyOnNewSuggestion,
|
||
"onUpdate:checked": ($event) => unref(notifyForm).notifyOnNewSuggestion = $event
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("新建言提交时发送邮件通知")
|
||
]),
|
||
_: 1
|
||
}, 8, ["checked", "onUpdate:checked"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "审核结果通知" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_space, { direction: "vertical" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_checkbox, {
|
||
checked: unref(notifyForm).notifyReviewResult,
|
||
"onUpdate:checked": ($event) => unref(notifyForm).notifyReviewResult = $event
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("审核完成后通过邮件通知申请人")
|
||
]),
|
||
_: 1
|
||
}, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode(_component_a_checkbox, {
|
||
checked: unref(notifyForm).notifyReviewResultSms,
|
||
"onUpdate:checked": ($event) => unref(notifyForm).notifyReviewResultSms = $event
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("审核完成后通过短信通知申请人")
|
||
]),
|
||
_: 1
|
||
}, 8, ["checked", "onUpdate:checked"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "通知邮件地址" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(notifyForm).notifyEmail,
|
||
"onUpdate:value": ($event) => unref(notifyForm).notifyEmail = $event,
|
||
placeholder: "接收系统通知的邮箱"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "通知邮件模板(审核通过)" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(notifyForm).approveEmailTemplate,
|
||
"onUpdate:value": ($event) => unref(notifyForm).approveEmailTemplate = $event,
|
||
rows: 4,
|
||
placeholder: "您好,{name},您的{type}申请已审核通过..."
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "通知邮件模板(审核拒绝)" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(notifyForm).rejectEmailTemplate,
|
||
"onUpdate:value": ($event) => unref(notifyForm).rejectEmailTemplate = $event,
|
||
rows: 4,
|
||
placeholder: "您好,{name},您的{type}申请未通过审核,原因:{reason}..."
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode("div", { class: "form-footer" }, [
|
||
createVNode(_component_a_button, {
|
||
type: "primary",
|
||
loading: unref(savingNotify),
|
||
onClick: saveNotify
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("💾 保存通知配置")
|
||
]),
|
||
_: 1
|
||
}, 8, ["loading"])
|
||
])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent3, _scopeId2));
|
||
_push3(`<!--]-->`);
|
||
} else {
|
||
_push3(`<!---->`);
|
||
}
|
||
if (unref(activeTab) === "data") {
|
||
_push3(`<!--[--><div class="settings-section-title" data-v-7836e485${_scopeId2}>📊 数据服务配置</div>`);
|
||
_push3(ssrRenderComponent(_component_a_form, {
|
||
model: unref(dataForm),
|
||
layout: "vertical",
|
||
class: "settings-form"
|
||
}, {
|
||
default: withCtx((_3, _push4, _parent4, _scopeId3) => {
|
||
if (_push4) {
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "数据服务功能" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_switch, {
|
||
checked: unref(dataForm).enabled,
|
||
"onUpdate:checked": ($event) => unref(dataForm).enabled = $event
|
||
}, null, _parent5, _scopeId4));
|
||
_push5(`<span class="form-hint" data-v-7836e485${_scopeId4}>关闭后,数据服务栏目对所有用户不可见</span>`);
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(dataForm).enabled,
|
||
"onUpdate:checked": ($event) => unref(dataForm).enabled = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode("span", { class: "form-hint" }, "关闭后,数据服务栏目对所有用户不可见")
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "仅限会员访问" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_switch, {
|
||
checked: unref(dataForm).memberOnly,
|
||
"onUpdate:checked": ($event) => unref(dataForm).memberOnly = $event
|
||
}, null, _parent5, _scopeId4));
|
||
_push5(`<span class="form-hint" data-v-7836e485${_scopeId4}>开启后,数据服务内容仅对会员用户开放</span>`);
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(dataForm).memberOnly,
|
||
"onUpdate:checked": ($event) => unref(dataForm).memberOnly = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode("span", { class: "form-hint" }, "开启后,数据服务内容仅对会员用户开放")
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "数据更新频率" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_select, {
|
||
value: unref(dataForm).updateFrequency,
|
||
"onUpdate:value": ($event) => unref(dataForm).updateFrequency = $event,
|
||
style: { "width": "200px" }
|
||
}, {
|
||
default: withCtx((_5, _push6, _parent6, _scopeId5) => {
|
||
if (_push6) {
|
||
_push6(ssrRenderComponent(_component_a_select_option, { value: "daily" }, {
|
||
default: withCtx((_6, _push7, _parent7, _scopeId6) => {
|
||
if (_push7) {
|
||
_push7(`每日更新`);
|
||
} else {
|
||
return [
|
||
createTextVNode("每日更新")
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent6, _scopeId5));
|
||
_push6(ssrRenderComponent(_component_a_select_option, { value: "weekly" }, {
|
||
default: withCtx((_6, _push7, _parent7, _scopeId6) => {
|
||
if (_push7) {
|
||
_push7(`每周更新`);
|
||
} else {
|
||
return [
|
||
createTextVNode("每周更新")
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent6, _scopeId5));
|
||
_push6(ssrRenderComponent(_component_a_select_option, { value: "monthly" }, {
|
||
default: withCtx((_6, _push7, _parent7, _scopeId6) => {
|
||
if (_push7) {
|
||
_push7(`每月更新`);
|
||
} else {
|
||
return [
|
||
createTextVNode("每月更新")
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent6, _scopeId5));
|
||
_push6(ssrRenderComponent(_component_a_select_option, { value: "quarterly" }, {
|
||
default: withCtx((_6, _push7, _parent7, _scopeId6) => {
|
||
if (_push7) {
|
||
_push7(`每季度更新`);
|
||
} else {
|
||
return [
|
||
createTextVNode("每季度更新")
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent6, _scopeId5));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_select_option, { value: "daily" }, {
|
||
default: withCtx(() => [
|
||
createTextVNode("每日更新")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_select_option, { value: "weekly" }, {
|
||
default: withCtx(() => [
|
||
createTextVNode("每周更新")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_select_option, { value: "monthly" }, {
|
||
default: withCtx(() => [
|
||
createTextVNode("每月更新")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_select_option, { value: "quarterly" }, {
|
||
default: withCtx(() => [
|
||
createTextVNode("每季度更新")
|
||
]),
|
||
_: 1
|
||
})
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent5, _scopeId4));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_select, {
|
||
value: unref(dataForm).updateFrequency,
|
||
"onUpdate:value": ($event) => unref(dataForm).updateFrequency = $event,
|
||
style: { "width": "200px" }
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_select_option, { value: "daily" }, {
|
||
default: withCtx(() => [
|
||
createTextVNode("每日更新")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_select_option, { value: "weekly" }, {
|
||
default: withCtx(() => [
|
||
createTextVNode("每周更新")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_select_option, { value: "monthly" }, {
|
||
default: withCtx(() => [
|
||
createTextVNode("每月更新")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_select_option, { value: "quarterly" }, {
|
||
default: withCtx(() => [
|
||
createTextVNode("每季度更新")
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}, 8, ["value", "onUpdate:value"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "数据服务说明" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_textarea, {
|
||
value: unref(dataForm).description,
|
||
"onUpdate:value": ($event) => unref(dataForm).description = $event,
|
||
rows: 4,
|
||
placeholder: "数据服务的详细介绍和内容范围...",
|
||
maxlength: 1e3,
|
||
"show-count": ""
|
||
}, null, _parent5, _scopeId4));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(dataForm).description,
|
||
"onUpdate:value": ($event) => unref(dataForm).description = $event,
|
||
rows: 4,
|
||
placeholder: "数据服务的详细介绍和内容范围...",
|
||
maxlength: 1e3,
|
||
"show-count": ""
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "数据来源标注" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_input, {
|
||
value: unref(dataForm).dataSource,
|
||
"onUpdate:value": ($event) => unref(dataForm).dataSource = $event,
|
||
placeholder: "数据来源:如自治区统计局、商务部等"
|
||
}, null, _parent5, _scopeId4));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_input, {
|
||
value: unref(dataForm).dataSource,
|
||
"onUpdate:value": ($event) => unref(dataForm).dataSource = $event,
|
||
placeholder: "数据来源:如自治区统计局、商务部等"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(`<div class="form-footer" data-v-7836e485${_scopeId3}>`);
|
||
_push4(ssrRenderComponent(_component_a_button, {
|
||
type: "primary",
|
||
loading: unref(savingData),
|
||
onClick: saveData
|
||
}, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(`💾 保存数据服务配置`);
|
||
} else {
|
||
return [
|
||
createTextVNode("💾 保存数据服务配置")
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(`</div>`);
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_form_item, { label: "数据服务功能" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(dataForm).enabled,
|
||
"onUpdate:checked": ($event) => unref(dataForm).enabled = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode("span", { class: "form-hint" }, "关闭后,数据服务栏目对所有用户不可见")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "仅限会员访问" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(dataForm).memberOnly,
|
||
"onUpdate:checked": ($event) => unref(dataForm).memberOnly = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode("span", { class: "form-hint" }, "开启后,数据服务内容仅对会员用户开放")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "数据更新频率" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_select, {
|
||
value: unref(dataForm).updateFrequency,
|
||
"onUpdate:value": ($event) => unref(dataForm).updateFrequency = $event,
|
||
style: { "width": "200px" }
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_select_option, { value: "daily" }, {
|
||
default: withCtx(() => [
|
||
createTextVNode("每日更新")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_select_option, { value: "weekly" }, {
|
||
default: withCtx(() => [
|
||
createTextVNode("每周更新")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_select_option, { value: "monthly" }, {
|
||
default: withCtx(() => [
|
||
createTextVNode("每月更新")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_select_option, { value: "quarterly" }, {
|
||
default: withCtx(() => [
|
||
createTextVNode("每季度更新")
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "数据服务说明" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(dataForm).description,
|
||
"onUpdate:value": ($event) => unref(dataForm).description = $event,
|
||
rows: 4,
|
||
placeholder: "数据服务的详细介绍和内容范围...",
|
||
maxlength: 1e3,
|
||
"show-count": ""
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "数据来源标注" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(dataForm).dataSource,
|
||
"onUpdate:value": ($event) => unref(dataForm).dataSource = $event,
|
||
placeholder: "数据来源:如自治区统计局、商务部等"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode("div", { class: "form-footer" }, [
|
||
createVNode(_component_a_button, {
|
||
type: "primary",
|
||
loading: unref(savingData),
|
||
onClick: saveData
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("💾 保存数据服务配置")
|
||
]),
|
||
_: 1
|
||
}, 8, ["loading"])
|
||
])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent3, _scopeId2));
|
||
_push3(`<!--]-->`);
|
||
} else {
|
||
_push3(`<!---->`);
|
||
}
|
||
if (unref(activeTab) === "wechat") {
|
||
_push3(`<!--[--><div class="settings-section-title" data-v-7836e485${_scopeId2}>📱 微信公众号配置</div>`);
|
||
_push3(ssrRenderComponent(_component_a_form, {
|
||
model: unref(wechatForm),
|
||
layout: "vertical",
|
||
class: "settings-form"
|
||
}, {
|
||
default: withCtx((_3, _push4, _parent4, _scopeId3) => {
|
||
if (_push4) {
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "公众号名称" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_input, {
|
||
value: unref(wechatForm).name,
|
||
"onUpdate:value": ($event) => unref(wechatForm).name = $event,
|
||
placeholder: "广西决策咨询中心"
|
||
}, null, _parent5, _scopeId4));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_input, {
|
||
value: unref(wechatForm).name,
|
||
"onUpdate:value": ($event) => unref(wechatForm).name = $event,
|
||
placeholder: "广西决策咨询中心"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "公众号原始ID" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_input, {
|
||
value: unref(wechatForm).originalId,
|
||
"onUpdate:value": ($event) => unref(wechatForm).originalId = $event,
|
||
placeholder: "gh_xxxxxxxx"
|
||
}, null, _parent5, _scopeId4));
|
||
_push5(`<div class="form-tip" data-v-7836e485${_scopeId4}>在微信公众平台 - 设置与开发 - 基本配置中获取</div>`);
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_input, {
|
||
value: unref(wechatForm).originalId,
|
||
"onUpdate:value": ($event) => unref(wechatForm).originalId = $event,
|
||
placeholder: "gh_xxxxxxxx"
|
||
}, null, 8, ["value", "onUpdate:value"]),
|
||
createVNode("div", { class: "form-tip" }, "在微信公众平台 - 设置与开发 - 基本配置中获取")
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "AppID" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_input, {
|
||
value: unref(wechatForm).appId,
|
||
"onUpdate:value": ($event) => unref(wechatForm).appId = $event,
|
||
placeholder: "微信公众平台AppID"
|
||
}, null, _parent5, _scopeId4));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_input, {
|
||
value: unref(wechatForm).appId,
|
||
"onUpdate:value": ($event) => unref(wechatForm).appId = $event,
|
||
placeholder: "微信公众平台AppID"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "AppSecret" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_input_password, {
|
||
value: unref(wechatForm).appSecret,
|
||
"onUpdate:value": ($event) => unref(wechatForm).appSecret = $event,
|
||
placeholder: "微信公众平台AppSecret"
|
||
}, null, _parent5, _scopeId4));
|
||
_push5(`<div class="form-tip" data-v-7836e485${_scopeId4}>请妥善保管,不要泄露给他人</div>`);
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_input_password, {
|
||
value: unref(wechatForm).appSecret,
|
||
"onUpdate:value": ($event) => unref(wechatForm).appSecret = $event,
|
||
placeholder: "微信公众平台AppSecret"
|
||
}, null, 8, ["value", "onUpdate:value"]),
|
||
createVNode("div", { class: "form-tip" }, "请妥善保管,不要泄露给他人")
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "公众号二维码" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(`<div class="upload-row" data-v-7836e485${_scopeId4}>`);
|
||
_push5(ssrRenderComponent(_component_a_upload, {
|
||
accept: "image/*",
|
||
"show-upload-list": false,
|
||
"before-upload": () => false,
|
||
onChange: (info) => handleQrUpload(info)
|
||
}, {
|
||
default: withCtx((_5, _push6, _parent6, _scopeId5) => {
|
||
if (_push6) {
|
||
_push6(ssrRenderComponent(_component_a_button, null, {
|
||
default: withCtx((_6, _push7, _parent7, _scopeId6) => {
|
||
if (_push7) {
|
||
_push7(`上传二维码`);
|
||
} else {
|
||
return [
|
||
createTextVNode("上传二维码")
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent6, _scopeId5));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_button, null, {
|
||
default: withCtx(() => [
|
||
createTextVNode("上传二维码")
|
||
]),
|
||
_: 1
|
||
})
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent5, _scopeId4));
|
||
if (unref(wechatForm).qrcode) {
|
||
_push5(`<img${ssrRenderAttr("src", unref(wechatForm).qrcode)} class="qrcode-preview" alt="公众号二维码" data-v-7836e485${_scopeId4}>`);
|
||
} else {
|
||
_push5(`<!---->`);
|
||
}
|
||
_push5(`</div>`);
|
||
} else {
|
||
return [
|
||
createVNode("div", { class: "upload-row" }, [
|
||
createVNode(_component_a_upload, {
|
||
accept: "image/*",
|
||
"show-upload-list": false,
|
||
"before-upload": () => false,
|
||
onChange: (info) => handleQrUpload(info)
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_button, null, {
|
||
default: withCtx(() => [
|
||
createTextVNode("上传二维码")
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}, 8, ["onChange"]),
|
||
unref(wechatForm).qrcode ? (openBlock(), createBlock("img", {
|
||
key: 0,
|
||
src: unref(wechatForm).qrcode,
|
||
class: "qrcode-preview",
|
||
alt: "公众号二维码"
|
||
}, null, 8, ["src"])) : createCommentVNode("", true)
|
||
])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "微信号" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_input, {
|
||
value: unref(wechatForm).account,
|
||
"onUpdate:value": ($event) => unref(wechatForm).account = $event,
|
||
placeholder: "如:gxjzxzx"
|
||
}, null, _parent5, _scopeId4));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_input, {
|
||
value: unref(wechatForm).account,
|
||
"onUpdate:value": ($event) => unref(wechatForm).account = $event,
|
||
placeholder: "如:gxjzxzx"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "启用自动回复" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_switch, {
|
||
checked: unref(wechatForm).autoReply,
|
||
"onUpdate:checked": ($event) => unref(wechatForm).autoReply = $event
|
||
}, null, _parent5, _scopeId4));
|
||
_push5(`<span class="form-hint" data-v-7836e485${_scopeId4}>开启后,关注自动回复和关键词自动回复功能</span>`);
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(wechatForm).autoReply,
|
||
"onUpdate:checked": ($event) => unref(wechatForm).autoReply = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode("span", { class: "form-hint" }, "开启后,关注自动回复和关键词自动回复功能")
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(ssrRenderComponent(_component_a_form_item, { label: "关注自动回复内容" }, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(ssrRenderComponent(_component_a_textarea, {
|
||
value: unref(wechatForm).subscribeReply,
|
||
"onUpdate:value": ($event) => unref(wechatForm).subscribeReply = $event,
|
||
rows: 3,
|
||
placeholder: "用户关注后自动回复的内容..."
|
||
}, null, _parent5, _scopeId4));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(wechatForm).subscribeReply,
|
||
"onUpdate:value": ($event) => unref(wechatForm).subscribeReply = $event,
|
||
rows: 3,
|
||
placeholder: "用户关注后自动回复的内容..."
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(`<div class="form-footer" data-v-7836e485${_scopeId3}>`);
|
||
_push4(ssrRenderComponent(_component_a_button, {
|
||
type: "primary",
|
||
loading: unref(savingWechat),
|
||
onClick: saveWechat
|
||
}, {
|
||
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
||
if (_push5) {
|
||
_push5(`💾 保存微信配置`);
|
||
} else {
|
||
return [
|
||
createTextVNode("💾 保存微信配置")
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent4, _scopeId3));
|
||
_push4(`</div>`);
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_form_item, { label: "公众号名称" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(wechatForm).name,
|
||
"onUpdate:value": ($event) => unref(wechatForm).name = $event,
|
||
placeholder: "广西决策咨询中心"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "公众号原始ID" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(wechatForm).originalId,
|
||
"onUpdate:value": ($event) => unref(wechatForm).originalId = $event,
|
||
placeholder: "gh_xxxxxxxx"
|
||
}, null, 8, ["value", "onUpdate:value"]),
|
||
createVNode("div", { class: "form-tip" }, "在微信公众平台 - 设置与开发 - 基本配置中获取")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "AppID" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(wechatForm).appId,
|
||
"onUpdate:value": ($event) => unref(wechatForm).appId = $event,
|
||
placeholder: "微信公众平台AppID"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "AppSecret" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input_password, {
|
||
value: unref(wechatForm).appSecret,
|
||
"onUpdate:value": ($event) => unref(wechatForm).appSecret = $event,
|
||
placeholder: "微信公众平台AppSecret"
|
||
}, null, 8, ["value", "onUpdate:value"]),
|
||
createVNode("div", { class: "form-tip" }, "请妥善保管,不要泄露给他人")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "公众号二维码" }, {
|
||
default: withCtx(() => [
|
||
createVNode("div", { class: "upload-row" }, [
|
||
createVNode(_component_a_upload, {
|
||
accept: "image/*",
|
||
"show-upload-list": false,
|
||
"before-upload": () => false,
|
||
onChange: (info) => handleQrUpload(info)
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_button, null, {
|
||
default: withCtx(() => [
|
||
createTextVNode("上传二维码")
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}, 8, ["onChange"]),
|
||
unref(wechatForm).qrcode ? (openBlock(), createBlock("img", {
|
||
key: 0,
|
||
src: unref(wechatForm).qrcode,
|
||
class: "qrcode-preview",
|
||
alt: "公众号二维码"
|
||
}, null, 8, ["src"])) : createCommentVNode("", true)
|
||
])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "微信号" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(wechatForm).account,
|
||
"onUpdate:value": ($event) => unref(wechatForm).account = $event,
|
||
placeholder: "如:gxjzxzx"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "启用自动回复" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(wechatForm).autoReply,
|
||
"onUpdate:checked": ($event) => unref(wechatForm).autoReply = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode("span", { class: "form-hint" }, "开启后,关注自动回复和关键词自动回复功能")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "关注自动回复内容" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(wechatForm).subscribeReply,
|
||
"onUpdate:value": ($event) => unref(wechatForm).subscribeReply = $event,
|
||
rows: 3,
|
||
placeholder: "用户关注后自动回复的内容..."
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode("div", { class: "form-footer" }, [
|
||
createVNode(_component_a_button, {
|
||
type: "primary",
|
||
loading: unref(savingWechat),
|
||
onClick: saveWechat
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("💾 保存微信配置")
|
||
]),
|
||
_: 1
|
||
}, 8, ["loading"])
|
||
])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent3, _scopeId2));
|
||
_push3(`<!--]-->`);
|
||
} else {
|
||
_push3(`<!---->`);
|
||
}
|
||
if (unref(activeTab) === "maintenance") {
|
||
_push3(`<!--[--><div class="settings-section-title" data-v-7836e485${_scopeId2}>🛠️ 系统维护</div><div class="maintenance-grid" data-v-7836e485${_scopeId2}><div class="maintenance-card" data-v-7836e485${_scopeId2}><div class="maintenance-card-title" data-v-7836e485${_scopeId2}>🔧 维护模式</div><div class="maintenance-card-desc" data-v-7836e485${_scopeId2}>开启后,前台将展示维护提示页,管理员仍可正常访问管理后台</div><div class="maintenance-card-action" data-v-7836e485${_scopeId2}>`);
|
||
_push3(ssrRenderComponent(_component_a_switch, {
|
||
checked: unref(maintenanceMode),
|
||
"onUpdate:checked": ($event) => isRef(maintenanceMode) ? maintenanceMode.value = $event : null,
|
||
onChange: handleMaintenanceToggle
|
||
}, null, _parent3, _scopeId2));
|
||
_push3(`<span class="${ssrRenderClass(unref(maintenanceMode) ? "status-on" : "status-off")}" data-v-7836e485${_scopeId2}>${ssrInterpolate(unref(maintenanceMode) ? "维护中" : "正常运行")}</span></div></div><div class="maintenance-card" data-v-7836e485${_scopeId2}><div class="maintenance-card-title" data-v-7836e485${_scopeId2}>🗑️ 清除系统缓存</div><div class="maintenance-card-desc" data-v-7836e485${_scopeId2}>清除文章列表、栏目数据、设置项等缓存,适用于配置更新后</div><div class="maintenance-card-action" data-v-7836e485${_scopeId2}>`);
|
||
_push3(ssrRenderComponent(_component_a_button, {
|
||
loading: unref(clearingCache),
|
||
onClick: handleClearCache
|
||
}, {
|
||
default: withCtx((_3, _push4, _parent4, _scopeId3) => {
|
||
if (_push4) {
|
||
_push4(`立即清除`);
|
||
} else {
|
||
return [
|
||
createTextVNode("立即清除")
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent3, _scopeId2));
|
||
_push3(`</div></div><div class="maintenance-card" data-v-7836e485${_scopeId2}><div class="maintenance-card-title" data-v-7836e485${_scopeId2}>💾 数据备份</div><div class="maintenance-card-desc" data-v-7836e485${_scopeId2}>建议定期对数据库进行备份,防止数据丢失</div><div class="maintenance-card-action" data-v-7836e485${_scopeId2}>`);
|
||
_push3(ssrRenderComponent(_component_a_alert, {
|
||
type: "info",
|
||
message: "数据备份建议每天执行一次,请联系运维人员配置自动备份",
|
||
"show-icon": ""
|
||
}, null, _parent3, _scopeId2));
|
||
_push3(`</div></div><div class="maintenance-card" data-v-7836e485${_scopeId2}><div class="maintenance-card-title" data-v-7836e485${_scopeId2}>📦 系统信息</div><div class="maintenance-card-desc" data-v-7836e485${_scopeId2}>当前系统版本和环境信息</div><div class="version-info" data-v-7836e485${_scopeId2}><div class="version-item" data-v-7836e485${_scopeId2}><span data-v-7836e485${_scopeId2}>前端版本</span><strong data-v-7836e485${_scopeId2}>v1.0.0</strong></div><div class="version-item" data-v-7836e485${_scopeId2}><span data-v-7836e485${_scopeId2}>运行环境</span><strong data-v-7836e485${_scopeId2}>Node.js 20.x</strong></div><div class="version-item" data-v-7836e485${_scopeId2}><span data-v-7836e485${_scopeId2}>框架版本</span><strong data-v-7836e485${_scopeId2}>Nuxt 3</strong></div><div class="version-item" data-v-7836e485${_scopeId2}><span data-v-7836e485${_scopeId2}>最后更新</span><strong data-v-7836e485${_scopeId2}>${ssrInterpolate(unref(lastUpdate))}</strong></div></div></div></div><!--]-->`);
|
||
} else {
|
||
_push3(`<!---->`);
|
||
}
|
||
_push3(`</div>`);
|
||
} else {
|
||
return [
|
||
createVNode("div", { class: "settings-panel" }, [
|
||
unref(activeTab) === "basic" ? (openBlock(), createBlock(Fragment, { key: 0 }, [
|
||
createVNode("div", { class: "settings-section-title" }, "🌐 基础配置"),
|
||
createVNode(_component_a_form, {
|
||
model: unref(basicForm),
|
||
layout: "vertical",
|
||
class: "settings-form"
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_row, { gutter: 16 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "网站名称" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).siteName,
|
||
"onUpdate:value": ($event) => unref(basicForm).siteName = $event,
|
||
placeholder: "广西决策咨询网"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "网站简称" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).shortName,
|
||
"onUpdate:value": ($event) => unref(basicForm).shortName = $event,
|
||
placeholder: "决策咨询网"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "网站描述" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(basicForm).description,
|
||
"onUpdate:value": ($event) => unref(basicForm).description = $event,
|
||
rows: 3,
|
||
placeholder: "网站简短描述,用于SEO和分享卡片",
|
||
maxlength: 500,
|
||
"show-count": ""
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "网站关键词" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).keywords,
|
||
"onUpdate:value": ($event) => unref(basicForm).keywords = $event,
|
||
placeholder: "用逗号分隔,如:决策咨询,政策研究,专家智库"
|
||
}, null, 8, ["value", "onUpdate:value"]),
|
||
createVNode("div", { class: "form-tip" }, "用于搜索引擎优化,多个关键词用中文逗号分隔")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_row, { gutter: 16 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "联系电话" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).contactPhone,
|
||
"onUpdate:value": ($event) => unref(basicForm).contactPhone = $event,
|
||
placeholder: "0771-5386339"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "联系邮箱" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).contactEmail,
|
||
"onUpdate:value": ($event) => unref(basicForm).contactEmail = $event,
|
||
placeholder: "gxjzxzx@126.com"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_row, { gutter: 16 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "联系地址" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).contactAddress,
|
||
"onUpdate:value": ($event) => unref(basicForm).contactAddress = $event,
|
||
placeholder: "广西·南宁·良庆区五象大道401号"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "ICP备案号" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).icpNo,
|
||
"onUpdate:value": ($event) => unref(basicForm).icpNo = $event,
|
||
placeholder: "桂ICP备XXXXXXXX号"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode("div", { class: "form-footer" }, [
|
||
createVNode(_component_a_button, {
|
||
type: "primary",
|
||
loading: unref(savingBasic),
|
||
onClick: saveBasic
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("💾 保存基础配置")
|
||
]),
|
||
_: 1
|
||
}, 8, ["loading"])
|
||
])
|
||
]),
|
||
_: 1
|
||
}, 8, ["model"])
|
||
], 64)) : createCommentVNode("", true),
|
||
unref(activeTab) === "homepage" ? (openBlock(), createBlock(Fragment, { key: 1 }, [
|
||
createVNode("div", { class: "settings-section-title" }, "🏠 首页配置"),
|
||
createVNode(_component_a_form, {
|
||
model: unref(homepageForm),
|
||
layout: "vertical",
|
||
class: "settings-form"
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "轮播公告文字" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(homepageForm).noticeText,
|
||
"onUpdate:value": ($event) => unref(homepageForm).noticeText = $event,
|
||
placeholder: "欢迎访问广西决策咨询网!"
|
||
}, null, 8, ["value", "onUpdate:value"]),
|
||
createVNode("div", { class: "form-tip" }, "显示在首页顶部公告条")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "首页关于我们简介" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(homepageForm).aboutIntro,
|
||
"onUpdate:value": ($event) => unref(homepageForm).aboutIntro = $event,
|
||
rows: 4,
|
||
placeholder: "学会/机构简介,用于首页展示...",
|
||
maxlength: 1e3,
|
||
"show-count": ""
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_divider, null, {
|
||
default: withCtx(() => [
|
||
createTextVNode("统计数据(首页展示)")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_row, { gutter: 16 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_col, { span: 8 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "专家数量" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input_number, {
|
||
value: unref(homepageForm).expertCount,
|
||
"onUpdate:value": ($event) => unref(homepageForm).expertCount = $event,
|
||
min: 0,
|
||
max: 99999,
|
||
style: { "width": "100%" }
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_col, { span: 8 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "会员数量" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input_number, {
|
||
value: unref(homepageForm).memberCount,
|
||
"onUpdate:value": ($event) => unref(homepageForm).memberCount = $event,
|
||
min: 0,
|
||
max: 99999,
|
||
style: { "width": "100%" }
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_col, { span: 8 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "建言数量" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input_number, {
|
||
value: unref(homepageForm).suggestionCount,
|
||
"onUpdate:value": ($event) => unref(homepageForm).suggestionCount = $event,
|
||
min: 0,
|
||
max: 99999,
|
||
style: { "width": "100%" }
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "数据更新时间" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(homepageForm).statsUpdateTime,
|
||
"onUpdate:value": ($event) => unref(homepageForm).statsUpdateTime = $event,
|
||
placeholder: "每月定期更新"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode("div", { class: "form-footer" }, [
|
||
createVNode(_component_a_button, {
|
||
type: "primary",
|
||
loading: unref(savingHomepage),
|
||
onClick: saveHomepage
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("💾 保存首页配置")
|
||
]),
|
||
_: 1
|
||
}, 8, ["loading"])
|
||
])
|
||
]),
|
||
_: 1
|
||
}, 8, ["model"])
|
||
], 64)) : createCommentVNode("", true),
|
||
unref(activeTab) === "consultation" ? (openBlock(), createBlock(Fragment, { key: 2 }, [
|
||
createVNode("div", { class: "settings-section-title" }, "📞 咨询服务配置"),
|
||
createVNode(_component_a_form, {
|
||
model: unref(consultationForm),
|
||
layout: "vertical",
|
||
class: "settings-form"
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "咨询服务说明" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(consultationForm).serviceDesc,
|
||
"onUpdate:value": ($event) => unref(consultationForm).serviceDesc = $event,
|
||
rows: 4,
|
||
placeholder: "咨询服务范围、内容、流程的详细说明...",
|
||
maxlength: 1e3,
|
||
"show-count": ""
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_row, { gutter: 16 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "服务热线" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(consultationForm).servicePhone,
|
||
"onUpdate:value": ($event) => unref(consultationForm).servicePhone = $event,
|
||
placeholder: "0771-5386339"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "服务时间" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(consultationForm).serviceHours,
|
||
"onUpdate:value": ($event) => unref(consultationForm).serviceHours = $event,
|
||
placeholder: "周一至周五 9:00-17:00"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_row, { gutter: 16 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "咨询邮箱" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(consultationForm).serviceEmail,
|
||
"onUpdate:value": ($event) => unref(consultationForm).serviceEmail = $event,
|
||
placeholder: "gxjzxzx@126.com"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "邮政编码" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(consultationForm).postalCode,
|
||
"onUpdate:value": ($event) => unref(consultationForm).postalCode = $event,
|
||
placeholder: "530200"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "邮寄地址" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(consultationForm).mailingAddress,
|
||
"onUpdate:value": ($event) => unref(consultationForm).mailingAddress = $event,
|
||
placeholder: "广西南宁市XXX"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_divider, null, {
|
||
default: withCtx(() => [
|
||
createTextVNode("服务项目")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "咨询服务项目(JSON格式)" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(consultationForm).serviceItemsJson,
|
||
"onUpdate:value": ($event) => unref(consultationForm).serviceItemsJson = $event,
|
||
rows: 6,
|
||
placeholder: '[{"title":"政策解读","desc":"解读最新政策文件"},{"title":"决策评估","desc":"重大决策事前评估"}]',
|
||
style: { "font-family": "monospace", "font-size": "13px" }
|
||
}, null, 8, ["value", "onUpdate:value"]),
|
||
createVNode("div", { class: "form-tip" }, "填写JSON数组,每项包含 title(标题)和 desc(描述)字段")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode("div", { class: "form-footer" }, [
|
||
createVNode(_component_a_button, {
|
||
type: "primary",
|
||
loading: unref(savingConsultation),
|
||
onClick: saveConsultation
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("💾 保存咨询服务配置")
|
||
]),
|
||
_: 1
|
||
}, 8, ["loading"])
|
||
])
|
||
]),
|
||
_: 1
|
||
}, 8, ["model"])
|
||
], 64)) : createCommentVNode("", true),
|
||
unref(activeTab) === "review" ? (openBlock(), createBlock(Fragment, { key: 3 }, [
|
||
createVNode("div", { class: "settings-section-title" }, "🔍 审核配置"),
|
||
createVNode(_component_a_form, {
|
||
model: unref(reviewForm),
|
||
layout: "vertical",
|
||
class: "settings-form"
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode("div", { class: "review-section-card" }, [
|
||
createVNode("div", { class: "review-section-title" }, "🎓 专家申请审核"),
|
||
createVNode(_component_a_form_item, { label: "启用专家申请" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(reviewForm).expertEnabled,
|
||
"onUpdate:checked": ($event) => unref(reviewForm).expertEnabled = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode("span", { class: "form-hint" }, "关闭后,用户将无法提交专家申请")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "申请需要人工审核" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(reviewForm).expertNeedReview,
|
||
"onUpdate:checked": ($event) => unref(reviewForm).expertNeedReview = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "审核通知邮箱" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(reviewForm).expertReviewEmail,
|
||
"onUpdate:value": ($event) => unref(reviewForm).expertReviewEmail = $event,
|
||
placeholder: "有新专家申请时发送通知"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "默认拒绝原因模板" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(reviewForm).expertRejectTemplate,
|
||
"onUpdate:value": ($event) => unref(reviewForm).expertRejectTemplate = $event,
|
||
rows: 3,
|
||
placeholder: "填写常见的专家申请拒绝原因..."
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
createVNode("div", { class: "review-section-card" }, [
|
||
createVNode("div", { class: "review-section-title" }, "💼 会员申请审核"),
|
||
createVNode(_component_a_form_item, { label: "启用会员申请" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(reviewForm).memberEnabled,
|
||
"onUpdate:checked": ($event) => unref(reviewForm).memberEnabled = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode("span", { class: "form-hint" }, "关闭后,用户将无法提交会员申请")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "申请需要人工审核" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(reviewForm).memberNeedReview,
|
||
"onUpdate:checked": ($event) => unref(reviewForm).memberNeedReview = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "审核通知邮箱" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(reviewForm).memberReviewEmail,
|
||
"onUpdate:value": ($event) => unref(reviewForm).memberReviewEmail = $event,
|
||
placeholder: "有新会员申请时发送通知"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "默认拒绝原因模板" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(reviewForm).memberRejectTemplate,
|
||
"onUpdate:value": ($event) => unref(reviewForm).memberRejectTemplate = $event,
|
||
rows: 3,
|
||
placeholder: "填写常见的会员申请拒绝原因..."
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
createVNode("div", { class: "review-section-card" }, [
|
||
createVNode("div", { class: "review-section-title" }, "💬 建言献策"),
|
||
createVNode(_component_a_form_item, { label: "建言需要审核" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(reviewForm).suggestionNeedReview,
|
||
"onUpdate:checked": ($event) => unref(reviewForm).suggestionNeedReview = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode("span", { class: "form-hint" }, "关闭后,用户提交的建言将直接显示")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "匿名建言" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(reviewForm).suggestionAnonymous,
|
||
"onUpdate:checked": ($event) => unref(reviewForm).suggestionAnonymous = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode("span", { class: "form-hint" }, "开启后,用户可选择匿名提交建言")
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
createVNode("div", { class: "form-footer" }, [
|
||
createVNode(_component_a_button, {
|
||
type: "primary",
|
||
loading: unref(savingReview),
|
||
onClick: saveReview
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("💾 保存审核配置")
|
||
]),
|
||
_: 1
|
||
}, 8, ["loading"])
|
||
])
|
||
]),
|
||
_: 1
|
||
}, 8, ["model"])
|
||
], 64)) : createCommentVNode("", true),
|
||
unref(activeTab) === "notify" ? (openBlock(), createBlock(Fragment, { key: 4 }, [
|
||
createVNode("div", { class: "settings-section-title" }, "🔔 通知配置"),
|
||
createVNode(_component_a_form, {
|
||
model: unref(notifyForm),
|
||
layout: "vertical",
|
||
class: "settings-form"
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "新申请通知" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_space, { direction: "vertical" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_checkbox, {
|
||
checked: unref(notifyForm).notifyOnNewExpert,
|
||
"onUpdate:checked": ($event) => unref(notifyForm).notifyOnNewExpert = $event
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("新专家申请时发送邮件通知")
|
||
]),
|
||
_: 1
|
||
}, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode(_component_a_checkbox, {
|
||
checked: unref(notifyForm).notifyOnNewMember,
|
||
"onUpdate:checked": ($event) => unref(notifyForm).notifyOnNewMember = $event
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("新会员申请时发送邮件通知")
|
||
]),
|
||
_: 1
|
||
}, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode(_component_a_checkbox, {
|
||
checked: unref(notifyForm).notifyOnNewSuggestion,
|
||
"onUpdate:checked": ($event) => unref(notifyForm).notifyOnNewSuggestion = $event
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("新建言提交时发送邮件通知")
|
||
]),
|
||
_: 1
|
||
}, 8, ["checked", "onUpdate:checked"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "审核结果通知" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_space, { direction: "vertical" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_checkbox, {
|
||
checked: unref(notifyForm).notifyReviewResult,
|
||
"onUpdate:checked": ($event) => unref(notifyForm).notifyReviewResult = $event
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("审核完成后通过邮件通知申请人")
|
||
]),
|
||
_: 1
|
||
}, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode(_component_a_checkbox, {
|
||
checked: unref(notifyForm).notifyReviewResultSms,
|
||
"onUpdate:checked": ($event) => unref(notifyForm).notifyReviewResultSms = $event
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("审核完成后通过短信通知申请人")
|
||
]),
|
||
_: 1
|
||
}, 8, ["checked", "onUpdate:checked"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "通知邮件地址" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(notifyForm).notifyEmail,
|
||
"onUpdate:value": ($event) => unref(notifyForm).notifyEmail = $event,
|
||
placeholder: "接收系统通知的邮箱"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "通知邮件模板(审核通过)" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(notifyForm).approveEmailTemplate,
|
||
"onUpdate:value": ($event) => unref(notifyForm).approveEmailTemplate = $event,
|
||
rows: 4,
|
||
placeholder: "您好,{name},您的{type}申请已审核通过..."
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "通知邮件模板(审核拒绝)" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(notifyForm).rejectEmailTemplate,
|
||
"onUpdate:value": ($event) => unref(notifyForm).rejectEmailTemplate = $event,
|
||
rows: 4,
|
||
placeholder: "您好,{name},您的{type}申请未通过审核,原因:{reason}..."
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode("div", { class: "form-footer" }, [
|
||
createVNode(_component_a_button, {
|
||
type: "primary",
|
||
loading: unref(savingNotify),
|
||
onClick: saveNotify
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("💾 保存通知配置")
|
||
]),
|
||
_: 1
|
||
}, 8, ["loading"])
|
||
])
|
||
]),
|
||
_: 1
|
||
}, 8, ["model"])
|
||
], 64)) : createCommentVNode("", true),
|
||
unref(activeTab) === "data" ? (openBlock(), createBlock(Fragment, { key: 5 }, [
|
||
createVNode("div", { class: "settings-section-title" }, "📊 数据服务配置"),
|
||
createVNode(_component_a_form, {
|
||
model: unref(dataForm),
|
||
layout: "vertical",
|
||
class: "settings-form"
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "数据服务功能" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(dataForm).enabled,
|
||
"onUpdate:checked": ($event) => unref(dataForm).enabled = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode("span", { class: "form-hint" }, "关闭后,数据服务栏目对所有用户不可见")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "仅限会员访问" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(dataForm).memberOnly,
|
||
"onUpdate:checked": ($event) => unref(dataForm).memberOnly = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode("span", { class: "form-hint" }, "开启后,数据服务内容仅对会员用户开放")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "数据更新频率" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_select, {
|
||
value: unref(dataForm).updateFrequency,
|
||
"onUpdate:value": ($event) => unref(dataForm).updateFrequency = $event,
|
||
style: { "width": "200px" }
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_select_option, { value: "daily" }, {
|
||
default: withCtx(() => [
|
||
createTextVNode("每日更新")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_select_option, { value: "weekly" }, {
|
||
default: withCtx(() => [
|
||
createTextVNode("每周更新")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_select_option, { value: "monthly" }, {
|
||
default: withCtx(() => [
|
||
createTextVNode("每月更新")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_select_option, { value: "quarterly" }, {
|
||
default: withCtx(() => [
|
||
createTextVNode("每季度更新")
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "数据服务说明" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(dataForm).description,
|
||
"onUpdate:value": ($event) => unref(dataForm).description = $event,
|
||
rows: 4,
|
||
placeholder: "数据服务的详细介绍和内容范围...",
|
||
maxlength: 1e3,
|
||
"show-count": ""
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "数据来源标注" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(dataForm).dataSource,
|
||
"onUpdate:value": ($event) => unref(dataForm).dataSource = $event,
|
||
placeholder: "数据来源:如自治区统计局、商务部等"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode("div", { class: "form-footer" }, [
|
||
createVNode(_component_a_button, {
|
||
type: "primary",
|
||
loading: unref(savingData),
|
||
onClick: saveData
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("💾 保存数据服务配置")
|
||
]),
|
||
_: 1
|
||
}, 8, ["loading"])
|
||
])
|
||
]),
|
||
_: 1
|
||
}, 8, ["model"])
|
||
], 64)) : createCommentVNode("", true),
|
||
unref(activeTab) === "wechat" ? (openBlock(), createBlock(Fragment, { key: 6 }, [
|
||
createVNode("div", { class: "settings-section-title" }, "📱 微信公众号配置"),
|
||
createVNode(_component_a_form, {
|
||
model: unref(wechatForm),
|
||
layout: "vertical",
|
||
class: "settings-form"
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "公众号名称" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(wechatForm).name,
|
||
"onUpdate:value": ($event) => unref(wechatForm).name = $event,
|
||
placeholder: "广西决策咨询中心"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "公众号原始ID" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(wechatForm).originalId,
|
||
"onUpdate:value": ($event) => unref(wechatForm).originalId = $event,
|
||
placeholder: "gh_xxxxxxxx"
|
||
}, null, 8, ["value", "onUpdate:value"]),
|
||
createVNode("div", { class: "form-tip" }, "在微信公众平台 - 设置与开发 - 基本配置中获取")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "AppID" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(wechatForm).appId,
|
||
"onUpdate:value": ($event) => unref(wechatForm).appId = $event,
|
||
placeholder: "微信公众平台AppID"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "AppSecret" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input_password, {
|
||
value: unref(wechatForm).appSecret,
|
||
"onUpdate:value": ($event) => unref(wechatForm).appSecret = $event,
|
||
placeholder: "微信公众平台AppSecret"
|
||
}, null, 8, ["value", "onUpdate:value"]),
|
||
createVNode("div", { class: "form-tip" }, "请妥善保管,不要泄露给他人")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "公众号二维码" }, {
|
||
default: withCtx(() => [
|
||
createVNode("div", { class: "upload-row" }, [
|
||
createVNode(_component_a_upload, {
|
||
accept: "image/*",
|
||
"show-upload-list": false,
|
||
"before-upload": () => false,
|
||
onChange: (info) => handleQrUpload(info)
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_button, null, {
|
||
default: withCtx(() => [
|
||
createTextVNode("上传二维码")
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}, 8, ["onChange"]),
|
||
unref(wechatForm).qrcode ? (openBlock(), createBlock("img", {
|
||
key: 0,
|
||
src: unref(wechatForm).qrcode,
|
||
class: "qrcode-preview",
|
||
alt: "公众号二维码"
|
||
}, null, 8, ["src"])) : createCommentVNode("", true)
|
||
])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "微信号" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(wechatForm).account,
|
||
"onUpdate:value": ($event) => unref(wechatForm).account = $event,
|
||
placeholder: "如:gxjzxzx"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "启用自动回复" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(wechatForm).autoReply,
|
||
"onUpdate:checked": ($event) => unref(wechatForm).autoReply = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode("span", { class: "form-hint" }, "开启后,关注自动回复和关键词自动回复功能")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "关注自动回复内容" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(wechatForm).subscribeReply,
|
||
"onUpdate:value": ($event) => unref(wechatForm).subscribeReply = $event,
|
||
rows: 3,
|
||
placeholder: "用户关注后自动回复的内容..."
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode("div", { class: "form-footer" }, [
|
||
createVNode(_component_a_button, {
|
||
type: "primary",
|
||
loading: unref(savingWechat),
|
||
onClick: saveWechat
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("💾 保存微信配置")
|
||
]),
|
||
_: 1
|
||
}, 8, ["loading"])
|
||
])
|
||
]),
|
||
_: 1
|
||
}, 8, ["model"])
|
||
], 64)) : createCommentVNode("", true),
|
||
unref(activeTab) === "maintenance" ? (openBlock(), createBlock(Fragment, { key: 7 }, [
|
||
createVNode("div", { class: "settings-section-title" }, "🛠️ 系统维护"),
|
||
createVNode("div", { class: "maintenance-grid" }, [
|
||
createVNode("div", { class: "maintenance-card" }, [
|
||
createVNode("div", { class: "maintenance-card-title" }, "🔧 维护模式"),
|
||
createVNode("div", { class: "maintenance-card-desc" }, "开启后,前台将展示维护提示页,管理员仍可正常访问管理后台"),
|
||
createVNode("div", { class: "maintenance-card-action" }, [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(maintenanceMode),
|
||
"onUpdate:checked": ($event) => isRef(maintenanceMode) ? maintenanceMode.value = $event : null,
|
||
onChange: handleMaintenanceToggle
|
||
}, null, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode("span", {
|
||
class: unref(maintenanceMode) ? "status-on" : "status-off"
|
||
}, toDisplayString(unref(maintenanceMode) ? "维护中" : "正常运行"), 3)
|
||
])
|
||
]),
|
||
createVNode("div", { class: "maintenance-card" }, [
|
||
createVNode("div", { class: "maintenance-card-title" }, "🗑️ 清除系统缓存"),
|
||
createVNode("div", { class: "maintenance-card-desc" }, "清除文章列表、栏目数据、设置项等缓存,适用于配置更新后"),
|
||
createVNode("div", { class: "maintenance-card-action" }, [
|
||
createVNode(_component_a_button, {
|
||
loading: unref(clearingCache),
|
||
onClick: handleClearCache
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("立即清除")
|
||
]),
|
||
_: 1
|
||
}, 8, ["loading"])
|
||
])
|
||
]),
|
||
createVNode("div", { class: "maintenance-card" }, [
|
||
createVNode("div", { class: "maintenance-card-title" }, "💾 数据备份"),
|
||
createVNode("div", { class: "maintenance-card-desc" }, "建议定期对数据库进行备份,防止数据丢失"),
|
||
createVNode("div", { class: "maintenance-card-action" }, [
|
||
createVNode(_component_a_alert, {
|
||
type: "info",
|
||
message: "数据备份建议每天执行一次,请联系运维人员配置自动备份",
|
||
"show-icon": ""
|
||
})
|
||
])
|
||
]),
|
||
createVNode("div", { class: "maintenance-card" }, [
|
||
createVNode("div", { class: "maintenance-card-title" }, "📦 系统信息"),
|
||
createVNode("div", { class: "maintenance-card-desc" }, "当前系统版本和环境信息"),
|
||
createVNode("div", { class: "version-info" }, [
|
||
createVNode("div", { class: "version-item" }, [
|
||
createVNode("span", null, "前端版本"),
|
||
createVNode("strong", null, "v1.0.0")
|
||
]),
|
||
createVNode("div", { class: "version-item" }, [
|
||
createVNode("span", null, "运行环境"),
|
||
createVNode("strong", null, "Node.js 20.x")
|
||
]),
|
||
createVNode("div", { class: "version-item" }, [
|
||
createVNode("span", null, "框架版本"),
|
||
createVNode("strong", null, "Nuxt 3")
|
||
]),
|
||
createVNode("div", { class: "version-item" }, [
|
||
createVNode("span", null, "最后更新"),
|
||
createVNode("strong", null, toDisplayString(unref(lastUpdate)), 1)
|
||
])
|
||
])
|
||
])
|
||
])
|
||
], 64)) : createCommentVNode("", true)
|
||
])
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent2, _scopeId));
|
||
} else {
|
||
return [
|
||
createVNode(_component_a_col, {
|
||
xs: 24,
|
||
md: 5
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode("div", { class: "settings-nav" }, [
|
||
(openBlock(), createBlock(Fragment, null, renderList(tabs, (tab) => {
|
||
return createVNode("div", {
|
||
key: tab.key,
|
||
class: ["settings-nav-item", { active: unref(activeTab) === tab.key }],
|
||
onClick: ($event) => activeTab.value = tab.key
|
||
}, [
|
||
createVNode("span", { class: "nav-icon" }, toDisplayString(tab.icon), 1),
|
||
createTextVNode(" " + toDisplayString(tab.label), 1)
|
||
], 10, ["onClick"]);
|
||
}), 64))
|
||
])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_col, {
|
||
xs: 24,
|
||
md: 19
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode("div", { class: "settings-panel" }, [
|
||
unref(activeTab) === "basic" ? (openBlock(), createBlock(Fragment, { key: 0 }, [
|
||
createVNode("div", { class: "settings-section-title" }, "🌐 基础配置"),
|
||
createVNode(_component_a_form, {
|
||
model: unref(basicForm),
|
||
layout: "vertical",
|
||
class: "settings-form"
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_row, { gutter: 16 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "网站名称" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).siteName,
|
||
"onUpdate:value": ($event) => unref(basicForm).siteName = $event,
|
||
placeholder: "广西决策咨询网"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "网站简称" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).shortName,
|
||
"onUpdate:value": ($event) => unref(basicForm).shortName = $event,
|
||
placeholder: "决策咨询网"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "网站描述" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(basicForm).description,
|
||
"onUpdate:value": ($event) => unref(basicForm).description = $event,
|
||
rows: 3,
|
||
placeholder: "网站简短描述,用于SEO和分享卡片",
|
||
maxlength: 500,
|
||
"show-count": ""
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "网站关键词" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).keywords,
|
||
"onUpdate:value": ($event) => unref(basicForm).keywords = $event,
|
||
placeholder: "用逗号分隔,如:决策咨询,政策研究,专家智库"
|
||
}, null, 8, ["value", "onUpdate:value"]),
|
||
createVNode("div", { class: "form-tip" }, "用于搜索引擎优化,多个关键词用中文逗号分隔")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_row, { gutter: 16 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "联系电话" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).contactPhone,
|
||
"onUpdate:value": ($event) => unref(basicForm).contactPhone = $event,
|
||
placeholder: "0771-5386339"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "联系邮箱" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).contactEmail,
|
||
"onUpdate:value": ($event) => unref(basicForm).contactEmail = $event,
|
||
placeholder: "gxjzxzx@126.com"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_row, { gutter: 16 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "联系地址" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).contactAddress,
|
||
"onUpdate:value": ($event) => unref(basicForm).contactAddress = $event,
|
||
placeholder: "广西·南宁·良庆区五象大道401号"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "ICP备案号" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(basicForm).icpNo,
|
||
"onUpdate:value": ($event) => unref(basicForm).icpNo = $event,
|
||
placeholder: "桂ICP备XXXXXXXX号"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode("div", { class: "form-footer" }, [
|
||
createVNode(_component_a_button, {
|
||
type: "primary",
|
||
loading: unref(savingBasic),
|
||
onClick: saveBasic
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("💾 保存基础配置")
|
||
]),
|
||
_: 1
|
||
}, 8, ["loading"])
|
||
])
|
||
]),
|
||
_: 1
|
||
}, 8, ["model"])
|
||
], 64)) : createCommentVNode("", true),
|
||
unref(activeTab) === "homepage" ? (openBlock(), createBlock(Fragment, { key: 1 }, [
|
||
createVNode("div", { class: "settings-section-title" }, "🏠 首页配置"),
|
||
createVNode(_component_a_form, {
|
||
model: unref(homepageForm),
|
||
layout: "vertical",
|
||
class: "settings-form"
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "轮播公告文字" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(homepageForm).noticeText,
|
||
"onUpdate:value": ($event) => unref(homepageForm).noticeText = $event,
|
||
placeholder: "欢迎访问广西决策咨询网!"
|
||
}, null, 8, ["value", "onUpdate:value"]),
|
||
createVNode("div", { class: "form-tip" }, "显示在首页顶部公告条")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "首页关于我们简介" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(homepageForm).aboutIntro,
|
||
"onUpdate:value": ($event) => unref(homepageForm).aboutIntro = $event,
|
||
rows: 4,
|
||
placeholder: "学会/机构简介,用于首页展示...",
|
||
maxlength: 1e3,
|
||
"show-count": ""
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_divider, null, {
|
||
default: withCtx(() => [
|
||
createTextVNode("统计数据(首页展示)")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_row, { gutter: 16 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_col, { span: 8 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "专家数量" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input_number, {
|
||
value: unref(homepageForm).expertCount,
|
||
"onUpdate:value": ($event) => unref(homepageForm).expertCount = $event,
|
||
min: 0,
|
||
max: 99999,
|
||
style: { "width": "100%" }
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_col, { span: 8 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "会员数量" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input_number, {
|
||
value: unref(homepageForm).memberCount,
|
||
"onUpdate:value": ($event) => unref(homepageForm).memberCount = $event,
|
||
min: 0,
|
||
max: 99999,
|
||
style: { "width": "100%" }
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_col, { span: 8 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "建言数量" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input_number, {
|
||
value: unref(homepageForm).suggestionCount,
|
||
"onUpdate:value": ($event) => unref(homepageForm).suggestionCount = $event,
|
||
min: 0,
|
||
max: 99999,
|
||
style: { "width": "100%" }
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "数据更新时间" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(homepageForm).statsUpdateTime,
|
||
"onUpdate:value": ($event) => unref(homepageForm).statsUpdateTime = $event,
|
||
placeholder: "每月定期更新"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode("div", { class: "form-footer" }, [
|
||
createVNode(_component_a_button, {
|
||
type: "primary",
|
||
loading: unref(savingHomepage),
|
||
onClick: saveHomepage
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("💾 保存首页配置")
|
||
]),
|
||
_: 1
|
||
}, 8, ["loading"])
|
||
])
|
||
]),
|
||
_: 1
|
||
}, 8, ["model"])
|
||
], 64)) : createCommentVNode("", true),
|
||
unref(activeTab) === "consultation" ? (openBlock(), createBlock(Fragment, { key: 2 }, [
|
||
createVNode("div", { class: "settings-section-title" }, "📞 咨询服务配置"),
|
||
createVNode(_component_a_form, {
|
||
model: unref(consultationForm),
|
||
layout: "vertical",
|
||
class: "settings-form"
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "咨询服务说明" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(consultationForm).serviceDesc,
|
||
"onUpdate:value": ($event) => unref(consultationForm).serviceDesc = $event,
|
||
rows: 4,
|
||
placeholder: "咨询服务范围、内容、流程的详细说明...",
|
||
maxlength: 1e3,
|
||
"show-count": ""
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_row, { gutter: 16 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "服务热线" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(consultationForm).servicePhone,
|
||
"onUpdate:value": ($event) => unref(consultationForm).servicePhone = $event,
|
||
placeholder: "0771-5386339"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "服务时间" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(consultationForm).serviceHours,
|
||
"onUpdate:value": ($event) => unref(consultationForm).serviceHours = $event,
|
||
placeholder: "周一至周五 9:00-17:00"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_row, { gutter: 16 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "咨询邮箱" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(consultationForm).serviceEmail,
|
||
"onUpdate:value": ($event) => unref(consultationForm).serviceEmail = $event,
|
||
placeholder: "gxjzxzx@126.com"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_col, { span: 12 }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "邮政编码" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(consultationForm).postalCode,
|
||
"onUpdate:value": ($event) => unref(consultationForm).postalCode = $event,
|
||
placeholder: "530200"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "邮寄地址" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(consultationForm).mailingAddress,
|
||
"onUpdate:value": ($event) => unref(consultationForm).mailingAddress = $event,
|
||
placeholder: "广西南宁市XXX"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_divider, null, {
|
||
default: withCtx(() => [
|
||
createTextVNode("服务项目")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "咨询服务项目(JSON格式)" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(consultationForm).serviceItemsJson,
|
||
"onUpdate:value": ($event) => unref(consultationForm).serviceItemsJson = $event,
|
||
rows: 6,
|
||
placeholder: '[{"title":"政策解读","desc":"解读最新政策文件"},{"title":"决策评估","desc":"重大决策事前评估"}]',
|
||
style: { "font-family": "monospace", "font-size": "13px" }
|
||
}, null, 8, ["value", "onUpdate:value"]),
|
||
createVNode("div", { class: "form-tip" }, "填写JSON数组,每项包含 title(标题)和 desc(描述)字段")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode("div", { class: "form-footer" }, [
|
||
createVNode(_component_a_button, {
|
||
type: "primary",
|
||
loading: unref(savingConsultation),
|
||
onClick: saveConsultation
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("💾 保存咨询服务配置")
|
||
]),
|
||
_: 1
|
||
}, 8, ["loading"])
|
||
])
|
||
]),
|
||
_: 1
|
||
}, 8, ["model"])
|
||
], 64)) : createCommentVNode("", true),
|
||
unref(activeTab) === "review" ? (openBlock(), createBlock(Fragment, { key: 3 }, [
|
||
createVNode("div", { class: "settings-section-title" }, "🔍 审核配置"),
|
||
createVNode(_component_a_form, {
|
||
model: unref(reviewForm),
|
||
layout: "vertical",
|
||
class: "settings-form"
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode("div", { class: "review-section-card" }, [
|
||
createVNode("div", { class: "review-section-title" }, "🎓 专家申请审核"),
|
||
createVNode(_component_a_form_item, { label: "启用专家申请" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(reviewForm).expertEnabled,
|
||
"onUpdate:checked": ($event) => unref(reviewForm).expertEnabled = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode("span", { class: "form-hint" }, "关闭后,用户将无法提交专家申请")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "申请需要人工审核" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(reviewForm).expertNeedReview,
|
||
"onUpdate:checked": ($event) => unref(reviewForm).expertNeedReview = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "审核通知邮箱" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(reviewForm).expertReviewEmail,
|
||
"onUpdate:value": ($event) => unref(reviewForm).expertReviewEmail = $event,
|
||
placeholder: "有新专家申请时发送通知"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "默认拒绝原因模板" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(reviewForm).expertRejectTemplate,
|
||
"onUpdate:value": ($event) => unref(reviewForm).expertRejectTemplate = $event,
|
||
rows: 3,
|
||
placeholder: "填写常见的专家申请拒绝原因..."
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
createVNode("div", { class: "review-section-card" }, [
|
||
createVNode("div", { class: "review-section-title" }, "💼 会员申请审核"),
|
||
createVNode(_component_a_form_item, { label: "启用会员申请" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(reviewForm).memberEnabled,
|
||
"onUpdate:checked": ($event) => unref(reviewForm).memberEnabled = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode("span", { class: "form-hint" }, "关闭后,用户将无法提交会员申请")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "申请需要人工审核" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(reviewForm).memberNeedReview,
|
||
"onUpdate:checked": ($event) => unref(reviewForm).memberNeedReview = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "审核通知邮箱" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(reviewForm).memberReviewEmail,
|
||
"onUpdate:value": ($event) => unref(reviewForm).memberReviewEmail = $event,
|
||
placeholder: "有新会员申请时发送通知"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "默认拒绝原因模板" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(reviewForm).memberRejectTemplate,
|
||
"onUpdate:value": ($event) => unref(reviewForm).memberRejectTemplate = $event,
|
||
rows: 3,
|
||
placeholder: "填写常见的会员申请拒绝原因..."
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
createVNode("div", { class: "review-section-card" }, [
|
||
createVNode("div", { class: "review-section-title" }, "💬 建言献策"),
|
||
createVNode(_component_a_form_item, { label: "建言需要审核" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(reviewForm).suggestionNeedReview,
|
||
"onUpdate:checked": ($event) => unref(reviewForm).suggestionNeedReview = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode("span", { class: "form-hint" }, "关闭后,用户提交的建言将直接显示")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "匿名建言" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(reviewForm).suggestionAnonymous,
|
||
"onUpdate:checked": ($event) => unref(reviewForm).suggestionAnonymous = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode("span", { class: "form-hint" }, "开启后,用户可选择匿名提交建言")
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
createVNode("div", { class: "form-footer" }, [
|
||
createVNode(_component_a_button, {
|
||
type: "primary",
|
||
loading: unref(savingReview),
|
||
onClick: saveReview
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("💾 保存审核配置")
|
||
]),
|
||
_: 1
|
||
}, 8, ["loading"])
|
||
])
|
||
]),
|
||
_: 1
|
||
}, 8, ["model"])
|
||
], 64)) : createCommentVNode("", true),
|
||
unref(activeTab) === "notify" ? (openBlock(), createBlock(Fragment, { key: 4 }, [
|
||
createVNode("div", { class: "settings-section-title" }, "🔔 通知配置"),
|
||
createVNode(_component_a_form, {
|
||
model: unref(notifyForm),
|
||
layout: "vertical",
|
||
class: "settings-form"
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "新申请通知" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_space, { direction: "vertical" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_checkbox, {
|
||
checked: unref(notifyForm).notifyOnNewExpert,
|
||
"onUpdate:checked": ($event) => unref(notifyForm).notifyOnNewExpert = $event
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("新专家申请时发送邮件通知")
|
||
]),
|
||
_: 1
|
||
}, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode(_component_a_checkbox, {
|
||
checked: unref(notifyForm).notifyOnNewMember,
|
||
"onUpdate:checked": ($event) => unref(notifyForm).notifyOnNewMember = $event
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("新会员申请时发送邮件通知")
|
||
]),
|
||
_: 1
|
||
}, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode(_component_a_checkbox, {
|
||
checked: unref(notifyForm).notifyOnNewSuggestion,
|
||
"onUpdate:checked": ($event) => unref(notifyForm).notifyOnNewSuggestion = $event
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("新建言提交时发送邮件通知")
|
||
]),
|
||
_: 1
|
||
}, 8, ["checked", "onUpdate:checked"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "审核结果通知" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_space, { direction: "vertical" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_checkbox, {
|
||
checked: unref(notifyForm).notifyReviewResult,
|
||
"onUpdate:checked": ($event) => unref(notifyForm).notifyReviewResult = $event
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("审核完成后通过邮件通知申请人")
|
||
]),
|
||
_: 1
|
||
}, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode(_component_a_checkbox, {
|
||
checked: unref(notifyForm).notifyReviewResultSms,
|
||
"onUpdate:checked": ($event) => unref(notifyForm).notifyReviewResultSms = $event
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("审核完成后通过短信通知申请人")
|
||
]),
|
||
_: 1
|
||
}, 8, ["checked", "onUpdate:checked"])
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "通知邮件地址" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(notifyForm).notifyEmail,
|
||
"onUpdate:value": ($event) => unref(notifyForm).notifyEmail = $event,
|
||
placeholder: "接收系统通知的邮箱"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "通知邮件模板(审核通过)" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(notifyForm).approveEmailTemplate,
|
||
"onUpdate:value": ($event) => unref(notifyForm).approveEmailTemplate = $event,
|
||
rows: 4,
|
||
placeholder: "您好,{name},您的{type}申请已审核通过..."
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "通知邮件模板(审核拒绝)" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(notifyForm).rejectEmailTemplate,
|
||
"onUpdate:value": ($event) => unref(notifyForm).rejectEmailTemplate = $event,
|
||
rows: 4,
|
||
placeholder: "您好,{name},您的{type}申请未通过审核,原因:{reason}..."
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode("div", { class: "form-footer" }, [
|
||
createVNode(_component_a_button, {
|
||
type: "primary",
|
||
loading: unref(savingNotify),
|
||
onClick: saveNotify
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("💾 保存通知配置")
|
||
]),
|
||
_: 1
|
||
}, 8, ["loading"])
|
||
])
|
||
]),
|
||
_: 1
|
||
}, 8, ["model"])
|
||
], 64)) : createCommentVNode("", true),
|
||
unref(activeTab) === "data" ? (openBlock(), createBlock(Fragment, { key: 5 }, [
|
||
createVNode("div", { class: "settings-section-title" }, "📊 数据服务配置"),
|
||
createVNode(_component_a_form, {
|
||
model: unref(dataForm),
|
||
layout: "vertical",
|
||
class: "settings-form"
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "数据服务功能" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(dataForm).enabled,
|
||
"onUpdate:checked": ($event) => unref(dataForm).enabled = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode("span", { class: "form-hint" }, "关闭后,数据服务栏目对所有用户不可见")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "仅限会员访问" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(dataForm).memberOnly,
|
||
"onUpdate:checked": ($event) => unref(dataForm).memberOnly = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode("span", { class: "form-hint" }, "开启后,数据服务内容仅对会员用户开放")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "数据更新频率" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_select, {
|
||
value: unref(dataForm).updateFrequency,
|
||
"onUpdate:value": ($event) => unref(dataForm).updateFrequency = $event,
|
||
style: { "width": "200px" }
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_select_option, { value: "daily" }, {
|
||
default: withCtx(() => [
|
||
createTextVNode("每日更新")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_select_option, { value: "weekly" }, {
|
||
default: withCtx(() => [
|
||
createTextVNode("每周更新")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_select_option, { value: "monthly" }, {
|
||
default: withCtx(() => [
|
||
createTextVNode("每月更新")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_select_option, { value: "quarterly" }, {
|
||
default: withCtx(() => [
|
||
createTextVNode("每季度更新")
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "数据服务说明" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(dataForm).description,
|
||
"onUpdate:value": ($event) => unref(dataForm).description = $event,
|
||
rows: 4,
|
||
placeholder: "数据服务的详细介绍和内容范围...",
|
||
maxlength: 1e3,
|
||
"show-count": ""
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "数据来源标注" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(dataForm).dataSource,
|
||
"onUpdate:value": ($event) => unref(dataForm).dataSource = $event,
|
||
placeholder: "数据来源:如自治区统计局、商务部等"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode("div", { class: "form-footer" }, [
|
||
createVNode(_component_a_button, {
|
||
type: "primary",
|
||
loading: unref(savingData),
|
||
onClick: saveData
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("💾 保存数据服务配置")
|
||
]),
|
||
_: 1
|
||
}, 8, ["loading"])
|
||
])
|
||
]),
|
||
_: 1
|
||
}, 8, ["model"])
|
||
], 64)) : createCommentVNode("", true),
|
||
unref(activeTab) === "wechat" ? (openBlock(), createBlock(Fragment, { key: 6 }, [
|
||
createVNode("div", { class: "settings-section-title" }, "📱 微信公众号配置"),
|
||
createVNode(_component_a_form, {
|
||
model: unref(wechatForm),
|
||
layout: "vertical",
|
||
class: "settings-form"
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_form_item, { label: "公众号名称" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(wechatForm).name,
|
||
"onUpdate:value": ($event) => unref(wechatForm).name = $event,
|
||
placeholder: "广西决策咨询中心"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "公众号原始ID" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(wechatForm).originalId,
|
||
"onUpdate:value": ($event) => unref(wechatForm).originalId = $event,
|
||
placeholder: "gh_xxxxxxxx"
|
||
}, null, 8, ["value", "onUpdate:value"]),
|
||
createVNode("div", { class: "form-tip" }, "在微信公众平台 - 设置与开发 - 基本配置中获取")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "AppID" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(wechatForm).appId,
|
||
"onUpdate:value": ($event) => unref(wechatForm).appId = $event,
|
||
placeholder: "微信公众平台AppID"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "AppSecret" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input_password, {
|
||
value: unref(wechatForm).appSecret,
|
||
"onUpdate:value": ($event) => unref(wechatForm).appSecret = $event,
|
||
placeholder: "微信公众平台AppSecret"
|
||
}, null, 8, ["value", "onUpdate:value"]),
|
||
createVNode("div", { class: "form-tip" }, "请妥善保管,不要泄露给他人")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "公众号二维码" }, {
|
||
default: withCtx(() => [
|
||
createVNode("div", { class: "upload-row" }, [
|
||
createVNode(_component_a_upload, {
|
||
accept: "image/*",
|
||
"show-upload-list": false,
|
||
"before-upload": () => false,
|
||
onChange: (info) => handleQrUpload(info)
|
||
}, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_button, null, {
|
||
default: withCtx(() => [
|
||
createTextVNode("上传二维码")
|
||
]),
|
||
_: 1
|
||
})
|
||
]),
|
||
_: 1
|
||
}, 8, ["onChange"]),
|
||
unref(wechatForm).qrcode ? (openBlock(), createBlock("img", {
|
||
key: 0,
|
||
src: unref(wechatForm).qrcode,
|
||
class: "qrcode-preview",
|
||
alt: "公众号二维码"
|
||
}, null, 8, ["src"])) : createCommentVNode("", true)
|
||
])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "微信号" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_input, {
|
||
value: unref(wechatForm).account,
|
||
"onUpdate:value": ($event) => unref(wechatForm).account = $event,
|
||
placeholder: "如:gxjzxzx"
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "启用自动回复" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(wechatForm).autoReply,
|
||
"onUpdate:checked": ($event) => unref(wechatForm).autoReply = $event
|
||
}, null, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode("span", { class: "form-hint" }, "开启后,关注自动回复和关键词自动回复功能")
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode(_component_a_form_item, { label: "关注自动回复内容" }, {
|
||
default: withCtx(() => [
|
||
createVNode(_component_a_textarea, {
|
||
value: unref(wechatForm).subscribeReply,
|
||
"onUpdate:value": ($event) => unref(wechatForm).subscribeReply = $event,
|
||
rows: 3,
|
||
placeholder: "用户关注后自动回复的内容..."
|
||
}, null, 8, ["value", "onUpdate:value"])
|
||
]),
|
||
_: 1
|
||
}),
|
||
createVNode("div", { class: "form-footer" }, [
|
||
createVNode(_component_a_button, {
|
||
type: "primary",
|
||
loading: unref(savingWechat),
|
||
onClick: saveWechat
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("💾 保存微信配置")
|
||
]),
|
||
_: 1
|
||
}, 8, ["loading"])
|
||
])
|
||
]),
|
||
_: 1
|
||
}, 8, ["model"])
|
||
], 64)) : createCommentVNode("", true),
|
||
unref(activeTab) === "maintenance" ? (openBlock(), createBlock(Fragment, { key: 7 }, [
|
||
createVNode("div", { class: "settings-section-title" }, "🛠️ 系统维护"),
|
||
createVNode("div", { class: "maintenance-grid" }, [
|
||
createVNode("div", { class: "maintenance-card" }, [
|
||
createVNode("div", { class: "maintenance-card-title" }, "🔧 维护模式"),
|
||
createVNode("div", { class: "maintenance-card-desc" }, "开启后,前台将展示维护提示页,管理员仍可正常访问管理后台"),
|
||
createVNode("div", { class: "maintenance-card-action" }, [
|
||
createVNode(_component_a_switch, {
|
||
checked: unref(maintenanceMode),
|
||
"onUpdate:checked": ($event) => isRef(maintenanceMode) ? maintenanceMode.value = $event : null,
|
||
onChange: handleMaintenanceToggle
|
||
}, null, 8, ["checked", "onUpdate:checked"]),
|
||
createVNode("span", {
|
||
class: unref(maintenanceMode) ? "status-on" : "status-off"
|
||
}, toDisplayString(unref(maintenanceMode) ? "维护中" : "正常运行"), 3)
|
||
])
|
||
]),
|
||
createVNode("div", { class: "maintenance-card" }, [
|
||
createVNode("div", { class: "maintenance-card-title" }, "🗑️ 清除系统缓存"),
|
||
createVNode("div", { class: "maintenance-card-desc" }, "清除文章列表、栏目数据、设置项等缓存,适用于配置更新后"),
|
||
createVNode("div", { class: "maintenance-card-action" }, [
|
||
createVNode(_component_a_button, {
|
||
loading: unref(clearingCache),
|
||
onClick: handleClearCache
|
||
}, {
|
||
default: withCtx(() => [
|
||
createTextVNode("立即清除")
|
||
]),
|
||
_: 1
|
||
}, 8, ["loading"])
|
||
])
|
||
]),
|
||
createVNode("div", { class: "maintenance-card" }, [
|
||
createVNode("div", { class: "maintenance-card-title" }, "💾 数据备份"),
|
||
createVNode("div", { class: "maintenance-card-desc" }, "建议定期对数据库进行备份,防止数据丢失"),
|
||
createVNode("div", { class: "maintenance-card-action" }, [
|
||
createVNode(_component_a_alert, {
|
||
type: "info",
|
||
message: "数据备份建议每天执行一次,请联系运维人员配置自动备份",
|
||
"show-icon": ""
|
||
})
|
||
])
|
||
]),
|
||
createVNode("div", { class: "maintenance-card" }, [
|
||
createVNode("div", { class: "maintenance-card-title" }, "📦 系统信息"),
|
||
createVNode("div", { class: "maintenance-card-desc" }, "当前系统版本和环境信息"),
|
||
createVNode("div", { class: "version-info" }, [
|
||
createVNode("div", { class: "version-item" }, [
|
||
createVNode("span", null, "前端版本"),
|
||
createVNode("strong", null, "v1.0.0")
|
||
]),
|
||
createVNode("div", { class: "version-item" }, [
|
||
createVNode("span", null, "运行环境"),
|
||
createVNode("strong", null, "Node.js 20.x")
|
||
]),
|
||
createVNode("div", { class: "version-item" }, [
|
||
createVNode("span", null, "框架版本"),
|
||
createVNode("strong", null, "Nuxt 3")
|
||
]),
|
||
createVNode("div", { class: "version-item" }, [
|
||
createVNode("span", null, "最后更新"),
|
||
createVNode("strong", null, toDisplayString(unref(lastUpdate)), 1)
|
||
])
|
||
])
|
||
])
|
||
])
|
||
], 64)) : createCommentVNode("", true)
|
||
])
|
||
]),
|
||
_: 1
|
||
})
|
||
];
|
||
}
|
||
}),
|
||
_: 1
|
||
}, _parent));
|
||
_push(`</div>`);
|
||
};
|
||
}
|
||
});
|
||
const _sfc_setup = _sfc_main.setup;
|
||
_sfc_main.setup = (props, ctx) => {
|
||
const ssrContext = useSSRContext();
|
||
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/admin/settings.vue");
|
||
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
||
};
|
||
const settings = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7836e485"]]);
|
||
|
||
export { settings as default };
|
||
//# sourceMappingURL=settings-C9KNDE2-.mjs.map
|