161972d7 by yangwei
2 parents f2d5f78b c1f72ca4
import request from '@/utils/request'
import SERVER from './config'
class qlfFwFdcqDzXm {
// 房地产权_项目内多幢房屋项目属性
async getQlfFwFdcqDzXmById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/QlfFwFdcqDzXm/detail',
method: 'get',
params: {
bsmSjsb: bsmSjsb
}
})
}
// 房地产权_项目内多幢房屋项目属性-修改
async updateQlfFwFdcqDzXm (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/QlfFwFdcqDzXm/edit',
method: 'post',
data
})
}
}
export default new qlfFwFdcqDzXm()
\ No newline at end of file
import request from '@/utils/request'
import SERVER from './config'
class qlfQlQtxgql {
// 其他相关权利
async getQlfQlQtxgqlById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/QlfQlQtxgql/detail',
method: 'get',
params: {
bsmSjsb: bsmSjsb
}
})
}
// 其他相关权利-修改
async updateQlfQlQtxgql (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/QlfQlQtxgql/edit',
method: 'post',
data
})
}
}
export default new qlfQlQtxgql()
\ No newline at end of file
......@@ -131,7 +131,7 @@
</template>
<script>
// 房地产权(项目内多幢房屋)项目属性
import business from '@/api/business'
import qlfFwFdcqDzXm from '@/api/qlfFwFdcqDzXm'
import ruleMixin from '@/mixins/ruleMixin.js'
export default {
mixins: [ruleMixin],
......@@ -168,7 +168,7 @@ export default {
methods: {
async featchData () {
try {
let { result: res } = await business.getQlfFwFdcqDzXmById(this.bsmSjsb)
let { result: res } = await qlfFwFdcqDzXm.getQlfFwFdcqDzXmById(this.bsmSjsb)
this.ruleForm.itemList = res
//this.featchRule()
} catch (error) {
......@@ -178,7 +178,7 @@ export default {
handleUpdateForm () {
return new Promise(async (resolve, reject) => {
try {
let res = await business.updateQlfFwFdcqDzXm(this.ruleForm.itemList)
let res = await qlfFwFdcqDzXm.updateQlfFwFdcqDzXm(this.ruleForm.itemList)
// this.$refs['formList'].resetFields();
resolve(res.code)
} catch (error) {
......
......@@ -277,7 +277,7 @@
</template>
<script>
// 其他相关权利
import business from '@/api/business'
import qlfQlQtxgql from '@/api/qlfQlQtxgql'
import ruleMixin from '@/mixins/ruleMixin.js'
export default {
mixins: [ruleMixin],
......@@ -345,7 +345,7 @@ export default {
methods: {
async featchData () {
try {
let { result: res } = await business.getQlfQlQtxgqlById(this.bsmSjsb)
let { result: res } = await qlfQlQtxgql.getQlfQlQtxgqlById(this.bsmSjsb)
this.ruleForm = res
//this.featchRule()
} catch (error) {
......@@ -355,7 +355,7 @@ export default {
handleUpdateForm () {
return new Promise(async (resolve) => {
try {
let res = await business.updateQlfQlQtxgql(this.ruleForm)
let res = await qlfQlQtxgql.updateQlfQlQtxgql(this.ruleForm)
// this.$refs['formList'].resetFields();
resolve(res.code)
} catch (error) {
......