bbcc2774 by yangwei

预告登记信息

1 parent 8009507b
1 import request from "@/utils/request";
2 import SERVER from "./config";
3
4 class qlfQlYgdj {
5 // 预告登记信息
6 async getQlfQlYgdjList(data) {
7 return request({
8 url: SERVER.SERVERAPI + "/rest/reg/QlfQlYgdj/getDataPage",
9 method: "post",
10 data,
11 });
12 }
13 // 预告登记信息
14 async getQlfQlYgdjById(bsmSjsb) {
15 return request({
16 url: SERVER.SERVERAPI + "/rest/reg/QlfQlYgdj/detail",
17 method: "get",
18 params: {
19 bsmSjsb: bsmSjsb,
20 },
21 });
22 }
23 // 预告登记信息-修改
24 async updateQlfQlYgdj(data) {
25 return request({
26 url: SERVER.SERVERAPI + "/rest/reg/QlfQlYgdj/edit",
27 method: "post",
28 data,
29 });
30 }
31 }
32 export default new qlfQlYgdj();
...@@ -379,7 +379,7 @@ ...@@ -379,7 +379,7 @@
379 </template> 379 </template>
380 <script> 380 <script>
381 // 预告登记信息 381 // 预告登记信息
382 import business from "@/api/business"; 382 import qlfQlYgdj from "@/api/qlfQlYgdj";
383 import ruleMixin from "@/mixins/ruleMixin.js"; 383 import ruleMixin from "@/mixins/ruleMixin.js";
384 export default { 384 export default {
385 mixins: [ruleMixin], 385 mixins: [ruleMixin],
...@@ -428,7 +428,7 @@ export default { ...@@ -428,7 +428,7 @@ export default {
428 methods: { 428 methods: {
429 async featchData() { 429 async featchData() {
430 try { 430 try {
431 let { result: res } = await business.getQlfQlYgdjById(this.bsmSjsb); 431 let { result: res } = await qlfQlYgdj.getQlfQlYgdjById(this.bsmSjsb);
432 this.ruleForm = res; 432 this.ruleForm = res;
433 //this.featchRule() 433 //this.featchRule()
434 } catch (error) { 434 } catch (error) {
...@@ -438,7 +438,7 @@ export default { ...@@ -438,7 +438,7 @@ export default {
438 handleUpdateForm() { 438 handleUpdateForm() {
439 return new Promise(async (resolve) => { 439 return new Promise(async (resolve) => {
440 try { 440 try {
441 let res = await business.updateQlfQlYgdj(this.ruleForm); 441 let res = await qlfQlYgdj.updateQlfQlYgdj(this.ruleForm);
442 // this.$refs['formList'].resetFields(); 442 // this.$refs['formList'].resetFields();
443 resolve(res.code); 443 resolve(res.code);
444 } catch (error) { 444 } catch (error) {
......
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
74 <script> 74 <script>
75 // 预告登记 75 // 预告登记
76 import data from "./data" 76 import data from "./data"
77 import business from '@/api/business' 77 import qlfQlYgdj from '@/api/qlfQlYgdj'
78 import tableMixin from '@/mixins/tableMixin.js' 78 import tableMixin from '@/mixins/tableMixin.js'
79 import treeSelect from '@/components/treeSelect/index.vue' 79 import treeSelect from '@/components/treeSelect/index.vue'
80 export default { 80 export default {
...@@ -141,7 +141,7 @@ export default { ...@@ -141,7 +141,7 @@ export default {
141 async featchData () { 141 async featchData () {
142 try { 142 try {
143 let { result: { list, total, pages: pageSize, pageNum: current } 143 let { result: { list, total, pages: pageSize, pageNum: current }
144 } = await business.getQlfQlYgdjList(this.form) 144 } = await qlfQlYgdj.getQlfQlYgdjList(this.form)
145 this.tableData.data = list 145 this.tableData.data = list
146 this.pageData = { 146 this.pageData = {
147 pageSize, 147 pageSize,
......