mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-17 14:56:44 +08:00
fix:消息提示样式调整
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user