File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6262 "dateTypes" : [{
6363 "value" : " birthday" ,
6464 "label" : " 生日"
65+ },{
66+ "value" : " idCardValidity" ,
67+ "label" : " 身份证有效期"
6568 }]
6669}
Original file line number Diff line number Diff line change 2020 <el-form-item label =" 文本内容" v-if =" selectWg.type==='staticText'" >
2121 <el-input type =" textarea" v-model =" selectWg.value" ></el-input >
2222 </el-form-item >
23-
2423 <el-form-item label =" 是否单选" v-if =" selectWg.hasOwnProperty('isRadio')" >
2524 <el-switch v-model =" selectWg.isRadio" @change =" isRadio" ></el-switch >
2625 </el-form-item >
3635 </el-select >
3736 </el-form-item >
3837 <el-form-item label =" 选项" v-if =" selectWg.hasOwnProperty('options')" >
39- <!-- <template v-if="selectWg.type=='checkbox' || selectWg.type=='select'"> -->
4038 <template >
4139 <draggable element =" ul" :list =" selectWg.options" :options =" {group:{ name:'options'}, ghostClass: 'ghost',handle: '.move-icon'}" >
4240 <li v-for =" (item, index) in selectWg.options" :key =" index" >
5250 <el-button type =" text" @click =" handleAddOption()" >添加选项</el-button >
5351 </div >
5452 </el-form-item >
55-
5653 <template v-if =" selectWg .type === ' imgshow' " >
5754 <el-form-item label =" 图片上传" >
5855 <el-upload
@@ -146,7 +143,7 @@ export default {
146143 },
147144 selectfield (key , types ) {
148145 let selectItem = types .find (item => key === item .value );
149- this .selectWg .labelTitle ? this . selectWg . labelTitle = selectItem .label : " " ;
146+ this .selectWg .label . labelTitle = selectItem .label ;
150147 this .selectWg .options ? this .selectWg .options = selectItem .options : " " ;
151148 if (this .selectWg .hasOwnProperty (' placeholder' )) {
152149 this .selectWg .placeholder = this .selectWg .type === " input" ? ` 请输入${ selectItem .label } ` : ` 请选择${ selectItem .label } ` ;
You can’t perform that action at this time.
0 commit comments