| | |
| | | data: row |
| | | }) |
| | | } |
| | | export const instery = (dj, had, ht, ctime, content,hn) => { |
| | | export const instery = (dj, ht, ctime, content,hn) => { |
| | | return request({ |
| | | url: '/api/blade-system/tenant/instery', |
| | | method: 'post', |
| | | params: { |
| | | dj, |
| | | had, |
| | | ht, |
| | | ctime, |
| | | content, |
| | |
| | | } |
| | | }) |
| | | } |
| | | export const insertsr = (category, attributes, developers, had, housetype, content, hn) => { |
| | | export const insertsr = (category, attributes, developers, housetype, content, hn) => { |
| | | return request({ |
| | | url: '/api/blade-system/tenant/insertsr', |
| | | method: 'post', |
| | |
| | | category, |
| | | attributes, |
| | | developers, |
| | | had, |
| | | housetype, |
| | | content, |
| | | hn |
| | |
| | | }, |
| | | methods: { |
| | | rowSave(row, done, loading) { |
| | | |
| | | add(row).then( |
| | | () => { |
| | | debugger |
| | | if (row.type == "0") { |
| | | console.log(123); |
| | | instery( |
| | |
| | | ); |
| | | } else if (row.type == "1") { |
| | | insertss( |
| | | row.dj, |
| | | row.nature, |
| | | row.had, |
| | | // row.had, |
| | | row.motto, |
| | | row.ctime, |
| | |
| | | ); |
| | | } else if (row.type == "2") { |
| | | insertsr( |
| | | row.dj, |
| | | row.category, |
| | | row.attributes, |
| | | row.developers, |
| | | // row.had, |
| | | row.housetype, |
| | | row.content, |
| | | row.hn |
| | | row.tenantName |
| | | ); |
| | | } |
| | | this.onLoad(this.page); |
| | |
| | | ); |
| | | } else if (row.type == "1") { |
| | | updateInfos( |
| | | row.dj, |
| | | row.nature, |
| | | row.had, |
| | | row.motto, |
| | |
| | | ); |
| | | } else if (row.type == "2") { |
| | | updateInfor( |
| | | row.dj, |
| | | row.category, |
| | | row.attributes, |
| | | row.developers, |
| | |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | debugger |
| | | if (row.type == "0") { |
| | | deletey(row.tenantName); |
| | | } else if (row.type == "1") { |