c1f72ca4 by 任超

房地产权_项目内多幢房屋项目属性

1 parent 0e360e4d
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
......@@ -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) {
......