Commit d93794c1 authored by Zhang Xiaojie's avatar Zhang Xiaojie

fix:ui

parent bf4dc88a
...@@ -185,21 +185,21 @@ export default Vue.extend({ ...@@ -185,21 +185,21 @@ export default Vue.extend({
this.title = "删除活动"; this.title = "删除活动";
this.text = "确定删除该活动吗?"; this.text = "确定删除该活动吗?";
}, },
handleOk(record: any) { async handleOk(record: any) {
this.modalLoading = true; this.modalLoading = true;
try { try {
if (this.type == modal.on) { if (this.type == modal.on) {
ActivityService.getInstance().modifyActivityStatus({ await ActivityService.getInstance().modifyActivityStatus({
uuid: this.uuid, uuid: this.uuid,
activity_status: activityStatus.published, activity_status: activityStatus.published,
}); });
} else if (this.type == modal.off) { } else if (this.type == modal.off) {
ActivityService.getInstance().modifyActivityStatus({ await ActivityService.getInstance().modifyActivityStatus({
uuid: this.uuid, uuid: this.uuid,
activity_status: activityStatus.editable, activity_status: activityStatus.editable,
}); });
} else if (this.type == modal.delete) { } else if (this.type == modal.delete) {
ActivityService.getInstance().deleteActivity(this.uuid); await ActivityService.getInstance().deleteActivity(this.uuid);
} }
this.fetchList(); this.fetchList();
this.show = false; this.show = false;
......
...@@ -124,7 +124,7 @@ export default Vue.extend({ ...@@ -124,7 +124,7 @@ export default Vue.extend({
data() { data() {
const userPhone = getUserMsg()?.phone; const userPhone = getUserMsg()?.phone;
return { return {
labelCol: { span: 11 }, labelCol: { span: 10 },
wrapperCol: { span: 10 }, wrapperCol: { span: 10 },
userPhone, userPhone,
changeSecurityPhoneForm: { changeSecurityPhoneForm: {
......
<template> <template>
<div> <div>
<a-layout id="components-layout-demo-fixed-sider" style="min-height: 100vh" > <a-layout id="components-layout-demo-fixed-sider" style="max-height: 100vh" >
<a-layout-header :style="{ position: 'fixed', zIndex: 1, width: '100%' }" > <a-layout-header :style="{ position: 'fixed', zIndex: 1, width: '100%' }" >
<div class="flex justify-between items-center h-full"> <div class="flex justify-between items-center h-full">
<div class="text-center text-lg my-3 flex font-semibold"> <div class="text-center text-lg my-3 flex font-semibold">
...@@ -58,6 +58,7 @@ ...@@ -58,6 +58,7 @@
background: '#fff', background: '#fff',
textAlign: 'center', textAlign: 'center',
}" }"
style="min-height: 85vh"
> >
<router-view /> <router-view />
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment