13dacf08 by 任超

api:界址线信息

1 parent 46ef4eca
import request from '@/utils/request'
import SERVER from './config'
class kttGyJzx {
//界址线信息
async getKttGyJzxById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KttGyJzx/detail',
method: 'get',
params: {
bsmSjsb: bsmSjsb
}
})
}
//修改界址线信息
async updateKttGyJzx (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/KttGyJzx/edit',
method: 'post',
data
})
}
}
export default new kttGyJzx()
......@@ -151,7 +151,7 @@
</div>
</template>
<script>
import business from '@/api/business'
import kttGyJzx from '@/api/kttGyJzx'
import ruleMixin from '@/mixins/ruleMixin.js'
// 界址线信息
export default {
......@@ -190,7 +190,7 @@ export default {
methods: {
async featchData () {
try {
let { result: res } = await business.getKttGyJzxById(this.bsmSjsb)
let { result: res } = await kttGyJzx.getKttGyJzxById(this.bsmSjsb)
this.boundaryLine.ruleForm = res
//this.featchRule()
} catch (error) {
......@@ -200,7 +200,7 @@ export default {
handleUpdateForm () {
return new Promise(async (resolve) => {
try {
let res = await business.updateKttGyJzx(this.boundaryLine.ruleForm)
let res = await kttGyJzx.updateKttGyJzx(this.boundaryLine.ruleForm)
resolve(res.code)
} catch (error) {
this.$refs.msg.messageShow()
......