31d2522b by yangwei

林权

1 parent a2caf275
import request from "@/utils/request";
import SERVER from "./config";
class qltQlLq {
// 林权
async getQltQlLqList(data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QltQlLq/getDataPage",
method: "post",
data,
});
}
//林权
async getQltQlLqById(bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QltQlLq/detail",
method: "get",
params: {
bsmSjsb: bsmSjsb,
},
});
}
//修改林权
async updateQltQlLq(data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QltQlLq/edit",
method: "post",
data,
});
}
}
export default new qltQlLq();
......@@ -336,7 +336,7 @@
</template>
<script>
// 林权
import business from '@/api/business'
import qltQlLq from '@/api/qltQlLq'
import ruleMixin from '@/mixins/ruleMixin.js'
export default {
mixins: [ruleMixin],
......@@ -387,7 +387,7 @@ export default {
methods: {
async featchData () {
try {
let { result: res } = await business.getQltQlLqById(this.bsmSjsb)
let { result: res } = await qltQlLq.getQltQlLqById(this.bsmSjsb)
this.ruleForm = res
//this.featchRule()
} catch (error) {
......@@ -397,7 +397,7 @@ export default {
handleUpdateForm () {
return new Promise(async (resolve, reject) => {
try {
let res = await business.updateQltQlLq(this.ruleForm)
let res = await qltQlLq.updateQltQlLq(this.ruleForm)
// this.$refs['formList'].resetFields();
resolve(res.code)
} catch (error) {
......
......@@ -63,7 +63,7 @@
<script>
// 林权
import data from "./data"
import business from '@/api/business'
import qltQlLq from '@/api/qltQlLq'
import tableMixin from '@/mixins/tableMixin.js'
import treeSelect from '@/components/treeSelect/index.vue'
export default {
......@@ -126,7 +126,7 @@ export default {
try {
this.form = Object.assign(this.form, this.formData)
let { result: { list, total, pages: pageSize, pageNum: current }
} = await business.getQltQlLqList(this.form)
} = await qltQlLq.getQltQlLqList(this.form)
this.tableData.data = list
this.pageData = {
pageSize,
......