| | |
| | | dialogVisible(n) { |
| | | this.$emit('update:visible', n) |
| | | }, |
| | | data(n) { |
| | | console.log('n', n) |
| | | }, |
| | | newdata(n) { |
| | | console.log('newdata', n) |
| | | } |
| | | }, |
| | | computed: { |
| | | newdata() { |
| | |
| | | let name = this.props.label; |
| | | let key = this.props.key; |
| | | |
| | | if (this.data) { |
| | | if (Array.isArray(this.data)) { |
| | | let data = this.data.map(item => { |
| | | let objitem = {disabled: false, ...item}; |
| | | if (this.disabledData.length !== 0) { |
| | |
| | | renPing: renPing, |
| | | [name]: item[this.props.label], |
| | | [key]: item[this.props.key], |
| | | disabled: item.disabled |
| | | disabled: item.disabled, |
| | | id:item.id |
| | | }; |
| | | return obj; |
| | | }); |