fix:消息提示样式调整

This commit is contained in:
zxj
2025-11-18 19:00:51 +08:00
parent 3088c8f1c8
commit d6d27121df
3 changed files with 129 additions and 13 deletions

View File

@@ -234,6 +234,7 @@
</el-dialog>
<!-- 自定义信息提示 -->
<CustomInfoMessage ref="customMessage" />
<CustomErrorMessage ref="errorMessage" />
</div>
</template>
@@ -252,6 +253,7 @@ import {
getSzxygProjectInfo,
enrollRequest,
} from "@/api/new-employee/newEmployee";
import CustomErrorMessage from "@/components/CustomErrorMessage.vue";
import { start } from "nprogress";
export default {
@@ -262,6 +264,7 @@ export default {
portalFloatTools,
NewEmployeeGuideDialog,
CustomInfoMessage,
CustomErrorMessage,
},
data() {
return {
@@ -402,16 +405,17 @@ export default {
}
},
async returnEnroll() {
// this.$router.push("/new-employee/welcome");
const res = await enrollRequest();
if (res.data.sendToOaSuccess != 0) {
this.$refs.customMessage.show(
"报名失败请稍后重试如果再次失败请联系XXXX联系方式XXXX。"
);
} else {
this.$refs.customMessage.show("您已重新报名成功");
this.approvalResults = 2;
}
this.$confirm("请确认是否重新报名").then(async () => {
const res = await enrollRequest();
if (res.data.sendToOaSuccess != 0) {
this.$refs.errorMessage.show(
"报名失败请稍后重试如果再次失败请联系XXXX联系方式XXXX。"
);
} else {
this.$refs.customMessage.show("您已重新报名成功");
this.approvalResults = 2;
}
});
},
},
async mounted() {