|
@@ -314,10 +314,7 @@
|
|
|
>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
- <dataReview
|
|
|
- ref="dataReview"
|
|
|
- @callbackDataReview="callbackDataReview"
|
|
|
- />
|
|
|
+ <dataReview ref="dataReview" @callbackDataReview="callbackDataReview" />
|
|
|
<div id="printTable"></div>
|
|
|
<!-- <ToolBar></ToolBar> -->
|
|
|
<Footer></Footer>
|
|
@@ -486,7 +483,7 @@ export default {
|
|
|
failToRegister: false, //报名是否不通过
|
|
|
openPhotoStatus: 0,
|
|
|
readerResult: null,
|
|
|
- handoutList: [],
|
|
|
+ handoutList: []
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
@@ -592,7 +589,7 @@ export default {
|
|
|
goodsId: this.goodsId,
|
|
|
orderGoodsId: this.orderGoodsId,
|
|
|
gradeId: this.gradeId,
|
|
|
- goodsName:this.goodsData.goodsName
|
|
|
+ goodsName: this.goodsData.goodsName
|
|
|
});
|
|
|
// this.getbaseprofiletplists().then(async res => {
|
|
|
// await this.courseCourseList();
|
|
@@ -632,11 +629,31 @@ export default {
|
|
|
async callbackDataReview() {
|
|
|
if (this.gradeId > 0) {
|
|
|
//提交完资料返回判断是否已开班
|
|
|
- this.getGradeInfo();
|
|
|
+ await this.getGradeInfo();
|
|
|
+ //继教七大员公共课程同步
|
|
|
+ if (this.gradeDetail.sevenYear) {
|
|
|
+ await this.sevenCommonCourse();
|
|
|
+ }
|
|
|
}
|
|
|
await this.courseCourseList();
|
|
|
this.getRebuildCourse();
|
|
|
},
|
|
|
+ async sevenCommonCourse() {
|
|
|
+ return new Promise(resolve => {
|
|
|
+ this.$request
|
|
|
+ .syncSevenPublicClass({ orderGoodsId: this.orderGoodsId })
|
|
|
+ .then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ resolve();
|
|
|
+ } else {
|
|
|
+ reject();
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ reject();
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
/**
|
|
|
*
|
|
|
获取用户讲义列表
|
|
@@ -907,99 +924,112 @@ export default {
|
|
|
},
|
|
|
|
|
|
getGradeInfo() {
|
|
|
- let self = this;
|
|
|
- this.$request.goodsGradeInfo(this.gradeId).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- self.gradeDetail = res.data;
|
|
|
- if (self.needProfileModal) {
|
|
|
- return;
|
|
|
- }
|
|
|
- /**
|
|
|
- * 补充条件 Start
|
|
|
- */
|
|
|
- console.log(
|
|
|
- "补充条件:",
|
|
|
- res.data.interfaceAccountId,
|
|
|
- res.data.learnStatus
|
|
|
- );
|
|
|
- if (res.data.interfaceAccountId > 0 && res.data.learnStatus > 0) {
|
|
|
- const confirmText = [
|
|
|
- "您的学习账号已经开通,请按照步骤操作,进行学习。",
|
|
|
- "1.点击【跳转学习网址】按钮",
|
|
|
- "2.打开学习网址后,选择【个人用户】进行登录",
|
|
|
- "(1)账号:您个人的身份证号码",
|
|
|
- "(2)密码:身份证号码,再加111111"
|
|
|
- ];
|
|
|
- const newDatas = [];
|
|
|
- const h = this.$createElement;
|
|
|
- for (const i in confirmText) {
|
|
|
- newDatas.push(h("p", null, confirmText[i]));
|
|
|
+ return new Promise((resolve, reject) => {
|
|
|
+ let self = this;
|
|
|
+ this.$request.goodsGradeInfo(this.gradeId).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ self.gradeDetail = res.data;
|
|
|
+ if (self.needProfileModal) {
|
|
|
+ return reject();
|
|
|
}
|
|
|
- this.$confirm(h("div", null, newDatas), "温馨提示", {
|
|
|
- beforeClose: (type, y, done) => {
|
|
|
- if (type == "confirm") {
|
|
|
- window.open("http://admin.zhujianpeixun.com/", "_blank");
|
|
|
- } else if (type == "cancel") {
|
|
|
- this.$router.back(-1);
|
|
|
- }
|
|
|
- },
|
|
|
- confirmButtonText: "跳转学习网址",
|
|
|
- cancelButtonText: "关闭",
|
|
|
- closeOnClickModal: false,
|
|
|
- closeOnPressEscape: false,
|
|
|
- distinguishCancelAndClose: false,
|
|
|
- showClose: false
|
|
|
- });
|
|
|
- return;
|
|
|
- }
|
|
|
- /**
|
|
|
- * 补充条件 End
|
|
|
- */
|
|
|
- if (self.gradeDetail.learningStatus == 2) {
|
|
|
- this.$confirm(
|
|
|
- `当前课程正在申请中,正式开班后方可进行学习,请耐心等候!`,
|
|
|
- "提示",
|
|
|
- {
|
|
|
- confirmButtonText: "确定",
|
|
|
- closeOnClickModal: false,
|
|
|
- closeOnPressEscape: false,
|
|
|
- showCancelButton: false,
|
|
|
- distinguishCancelAndClose: false,
|
|
|
- showClose: false
|
|
|
+ /**
|
|
|
+ * 补充条件 Start
|
|
|
+ */
|
|
|
+ console.log(
|
|
|
+ "补充条件:",
|
|
|
+ res.data.interfaceAccountId,
|
|
|
+ res.data.learnStatus
|
|
|
+ );
|
|
|
+ if (res.data.interfaceAccountId > 0 && res.data.learnStatus > 0) {
|
|
|
+ const confirmText = [
|
|
|
+ "您的学习账号已经开通,请按照步骤操作,进行学习。",
|
|
|
+ "1.点击【跳转学习网址】按钮",
|
|
|
+ "2.打开学习网址后,选择【个人用户】进行登录",
|
|
|
+ "(1)账号:您个人的身份证号码",
|
|
|
+ "(2)密码:身份证号码,再加111111"
|
|
|
+ ];
|
|
|
+ const newDatas = [];
|
|
|
+ const h = this.$createElement;
|
|
|
+ for (const i in confirmText) {
|
|
|
+ newDatas.push(h("p", null, confirmText[i]));
|
|
|
}
|
|
|
- )
|
|
|
- .then(_ => {
|
|
|
- this.$router.back(-1);
|
|
|
- })
|
|
|
- .catch(_ => {});
|
|
|
- }
|
|
|
- if (
|
|
|
- self.gradeDetail.learningStatus == 3 &&
|
|
|
- Number(self.gradeDetail.learningTimeStart) >
|
|
|
- Number(new Date() / 1000)
|
|
|
- ) {
|
|
|
- this.$confirm(
|
|
|
- `当前课程正在申请中,正式开班后方可进行学习,请耐心等候!`,
|
|
|
- "提示",
|
|
|
- {
|
|
|
- confirmButtonText: "返回",
|
|
|
+ this.$confirm(h("div", null, newDatas), "温馨提示", {
|
|
|
+ beforeClose: (type, y, done) => {
|
|
|
+ if (type == "confirm") {
|
|
|
+ window.open("http://admin.zhujianpeixun.com/", "_blank");
|
|
|
+ } else if (type == "cancel") {
|
|
|
+ this.$router.back(-1);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ confirmButtonText: "跳转学习网址",
|
|
|
+ cancelButtonText: "关闭",
|
|
|
closeOnClickModal: false,
|
|
|
closeOnPressEscape: false,
|
|
|
- showCancelButton: false,
|
|
|
distinguishCancelAndClose: false,
|
|
|
showClose: false
|
|
|
- }
|
|
|
- )
|
|
|
- .then(_ => {
|
|
|
- this.$router.back(-1);
|
|
|
- })
|
|
|
- .catch(_ => {});
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 补充条件 End
|
|
|
+ */
|
|
|
+ if (self.gradeDetail.learningStatus == 2) {
|
|
|
+ this.$confirm(
|
|
|
+ `当前课程正在申请中,正式开班后方可进行学习,请耐心等候!`,
|
|
|
+ "提示",
|
|
|
+ {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ closeOnClickModal: false,
|
|
|
+ closeOnPressEscape: false,
|
|
|
+ showCancelButton: false,
|
|
|
+ distinguishCancelAndClose: false,
|
|
|
+ showClose: false
|
|
|
+ }
|
|
|
+ )
|
|
|
+ .then(_ => {
|
|
|
+ this.$router.back(-1);
|
|
|
+ })
|
|
|
+ .catch(_ => {});
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ self.gradeDetail.learningStatus == 3 &&
|
|
|
+ Number(self.gradeDetail.learningTimeStart) >
|
|
|
+ Number(new Date() / 1000)
|
|
|
+ ) {
|
|
|
+ this.$confirm(
|
|
|
+ `当前课程正在申请中,正式开班后方可进行学习,请耐心等候!`,
|
|
|
+ "提示",
|
|
|
+ {
|
|
|
+ confirmButtonText: "返回",
|
|
|
+ closeOnClickModal: false,
|
|
|
+ closeOnPressEscape: false,
|
|
|
+ showCancelButton: false,
|
|
|
+ distinguishCancelAndClose: false,
|
|
|
+ showClose: false
|
|
|
+ }
|
|
|
+ )
|
|
|
+ .then(_ => {
|
|
|
+ this.$router.back(-1);
|
|
|
+ })
|
|
|
+ .catch(_ => {});
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ (res.data.interfaceAccountId > 0 && res.data.learnStatus > 0) ||
|
|
|
+ self.gradeDetail.learningStatus == 2 ||
|
|
|
+ (self.gradeDetail.learningStatus == 3 &&
|
|
|
+ Number(self.gradeDetail.learningTimeStart) >
|
|
|
+ Number(new Date() / 1000))
|
|
|
+ ) {
|
|
|
+ reject();
|
|
|
+ } else {
|
|
|
+ resolve();
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
+ });
|
|
|
+ this.$store.state.allowLoading = true;
|
|
|
});
|
|
|
- this.$store.state.allowLoading = true;
|
|
|
},
|
|
|
-
|
|
|
+
|
|
|
uploadFile(options, int) {
|
|
|
var self = this;
|
|
|
return new Promise((resolve, reject) => {
|
|
@@ -3530,8 +3560,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
/deep/ textarea {
|
|
|
background: #65696d;
|
|
|
color: #c7c7c7;
|
|
@@ -3542,5 +3570,4 @@ export default {
|
|
|
color: #999;
|
|
|
background: transparent;
|
|
|
}
|
|
|
-
|
|
|
</style>
|