| | |
| | | value: [String, Array], |
| | | modelId: { |
| | | type: String, |
| | | default: "" |
| | | default: '' |
| | | }, |
| | | shipId: { |
| | | type: String, |
| | | default: "" |
| | | default: '' |
| | | }, |
| | | projectId: { |
| | | type: String, |
| | | default: "" |
| | | default: '' |
| | | }, |
| | | multiple: { |
| | | type: Boolean, |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | url:'/sys/major/getList?modelId='+this.modelId+'&shipId='+this.shipId+'&projectId='+this.projectId, |
| | | url: '/sys/major/getList?modelId=' + this.modelId + '&shipId=' + this.shipId + '&projectId=' + this.projectId, |
| | | selectValue: this.value || '' |
| | | } |
| | | }, |
| | | watch: { |
| | | 'selectValue'(){ |
| | | 'selectValue'() { |
| | | if (this.multiple) { |
| | | this.$emit('input', (this.selectValue || []).join(',')) |
| | | } else { |
| | |
| | | this.selectValue = val |
| | | }, |
| | | 'projectId'() { |
| | | this.url = '/sys/major/getList?modelId='+this.modelId+'&shipId='+this.shipId+'&projectId='+this.projectId |
| | | this.url = '/sys/major/getList?modelId=' + this.modelId + '&shipId=' + this.shipId + '&projectId=' + this.projectId |
| | | } |
| | | }, |
| | | |