参与方式
欢迎您对政策制定、经济发展、社会治理等方面提出宝贵意见和建议。请您先登录或注册账号,然后填写建言内容。
`);
if (unref(isAuthed)) {
_push(ssrRenderComponent(_component_a_form, {
model: unref(formData),
rules,
layout: "vertical",
class: "suggestion-form"
}, {
default: withCtx((_, _push2, _parent2, _scopeId) => {
if (_push2) {
_push2(ssrRenderComponent(_component_a_form_item, {
label: "建言标题",
name: "title"
}, {
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
if (_push3) {
_push3(ssrRenderComponent(_component_a_input, {
value: unref(formData).title,
"onUpdate:value": ($event) => unref(formData).title = $event,
placeholder: "请输入建言标题",
maxlength: 100,
"show-count": ""
}, null, _parent3, _scopeId2));
} else {
return [
createVNode(_component_a_input, {
value: unref(formData).title,
"onUpdate:value": ($event) => unref(formData).title = $event,
placeholder: "请输入建言标题",
maxlength: 100,
"show-count": ""
}, null, 8, ["value", "onUpdate:value"])
];
}
}),
_: 1
}, _parent2, _scopeId));
_push2(ssrRenderComponent(_component_a_form_item, {
label: "建言内容",
name: "content"
}, {
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
if (_push3) {
_push3(ssrRenderComponent(_component_a_textarea, {
value: unref(formData).content,
"onUpdate:value": ($event) => unref(formData).content = $event,
placeholder: "请详细描述您的建议和意见...",
rows: 8,
maxlength: 2e3,
"show-count": ""
}, null, _parent3, _scopeId2));
} else {
return [
createVNode(_component_a_textarea, {
value: unref(formData).content,
"onUpdate:value": ($event) => unref(formData).content = $event,
placeholder: "请详细描述您的建议和意见...",
rows: 8,
maxlength: 2e3,
"show-count": ""
}, null, 8, ["value", "onUpdate:value"])
];
}
}),
_: 1
}, _parent2, _scopeId));
_push2(ssrRenderComponent(_component_a_form_item, {
label: "联系方式(选填)",
name: "contact"
}, {
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
if (_push3) {
_push3(ssrRenderComponent(_component_a_input, {
value: unref(formData).contact,
"onUpdate:value": ($event) => unref(formData).contact = $event,
placeholder: "请输入您的联系方式,方便我们与您联系"
}, null, _parent3, _scopeId2));
} else {
return [
createVNode(_component_a_input, {
value: unref(formData).contact,
"onUpdate:value": ($event) => unref(formData).contact = $event,
placeholder: "请输入您的联系方式,方便我们与您联系"
}, null, 8, ["value", "onUpdate:value"])
];
}
}),
_: 1
}, _parent2, _scopeId));
_push2(ssrRenderComponent(_component_a_form_item, null, {
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
if (_push3) {
_push3(ssrRenderComponent(_component_a_space, null, {
default: withCtx((_3, _push4, _parent4, _scopeId3) => {
if (_push4) {
_push4(ssrRenderComponent(_component_a_button, {
type: "primary",
size: "large",
onClick: handleSubmit,
loading: unref(submitting)
}, {
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
if (_push5) {
_push5(` 提交建言 `);
} else {
return [
createTextVNode(" 提交建言 ")
];
}
}),
_: 1
}, _parent4, _scopeId3));
_push4(ssrRenderComponent(_component_a_button, {
size: "large",
onClick: handleReset
}, {
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
if (_push5) {
_push5(` 重置 `);
} else {
return [
createTextVNode(" 重置 ")
];
}
}),
_: 1
}, _parent4, _scopeId3));
} else {
return [
createVNode(_component_a_button, {
type: "primary",
size: "large",
onClick: handleSubmit,
loading: unref(submitting)
}, {
default: withCtx(() => [
createTextVNode(" 提交建言 ")
]),
_: 1
}, 8, ["loading"]),
createVNode(_component_a_button, {
size: "large",
onClick: handleReset
}, {
default: withCtx(() => [
createTextVNode(" 重置 ")
]),
_: 1
})
];
}
}),
_: 1
}, _parent3, _scopeId2));
} else {
return [
createVNode(_component_a_space, null, {
default: withCtx(() => [
createVNode(_component_a_button, {
type: "primary",
size: "large",
onClick: handleSubmit,
loading: unref(submitting)
}, {
default: withCtx(() => [
createTextVNode(" 提交建言 ")
]),
_: 1
}, 8, ["loading"]),
createVNode(_component_a_button, {
size: "large",
onClick: handleReset
}, {
default: withCtx(() => [
createTextVNode(" 重置 ")
]),
_: 1
})
]),
_: 1
})
];
}
}),
_: 1
}, _parent2, _scopeId));
} else {
return [
createVNode(_component_a_form_item, {
label: "建言标题",
name: "title"
}, {
default: withCtx(() => [
createVNode(_component_a_input, {
value: unref(formData).title,
"onUpdate:value": ($event) => unref(formData).title = $event,
placeholder: "请输入建言标题",
maxlength: 100,
"show-count": ""
}, null, 8, ["value", "onUpdate:value"])
]),
_: 1
}),
createVNode(_component_a_form_item, {
label: "建言内容",
name: "content"
}, {
default: withCtx(() => [
createVNode(_component_a_textarea, {
value: unref(formData).content,
"onUpdate:value": ($event) => unref(formData).content = $event,
placeholder: "请详细描述您的建议和意见...",
rows: 8,
maxlength: 2e3,
"show-count": ""
}, null, 8, ["value", "onUpdate:value"])
]),
_: 1
}),
createVNode(_component_a_form_item, {
label: "联系方式(选填)",
name: "contact"
}, {
default: withCtx(() => [
createVNode(_component_a_input, {
value: unref(formData).contact,
"onUpdate:value": ($event) => unref(formData).contact = $event,
placeholder: "请输入您的联系方式,方便我们与您联系"
}, null, 8, ["value", "onUpdate:value"])
]),
_: 1
}),
createVNode(_component_a_form_item, null, {
default: withCtx(() => [
createVNode(_component_a_space, null, {
default: withCtx(() => [
createVNode(_component_a_button, {
type: "primary",
size: "large",
onClick: handleSubmit,
loading: unref(submitting)
}, {
default: withCtx(() => [
createTextVNode(" 提交建言 ")
]),
_: 1
}, 8, ["loading"]),
createVNode(_component_a_button, {
size: "large",
onClick: handleReset
}, {
default: withCtx(() => [
createTextVNode(" 重置 ")
]),
_: 1
})
]),
_: 1
})
]),
_: 1
})
];
}
}),
_: 1
}, _parent));
} else {
_push(`
`);
_push(ssrRenderComponent(_component_a_result, {
title: "请先登录",
"sub-title": "登录后可提交建言献策"
}, {
extra: withCtx((_, _push2, _parent2, _scopeId) => {
if (_push2) {
_push2(ssrRenderComponent(_component_a_button, {
type: "primary",
size: "large",
onClick: ($event) => ("navigateTo" in _ctx ? _ctx.navigateTo : unref(navigateTo))("/login")
}, {
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
if (_push3) {
_push3(` 去登录 `);
} else {
return [
createTextVNode(" 去登录 ")
];
}
}),
_: 1
}, _parent2, _scopeId));
} else {
return [
createVNode(_component_a_button, {
type: "primary",
size: "large",
onClick: ($event) => ("navigateTo" in _ctx ? _ctx.navigateTo : unref(navigateTo))("/login")
}, {
default: withCtx(() => [
createTextVNode(" 去登录 ")
]),
_: 1
}, 8, ["onClick"])
];
}
}),
_: 1
}, _parent));
_push(`
`);
}
_push(`