| | |
| | | },{ |
| | | label: '映射其他属性', |
| | | prop: 'mapFields', |
| | | tip: '选择数据后,将选择的数据拷贝到表单里的其他属性,书写格式为{当前表单上的属性:选择数据里的属性,XXXXx:yyyy}', |
| | | tip: '选择数据后,将选择的数据拷贝到表单里的其他属性,书写格式为{当前表单上的属性:选择数据里的属性,"XXXXx":"yyyy"}', |
| | | tipPlacement: 'right', |
| | | span: 7, |
| | | },{ |
| | |
| | | span: 8, |
| | | tip: '分页时每页显示的数量,不分页填-1', |
| | | value: 15, |
| | | rules: [{ |
| | | required: true, |
| | | message: "必填项不能为空", |
| | | trigger: "blur", |
| | | }], |
| | | tipPlacement: 'right', |
| | | },{ |
| | | label: '排序字段', |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | |
| | | // 选择完参照配置之后点击保存按钮触发 |
| | | async selectedListReferConfig(){ |
| | | // 标记所有表单是否通过校验的变量 |
| | |
| | | break; |
| | | } |
| | | isValid = false; |
| | | //console.log(valid); |
| | | } |
| | | done(); |
| | | }) |
| | |
| | | if (isValid) { |
| | | // 根据类型对form表单中的参数进行过滤,只保留非空且需要的属性 |
| | | let submitForm = this.filterForm(); |
| | | // console.log(submitForm); |
| | | this.$emit('echoReferConfig', submitForm) // 触发update:data将子组件值传递给父组件 |
| | | this.isShowReferConfigForm = false; |
| | | } |
| | |
| | | // 单击表格实现表格行编辑 |
| | | clickAttrEdit(row, column, event){ |
| | | if(this.preClickAttrRow && this.preClickAttrRow != row){ |
| | | //console.log(this.codeShowFieldConfigVOS[this.preClickAttrRow.$index]); |
| | | this.codeShowFieldConfigVOS[this.preClickAttrRow.$index].$cellEdit = false; |
| | | } |
| | | row.$cellEdit = true; |