|
@@ -65,7 +65,7 @@ import {
|
|
|
} from '/@/components/Table';
|
|
|
import { PageWrapper } from '/@/components/Page';
|
|
|
import { Time } from '/@/components/Time';
|
|
|
-import { caseListApi, NewDisplay, casePublicApi, caseDelApi } from '/@/api/operate';
|
|
|
+import { caseListApi, caseReleaseApi, casePublicApi, caseDelApi } from '/@/api/operate';
|
|
|
import { Descriptions, Switch, Tabs } from 'ant-design-vue';
|
|
|
import { useModal } from '/@/components/Modal';
|
|
|
import { useI18n } from '/@/hooks/web/useI18n';
|
|
@@ -155,14 +155,14 @@ export default defineComponent({
|
|
|
},
|
|
|
{
|
|
|
title: '是否显示',
|
|
|
- dataIndex: 'display',
|
|
|
+ dataIndex: 'isShow',
|
|
|
width: 80,
|
|
|
customRender: ({ record }) => {
|
|
|
if (!Reflect.has(record, 'pendingStatus')) {
|
|
|
record.pendingStatus = false;
|
|
|
}
|
|
|
return h(Switch, {
|
|
|
- checked: record.display === 1,
|
|
|
+ checked: record.isShow === 1,
|
|
|
checkedChildren: '是',
|
|
|
unCheckedChildren: '否',
|
|
|
loading: false,
|
|
@@ -170,8 +170,8 @@ export default defineComponent({
|
|
|
record.pendingStatus = true;
|
|
|
const id: string = record.id || '';
|
|
|
const newStatus = checked ? 1 : 0;
|
|
|
- Reflect.set(record, 'display', newStatus);
|
|
|
- await NewDisplay({ id: id, display: newStatus });
|
|
|
+ Reflect.set(record, 'isShow', newStatus);
|
|
|
+ await caseReleaseApi({ id: id, isShow: newStatus });
|
|
|
createMessage.success(t('common.optSuccess'));
|
|
|
// reload()
|
|
|
},
|