|
|
@@ -12,8 +12,6 @@ import { notification } from 'ant-design-vue';
|
|
|
|
|
|
import { type VxeFormListeners, type VxeFormProps, type VxeGridInstance, type VxeGridListeners, type VxeGridProps, VxeUI } from 'vxe-pc-ui';
|
|
|
|
|
|
-
|
|
|
-
|
|
|
const model = shallowRef<EducationQuery>();
|
|
|
const searchFormProps = reactive<VxeFormProps<EducationQuery>>({
|
|
|
titleWidth: 100,
|
|
|
@@ -185,8 +183,11 @@ onSuccess(({ data: { data } }) => {
|
|
|
gridRef.value?.loadData(data);
|
|
|
});
|
|
|
|
|
|
-onMounted(() => {
|
|
|
+onMounted(async () => {
|
|
|
model.value = toRaw(searchFormProps.data);
|
|
|
+ const request = await fetch(`${location.origin}/manager/fdhb-mobile/psarticle/getPsarticleDetailById?popularScienceArticleId=7`);
|
|
|
+ const result = await request.json();
|
|
|
+ console.log(result, 'result===result');
|
|
|
});
|
|
|
|
|
|
function updatePlanStatus(model: EducationModel, index: number, status: EducationModel['status']) {
|
|
|
@@ -194,12 +195,12 @@ function updatePlanStatus(model: EducationModel, index: number, status: Educatio
|
|
|
const label = { '1': '禁用', '0': '启用' }[status];
|
|
|
VxeUI.modal.confirm({
|
|
|
title: `启用状态`,
|
|
|
- content: `确认要 ${label} ${title} 宣教吗?`,
|
|
|
+ content: `确认要 ${label} ${title} 吗?`,
|
|
|
showClose: false,
|
|
|
onConfirm() {
|
|
|
updateEducationStatusMethod({ id, status }).then(() => {
|
|
|
notification.success({
|
|
|
- message: `${label}宣教: ${title}`,
|
|
|
+ message: `${label}: ${title}`,
|
|
|
description: '操作成功',
|
|
|
});
|
|
|
model.status = status;
|
|
|
@@ -213,7 +214,7 @@ function deleteEducation(model: EducationModel, index: number) {
|
|
|
const { title } = model;
|
|
|
VxeUI.modal.confirm({
|
|
|
title: `删除宣教`,
|
|
|
- content: `确认要删除 ${title} 宣教吗?`,
|
|
|
+ content: `确认要删除 ${title} 吗?`,
|
|
|
showClose: false,
|
|
|
onConfirm() {
|
|
|
deleteEducationMethod(model).then(() => {
|