7882ead8 by yangwei

权利人 -- 业务表单

1 parent eb7bb34e
import request from "@/utils/request";
import SERVER from "./config";
class zttGyQlr {
// 权利人 -- 业务表单
async getZttGyQlrById(bsmSjsb) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/ZttGyQlr/detail",
method: "get",
params: {
bsmSjsb: bsmSjsb,
},
});
}
// 权利人 -- 业务表单修改
async updateZttGyQlr(data) {
return request({
url: SERVER.SERVERAPI + "/rest/reg/ZttGyQlr/edit",
method: "post",
data,
});
}
}
export default new zttGyQlr();
......@@ -319,7 +319,7 @@
</div>
</template>
<script>
import business from '@/api/business'
import zttGyQlr from '@/api/zttGyQlr'
import ruleMixin from '@/mixins/ruleMixin.js'
import treeSelect from '../treeSelect/index.vue'
// 权利人
......@@ -376,7 +376,7 @@ export default {
methods: {
async featchData () {
try {
let { result: res } = await business.getZttGyQlrById(this.bsmSjsb)
let { result: res } = await zttGyQlr.getZttGyQlrById(this.bsmSjsb)
this.obligeeForm.obligeeList = res
//this.featchRule()
} catch (error) {
......@@ -386,7 +386,7 @@ export default {
handleUpdateForm () {
return new Promise(async (resolve) => {
try {
let res = await business.updateZttGyQlr(this.obligeeForm.obligeeList)
let res = await zttGyQlr.updateZttGyQlr(this.obligeeForm.obligeeList)
// this.$refs['formList'].resetFields();
resolve(res.code)
} catch (error) {
......