8009507b by yangwei

查封登记信息

1 parent 37c82586
import request from "@/utils/request";
import SERVER from "./config";
class qlfQlCfdj {
// 查封登记信息
async getQlfQlCfdjList(data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlCfdj/getDataPage",
method: "post",
data,
});
}
// 查封登记信息
async getQlfQlCfdjById(bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlCfdj/detail",
method: "get",
params: {
bsmSjsb: bsmSjsb,
},
});
}
// 查封登记信息-修改
async updateQlfQlCfdj(data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlCfdj/edit",
method: "post",
data,
});
}
}
export default new qlfQlCfdj();
......@@ -248,7 +248,7 @@
</template>
<script>
// 查封登记信息
import business from '@/api/business'
import qlfQlCfdj from '@/api/qlfQlCfdj'
import ruleMixin from '@/mixins/ruleMixin.js'
export default {
mixins: [ruleMixin],
......@@ -312,7 +312,7 @@ export default {
methods: {
async featchData () {
try {
let { result: res } = await business.getQlfQlCfdjById(this.bsmSjsb)
let { result: res } = await qlfQlCfdj.getQlfQlCfdjById(this.bsmSjsb)
this.ruleForm = res
//this.featchRule()
} catch (error) {
......@@ -322,7 +322,7 @@ export default {
handleUpdateForm () {
return new Promise(async (resolve) => {
try {
let res = await business.updateQlfQlCfdj(this.ruleForm)
let res = await qlfQlCfdj.updateQlfQlCfdj(this.ruleForm)
// this.$refs['formList'].resetFields();
resolve(res.code)
} catch (error) {
......
......@@ -71,7 +71,7 @@
<script>
// 查封登记
import data from "./data"
import business from '@/api/business'
import qlfQlCfdj from '@/api/qlfQlCfdj'
import tableMixin from '@/mixins/tableMixin.js'
export default {
name: "Cfdj",
......@@ -129,7 +129,7 @@ export default {
async featchData () {
try {
let { result: { list, total, pages: pageSize, pageNum: current }
} = await business.getQlfQlCfdjList(this.form)
} = await qlfQlCfdj.getQlfQlCfdjList(this.form)
this.tableData.data = list
this.pageData = {
pageSize,
......