d4441f7c by yangwei

农用地使用权(非林地)

1 parent 39d36fc8
import request from "@/utils/request";
import SERVER from "./config";
class qlfQlNydsyq {
// 农用地使用权(非林地)
async getQlfQlNydsyqByConditon(data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlNydsyq/getDataPage",
method: "post",
data,
});
}
//农用地使用权(非林地)
async getQlfQlNydsyqByID(bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlNydsyq/detail",
method: "get",
params: {
bsmSjsb: bsmSjsb,
},
});
}
//修改农用地使用权(非林地)
async updateQlfQlNydsyq(data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QlfQlNydsyq/edit",
method: "post",
data,
});
}
}
export default new qlfQlNydsyq();
......@@ -290,7 +290,7 @@
</template>
<script>
// 农用地使用权(非林地)
import business from '@/api/business'
import qlfQlNydsyq from '@/api/qlfQlNydsyq'
import ruleMixin from '@/mixins/ruleMixin.js'
export default {
mixins: [ruleMixin],
......@@ -357,7 +357,7 @@ export default {
methods: {
async featchData () {
try {
let { result: res } = await business.getQlfQlNydsyqByID(this.bsmSjsb)
let { result: res } = await qlfQlNydsyq.getQlfQlNydsyqByID(this.bsmSjsb)
this.ruleForm = res
//this.featchRule()
} catch (error) {
......@@ -367,7 +367,7 @@ export default {
handleUpdateForm () {
return new Promise(async (resolve) => {
try {
let res = await business.updateQlfQlNydsyq(this.ruleForm)
let res = await qlfQlNydsyq.updateQlfQlNydsyq(this.ruleForm)
// this.$refs['formList'].resetFields();
resolve(res.code)
} catch (error) {
......
......@@ -67,7 +67,7 @@
<script>
// 农用地使用权(非林地)
import data from "./data"
import business from '@/api/business'
import qlfQlNydsyq from '@/api/qlfQlNydsyq'
import tableMixin from '@/mixins/tableMixin.js'
import treeSelect from '@/components/treeSelect/index.vue'
export default {
......@@ -131,7 +131,7 @@ export default {
try {
this.form = Object.assign(this.form, this.formData)
let { result: { list, total, pages: pageSize, pageNum: current }
} = await business.getQlfQlNydsyqByConditon(this.form)
} = await qlfQlNydsyq.getQlfQlNydsyqByConditon(this.form)
this.tableData.data = list
this.pageData = {
pageSize,
......