|
@@ -12,9 +12,10 @@
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
<!-- 复选框 -->
|
|
<!-- 复选框 -->
|
|
- <el-checkbox-group v-model="formConfig.sysDictDatatwo" v-if="formConfig.htmlType == 'checkbox'">
|
|
|
|
- <el-checkbox @change="handleCheckedCitiesChange" v-for="itemChild in formConfig.sysDictData" :key="itemChild.dictValue" :label="itemChild.dictLabel"
|
|
|
|
- :value="itemChild.dictValue" ></el-checkbox>
|
|
|
|
|
|
+ <el-checkbox-group v-model="config" v-if="formConfig.htmlType == 'checkbox'">
|
|
|
|
+ <el-checkbox @change="handleCheckedCitiesChange" v-for="itemChild in formConfig.sysDictData" :label="itemChild.dictValue" :key="itemChild.dictLabel" >
|
|
|
|
+ {{itemChild.dictLabel}}
|
|
|
|
+ </el-checkbox>
|
|
</el-checkbox-group>
|
|
</el-checkbox-group>
|
|
<!-- 单选框 -->
|
|
<!-- 单选框 -->
|
|
<el-radio-group v-model="config[formConfig.columnName]" v-if="formConfig.htmlType == 'radio'">
|
|
<el-radio-group v-model="config[formConfig.columnName]" v-if="formConfig.htmlType == 'radio'">
|
|
@@ -76,11 +77,17 @@
|
|
},
|
|
},
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
- console.log(this.formConfig)
|
|
|
|
|
|
+ this.init()
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ init() {
|
|
|
|
+ if(this.formConfig.htmlType == 'checkbox'){
|
|
|
|
+ this.config = []
|
|
|
|
+ }
|
|
|
|
+ console.log(this.config,99888)
|
|
|
|
+ },
|
|
handleChange(file, fileList) {
|
|
handleChange(file, fileList) {
|
|
this.fileList = fileList.slice(-3);
|
|
this.fileList = fileList.slice(-3);
|
|
},
|
|
},
|
|
@@ -101,7 +108,7 @@
|
|
this.$emit('btns')
|
|
this.$emit('btns')
|
|
},
|
|
},
|
|
handleCheckedCitiesChange(value){
|
|
handleCheckedCitiesChange(value){
|
|
- console.log(value)
|
|
|
|
|
|
+ console.log(this.config)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|