| | |
| | | import winSm from '@/components/win/win-sm' |
| | | import myButton from '@/components/myButton/myButton' |
| | | import * as finsystenant from '@/api/baseSetting/finsystenant' |
| | | import {addTenant, editTenant} from "@/api/baseSetting/finsystenant"; |
| | | |
| | | export default { |
| | | components: {winSm, myButton}, |
| | |
| | | name: '', |
| | | status: 1, |
| | | summary: '', |
| | | parentId: '', |
| | | }, |
| | | rules: { |
| | | code: [ |
| | |
| | | const params = Object.assign({}, this.formData) |
| | | if(this.setting.id){ |
| | | // 编辑接口 |
| | | finsystenant.edit(params).then(res => { |
| | | finsystenant.editTenant(params).then(res => { |
| | | if (res) { |
| | | this.$message.success('保存成功!') |
| | | this.close() |
| | |
| | | } |
| | | }) |
| | | }else{ |
| | | params.orgId = this.setting.orgId |
| | | finsystenant.add(params).then(res => { |
| | | params.parentId = this.setting.orgId |
| | | finsystenant.addTenant(params).then(res => { |
| | | if (res) { |
| | | this.$message.success('保存成功!') |
| | | this.close() |