6c613dd5 by 任超

feat:宗地基本信息

1 parent e07531d0
import request from '@/utils/request'
import SERVER from './config'
class kttZdjbxx {
// 宗地基本信息
async kttZdjbxxDetail (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KttZdjbxx/detail',
method: 'get',
params: {
bsmSjsb: bsmSjsb
}
})
}
// 宗地基本信息-修改
async updateKttZdjbxx (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KttZdjbxx/edit',
method: 'post',
data
})
}
}
export default new kttZdjbxx()
\ No newline at end of file
......@@ -433,7 +433,7 @@
</template>
<script>
// 宗地基本信息
import business from '@/api/business'
import kttZdjbxx from '@/api/kttZdjbxx'
import ruleMixin from '@/mixins/ruleMixin.js'
import treeSelect from '@/components/treeSelect/index.vue'
export default {
......@@ -496,7 +496,7 @@ export default {
methods: {
async featchData () {
try {
let { result: res } = await business.kttZdjbxxDetail(this.bsmSjsb)
let { result: res } = await kttZdjbxx.kttZdjbxxDetail(this.bsmSjsb)
this.ruleForm = res
//this.featchRule()
} catch (error) {
......@@ -506,7 +506,7 @@ export default {
handleUpdateForm () {
return new Promise(async (resolve) => {
try {
let res = await business.updateKttZdjbxx(this.ruleForm)
let res = await kttZdjbxx.updateKttZdjbxx(this.ruleForm)
// this.$refs['formList'].resetFields();
resolve(res.code)
} catch (error) {
......