| | |
| | | }) |
| | | } |
| | | |
| | | export const getGridman = (id) => { |
| | | export const getGridman = (params) => { |
| | | return request({ |
| | | url: '/api/blade-gridman/gridman/detail', |
| | | url: '/api/blade-gridman/gridman/getDetail', |
| | | method: 'get', |
| | | params: { |
| | | id |
| | | } |
| | | params: params |
| | | }) |
| | | } |
| | |
| | | }, |
| | | beforeOpen (done, type) { |
| | | if (["edit", "view"].includes(type)) { |
| | | getGridman(this.form.id).then((res) => { |
| | | const param = { |
| | | id:this.form.id |
| | | } |
| | | getGridman(param).then((res) => { |
| | | this.form = res.data.data |
| | | if (this.form.picUrl) { |
| | | this.form.picUrl = website.minioUrl + this.form.picUrl |