|
@@ -242,7 +242,7 @@
|
|
|
<el-select
|
|
|
v-model="listData.interfacePushId"
|
|
|
placeholder="请选择官方信息推送"
|
|
|
- :disabled="copyData.interfacePushId"
|
|
|
+ :disabled="copyData.interfacePushId ? true : false"
|
|
|
clearable
|
|
|
>
|
|
|
<el-option
|
|
@@ -258,7 +258,7 @@
|
|
|
<el-select
|
|
|
v-model="listData.interfacePeriodId"
|
|
|
placeholder="请选择官方学时推送"
|
|
|
- :disabled="copyData.interfacePeriodId"
|
|
|
+ :disabled="copyData.interfacePeriodId ? true : false"
|
|
|
clearable
|
|
|
>
|
|
|
<el-option
|
|
@@ -274,7 +274,7 @@
|
|
|
<el-select
|
|
|
v-model="listData.interfaceAccountId"
|
|
|
placeholder="请选择官方学习账号开通"
|
|
|
- :disabled="copyData.interfaceAccountId"
|
|
|
+ :disabled="copyData.interfaceAccountId ? true : false"
|
|
|
clearable
|
|
|
>
|
|
|
<el-option
|
|
@@ -322,7 +322,7 @@ import { mapGetters } from "vuex";
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
- copyData:{},
|
|
|
+ copyData: {},
|
|
|
classStartStatus: false,
|
|
|
classEndStatus: false,
|
|
|
minNums: 0,
|
|
@@ -406,10 +406,7 @@ export default {
|
|
|
// this.$message.warning("超出商品学习有效期,请重新选择");
|
|
|
// this.listData.classStartTime = "";
|
|
|
// } else
|
|
|
- if (
|
|
|
- this.listData.classEndTime &&
|
|
|
- arr > this.listData.classEndTime
|
|
|
- ) {
|
|
|
+ if (this.listData.classEndTime && arr > this.listData.classEndTime) {
|
|
|
this.$message.warning("开始时间不能大于等于结束时间,请重新选择");
|
|
|
this.listData.classStartTime = "";
|
|
|
}
|
|
@@ -422,10 +419,7 @@ export default {
|
|
|
// this.$message.warning("超出商品学习有效期,请重新选择");
|
|
|
// this.listData.classEndTime = "";
|
|
|
// } else
|
|
|
- if (
|
|
|
- this.listData.classStartTime &&
|
|
|
- arr <= this.listData.classStartTime
|
|
|
- ) {
|
|
|
+ if (this.listData.classStartTime && arr <= this.listData.classStartTime) {
|
|
|
this.$message.warning("结束时间不能小于等于开始时间,请重新选择");
|
|
|
this.listData.classEndTime = "";
|
|
|
}
|
|
@@ -482,7 +476,8 @@ export default {
|
|
|
];
|
|
|
}
|
|
|
this.minNums = res.data.studentNum;
|
|
|
- this.copyData = JSON.parse(JSON.stringify(res.data))
|
|
|
+ console.log(res.data, "res");
|
|
|
+ this.copyData = JSON.parse(JSON.stringify(res.data));
|
|
|
this.listData = res.data;
|
|
|
})
|
|
|
.finally(() => {
|