a61f8570 by 任超

其他相关权利

1 parent 150c3ecc
import request from '@/utils/request'
import SERVER from './config'
class qlfQlQtxgql {
// 其他相关权利
async getQlfQlQtxgqlById (bsmSjsb) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/QlfQlQtxgql/detail',
method: 'get',
params: {
bsmSjsb: bsmSjsb
}
})
}
// 其他相关权利-修改
async updateQlfQlQtxgql (data) {
return request({
url: SERVER.SERVERAPI + '/rest/reg/QlfQlQtxgql/edit',
method: 'post',
data
})
}
}
export default new qlfQlQtxgql()
\ No newline at end of file
......@@ -277,7 +277,7 @@
</template>
<script>
// 其他相关权利
import business from '@/api/business'
import qlfQlQtxgql from '@/api/qlfQlQtxgql'
import ruleMixin from '@/mixins/ruleMixin.js'
export default {
mixins: [ruleMixin],
......@@ -345,7 +345,7 @@ export default {
methods: {
async featchData () {
try {
let { result: res } = await business.getQlfQlQtxgqlById(this.bsmSjsb)
let { result: res } = await qlfQlQtxgql.getQlfQlQtxgqlById(this.bsmSjsb)
this.ruleForm = res
//this.featchRule()
} catch (error) {
......@@ -355,7 +355,7 @@ export default {
handleUpdateForm () {
return new Promise(async (resolve) => {
try {
let res = await business.updateQlfQlQtxgql(this.ruleForm)
let res = await qlfQlQtxgql.updateQlfQlQtxgql(this.ruleForm)
// this.$refs['formList'].resetFields();
resolve(res.code)
} catch (error) {
......