| | |
| | | column: [ |
| | | { |
| | | label: "品种", |
| | | prop: "strainId", |
| | | prop: "kind", |
| | | search: true, |
| | | hide: true, |
| | | display: true, |
| | | display: false, |
| | | type: "select", |
| | | dicUrl: '/api/strain/strain-tree', |
| | | dicUrl: '/api/strain/kind-tree', |
| | | dicFormatter:(res)=>{ |
| | | this.kindList = res.data |
| | | return res.data |
| | | }, |
| | | props: { |
| | | label: "strainName", |
| | | value: "id" |
| | | label: "kindName", |
| | | value: "id" |
| | | } |
| | | }, |
| | | { |
| | |
| | | this.onLoad(this.page) |
| | | }, |
| | | searchChange (params, done) { |
| | | if (params.kind){ |
| | | this.kindList.forEach(e=>{ |
| | | if (e.id == params.kind){ |
| | | params.type = e.type |
| | | } |
| | | }) |
| | | } |
| | | this.query = params |
| | | this.page.currentPage = 1 |
| | | this.onLoad(this.page, params) |
| | |
| | | message: "操作成功!" |
| | | }); |
| | | }); |
| | | }, |
| | | }, |
| | | } |
| | | } |
| | | </script> |