|
@@ -53,7 +53,7 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="教育类型" prop="educationTypeId">
|
|
|
<el-select
|
|
|
- disabled
|
|
|
+ disabled
|
|
|
v-model="listData.educationTypeId"
|
|
|
placeholder="请选择教育类型"
|
|
|
@change="changeEducationTypeId"
|
|
@@ -69,7 +69,7 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="业务层次" prop="businessId">
|
|
|
<el-select
|
|
|
- disabled
|
|
|
+ disabled
|
|
|
v-model="listData.businessId"
|
|
|
placeholder="请选择业务层次"
|
|
|
@change="changeBusinessId"
|
|
@@ -603,8 +603,16 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
|
- <h5 class="fengs" v-if="listData.goodsType === 1 || listData.goodsType === 2">颁发证书</h5>
|
|
|
- <div class="dis_fs" v-if="listData.goodsType === 1 || listData.goodsType === 2">
|
|
|
+ <h5
|
|
|
+ class="fengs"
|
|
|
+ v-if="listData.goodsType === 1 || listData.goodsType === 2"
|
|
|
+ >
|
|
|
+ 颁发证书
|
|
|
+ </h5>
|
|
|
+ <div
|
|
|
+ class="dis_fs"
|
|
|
+ v-if="listData.goodsType === 1 || listData.goodsType === 2"
|
|
|
+ >
|
|
|
<el-popover placement="bottom" trigger="click">
|
|
|
<el-checkbox-group v-model="listData.certificateIds">
|
|
|
<el-checkbox
|
|
@@ -689,7 +697,11 @@
|
|
|
</div>
|
|
|
<div style="text-align: center; margin-top: 20px">
|
|
|
<el-button @click="backPage" size="mini">取消</el-button>
|
|
|
- <el-button type="primary" @click="submit('listData', 1)" size="mini" :loading="disabledBtn"
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click="submit('listData', 1)"
|
|
|
+ size="mini"
|
|
|
+ :loading="disabledBtn"
|
|
|
>保存</el-button
|
|
|
>
|
|
|
<el-button
|
|
@@ -697,7 +709,7 @@
|
|
|
type="primary"
|
|
|
@click="submit('listData', 2)"
|
|
|
size="mini"
|
|
|
- :loading="disabledBtn"
|
|
|
+ :loading="disabledBtn"
|
|
|
>{{
|
|
|
listData.goodsStatus === 0
|
|
|
? "上架"
|
|
@@ -1138,7 +1150,11 @@
|
|
|
<el-radio-group
|
|
|
v-model="photoVideoList.photographConfig.photograph"
|
|
|
>
|
|
|
- <el-radio :label="1" @change="photoVideoList.photographConfig.intervalTime.push(0)">是</el-radio>
|
|
|
+ <el-radio
|
|
|
+ :label="1"
|
|
|
+ @change="photoVideoList.photographConfig.intervalTime.push(0)"
|
|
|
+ >是</el-radio
|
|
|
+ >
|
|
|
<el-radio
|
|
|
:label="0"
|
|
|
@change="photoVideoList.photographConfig.intervalTime = []"
|
|
@@ -1185,7 +1201,13 @@
|
|
|
<el-radio-group
|
|
|
v-model="photoVideoList.goodsPhotographExamConfig.photograph"
|
|
|
>
|
|
|
- <el-radio :label="1" @change="photoVideoList.goodsPhotographExamConfig.intervalTime.push(0)">是</el-radio>
|
|
|
+ <el-radio
|
|
|
+ :label="1"
|
|
|
+ @change="
|
|
|
+ photoVideoList.goodsPhotographExamConfig.intervalTime.push(0)
|
|
|
+ "
|
|
|
+ >是</el-radio
|
|
|
+ >
|
|
|
<el-radio
|
|
|
:label="0"
|
|
|
@change="
|
|
@@ -1333,7 +1355,7 @@ export default {
|
|
|
components: { searchBoxNew, Editor, pagination, poppleSet, poppleSetTk },
|
|
|
data() {
|
|
|
return {
|
|
|
- disabledBtn:false,
|
|
|
+ disabledBtn: false,
|
|
|
photoVideoList: {
|
|
|
playConfig: {
|
|
|
autoPlay: 0,
|
|
@@ -1610,7 +1632,7 @@ export default {
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
status: 1,
|
|
|
- key:''
|
|
|
+ key: "",
|
|
|
},
|
|
|
formListjy: [
|
|
|
// {
|
|
@@ -1686,10 +1708,10 @@ export default {
|
|
|
status: 1,
|
|
|
pageSize: 10, //每页多少条数据
|
|
|
currentPage: 1, //当前页码
|
|
|
- publishStatus:1,
|
|
|
+ publishStatus: 1,
|
|
|
educationTypeId: "",
|
|
|
businessId: "",
|
|
|
- key:""
|
|
|
+ key: "",
|
|
|
},
|
|
|
formLists: [
|
|
|
// {
|
|
@@ -1768,7 +1790,7 @@ export default {
|
|
|
examType: 1,
|
|
|
educationTypeId: "",
|
|
|
businessId: "",
|
|
|
- names:''
|
|
|
+ names: "",
|
|
|
},
|
|
|
formList3: [
|
|
|
// {
|
|
@@ -2098,12 +2120,12 @@ export default {
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
status: 1,
|
|
|
- key:''
|
|
|
+ key: "",
|
|
|
};
|
|
|
}
|
|
|
var data = JSON.parse(JSON.stringify(this.formDatajy));
|
|
|
- data.educationTypeId = this.listData.educationTypeId;
|
|
|
- data.businessId = this.listData.businessId;
|
|
|
+ data.educationTypeId = this.listData.educationTypeId;
|
|
|
+ data.businessId = this.listData.businessId;
|
|
|
this.$api.inquireCourseHandoutsList(data).then((res) => {
|
|
|
this.totaljy = res.total;
|
|
|
this.jYtableData = res.rows;
|
|
@@ -2118,15 +2140,15 @@ export default {
|
|
|
this.aboutJYBox = false;
|
|
|
},
|
|
|
openJY() {
|
|
|
- if(!this.listData.businessId){
|
|
|
- this.$message.warning("请选择业务层次")
|
|
|
- return
|
|
|
+ if (!this.listData.businessId) {
|
|
|
+ this.$message.warning("请选择业务层次");
|
|
|
+ return;
|
|
|
}
|
|
|
this.aboutJYBox = true;
|
|
|
this.handoutsIdTable = this.listData.handoutsId;
|
|
|
},
|
|
|
openJYActiveBox() {
|
|
|
- this.getJyData(2)
|
|
|
+ this.getJyData(2);
|
|
|
this.jYactiveBoxs = true;
|
|
|
this.templateRadio = this.handoutsIdTable;
|
|
|
},
|
|
@@ -2535,12 +2557,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
rulesTableSumbit(int) {
|
|
|
- this.disabledBtn = true
|
|
|
- setTimeout(()=>{
|
|
|
- if(this.disabledBtn){
|
|
|
- this.disabledBtn = false
|
|
|
- }
|
|
|
- },3000)
|
|
|
+ this.disabledBtn = true;
|
|
|
var datas = JSON.parse(JSON.stringify(this.listData));
|
|
|
if (int === 2) {
|
|
|
if (this.listData.goodsStatus === 1) {
|
|
@@ -2553,6 +2570,7 @@ export default {
|
|
|
if (datas.goodsType === 1 || datas.goodsType === 2) {
|
|
|
if (!datas.studyTimeArrays.length) {
|
|
|
this.$message.warning("请选择学习有效期");
|
|
|
+ this.disabledBtn = false;
|
|
|
return;
|
|
|
} else {
|
|
|
datas.studyStartTime = this.$methodsTools.time10to13(
|
|
@@ -2582,6 +2600,7 @@ export default {
|
|
|
if (this.listData.goodsType === 3 || this.listData.goodsType === 4) {
|
|
|
if (!datas.makeGoodsId) {
|
|
|
this.$message.warning("请选择关联商品");
|
|
|
+ this.disabledBtn = false;
|
|
|
return;
|
|
|
}
|
|
|
datas.makeStartTime = this.$methodsTools.time10to13(
|
|
@@ -2629,14 +2648,17 @@ export default {
|
|
|
if (!this.listData.handoutsId) {
|
|
|
datas.handoutsId = 0;
|
|
|
}
|
|
|
- this.$api.editGoods(datas).then((res) => {
|
|
|
- this.$message.success("修改成功");
|
|
|
- setTimeout(() => {
|
|
|
- this.$router.go(-1);
|
|
|
- }, 300);
|
|
|
- }).catch(()=>{
|
|
|
- this.disabledBtn = false
|
|
|
- })
|
|
|
+ this.$api
|
|
|
+ .editGoods(datas)
|
|
|
+ .then((res) => {
|
|
|
+ this.$message.success("修改成功");
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$router.go(-1);
|
|
|
+ }, 300);
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.disabledBtn = false;
|
|
|
+ });
|
|
|
} else if (this.listData.goodsType === 2) {
|
|
|
var courseIdList = [];
|
|
|
this.tableData2.map((item) => {
|
|
@@ -2673,32 +2695,41 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
datas.examConfigList = examConfigListArray;
|
|
|
- this.$api.editGoodsbank(datas).then((res) => {
|
|
|
- this.$message.success("修改成功");
|
|
|
- setTimeout(() => {
|
|
|
- this.$router.go(-1);
|
|
|
- }, 300);
|
|
|
- }).catch(()=>{
|
|
|
- this.disabledBtn = false
|
|
|
- })
|
|
|
+ this.$api
|
|
|
+ .editGoodsbank(datas)
|
|
|
+ .then((res) => {
|
|
|
+ this.$message.success("修改成功");
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$router.go(-1);
|
|
|
+ }, 300);
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.disabledBtn = false;
|
|
|
+ });
|
|
|
} else if (this.listData.goodsType === 3) {
|
|
|
- this.$api.editGoodsmake(datas).then((res) => {
|
|
|
- this.$message.success("修改成功");
|
|
|
- setTimeout(() => {
|
|
|
- this.$router.go(-1);
|
|
|
- }, 300);
|
|
|
- }).catch(()=>{
|
|
|
- this.disabledBtn = false
|
|
|
- })
|
|
|
+ this.$api
|
|
|
+ .editGoodsmake(datas)
|
|
|
+ .then((res) => {
|
|
|
+ this.$message.success("修改成功");
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$router.go(-1);
|
|
|
+ }, 300);
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.disabledBtn = false;
|
|
|
+ });
|
|
|
} else if (this.listData.goodsType === 4) {
|
|
|
- this.$api.editGoodsfront(datas).then((res) => {
|
|
|
- this.$message.success("修改成功");
|
|
|
- setTimeout(() => {
|
|
|
- this.$router.go(-1);
|
|
|
- }, 300);
|
|
|
- }).catch(()=>{
|
|
|
- this.disabledBtn = false
|
|
|
- })
|
|
|
+ this.$api
|
|
|
+ .editGoodsfront(datas)
|
|
|
+ .then((res) => {
|
|
|
+ this.$message.success("修改成功");
|
|
|
+ setTimeout(() => {
|
|
|
+ this.$router.go(-1);
|
|
|
+ }, 300);
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.disabledBtn = false;
|
|
|
+ });
|
|
|
} else {
|
|
|
}
|
|
|
},
|
|
@@ -2779,7 +2810,7 @@ export default {
|
|
|
pageNum: 1,
|
|
|
educationTypeId: this.listData.educationTypeId,
|
|
|
businessId: this.listData.businessId,
|
|
|
- publishStatus:1,
|
|
|
+ publishStatus: 1,
|
|
|
};
|
|
|
}
|
|
|
this.$api.inquireCourseListS(this.formDatas).then((res) => {
|
|
@@ -2796,7 +2827,7 @@ export default {
|
|
|
status: 1,
|
|
|
pageSize: 10,
|
|
|
pageNum: 1,
|
|
|
- publishStatus:1,
|
|
|
+ publishStatus: 1,
|
|
|
};
|
|
|
if (this.listData.educationTypeId) {
|
|
|
data.educationTypeId = this.listData.educationTypeId;
|
|
@@ -2902,14 +2933,14 @@ export default {
|
|
|
this.formData3.pageNum = 1;
|
|
|
// this.formData3.educationTypeId = "";
|
|
|
// this.formData3.businessId = "";
|
|
|
- this.formData3.names = ''
|
|
|
+ this.formData3.names = "";
|
|
|
this.search3();
|
|
|
},
|
|
|
search3(int) {
|
|
|
var self = this;
|
|
|
- var data = JSON.parse(JSON.stringify(self.formData3))
|
|
|
+ var data = JSON.parse(JSON.stringify(self.formData3));
|
|
|
if (self.formData3.examType === 1) {
|
|
|
- data.moduleName = data.names
|
|
|
+ data.moduleName = data.names;
|
|
|
self.$api.inquireBankModule(data).then((res) => {
|
|
|
res.rows.forEach((item) => {
|
|
|
item.ids = 1 + "-" + item.moduleExamId;
|
|
@@ -2929,7 +2960,7 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
if (self.formData3.examType === 2) {
|
|
|
- data.name = data.names
|
|
|
+ data.name = data.names;
|
|
|
self.$api.inquirebankchapterList(data).then((res) => {
|
|
|
res.rows.forEach((item) => {
|
|
|
item.ids = 2 + "-" + item.chapterExamId;
|
|
@@ -2948,7 +2979,7 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
if (self.formData3.examType === 3) {
|
|
|
- data.examName = data.names
|
|
|
+ data.examName = data.names;
|
|
|
self.$api.inquirebankexamList(data).then((res) => {
|
|
|
res.rows.forEach((item) => {
|
|
|
item.ids = 3 + "-" + item.examId;
|
|
@@ -2970,7 +3001,7 @@ export default {
|
|
|
},
|
|
|
editAddBoxs2(int) {
|
|
|
var self = this;
|
|
|
- self.formData3.examType = 1
|
|
|
+ self.formData3.examType = 1;
|
|
|
var data = JSON.parse(JSON.stringify(this.formData3));
|
|
|
if (this.listData.educationTypeId) {
|
|
|
data.educationTypeId = this.listData.educationTypeId;
|
|
@@ -3240,7 +3271,7 @@ export default {
|
|
|
this.activeLists2 = lis;
|
|
|
},
|
|
|
checkboxT2(row, index) {
|
|
|
- const asrty = row.ids.split("-").map(Number)[0]
|
|
|
+ const asrty = row.ids.split("-").map(Number)[0];
|
|
|
if (asrty === 1) {
|
|
|
if (this.disCheckList2.moduleCheck.indexOf(row.moduleExamId) !== -1) {
|
|
|
return false;
|