a61f8570 by 任超

其他相关权利

1 parent 150c3ecc
1 import request from '@/utils/request'
2 import SERVER from './config'
3
4 class qlfQlQtxgql {
5 // 其他相关权利
6 async getQlfQlQtxgqlById (bsmSjsb) {
7 return request({
8 url: SERVER.SERVERAPI + '/rest/reg/QlfQlQtxgql/detail',
9 method: 'get',
10 params: {
11 bsmSjsb: bsmSjsb
12 }
13 })
14 }
15 // 其他相关权利-修改
16 async updateQlfQlQtxgql (data) {
17 return request({
18 url: SERVER.SERVERAPI + '/rest/reg/QlfQlQtxgql/edit',
19 method: 'post',
20 data
21 })
22 }
23 }
24 export default new qlfQlQtxgql()
...\ No newline at end of file ...\ No newline at end of file
...@@ -277,7 +277,7 @@ ...@@ -277,7 +277,7 @@
277 </template> 277 </template>
278 <script> 278 <script>
279 // 其他相关权利 279 // 其他相关权利
280 import business from '@/api/business' 280 import qlfQlQtxgql from '@/api/qlfQlQtxgql'
281 import ruleMixin from '@/mixins/ruleMixin.js' 281 import ruleMixin from '@/mixins/ruleMixin.js'
282 export default { 282 export default {
283 mixins: [ruleMixin], 283 mixins: [ruleMixin],
...@@ -345,7 +345,7 @@ export default { ...@@ -345,7 +345,7 @@ export default {
345 methods: { 345 methods: {
346 async featchData () { 346 async featchData () {
347 try { 347 try {
348 let { result: res } = await business.getQlfQlQtxgqlById(this.bsmSjsb) 348 let { result: res } = await qlfQlQtxgql.getQlfQlQtxgqlById(this.bsmSjsb)
349 this.ruleForm = res 349 this.ruleForm = res
350 //this.featchRule() 350 //this.featchRule()
351 } catch (error) { 351 } catch (error) {
...@@ -355,7 +355,7 @@ export default { ...@@ -355,7 +355,7 @@ export default {
355 handleUpdateForm () { 355 handleUpdateForm () {
356 return new Promise(async (resolve) => { 356 return new Promise(async (resolve) => {
357 try { 357 try {
358 let res = await business.updateQlfQlQtxgql(this.ruleForm) 358 let res = await qlfQlQtxgql.updateQlfQlQtxgql(this.ruleForm)
359 // this.$refs['formList'].resetFields(); 359 // this.$refs['formList'].resetFields();
360 resolve(res.code) 360 resolve(res.code)
361 } catch (error) { 361 } catch (error) {
......