f2d5f78b by yangwei

海域(含无居民海岛)使用权

1 parent 89966f39
1 import request from "@/utils/request";
2 import SERVER from "./config";
3
4 class qlfQlHysyq {
5 // 海域(含无居民海岛)使用权
6 async getQlfQlHysyqByConditon(data) {
7 return request({
8 url: SERVER.SERVERAPI + "/rest/reg/QlfQlHysyq/getDataPage",
9 method: "post",
10 data,
11 });
12 }
13 //海域(含无居民海岛)使用权
14 async getQlfQlHysyqById(bsmSjsb) {
15 return request({
16 url: SERVER.SERVERAPI + "/rest/reg/QlfQlHysyq/detail",
17 method: "get",
18 params: {
19 bsmSjsb: bsmSjsb,
20 },
21 });
22 }
23 //修改海域(含无居民海岛)使用权
24 async updateQlfQlHysyq(data) {
25 return request({
26 url: SERVER.SERVERAPI + "/rest/reg/QlfQlHysyq/edit",
27 method: "post",
28 data,
29 });
30 }
31 }
32 export default new qlfQlHysyq();
...@@ -241,7 +241,7 @@ ...@@ -241,7 +241,7 @@
241 </template> 241 </template>
242 <script> 242 <script>
243 // 海域(含无居民海岛)使用权 243 // 海域(含无居民海岛)使用权
244 import business from '@/api/business' 244 import qlfQlHysyq from '@/api/qlfQlHysyq'
245 import ruleMixin from '@/mixins/ruleMixin.js' 245 import ruleMixin from '@/mixins/ruleMixin.js'
246 export default { 246 export default {
247 mixins: [ruleMixin], 247 mixins: [ruleMixin],
...@@ -304,7 +304,7 @@ export default { ...@@ -304,7 +304,7 @@ export default {
304 methods: { 304 methods: {
305 async featchData () { 305 async featchData () {
306 try { 306 try {
307 let { result: res } = await business.getQlfQlHysyqById(this.bsmSjsb) 307 let { result: res } = await qlfQlHysyq.getQlfQlHysyqById(this.bsmSjsb)
308 this.ruleForm = res 308 this.ruleForm = res
309 //this.featchRule() 309 //this.featchRule()
310 } catch (error) { 310 } catch (error) {
...@@ -314,7 +314,7 @@ export default { ...@@ -314,7 +314,7 @@ export default {
314 handleUpdateForm () { 314 handleUpdateForm () {
315 return new Promise(async (resolve) => { 315 return new Promise(async (resolve) => {
316 try { 316 try {
317 let res = await business.updateQlfQlHysyq(this.ruleForm) 317 let res = await qlfQlHysyq.updateQlfQlHysyq(this.ruleForm)
318 // this.$refs['formList'].resetFields(); 318 // this.$refs['formList'].resetFields();
319 resolve(res.code) 319 resolve(res.code)
320 } catch (error) { 320 } catch (error) {
......
...@@ -68,7 +68,7 @@ ...@@ -68,7 +68,7 @@
68 <script> 68 <script>
69 // 海域(含无居民海岛)使用权 69 // 海域(含无居民海岛)使用权
70 import data from "./data" 70 import data from "./data"
71 import business from '@/api/business' 71 import qlfQlHysyq from '@/api/qlfQlHysyq'
72 import tableMixin from '@/mixins/tableMixin.js' 72 import tableMixin from '@/mixins/tableMixin.js'
73 import treeSelect from '@/components/treeSelect/index.vue' 73 import treeSelect from '@/components/treeSelect/index.vue'
74 export default { 74 export default {
...@@ -137,7 +137,7 @@ export default { ...@@ -137,7 +137,7 @@ export default {
137 try { 137 try {
138 this.form = Object.assign(this.form, this.formData) 138 this.form = Object.assign(this.form, this.formData)
139 let { result: { list, total, pages: pageSize, pageNum: current } 139 let { result: { list, total, pages: pageSize, pageNum: current }
140 } = await business.getQlfQlHysyqByConditon(this.form) 140 } = await qlfQlHysyq.getQlfQlHysyqByConditon(this.form)
141 this.tableData.data = list 141 this.tableData.data = list
142 this.pageData = { 142 this.pageData = {
143 pageSize, 143 pageSize,
......