| | |
| | | }, |
| | | { label: '等级折扣', prop: 'discountTypeStr' }, |
| | | { label: '操作人', prop: 'createName' }, |
| | | { |
| | | label: '背景图片', |
| | | formatter: (row) => |
| | | row.background ? ( |
| | | <el-bus-image |
| | | src={row.background} |
| | | lazy={true} |
| | | style="width:50px;height:50px" |
| | | ></el-bus-image> |
| | | ) : null, |
| | | }, |
| | | { |
| | | label: '样式图片', |
| | | formatter: (row) => |
| | | row.pictures ? ( |
| | | <el-bus-image |
| | | src={row.pictures} |
| | | lazy={true} |
| | | style="width:50px;height:50px" |
| | | ></el-bus-image> |
| | | ) : null, |
| | | }, |
| | | { label: '成长值获取规则', prop: 'growthValueDesc' }, |
| | | ], |
| | | beforeOpen: (row, isNew) => { |
| | | if (!isNew) { |
| | |
| | | trigger: 'blur', |
| | | }, |
| | | }, |
| | | { |
| | | label: '背景图片:', |
| | | id: 'background', |
| | | type: 'bus-upload', |
| | | el: { |
| | | listType: 'picture-card', |
| | | limit: 1, |
| | | limitSize: 2, |
| | | tipText: '大小不超过2M', |
| | | valueType: 'string', |
| | | }, |
| | | forceDisabled: true, |
| | | rules: { |
| | | required: true, |
| | | message: '请上传背景图片', |
| | | trigger: 'blur', |
| | | }, |
| | | }, |
| | | { |
| | | label: '样式图片:', |
| | | id: 'pictures', |
| | | type: 'bus-upload', |
| | | el: { |
| | | listType: 'picture-card', |
| | | limit: 1, |
| | | limitSize: 2, |
| | | tipText: '大小不超过2M', |
| | | valueType: 'string', |
| | | }, |
| | | forceDisabled: true, |
| | | rules: { |
| | | required: true, |
| | | message: '请上传样式图片', |
| | | trigger: 'blur', |
| | | }, |
| | | }, |
| | | { |
| | | label: '会员成长值获取规则:', |
| | | id: 'growthValueDesc', |
| | | type: 'input', |
| | | el: { |
| | | type: 'textarea', |
| | | rows: 6, |
| | | }, |
| | | rules: { |
| | | required: true, |
| | | message: '请输入会员成长值获取规则', |
| | | trigger: 'blur', |
| | | }, |
| | | }, |
| | | ], |
| | | }, |
| | | } |