f9c95669 by yangwei
2 parents f1e28c68 13dacf08
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()
import request from '@/utils/request'
import SERVER from './config'
class qlfQlGzdj {
// 更正登记信息
async getQlfQlGzdjById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/QlfQlGzdj/detail',
method: 'get',
params: {
bsmSjsb: bsmSjsb
}
})
}
// 更正登记信息-修改
async updateQlfQlGzdj (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/QlfQlGzdj/edit',
method: 'post',
data
})
}
}
export default new qlfQlGzdj()
......@@ -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()
......
......@@ -172,7 +172,7 @@
</template>
<script>
// 归档信息
import business from "@/api/business";
import qlfQlGzdj from "@/api/qlfQlGzdj";
import ruleMixin from "@/mixins/ruleMixin.js";
export default {
mixins: [ruleMixin],
......@@ -186,7 +186,7 @@ export default {
default: "",
},
},
data() {
data () {
return {
ruleForm: {
YSDM: "",
......@@ -205,19 +205,19 @@ export default {
};
},
methods: {
async featchData() {
async featchData () {
try {
let { result: res } = await business.getQlfQlGzdjById(this.bsmSjsb);
let { result: res } = await qlfQlGzdj.getQlfQlGzdjById(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.updateQlfQlGzdj(this.ruleForm);
let res = await qlfQlGzdj.updateQlfQlGzdj(this.ruleForm);
// this.$refs['formList'].resetFields();
resolve(res.code);
} catch (error) {
......