8048b302 by 任超

自然幢信息

1 parent 4e32d787
import request from '@/utils/request'
import SERVER from './config'
class kttFwZrz {
// 自然幢信息
async getKttFwZrzById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KttFwZrz/detail',
method: 'get',
params: {
bsmSjsb: bsmSjsb
}
})
}
// 自然幢信息-修改
async updateKttFwZrz (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KttFwZrz/edit',
method: 'post',
data
})
}
}
export default new kttFwZrz()
......@@ -320,7 +320,7 @@
</template>
<script>
// 自然幢
import business from '@/api/business'
import kttFwZrz from '@/api/kttFwZrz'
import ruleMixin from '@/mixins/ruleMixin.js'
export default {
mixins: [ruleMixin],
......@@ -372,7 +372,7 @@ export default {
methods: {
async featchData () {
try {
let { result: res } = await business.getKttFwZrzById(this.bsmSjsb)
let { result: res } = await kttFwZrz.getKttFwZrzById(this.bsmSjsb)
this.naturalForm.naturalList = res
//this.featchRule()
} catch (error) {
......@@ -382,7 +382,7 @@ export default {
handleUpdateForm () {
return new Promise(async (resolve) => {
try {
let res = await business.updateKttFwZrz(this.naturalForm.naturalList)
let res = await kttFwZrz.updateKttFwZrz(this.naturalForm.naturalList)
// this.$refs['formList'].resetFields();
resolve(res.code)
} catch (error) {
......