0ca0cae3 by yangwei

抵押权登记

1 parent bbcc2774
import request from "@/utils/request";
import SERVER from "./config";
class qlfQlDyaq {
// 抵押权登记
async getQlfQlDyaqList(data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyaq/getDataPage",
method: "post",
data,
});
}
// 抵押权
async getQlfQlDyaqById(bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyaq/detail",
method: "get",
params: {
bsmSjsb: bsmSjsb,
},
});
}
// 抵押权-修改
async updateQlfQlDyaq(data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlDyaq/edit",
method: "post",
data,
});
}
}
export default new qlfQlDyaq();
......@@ -255,7 +255,7 @@
</template>
<script>
// 抵押权信息
import business from '@/api/business'
import qlfQlDyaq from '@/api/qlfQlDyaq'
import ruleMixin from '@/mixins/ruleMixin.js'
export default {
mixins: [ruleMixin],
......@@ -325,7 +325,7 @@ export default {
methods: {
async featchData () {
try {
let { result: res } = await business.getQlfQlDyaqById(this.bsmSjsb)
let { result: res } = await qlfQlDyaq.getQlfQlDyaqById(this.bsmSjsb)
this.ruleForm = res
//this.featchRule()
} catch (error) {
......@@ -335,7 +335,7 @@ export default {
handleUpdateForm () {
return new Promise(async (resolve, reject) => {
try {
let res = await business.updateQlfQlDyaq(this.ruleForm)
let res = await qlfQlDyaq.updateQlfQlDyaq(this.ruleForm)
// this.$refs['formList'].resetFields();
resolve(res.code)
} catch (error) {
......
......@@ -78,7 +78,7 @@
<script>
// 抵押权登记
import data from "./data"
import business from '@/api/business'
import qlfQlDyaq from '@/api/qlfQlDyaq'
import tableMixin from '@/mixins/tableMixin.js'
import treeSelect from '@/components/treeSelect/index.vue'
export default {
......@@ -138,7 +138,7 @@ export default {
async featchData () {
try {
let { result: { list, total, pages: pageSize, pageNum: current }
} = await business.getQlfQlDyaqList(this.form)
} = await qlfQlDyaq.getQlfQlDyaqList(this.form)
this.tableData.data = list;
this.pageData = {
pageSize,
......