|
@@ -21,6 +21,7 @@
|
|
|
<el-select v-model.trim="vipform.organ"
|
|
|
multiple
|
|
|
filterable
|
|
|
+ @visible-change="$forceUpdate()"
|
|
|
clearable>
|
|
|
<el-option v-for="(item,index) in organList"
|
|
|
:key="index"
|
|
@@ -32,11 +33,11 @@
|
|
|
<el-form-item label="课程形式"
|
|
|
prop="stauts">
|
|
|
<el-select v-model.trim="vipform.stauts"
|
|
|
- filterable
|
|
|
+ @visible-change="$forceUpdate()"
|
|
|
clearable
|
|
|
multiple>
|
|
|
<el-option v-for="(item,index) in courseStatusList"
|
|
|
- :key="index"
|
|
|
+ :key="item.id"
|
|
|
:value="item.id"
|
|
|
:label="item.name"></el-option>
|
|
|
</el-select>
|
|
@@ -273,12 +274,19 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
activated () {
|
|
|
+ this.onReSet()
|
|
|
if (this.$route.query.rules) {
|
|
|
this.rules = this.$route.query.rules;
|
|
|
}
|
|
|
if (this.$route.query.searchForm) {
|
|
|
this.searchForm = this.$route.query.searchForm;
|
|
|
}
|
|
|
+
|
|
|
+ this.pageType = this.$route.query.type
|
|
|
+ this.$refs.vipform.resetFields();
|
|
|
+ },
|
|
|
+
|
|
|
+ mounted () {
|
|
|
// 首先获取课程形式
|
|
|
vipGroupCategory().then(res => {
|
|
|
if (res.code == 200) {
|
|
@@ -291,14 +299,12 @@ export default {
|
|
|
this.organList = res.data;
|
|
|
}
|
|
|
});
|
|
|
- this.pageType = this.$route.query.type
|
|
|
- this.$refs.vipform.resetFields();
|
|
|
- },
|
|
|
- deactivated () {
|
|
|
- Object.assign(this.$data, this.$options.data())
|
|
|
- this.$refs.vipform.resetFields();
|
|
|
},
|
|
|
+
|
|
|
methods: {
|
|
|
+ changeStauts (val) {
|
|
|
+ console.log(val)
|
|
|
+ },
|
|
|
submitFrom () {
|
|
|
this.$refs["vipform"].validate(valid => {
|
|
|
if (valid) {
|