|
@@ -105,12 +105,12 @@
|
|
class="is-required"
|
|
class="is-required"
|
|
>
|
|
>
|
|
<accessories
|
|
<accessories
|
|
- ref='accessories'
|
|
|
|
|
|
+ ref="accessories"
|
|
:list.sync="activeAccessories"
|
|
:list.sync="activeAccessories"
|
|
:groupList.sync="groupList"
|
|
:groupList.sync="groupList"
|
|
@change="accessoriesChange"
|
|
@change="accessoriesChange"
|
|
v-if="!changeInfo"
|
|
v-if="!changeInfo"
|
|
- />
|
|
|
|
|
|
+ />
|
|
<span v-else-if="changeInfo">{{ changeAccessoriesGoods }}</span>
|
|
<span v-else-if="changeInfo">{{ changeAccessoriesGoods }}</span>
|
|
<!-- <el-select style="width: 100%" v-model="form.accessories" clearable placeholder="请选择教辅">
|
|
<!-- <el-select style="width: 100%" v-model="form.accessories" clearable placeholder="请选择教辅">
|
|
<el-option
|
|
<el-option
|
|
@@ -481,15 +481,15 @@ export default {
|
|
},
|
|
},
|
|
musicalGoodsChange(val) {
|
|
musicalGoodsChange(val) {
|
|
this.$refs["form"].clearValidate();
|
|
this.$refs["form"].clearValidate();
|
|
- this.accessoriesChange([],0)
|
|
|
|
- console.log(this.$refs.accessories)
|
|
|
|
- if(this.$refs.accessories){
|
|
|
|
- this.$refs.accessories.checkeds = []
|
|
|
|
- this.$refs.accessories.isIndeterminate = false;
|
|
|
|
|
|
+ this.accessoriesChange([], 0);
|
|
|
|
+ if (this.$refs.accessories) {
|
|
|
|
+ this.$set(this.$refs.accessories, "checkeds", []);
|
|
|
|
+ this.$set(this.$refs.accessories, "isIndeterminate", false);
|
|
|
|
+ this.$set(this.$refs.accessories, "checkAll", false);
|
|
}
|
|
}
|
|
// if (val != "OWNED") {
|
|
// if (val != "OWNED") {
|
|
- // this.selectAccessories = [];
|
|
|
|
- // this.selectAccessoriesMoney = 0;
|
|
|
|
|
|
+ // this.selectAccessories = [];
|
|
|
|
+ // this.selectAccessoriesMoney = 0;
|
|
// }
|
|
// }
|
|
const item = this.musicalGoodsById[val];
|
|
const item = this.musicalGoodsById[val];
|
|
if (item) {
|
|
if (item) {
|
|
@@ -507,7 +507,7 @@ export default {
|
|
this.coursePurchaseTypeJsonTypePrice = 0;
|
|
this.coursePurchaseTypeJsonTypePrice = 0;
|
|
this.$set(this.form, "type", "");
|
|
this.$set(this.form, "type", "");
|
|
}
|
|
}
|
|
- this.$forceUpdate()
|
|
|
|
|
|
+ this.$forceUpdate();
|
|
},
|
|
},
|
|
accessoriesChange(ids, money) {
|
|
accessoriesChange(ids, money) {
|
|
this.selectAccessories = ids;
|
|
this.selectAccessories = ids;
|