39d36fc8 by yangwei

构(建)筑物所有权

1 parent 161972d7
import request from "@/utils/request";
import SERVER from "./config";
class qltQlGjzwsyq {
// 构(建)筑物所有权
async getQltQlGjzwsyqList(data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QltQlGjzwsyq/getDataPage",
method: "post",
data,
});
}
// 构(建)筑物所有权
async getQltQlGjzwsyqById(bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QltQlGjzwsyq/detail",
method: "get",
params: {
bsmSjsb: bsmSjsb,
},
});
}
//构(建)筑物所有权 - 修改
async updateQltQlGjzwsyq(data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/QltQlGjzwsyq/edit",
method: "post",
data,
});
}
}
export default new qltQlGjzwsyq();
......@@ -278,7 +278,7 @@
</template>
<script>
// 构(建)筑物所有权信息
import business from '@/api/business'
import qltQlGjzwsyq from '@/api/qltQlGjzwsyq'
import ruleMixin from '@/mixins/ruleMixin.js'
export default {
mixins: [ruleMixin],
......@@ -344,7 +344,7 @@ export default {
methods: {
async featchData () {
try {
let { result: res } = await business.getQltQlGjzwsyqById(this.bsmSjsb)
let { result: res } = await qltQlGjzwsyq.getQltQlGjzwsyqById(this.bsmSjsb)
this.ruleForm = res
//this.featchRule()
} catch (error) {
......@@ -354,7 +354,7 @@ export default {
handleUpdateForm () {
return new Promise(async (resolve) => {
try {
let res = await business.updateQltQlGjzwsyq(this.ruleForm)
let res = await qltQlGjzwsyq.updateQltQlGjzwsyq(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 qltQlGjzwsyq from '@/api/qltQlGjzwsyq'
import tableMixin from '@/mixins/tableMixin.js'
import treeSelect from '@/components/treeSelect/index.vue'
export default {
......@@ -134,7 +134,7 @@ export default {
try {
this.form = Object.assign(this.form, this.formData)
let { result: { list, total, pages: pageSize, pageNum: current }
} = await business.getQltQlGjzwsyqList(this.form)
} = await qltQlGjzwsyq.getQltQlGjzwsyqList(this.form)
this.tableData.data = list
this.pageData = {
pageSize,
......