|
@@ -46,7 +46,7 @@
|
|
: ""
|
|
: ""
|
|
}}
|
|
}}
|
|
</h5>
|
|
</h5>
|
|
- <make-up-exam ref="makeUpExam" :listData="listData" />
|
|
|
|
|
|
+ <make-up-exam ref="makeUpExam" :listData.sync="listData" />
|
|
</div>
|
|
</div>
|
|
<div v-if="listData.goodsType === 8 && listData.businessId">
|
|
<div v-if="listData.goodsType === 8 && listData.businessId">
|
|
<h5 class="segmentationStyle">关联讲义资料</h5>
|
|
<h5 class="segmentationStyle">关联讲义资料</h5>
|
|
@@ -212,12 +212,12 @@ export default {
|
|
coverUrl: "oss/images/avatar/20211013/1634097664410_1397766697",
|
|
coverUrl: "oss/images/avatar/20211013/1634097664410_1397766697",
|
|
goodsType: "",
|
|
goodsType: "",
|
|
status: 1,
|
|
status: 1,
|
|
- moreCertificateStatus:1,
|
|
|
|
|
|
+ moreCertificateStatus: 1,
|
|
certificateTypeId: "",
|
|
certificateTypeId: "",
|
|
showStatus: 1,
|
|
showStatus: 1,
|
|
externalLinkStatus: 0,
|
|
externalLinkStatus: 0,
|
|
- mailSign:0,
|
|
|
|
- firstChoiceStatus:0,
|
|
|
|
|
|
+ mailSign: 0,
|
|
|
|
+ firstChoiceStatus: 0,
|
|
commitPeriodStatus: 0,
|
|
commitPeriodStatus: 0,
|
|
sevenYear: "",
|
|
sevenYear: "",
|
|
},
|
|
},
|
|
@@ -415,13 +415,6 @@ export default {
|
|
trigger: "change",
|
|
trigger: "change",
|
|
},
|
|
},
|
|
],
|
|
],
|
|
- makeGoodsId: [
|
|
|
|
- {
|
|
|
|
- required: true,
|
|
|
|
- message: "请选择关联商品",
|
|
|
|
- trigger: "blur",
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
// handoutsId: [
|
|
// handoutsId: [
|
|
// {
|
|
// {
|
|
// required: true,
|
|
// required: true,
|
|
@@ -553,9 +546,6 @@ export default {
|
|
this.$refs["listData"].clearValidate();
|
|
this.$refs["listData"].clearValidate();
|
|
});
|
|
});
|
|
});
|
|
});
|
|
- this.$bus.$on("validateMakeId", () => {
|
|
|
|
- this.$refs["listData"].validateField("makeGoodsId");
|
|
|
|
- });
|
|
|
|
this.$bus.$on("validateHandoutsId", () => {
|
|
this.$bus.$on("validateHandoutsId", () => {
|
|
this.$refs["listData"].validateField("handoutsId");
|
|
this.$refs["listData"].validateField("handoutsId");
|
|
});
|
|
});
|
|
@@ -738,10 +728,18 @@ export default {
|
|
//商品是否上架
|
|
//商品是否上架
|
|
data.goodsStatus = int;
|
|
data.goodsStatus = int;
|
|
data.subjectIds = data.subjectIds.toString();
|
|
data.subjectIds = data.subjectIds.toString();
|
|
|
|
+ if (
|
|
|
|
+ (data.goodsType == 3 || data.goodsType == 4) &&
|
|
|
|
+ data.makeGoodsVoList?.length > 0
|
|
|
|
+ ) {
|
|
|
|
+ data.makeGoodsIds = data.makeGoodsVoList
|
|
|
|
+ .map((i) => i.makeGoodsId)
|
|
|
|
+ .toString() || "";
|
|
|
|
+ }
|
|
if (data.goodsType == 9) {
|
|
if (data.goodsType == 9) {
|
|
data.examLimitClient = data.examLimitClient.toString();
|
|
data.examLimitClient = data.examLimitClient.toString();
|
|
}
|
|
}
|
|
- data.questionRelIds = data.questionRelIds.toString() || "";
|
|
|
|
|
|
+ data.questionRelIds = data.questionRelIds.toString() || "";
|
|
data.projectId = await this.getProjectId(data.businessId);
|
|
data.projectId = await this.getProjectId(data.businessId);
|
|
//--------------------------通用处理END------------------------------
|
|
//--------------------------通用处理END------------------------------
|
|
if (this.listData.goodsType === 1 || this.listData.goodsType === 6) {
|
|
if (this.listData.goodsType === 1 || this.listData.goodsType === 6) {
|
|
@@ -872,7 +870,8 @@ export default {
|
|
//课程排序问题检查
|
|
//课程排序问题检查
|
|
for (let i = 0; i < this.$refs.courseContent.tableData.length; i++) {
|
|
for (let i = 0; i < this.$refs.courseContent.tableData.length; i++) {
|
|
if (
|
|
if (
|
|
- this.$refs.courseContent.tableData[i].viewSign != this.listData.viewSign
|
|
|
|
|
|
+ this.$refs.courseContent.tableData[i].viewSign !=
|
|
|
|
+ this.listData.viewSign
|
|
) {
|
|
) {
|
|
this.$message.warning(`课程列表数据请与商品视频类型保持一致`);
|
|
this.$message.warning(`课程列表数据请与商品视频类型保持一致`);
|
|
this.disabledBtn = false;
|
|
this.disabledBtn = false;
|
|
@@ -1004,7 +1003,6 @@ export default {
|
|
*/
|
|
*/
|
|
beforeDestroy() {
|
|
beforeDestroy() {
|
|
this.$bus.$off("clearValidateFuncAdd");
|
|
this.$bus.$off("clearValidateFuncAdd");
|
|
- this.$bus.$off("validateMakeId");
|
|
|
|
this.$bus.$off("validateHandoutsId");
|
|
this.$bus.$off("validateHandoutsId");
|
|
this.$bus.$off("validateCoverUrl");
|
|
this.$bus.$off("validateCoverUrl");
|
|
this.$bus.$off("initTimeVal");
|
|
this.$bus.$off("initTimeVal");
|