a1495fc5 by 任超

宗海基本信息

1 parent 8048b302
import request from '@/utils/request'
import SERVER from './config'
class kttZhjbxx {
//宗海基本信息
async getKttZhjbxxById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KttZhjbxx/detail',
method: 'get',
params: {
bsmSjsb: bsmSjsb
}
})
}
//修改宗海基本信息
async updateKttZhjbxx (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KttZhjbxx/edit',
method: 'post',
data
})
}
}
export default new kttZhjbxx()
\ No newline at end of file
import request from '@/utils/request'
import SERVER from './config'
class zdK103 {
//宗地空间属性
async getZdK103ById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/ZdK103/detail',
method: 'get',
params: {
bsmSjsb: bsmSjsb
}
})
}
//修改宗地空间属性
async updateZdK103 (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/ZdK103/edit',
method: 'post',
data
})
}
}
export default new zdK103()
\ No newline at end of file
......@@ -378,7 +378,7 @@
</template>
<script>
// 宗海基本信息
import business from '@/api/business'
import kttZhjbxx from '@/api/kttZhjbxx'
import ruleMixin from '@/mixins/ruleMixin.js'
export default {
mixins: [ruleMixin],
......@@ -434,7 +434,7 @@ export default {
methods: {
async featchData () {
try {
let { result: res } = await business.getKttZhjbxxById(this.bsmSjsb)
let { result: res } = await kttZhjbxx.getKttZhjbxxById(this.bsmSjsb)
this.ruleForm = res
//this.featchRule()
} catch (error) {
......@@ -444,7 +444,7 @@ export default {
handleUpdateForm () {
return new Promise(async (resolve) => {
try {
let res = await business.updateKttZhjbxx(this.ruleForm)
let res = await kttZhjbxx.updateKttZhjbxx(this.ruleForm)
// this.$refs['formList'].resetFields();
resolve(res.code)
} catch (error) {
......
......@@ -88,7 +88,7 @@
</template>
<script>
// 宗地空间属性
import business from "@/api/business";
import zdK103 from "@/api/zdK103";
import ruleMixin from "@/mixins/ruleMixin.js";
export default {
mixins: [ruleMixin],
......@@ -102,7 +102,7 @@ export default {
default: "",
},
},
data() {
data () {
return {
ruleForm: {
BDCDYH: "",
......@@ -114,19 +114,19 @@ export default {
};
},
methods: {
async featchData() {
async featchData () {
try {
let { result: res } = await business.getZdK103ById(this.bsmSjsb);
let { result: res } = await zdK103.getZdK103ById(this.bsmSjsb);
this.ruleForm = res;
//this.featchRule()
} catch (error) {
this.$refs.msg.messageShow();
}
},
handleUpdateForm() {
handleUpdateForm () {
return new Promise(async (resolve) => {
try {
let res = await business.updateZdK103(this.ruleForm);
let res = await zdK103.updateZdK103(this.ruleForm);
// this.$refs['formList'].resetFields();
resolve(res.code);
} catch (error) {
......